MS V2.7.4.1 Betatest

This commit is contained in:
Developer01
2025-03-28 15:16:58 +01:00
parent 5df478bdab
commit e604b513b5
28 changed files with 155 additions and 76 deletions

View File

@@ -2519,6 +2519,7 @@ Public Class frmIndex
Private Function Move_File2_Target()
Dim oError As Boolean
Try
CURRENT_DOC_ID = 0
Dim oSQL As String = "SELECT FOLDER_FOR_INDEX FROM TBDD_DOKUMENTART WHERE GUID = " & CURRENT_DOKART_ID
Dim oFolderForIndex = DATABASE_ECM.GetScalarValue(oSQL)
If Not IsDBNull(oFolderForIndex) Then
@@ -2539,8 +2540,18 @@ Public Class frmIndex
oExportSuccessful = SINGLEFILE_2_WINDREAM(CURR_DOKART_OBJECTTYPE)
End If
If oExportSuccessful = True Then
'Kein Fehler in Export2windream
oError = False
Dim ofilename = Path.GetFileName(CURRENT_NEWFILENAME)
Dim odwDocID As Int64
If WM_DB_SERVER <> "" Then
oSQL = $"select max(dwdocid) from {WM_DB_SERVER}.dbo.BaseAttributes where szLongName = '{ofilename}'"
Dim oDocID = DATABASE_ECM.GetScalarValue(oSQL)
If Not IsNothing(oDocID) Then
CURRENT_DOC_ID = oDocID
End If
End If
'Kein Fehler in Export2windream
oError = False
If Write_Indizes() = True Then
'Kein Fehler in Setzen der windream-Indizes
Dim Insert_String As String