System.IO, Zugferd, Dakosy-Import Firma gesetzt durch Division1
This commit is contained in:
@@ -182,8 +182,8 @@
|
||||
If VERAG_OUT_EZA IsNot Nothing AndAlso Not alreadyProvidedInInterface(VERAG_OUT_EZA.ProcessData.ReferenzNumber, VERAG_OUT_EZA.ProcessData.ProcedureCode, VERAG_OUT_EZA.ProcessData.Status, vorsystem, IF_Obj.CooName, checkAlreadyProvided) Then
|
||||
If genXMLFile(VERAG_OUT_EZA, filePath, vorsystem, UniqueId) <> "" Then
|
||||
|
||||
If Not IO.File.Exists(destFile) Then frmStartOptions.copyFile(filePath, IF_Obj.FTP_Path, destFile)
|
||||
If IO.File.Exists(destFile) Then
|
||||
If Not System.IO.File.Exists(destFile) Then frmStartOptions.copyFile(filePath, IF_Obj.FTP_Path, destFile)
|
||||
If System.IO.File.Exists(destFile) Then
|
||||
insertFTPLOG(destFile, IF_Obj.CooName, VERAG_OUT_EZA.ProcessData.ReferenzNumber, VERAG_OUT_EZA.ProcessData.ProcedureCode, VERAG_OUT_EZA.ProcessData.Status, vorsystem)
|
||||
found = True
|
||||
Else
|
||||
@@ -308,9 +308,9 @@
|
||||
Try
|
||||
If XMLFilePath = "" Then
|
||||
Dim dir = VERAG_PROG_ALLGEMEIN.DATENVERVER_OPTIONS.getRootDir() & "ZOLL_SCHNITTSTELLEN\VERAG\EZA_OUT\" & Code & "\" & Now.Year & "\" & Now.ToShortDateString & "\"
|
||||
If Not IO.Directory.Exists(dir) Then IO.Directory.CreateDirectory(dir)
|
||||
If Not System.IO.Directory.Exists(dir) Then System.IO.Directory.CreateDirectory(dir)
|
||||
XMLFilePath = dir & "VERAG_EZA_OUT_" & Now.ToString("ddMMyyyHHmmss") & "_" & Code & "_" & UniqueId & ".xml"
|
||||
While IO.File.Exists(XMLFilePath)
|
||||
While System.IO.File.Exists(XMLFilePath)
|
||||
XMLFilePath = dir & "VERAG_EZA_OUT_" & Now.ToString("ddMMyyyHHmmssffff") & "_" & Code & "_" & UniqueId & ".xml"
|
||||
End While
|
||||
End If
|
||||
@@ -326,12 +326,12 @@
|
||||
|
||||
Shared Function removeTypeFromXML(XMLFilePath) As String
|
||||
Try
|
||||
Dim fileContents = IO.File.ReadAllText(XMLFilePath)
|
||||
Dim fileContents = System.IO.File.ReadAllText(XMLFilePath)
|
||||
fileContents = fileContents.Replace(" xsi:type=""xsd:string""", "")
|
||||
fileContents = fileContents.Replace(" xsi:type=""xsd:dateTime""", "")
|
||||
fileContents = fileContents.Replace(" xsi:type=""xsd:decimal""", "")
|
||||
fileContents = fileContents.Replace(" xsi:type=""xsd:int""", "")
|
||||
IO.File.WriteAllText(XMLFilePath, fileContents)
|
||||
System.IO.File.WriteAllText(XMLFilePath, fileContents)
|
||||
Catch ex As Exception
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace & vbNewLine & vbNewLine, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
End Try
|
||||
@@ -470,7 +470,7 @@
|
||||
If DY_TMP.dy_VBD_dsId IsNot Nothing AndAlso IsNumeric(DY_TMP.dy_VBD_dsId) Then
|
||||
Dim DS As New VERAG_PROG_ALLGEMEIN.cDATENSERVER(DY_TMP.dy_VBD_dsId)
|
||||
Dim Path = DS.GET_TOP1_PATH()
|
||||
If Path <> "" And IO.File.Exists(Path) Then
|
||||
If Path <> "" And System.IO.File.Exists(Path) Then
|
||||
Dim ATT As New VERAG_PROG_ALLGEMEIN.VERAG_OUT_EZA.VERAG_out_ezaAttachment
|
||||
' ATT.DocumentType = VERAG_PROG_ALLGEMEIN.VERAG_OUT_EZA.VERAG_out_ezaAttachmentDocumentType.EZA
|
||||
ATT.FileType = "PDF"
|
||||
|
||||
Reference in New Issue
Block a user