Przeglądaj źródła

Include delivery report templates in CI/CD sparse deploy and update label naming

master
Daniel Covington 1 dzień temu
rodzic
commit
fa13f46d9c
3 zmienionych plików z 16 dodań i 8 usunięć
  1. +10
    -6
      App/Controllers/Kit/KitController.asp
  2. +3
    -1
      CiCd/Tracking_CICD.ps1
  3. +3
    -1
      CiCd/deploy.vbs

+ 10
- 6
App/Controllers/Kit/KitController.asp Wyświetl plik

@@ -229,11 +229,12 @@ Class KitController
Exit Sub
End If

dim labelsFilename : labelsFilename = jCode & "-" & jurisdiction & "_delivery_labels.pdf"
dim labelsBaseName : labelsBaseName = jobNumber & " - " & jurisdiction
dim labelsFilename : labelsFilename = labelsBaseName & "_delivery_labels.pdf"
dim packingSlipFilename : packingSlipFilename = jCode & "-" & jurisdiction & "_delivery_packing_slip.pdf"
dim labelsFinalPath : labelsFinalPath = exportFolder & "\" & labelsFilename
dim packingSlipFinalPath : packingSlipFinalPath = exportFolder & "\" & packingSlipFilename
dim labelsTempPath : labelsTempPath = appPath & "Data\" & jCode & "-" & jurisdiction & "_delivery_labels.tmp.pdf"
dim labelsTempPath : labelsTempPath = appPath & "Data\" & labelsBaseName & "_delivery_labels.tmp.pdf"
dim packingSlipTempPath : packingSlipTempPath = appPath & "Data\" & jCode & "-" & jurisdiction & "_delivery_packing_slip.tmp.pdf"

If FSO.FileExists(labelsTempPath) Then FSO.DeleteFile labelsTempPath
@@ -402,11 +403,14 @@ Class KitController
end if


if FSO.FileExists(ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "\" & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "_labels.pdf") then
FSO.DeleteFile(ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "\" & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "_labels.pdf")
dim labelsJobFileName : labelsJobFileName = KitInfo.JobNumber & " - " & JurisdictionInfo.Name & "_labels.pdf"
dim labelsJobTempFileName : labelsJobTempFileName = KitInfo.JobNumber & " - " & JurisdictionInfo.Name & " Labels.pdf"

if FSO.FileExists(ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "\" & labelsJobFileName) then
FSO.DeleteFile(ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "\" & labelsJobFileName)
end if
ReportManager.SaveToPdf Request.ServerVariables("APPL_PHYSICAL_PATH") & "\Data\" & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & " Labels.pdf",1
FSO.MoveFile Request.ServerVariables("APPL_PHYSICAL_PATH") & "\Data\" & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & " Labels.pdf" , ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "\" & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "_labels.pdf"
ReportManager.SaveToPdf Request.ServerVariables("APPL_PHYSICAL_PATH") & "\Data\" & labelsJobTempFileName,1
FSO.MoveFile Request.ServerVariables("APPL_PHYSICAL_PATH") & "\Data\" & labelsJobTempFileName , ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "\" & labelsJobFileName
End Sub



+ 3
- 1
CiCd/Tracking_CICD.ps1 Wyświetl plik

@@ -401,6 +401,8 @@ function Clone-Repo
"App/",
"Data/arrow ne.jpg",
"Data/Label_Report.rep",
"Data/Delivery_Labels.rep",
"Data/Delivery_PackingSlip.rep",
"Data/png-transparent-arrow-arrow-angle-triangle-black-thumbnail.jpg",
"Data/purple_envelope_sample_Page_1.jpg",
"Data/purple_envelope_sample_Page_2.jpg",
@@ -453,4 +455,4 @@ Stop-IISAppRemote
Clear-RemoteDirectory
Deploy-ZipRemote
Start-IISAppRemote
Cleanup
Cleanup

+ 3
- 1
CiCd/deploy.vbs Wyświetl plik

@@ -89,6 +89,8 @@ Sub CloneRepo
objFile.WriteLine("App/")
objFile.WriteLine("Data/arrow ne.jpg")
objFile.WriteLine("Data/Label_Report.rep")
objFile.WriteLine("Data/Delivery_Labels.rep")
objFile.WriteLine("Data/Delivery_PackingSlip.rep")
objFile.WriteLine("Data/png-transparent-arrow-arrow-angle-triangle-black-thumbnail.jpg")
objFile.WriteLine("Data/purple_envelope_sample_Page_1.jpg")
objFile.WriteLine("Data/purple_envelope_sample_Page_2.jpg")
@@ -120,4 +122,4 @@ End Sub
'C:\Windows\System32\inetsrv\appcmd.exe start apppool /apppool.name:tracking
'C:\Windows\System32\inetsrv\appcmd.exe start site /site.name:tracking

'nircmd.exe elevatecmd runassystem
'nircmd.exe elevatecmd runassystem

Ładowanie…
Anuluj
Zapisz

Powered by TurnKey Linux.