瀏覽代碼

changing label exports

pull/8/head
Daniel Covington 4 月之前
父節點
當前提交
072c288170
共有 2 個文件被更改,包括 15 次插入2 次删除
  1. +8
    -2
      App/Controllers/Kit/KitController.asp
  2. +7
    -0
      MVC/activeXdepedancies.asp

+ 8
- 2
App/Controllers/Kit/KitController.asp 查看文件

@@ -117,6 +117,9 @@ Class KitController
Public Sub DownloadTrackingkitSnailWorksPDF
dim id : id = Request.QueryString("Id")
dim ExportDirectory:ExportDirectory = "\\kci-syn-cl01\PC Transfer\TrackingDataExport\"
dim KitInfo : Set KitInfo = KitRepository.FindByID(id)
dim JurisdictionInfo : Set JurisdictionInfo = JurisdictionRepository.FindByJCode(KitInfo.Jcode)
ReportManager.Filename = Request.ServerVariables("APPL_PHYSICAL_PATH") & "Data\Label_Report.rep"
if dev = true Then

@@ -132,8 +135,11 @@ Class KitController
ReportManager.ShowPrintDialog = false
ReportManager.SetParamValue "PBKITID", CInt(id)

ReportManager.SaveToPdf Request.ServerVariables("APPL_PHYSICAL_PATH") & "Data\" & id & ".pdf",1
if FSO.FolderExists(ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name) = False then
FSO.CreateFolder(ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name)
end if
ReportManager.SaveToPdf ExportDirectory & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "\" & JurisdictionInfo.JCode & "-" & JurisdictionInfo.Name & "_labels.pdf",1
'ReportManager.SaveToPdf Request.ServerVariables("APPL_PHYSICAL_PATH") & "Data\" & id & ".pdf",1
Dim objStream:Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Type = 1 'adTypeBinary


+ 7
- 0
MVC/activeXdepedancies.asp 查看文件

@@ -15,4 +15,11 @@
set ReportManager = m_ReportManager
End Function

dim m_FSO
Private Function FSO
if not isobject(m_FSO) then
set m_FSO = server.CreateObject(CreateObject("Scripting.FileSystemObject")
end if
set FSO = m_FSO
End Function
%>

Loading…
取消
儲存

Powered by TurnKey Linux.