MS clswindream entfernt Umstieg auf Modulwindream
This commit is contained in:
@@ -11,7 +11,6 @@ Public Class frmWM_IndexFile
|
||||
Dim MULTIFILES As Integer = 0
|
||||
Dim formloaded As Boolean = False
|
||||
Dim DTVWPMO_DOKUMENTTYPES As DataTable
|
||||
Dim _wm As Windream
|
||||
|
||||
Public Class SW
|
||||
Public label As String
|
||||
@@ -53,7 +52,7 @@ Public Class frmWM_IndexFile
|
||||
sw = New SW("CheckFileExists")
|
||||
Dim existsonlyasMaster = False
|
||||
|
||||
If _wm.TestFileExists(CURRENT_NEWFILENAME) = True Then
|
||||
If WMMOD.TestFileExists(CURRENT_NEWFILENAME) = True Then
|
||||
Dim msg = "Eine Datei mit identischem Namen existiert bereits! Wollen Sie die bestehende Datei ersetzen? (KEINE VERSIONIERUNG)" & vbNewLine & "Beachten Sie das vorhandene Versionen beim Ersetzen mit gelöscht werden!"
|
||||
If USER_LANGUAGE <> "de-DE" Then
|
||||
msg = "There is already a file with the same name! Would You like to replace the file?" & vbNewLine & "All versions will also be deleted!"
|
||||
@@ -61,7 +60,7 @@ Public Class frmWM_IndexFile
|
||||
Dim result As MsgBoxResult
|
||||
result = MessageBox.Show(msg, "File already exists:", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
|
||||
If result = MsgBoxResult.Yes Then
|
||||
If _wm.RemoveFile(CURRENT_NEWFILENAME) Then 'clsWM_SET.Delete_WDFile(CURRENT_NEWFILENAME) = False Then
|
||||
If WMMOD.RemoveFile(CURRENT_NEWFILENAME) Then
|
||||
swWORK_FILE.Done()
|
||||
Return False
|
||||
End If
|
||||
@@ -70,7 +69,7 @@ Public Class frmWM_IndexFile
|
||||
End If
|
||||
|
||||
Else
|
||||
If _wm.TestFileExists(CURRENT_NEWFILENAME) = True Then
|
||||
If WMMOD.TestFileExists(CURRENT_NEWFILENAME) = True Then
|
||||
ClassHelper.InsertEssential_Log(CURRENT_RECORD_ID, "RECORD-ID", "FILE ALREADY EXISTED WITH NON-USER RIGHTS: " & CURRENT_NEWFILENAME)
|
||||
CURRENT_NEWFILENAME = ClassHelper.Versionierung_Datei(CURRENT_NEWFILENAME)
|
||||
existsonlyasMaster = True
|
||||
@@ -86,7 +85,7 @@ Public Class frmWM_IndexFile
|
||||
'Stream File to windream
|
||||
'#################################################################
|
||||
sw = New SW("File Stream")
|
||||
Dim streamresult = _wm.NewFileStream(ImportFilePath, CURRENT_NEWFILENAME, OBJECT_TYPETextBox.Text)
|
||||
Dim streamresult = WMMOD.NewFileStream(ImportFilePath, CURRENT_NEWFILENAME, OBJECT_TYPETextBox.Text)
|
||||
sw.Done()
|
||||
'#################################################################
|
||||
If streamresult = True Then
|
||||
@@ -94,11 +93,11 @@ Public Class frmWM_IndexFile
|
||||
sw = New SW("File Indexing")
|
||||
CURRENT_FILEIN_WD = CURRENT_NEWFILENAME
|
||||
Dim DOCID
|
||||
DOCID = _wm.GetIndexValue(CURRENT_FILEIN_WD, "Dokument-ID") ' clsWM_GET.Index_GetVariableValue(CURRENT_FILEIN_WD, "Dokument-ID")
|
||||
DOCID = WMMOD.GetIndexValue(CURRENT_FILEIN_WD, "Dokument-ID")
|
||||
If Not IsNothing(DOCID) Then
|
||||
CURRENT_DOC_ID = DOCID(0)
|
||||
Else
|
||||
DOCID = _wm.GetIndexValue(CURRENT_FILEIN_WD, "Document-ID") ' clsWM_GET.Index_GetVariableValue(CURRENT_FILEIN_WD, "Document-ID")
|
||||
DOCID = WMMOD.GetIndexValue(CURRENT_FILEIN_WD, "Document-ID")
|
||||
If Not IsNothing(DOCID) Then
|
||||
CURRENT_DOC_ID = DOCID(0)
|
||||
End If
|
||||
@@ -123,7 +122,7 @@ Public Class frmWM_IndexFile
|
||||
|
||||
Dim indexierung_erfolgreich As Boolean = True
|
||||
LOGGER.Debug("Doctype: " & vDokart.ToString)
|
||||
indexierung_erfolgreich = _wm.SetFileIndex(CURRENT_FILEIN_WD, WMINDEX_DOCTYPE, vDokart, WMOBJECTTYPE) ' clsWM_SET.IndexFile(CURRENT_FILEIN_WD, indexname, vDokart, oWMObjecttype) 'clsWM.MY_WDOBJECTTYPE)
|
||||
indexierung_erfolgreich = WMMOD.SetFileIndex(CURRENT_FILEIN_WD, WMINDEX_DOCTYPE, vDokart, WMOBJECTTYPE)
|
||||
If indexierung_erfolgreich = False Then
|
||||
err = True
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error: ", "Unexpected Error in WorkFile-indexing Doctype '" & WMINDEX_DOCTYPE & "') - Check logfile!")
|
||||
@@ -132,7 +131,7 @@ Public Class frmWM_IndexFile
|
||||
Return False
|
||||
End If
|
||||
|
||||
indexierung_erfolgreich = _wm.SetFileIndex(CURRENT_FILEIN_WD, WMINDEX_RELATION, "ADDI-RELATION", WMOBJECTTYPE) 'clsWM_SET.IndexFile(CURRENT_FILEIN_WD, indexname, "ADDI-RELATION", oWMObjecttype) 'clsWM.MY_WDOBJECTTYPE)
|
||||
indexierung_erfolgreich = WMMOD.SetFileIndex(CURRENT_FILEIN_WD, WMINDEX_RELATION, "ADDI-RELATION", WMOBJECTTYPE)
|
||||
If indexierung_erfolgreich = False Then
|
||||
err = True
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error: ", "Unexpected Error in WorkFile-indexing AddiRelation '" & WMINDEX_RELATION & "') - Check logfile!")
|
||||
@@ -203,7 +202,7 @@ Public Class frmWM_IndexFile
|
||||
End If
|
||||
LOGGER.Debug($"Autovalue used for Indexing: '" & oAutoIndexValue.ToString & "'")
|
||||
Count += 1
|
||||
indexierung_erfolgreich = _wm.SetFileIndex(CURRENT_FILEIN_WD, oAutoIndexname, oAutoIndexValue, WMOBJECTTYPE) 'clsWM_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, oWMObjecttype) 'clsWM.MY_WDOBJECTTYPE)
|
||||
indexierung_erfolgreich = WMMOD.SetFileIndex(CURRENT_FILEIN_WD, oAutoIndexname, oAutoIndexValue, WMOBJECTTYPE)
|
||||
If indexierung_erfolgreich = False Then
|
||||
MsgBox("Unexpected Error in indexing file - See log", MsgBoxStyle.Critical)
|
||||
err = True
|
||||
@@ -287,7 +286,7 @@ Public Class frmWM_IndexFile
|
||||
Next
|
||||
End If
|
||||
|
||||
If _wm.SessionLoggedin = False Then 'clsWM.Create_Session() = False Then
|
||||
If WMMOD.SessionLoggedin = False Then
|
||||
MsgBox("Could not create a windream-session!", MsgBoxStyle.Critical)
|
||||
Else
|
||||
FAU_AD_USER = ""
|
||||
@@ -303,7 +302,7 @@ Public Class frmWM_IndexFile
|
||||
sw = New SW("Setting_Rights")
|
||||
If ClassDOC_SEARCH.SET_WD_RIGHTS(CURRENT_WM_OBJECT, CURRENT_DOC_ID, CURRENT_FILEIN_WD, odeleteRights) = False Then
|
||||
MsgBox("The rights for the new file could not be created! Please check the logfile!" & vbNewLine &
|
||||
"ADDI will try to give You at least reading rights!", MsgBoxStyle.Exclamation)
|
||||
"orgFLOW will try to give You at least reading rights!", MsgBoxStyle.Exclamation)
|
||||
DD_Rights.ClassRights.SetRightExplicit(CURRENT_DOC_ID, CURRENT_FILEIN_WD, USER_USERNAME, 1)
|
||||
ClassHelper.InsertEssential_Log(CURRENT_DOC_ID, "DOC-ID", "NEW FILE INDEXING - RIGHTS COULD NOT BE SET!!")
|
||||
End If
|
||||
@@ -458,7 +457,7 @@ Public Class frmWM_IndexFile
|
||||
My.Settings.WD_INDEXDOKART_SAVE = cmbDokumentart.Text
|
||||
My.Settings.Save()
|
||||
|
||||
If _wm.SessionLoggedin = True Then 'clsWM.Create_Session = True Then
|
||||
If WMMOD.SessionLoggedin = True Then
|
||||
Handle_File(cmbDokumentart.SelectedValue)
|
||||
Else
|
||||
MsgBox("Could not create a windream-session! Please contact Your admin!", MsgBoxStyle.Critical)
|
||||
@@ -1123,7 +1122,8 @@ Public Class frmWM_IndexFile
|
||||
LOGGER.Debug("frmWD_Index_Dokart_Load")
|
||||
chkdelete_origin.Checked = False
|
||||
chkdelete_origin.Visible = False
|
||||
_wm = New Windream(LOGCONFIG, False, WMDriveLetter, WMPATH_PREFIX, True, WM_SERVER, WM_USER, WM_USER_PW, WM_DOMAIN)
|
||||
Dim oReconnect = WMMOD.SessionReconnect
|
||||
'= New Windream(LOGCONFIG, False, WMDriveLetter, WMPATH_PREFIX, True, WM_SERVER, WM_USER, WM_USER_PW, WM_DOMAIN)
|
||||
Dim HandleType As String
|
||||
For Each row As DataRow In CURRENT_TBPMO_FILES_USER.Rows
|
||||
If row.Item("GUID") = CURRENT_FILEID Then
|
||||
|
||||
Reference in New Issue
Block a user