Automated ECN Submission - Pseudocode
Automate redline
function(BU_####### string)
//Retrieve Redlines
open http://elstr.stadlerrail.ch/change#number=BU_#######
Navigate page and select attachment.pdf
Download attachment.pdf to /workfolder
//Fill out Change Management Form using url class <change details>
store class."alpha main-title" as string Title
store class."cd-assignment" as string Zuordnung
store class."cd-type" as string Typ
store "Technik" as string Abteilung
Open Antrag.docx from /systemfolder
Write variables as text
Save Antrag.docx as Antrag.pdf in /workfolder
//Update Antrag
Open AE_Antraege_CalTrain.xlsm
Row_count(sheet) as lngRow
Select Cell(lngRow+1,1)
Fill(Title,Zuordnung,Typ,Abteilung)
store lngRow+1 as int lfdno
//Combine into single PDF
EITHER
Open Adobe X Pro
function combine pdf
For each *.pdf in /workfolder
select .pdf
ok
combine
OR
Open Antrag.docx
insert pagebreak
insert object -> attachment.pdf
Save product as "L-4380 AE-Antrag" & lfdno & ".pdf" in /gescannte AE-Antraege
end function
Comments
Post a Comment