jj für ms
This commit is contained in:
@@ -25,7 +25,7 @@ Public Class ClassImport_Windream
|
||||
If streamresult = True Then
|
||||
Dim sql As String = String.Format("SELECT DocID FROM VWPMO_DOC_SYNC WHERE UPPER(FULL_FILENAME) = UPPER('{0}') AND CONVERT(DATE,Change_DateTime) = CONVERT(DATE,GETDATE())", CURRENT_FILEIN_WD)
|
||||
CURRENT_DOC_ID = ClassDatabase.Execute_Scalar(sql)
|
||||
sql = "SELECT * FROM TBDD_INDEX_AUTOM WHERE DOCTYPE_ID = " & DOCTYPE_ID
|
||||
sql = $"SELECT * FROM TBDD_INDEX_AUTOM WHERE DOCTYPE_ID = {DOCTYPE_ID} AND ENTITY_ID = {CURRENT_ENTITY_ID}"
|
||||
Dim dt As DataTable = ClassDatabase.Return_Datatable(sql)
|
||||
Dim indexierung_erfolgreich As Boolean = False
|
||||
If dt Is Nothing = False Then
|
||||
@@ -124,8 +124,21 @@ Public Class ClassImport_Windream
|
||||
' Den Zielordner erstellen
|
||||
Zielordner = DT.Rows(0).Item("ZIEL_PFAD")
|
||||
|
||||
sql = $"SELECT DYNAMIC_FOLDER FROM TBPMO_WD_FORMVIEW_DOKTYPES WHERE FORMVIEW_ID = {CURRENT_FORMVIEW_ID} AND DOCTYPE_ID = {DocTypeID}"
|
||||
Dim DYNAMIC_FOLDER = ClassDatabase.Execute_Scalar(sql)
|
||||
sql = $"SELECT * FROM TBPMO_WD_FORMVIEW_DOKTYPES WHERE FORMVIEW_ID = {CURRENT_FORMVIEW_ID} AND DOCTYPE_ID = {DocTypeID}"
|
||||
Dim oDTFW_DOCTYPES As DataTable = ClassDatabase.Return_Datatable(sql)
|
||||
Dim DYNAMIC_FOLDER = oDTFW_DOCTYPES.Rows(0).Item("DYNAMIC_FOLDER")
|
||||
Dim oROOTWM_FOLDER
|
||||
Try
|
||||
oROOTWM_FOLDER = oDTFW_DOCTYPES.Rows(0).Item("DYNAMIC_FOLDER")
|
||||
Catch ex As Exception
|
||||
oROOTWM_FOLDER = ""
|
||||
End Try
|
||||
If oROOTWM_FOLDER <> String.Empty Then
|
||||
If LogErrorsOnly = False Then ClassLogger.Add($">> oROOTWM_FOLDER '{oROOTWM_FOLDER}' will be used", False)
|
||||
Zielordner = oROOTWM_FOLDER
|
||||
End If
|
||||
|
||||
'ClassDatabase.Execute_Scalar(sql)
|
||||
If Not IsDBNull(DYNAMIC_FOLDER) Then
|
||||
If DYNAMIC_FOLDER <> String.Empty Then
|
||||
If CREATE_FOLDER_INDEX(DYNAMIC_FOLDER, DocTypeID) = True And CURRENT_VARIABLE_FOLDER <> "" Then
|
||||
|
||||
Reference in New Issue
Block a user