MS clswindream entfernt Umstieg auf Modulwindream
This commit is contained in:
@@ -11,7 +11,6 @@ Imports DevExpress.XtraPrinting
|
||||
Imports System.Threading
|
||||
Imports System.Text
|
||||
Imports System.IO
|
||||
Imports DD_LIB_Standards
|
||||
Imports DigitalData.Modules.Base
|
||||
Imports DigitalData.Modules.Logging
|
||||
Imports DigitalData.Modules.Database
|
||||
@@ -66,7 +65,7 @@ Public Class frmNodeNavigation
|
||||
Private Property AvailableConfigNodes As New List(Of frmNewNode.NodeConfig)
|
||||
Private Property CurrentNodeConfigId As Integer = 0
|
||||
|
||||
Private Property Current_DocList As ClassWindreamDocGrid
|
||||
Private Property Current_DocList As ClassDocGrid
|
||||
|
||||
Public CtrlBuilder As ClassControlBuilder
|
||||
Public CtrlCommandUI As ClassControlCommandsUI
|
||||
@@ -94,7 +93,7 @@ Public Class frmNodeNavigation
|
||||
_EntityId = pEntityID
|
||||
oConstructID = pConstructID
|
||||
|
||||
Current_DocList = New ClassWindreamDocGrid(GridViewDoc_Search)
|
||||
Current_DocList = New ClassDocGrid(GridViewDoc_Search)
|
||||
WindowsEx = New WindowsEx(LOGCONFIG)
|
||||
|
||||
ClassNodeCommands = New ClassNodeCommands(LOGCONFIG, MYDB_ECM)
|
||||
@@ -148,9 +147,13 @@ Public Class frmNodeNavigation
|
||||
'DT_VWPMO_CONSTRUCTOR_FORMS = MYDB_ECM.GetDatatable(Sql)
|
||||
|
||||
CURRENT_DT_TBPMO_ENTITY_RIGHT_CONTROLS = MYDB_ECM.GetDatatable(String.Format("SELECT T.* FROM TBPMO_ENTITY_RIGHT_CONTROLS T INNER JOIN VWPMO_CONSTRUCTOR_FORMS T1 ON T.ENTITY_ID = T1.FORM_ID where T1.CONSTRUCT_ID = {0}", CONSTRUCTORID))
|
||||
Try
|
||||
Dim oGDPictureLicenseKey = MYDB_ECM.GetScalarValue(Queries.DD_ECM.ThirdPartyModules.GdPictureLicense)
|
||||
DocumentViewer.Init(LOGCONFIG, oGDPictureLicenseKey)
|
||||
Catch ex As Exception
|
||||
LOGGER.Warn($"Error while init DocumentViewer: {ex.Message}")
|
||||
End Try
|
||||
|
||||
Dim oGDPictureLicenseKey = MYDB_ECM.GetScalarValue(Queries.DD_ECM.ThirdPartyModules.GdPictureLicense)
|
||||
DocumentViewer.Init(LOGCONFIG, oGDPictureLicenseKey)
|
||||
|
||||
' Hintergrund Bild initialisieren
|
||||
'If (System.IO.File.Exists(Application.StartupPath + "\Resources\windream-portrait_col_RGB_Wordpress.png")) Then
|
||||
@@ -1620,7 +1623,7 @@ Public Class frmNodeNavigation
|
||||
End If
|
||||
|
||||
|
||||
ClassWindreamDocGrid.FillColumns(
|
||||
ClassDocGrid.FillColumns(
|
||||
GridViewDoc_Search,
|
||||
DT_RESULT,
|
||||
DT_COLUMNS_GRID_ENTITY,
|
||||
@@ -1711,7 +1714,7 @@ Public Class frmNodeNavigation
|
||||
Dim ComboBox As ComboBoxEdit = sender
|
||||
'Dim ItemComboBox As RepositoryItemComboBox
|
||||
'ItemComboBox = sender
|
||||
Dim item As ClassWindreamDocGrid.WindreamDocGridComboboxItem = ComboBox.SelectedItem
|
||||
Dim item As ClassDocGrid.WindreamDocGridComboboxItem = ComboBox.SelectedItem
|
||||
Dim value As String = item.Value
|
||||
If value.ToUpper = "Not displayable in Group-Search".ToUpper Then
|
||||
Exit Sub
|
||||
@@ -1723,8 +1726,6 @@ Public Class frmNodeNavigation
|
||||
Dim Sql As String = String.Format("EXEC PRPMO_DOC_VALUE_UPD_INS {0}, {1}, {2}, '{3}', '{4}'", docId, SELECTED_NODE_RECORD_ID, configId, value, user)
|
||||
If MYDB_ECM.ExecuteNonQuery(Sql) = False Then
|
||||
MsgBox("The Update-Command was not successful! Check the log!",, MsgBoxStyle.Critical)
|
||||
Else
|
||||
ClassProxy.PRPROXY_DOC_VALUES_UPD(docId, SELECTED_NODE_RECORD_ID)
|
||||
End If
|
||||
|
||||
Catch ex As Exception
|
||||
@@ -1775,8 +1776,6 @@ Public Class frmNodeNavigation
|
||||
|
||||
If MYDB_ECM.ExecuteNonQuery(Sql) = False Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "UnexpectedError:", "Error updating doc-metadata (date): " & vbNewLine & "Check the log for further information!")
|
||||
Else
|
||||
ClassProxy.PRPROXY_DOC_VALUES_UPD(docId, SELECTED_NODE_RECORD_ID)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
@@ -1827,8 +1826,6 @@ Public Class frmNodeNavigation
|
||||
Dim Sql As String = String.Format("EXEC PRPMO_DOC_VALUE_UPD_INS {0}, {1}, {2},'{3}','{4}'", docId, SELECTED_NODE_RECORD_ID, configid, value, user)
|
||||
If MYDB_ECM.ExecuteNonQuery(Sql) = False Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "UnexpectedError:", "Error updating doc-metadata (textbox): " & vbNewLine & "Check the log for further information!")
|
||||
Else
|
||||
ClassProxy.PRPROXY_DOC_VALUES_UPD(docId, SELECTED_NODE_RECORD_ID)
|
||||
End If
|
||||
End If
|
||||
|
||||
@@ -1861,8 +1858,6 @@ Public Class frmNodeNavigation
|
||||
Dim Sql As String = String.Format("EXEC PRPMO_DOC_VALUE_UPD_INS {0}, {1}, {2},'{3}','{4}'", docId, SELECTED_NODE_RECORD_ID, configid, value, user)
|
||||
If MYDB_ECM.ExecuteNonQuery(Sql) = False Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "UnexpectedError:", "Error updating doc-metadata (checkbox): " & vbNewLine & "Check the log for further information!")
|
||||
Else
|
||||
ClassProxy.PRPROXY_DOC_VALUES_UPD(docId, SELECTED_NODE_RECORD_ID)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
@@ -1875,7 +1870,10 @@ Public Class frmNodeNavigation
|
||||
End Sub
|
||||
|
||||
Private Sub GridViewDoc_Search_FocusedColumnChanged(sender As Object, e As DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs) Handles GridViewDoc_Search.FocusedColumnChanged
|
||||
Refresh_DocID()
|
||||
If FORM_SHOWN = True Then
|
||||
Refresh_DocID()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Private Sub GridViewDoc_Search_FocusedRowChanged(sender As Object, e As DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs) Handles GridViewDoc_Search.FocusedRowChanged
|
||||
Refresh_DocID()
|
||||
@@ -1989,11 +1987,11 @@ Public Class frmNodeNavigation
|
||||
Exit Function
|
||||
End If
|
||||
If USER_PERSONIFIED_TEST = True Then
|
||||
ClassHelper.MSGBOX_Handler("INFO", "Attention", "You are using ADDI in personified mode! Adding files is not allowed!")
|
||||
ClassHelper.MSGBOX_Handler("INFO", "Attention", "You are using orgFLOW in personified mode! Adding files is not allowed!")
|
||||
Exit Function
|
||||
End If
|
||||
If clsWindream.Create_Session = False Then
|
||||
ClassHelper.MSGBOX_Handler("INFO", "Attention", "Check Your windream-connection and restart ADDI afterwards.", "Could not create a windream session!")
|
||||
If WMMOD.SessionLoggedin = False Then
|
||||
ClassHelper.MSGBOX_Handler("INFO", "Attention", "Check Your windream-connection and restart orgFLOW afterwards.", "Could not create a windream session!")
|
||||
Exit Function
|
||||
End If
|
||||
If _EntityId <> 0 And (RIGHT_READ_ONLY_DOC = False And GridControlDocSearch.ContextMenuStrip.Name = "ContextMenuStripResultFiles") Or RIGHT_ADD_DOC = True Then
|
||||
@@ -2226,7 +2224,7 @@ Public Class frmNodeNavigation
|
||||
End If
|
||||
|
||||
|
||||
ClassProxy.PRPROXY_RECORD_UPD_INS(CURRENT_ENTITY_ID, CURRENT_RECORD_ID)
|
||||
'ClassProxy.PRPROXY_RECORD_UPD_INS(CURRENT_ENTITY_ID, CURRENT_RECORD_ID)
|
||||
End If
|
||||
|
||||
Dim recid As Integer
|
||||
@@ -2293,17 +2291,17 @@ Public Class frmNodeNavigation
|
||||
End Function
|
||||
Private Sub cmsResultFileDetail_Opening(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles cmsResultFileDetail.Opening
|
||||
Try
|
||||
If clsWindream.SESSION_CREATED = False Then
|
||||
ClassHelper.MSGBOX_Handler("INFO", "Attention", "Check Your windream-connection and restart ADDI afterwards.", "Could not create a windream session!")
|
||||
If WMMOD.SessionLoggedin = False Then
|
||||
ClassHelper.MSGBOX_Handler("INFO", "Attention", "Check Your windream-connection and restart orgFLOW afterwards.", "Could not create a windream session!")
|
||||
e.Cancel = True
|
||||
End If
|
||||
Me.Cursor = Cursors.WaitCursor
|
||||
|
||||
Dim oSelectedDocs = ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
Dim oSelectedDocs = ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
|
||||
'Refresh_DocID()
|
||||
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
e.Cancel = True
|
||||
Exit Sub
|
||||
End If
|
||||
@@ -2471,7 +2469,7 @@ Public Class frmNodeNavigation
|
||||
' MsgBox("Could not read File Parameters(5)!", MsgBoxStyle.Exclamation)
|
||||
' Exit Sub
|
||||
'End If
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
MsgBox("Could not read File Parameters(5)!", MsgBoxStyle.Exclamation)
|
||||
Exit Sub
|
||||
End If
|
||||
@@ -2480,13 +2478,13 @@ Public Class frmNodeNavigation
|
||||
' TimerFileHandle.Enabled = True
|
||||
' End If
|
||||
'Next
|
||||
For Each oDoc As ClassWindreamDocGrid.WindreamDoc In ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
For Each oDoc As ClassDocGrid.clsWMDoc In ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
If ClassHelper.File_open(oDoc.DocPath, oDoc.DocId) = True Then
|
||||
TimerFileHandle.Enabled = True
|
||||
End If
|
||||
Next
|
||||
Else
|
||||
If clsWD_GET.WDFile_exists(oDocuments.First.DocPath, DD_LIB_Standards.clsDatabase.DB_PROXY_INITIALIZED, ClassProxy.MyLinkedServer, True) = True Then
|
||||
If WMMOD.TestFileExists(oDocuments.First.DocPath) = True Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Right-Management", "File is existing, but you do not have the rights to open this file! " & vbNewLine & "Please contact your admin!" & vbNewLine & "DOC-ID: " & oDocuments.First.DocId.ToString)
|
||||
Else
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "", "File does not exist! Please contact your admin!")
|
||||
@@ -2557,7 +2555,7 @@ Public Class frmNodeNavigation
|
||||
End Sub
|
||||
|
||||
Private Async Sub tsmiFileInWork_Click(sender As Object, e As EventArgs) Handles tsmiFileInWork.Click
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
MsgBox("Could not read File Parameters (3)!", MsgBoxStyle.Exclamation)
|
||||
Exit Sub
|
||||
End If
|
||||
@@ -2581,7 +2579,7 @@ Public Class frmNodeNavigation
|
||||
End If
|
||||
Else
|
||||
frmFileInWork.ShowDialog()
|
||||
ClassWindreamDocGrid.SELECTED_INWORK = ClassFileResult.InWork
|
||||
ClassDocGrid.SELECTED_INWORK = ClassFileResult.InWork
|
||||
Await RUN_WDSEARCH_GRID(True)
|
||||
End If
|
||||
End If
|
||||
@@ -2589,10 +2587,8 @@ Public Class frmNodeNavigation
|
||||
End Sub
|
||||
|
||||
Private Sub frmNodeNavigation_Shown(sender As Object, e As EventArgs) Handles Me.Shown
|
||||
Dim sw As New SW("Form_Shown")
|
||||
Me.BringToFront()
|
||||
TreeListDevexpress.CollapseAll()
|
||||
sw.Done()
|
||||
FORM_SHOWN = True
|
||||
End Sub
|
||||
|
||||
@@ -2631,7 +2627,7 @@ Public Class frmNodeNavigation
|
||||
LOGGER.Warn("Attention: Could not set DocVariable RENAME_DOC_PATH: " & ex.Message)
|
||||
RENAME_DOC_PATH = Nothing
|
||||
End Try
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
MsgBox("Could not read File Parameters!", MsgBoxStyle.Exclamation)
|
||||
Exit Sub
|
||||
End If
|
||||
@@ -2676,14 +2672,14 @@ Public Class frmNodeNavigation
|
||||
' MsgBox("Could not read File Parameters(5)!", MsgBoxStyle.Exclamation)
|
||||
' Exit Sub
|
||||
'End If
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
MsgBox("Could not read File Parameters(5)!", MsgBoxStyle.Exclamation)
|
||||
Exit Sub
|
||||
End If
|
||||
'For Each row As DataRow In ClassWindreamDocGrid.DT_RESULTFILES.Rows
|
||||
' ClassHelper.Open_Folder(row.Item("DOC_PATH"), row.Item("DOC_ID"))
|
||||
'Next
|
||||
For Each oDoc As ClassWindreamDocGrid.WindreamDoc In ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
For Each oDoc As ClassDocGrid.clsWMDoc In ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
ClassHelper.Open_Folder(oDoc.DocPath, oDoc.DocId)
|
||||
Next
|
||||
End Sub
|
||||
@@ -2692,7 +2688,7 @@ Public Class frmNodeNavigation
|
||||
Try
|
||||
Dim oDocuments = Current_DocList.SelectedDocuments
|
||||
|
||||
If oDocuments.Count = 0 Or ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If oDocuments.Count = 0 Or ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
MsgBox("Could not read File Parameters (LinkRecord)!", MsgBoxStyle.Exclamation)
|
||||
Exit Sub
|
||||
End If
|
||||
@@ -2721,7 +2717,7 @@ Public Class frmNodeNavigation
|
||||
table.Columns.Add("FILEPATH", GetType(System.String))
|
||||
table.Columns.Add("DOC_ID", GetType(System.Int32))
|
||||
table.Columns.Add("OBJECTTYPE", GetType(System.String))
|
||||
For Each oDoc As ClassWindreamDocGrid.WindreamDoc In ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
For Each oDoc As ClassDocGrid.clsWMDoc In ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
If oDoc.DocPath <> String.Empty Then
|
||||
'Set the ID column as the primary key column.
|
||||
Dim newRow As DataRow = table.NewRow()
|
||||
@@ -2759,7 +2755,7 @@ Public Class frmNodeNavigation
|
||||
ClassHelper.MSGBOX_Handler("INFO", "Attention", "Missing Selection:", "Please select a record!")
|
||||
Exit Sub
|
||||
End If
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
@@ -2771,7 +2767,7 @@ Public Class frmNodeNavigation
|
||||
result = MessageBox.Show(msg, CAPTION_CONFIRMATION, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
|
||||
If result = MsgBoxResult.Yes Then
|
||||
Try
|
||||
For Each oDoc As ClassWindreamDocGrid.WindreamDoc In ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
For Each oDoc As ClassDocGrid.clsWMDoc In ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
If ClassFileResult.Delete_ResultFile(oDoc.DocId, CURRENT_RECORD_ID, 0) = True Then
|
||||
ClassHelper.InsertEssential_Log(oDoc.DocId, "DOC-ID", "RECORD LINK REMOVED FROM DOC-SEARCH")
|
||||
Cursor = Cursors.WaitCursor
|
||||
@@ -2825,12 +2821,12 @@ Public Class frmNodeNavigation
|
||||
Show_File_Properties()
|
||||
End Sub
|
||||
Sub Show_File_Properties()
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
MsgBox("Could not read File Parameters(4)!", MsgBoxStyle.Exclamation)
|
||||
Exit Sub
|
||||
End If
|
||||
Cursor = Cursors.WaitCursor
|
||||
For Each oDoc As ClassWindreamDocGrid.WindreamDoc In ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
For Each oDoc As ClassDocGrid.clsWMDoc In ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
If oDoc.DocPath <> "" Then
|
||||
Dim oFileFullPath = ClassHelper.FORMAT_WM_PATH(oDoc.DocPath)
|
||||
Try
|
||||
@@ -2920,6 +2916,9 @@ Public Class frmNodeNavigation
|
||||
'End Sub
|
||||
|
||||
Private Sub GridViewDoc_Search_RowStyle(sender As Object, e As RowStyleEventArgs) Handles GridViewDoc_Search.RowStyle
|
||||
If FORM_SHOWN = False Then
|
||||
Exit Sub
|
||||
End If
|
||||
If e.RowHandle = DevExpress.XtraGrid.GridControl.AutoFilterRowHandle Then
|
||||
e.Appearance.BackColor = Color.Yellow
|
||||
Else
|
||||
@@ -3052,10 +3051,10 @@ Public Class frmNodeNavigation
|
||||
Show_SelectedDoc()
|
||||
End Sub
|
||||
Private Sub Show_SelectedDoc()
|
||||
Dim oSelectedDocs = ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
Dim oSelectedDocs = ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
|
||||
If oSelectedDocs.Count = 1 Then
|
||||
Dim oDocument As ClassWindreamDocGrid.WindreamDoc = oSelectedDocs.First()
|
||||
Dim oDocument As ClassDocGrid.clsWMDoc = oSelectedDocs.First()
|
||||
Dim oPath = ClassHelper.FORMAT_WM_PATH(oDocument.DocPath)
|
||||
DocumentViewer.LoadFile(oPath)
|
||||
Refresh_DocID()
|
||||
@@ -3103,7 +3102,7 @@ Public Class frmNodeNavigation
|
||||
Private Sub DokumentartÄndernToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles DokumentartÄndernToolStripMenuItem.Click
|
||||
|
||||
Try
|
||||
Dim oSelectedDocs = ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
Dim oSelectedDocs = ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
|
||||
If oSelectedDocs.Count = 0 Then
|
||||
Exit Sub
|
||||
@@ -3122,7 +3121,7 @@ Public Class frmNodeNavigation
|
||||
'Next
|
||||
If oForm.ShowDialog() = DialogResult.OK Then
|
||||
If Not IsNothing(oForm.SelectedDocType) Then
|
||||
For Each oDoc As ClassWindreamDocGrid.WindreamDoc In oSelectedDocs
|
||||
For Each oDoc As ClassDocGrid.clsWMDoc In oSelectedDocs
|
||||
If oDoc.DocPath <> "" Then
|
||||
Dim oWMObject As WINDREAMLib.WMObject
|
||||
Dim oReldocpath = ClassHelper.GetRelPath(oDoc.DocPath)
|
||||
@@ -3155,7 +3154,7 @@ Public Class frmNodeNavigation
|
||||
End Function
|
||||
|
||||
Private Sub tsmiFileDelete_Click(sender As Object, e As EventArgs) Handles tsmiFileDelete.Click
|
||||
If ClassWindreamDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
If ClassDocGrid.HasNoSelectedDocuments(GridViewDoc_Search) Then
|
||||
MsgBox("Could not read File Parameters (LinkRecord)!", MsgBoxStyle.Exclamation)
|
||||
Exit Sub
|
||||
End If
|
||||
@@ -3174,7 +3173,7 @@ Public Class frmNodeNavigation
|
||||
Dim result1 As MsgBoxResult
|
||||
result1 = MessageBox.Show(msg, CAPTION_CONFIRMATION, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
|
||||
If result1 = MsgBoxResult.Yes Then
|
||||
For Each oDoc As ClassWindreamDocGrid.WindreamDoc In ClassWindreamDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
For Each oDoc As ClassDocGrid.clsWMDoc In ClassDocGrid.GetSelectedDocuments(GridViewDoc_Search)
|
||||
If oDoc.DocPath <> "" Then
|
||||
Try
|
||||
LOGGER.Info($"DocID {oDoc.DocPath} shall be deleted. User committed Delete-Start...")
|
||||
@@ -3203,7 +3202,7 @@ Public Class frmNodeNavigation
|
||||
If ClassFileResult.Delete_ResultFile(oDoc.DocId, CURRENT_RECORD_ID, oDElWMFile) = True Then
|
||||
|
||||
If oDElWMFile = True Then
|
||||
If clsWD_SET.Delete_WDFile(oDoc.DocPath) Then
|
||||
If WMMOD.RemoveFile(oDoc.DocPath) Then
|
||||
Update_Status_Label(True, Now.ToLongTimeString & " - File successfully deleted", EditState.Insert)
|
||||
ClassHelper.InsertEssential_Log(oDoc.DocId, "DOC-ID", "FILE DELETED BY USER")
|
||||
End If
|
||||
@@ -3217,10 +3216,7 @@ Public Class frmNodeNavigation
|
||||
End If
|
||||
|
||||
End If
|
||||
If LICENSE_PROXY = True And DD_LIB_Standards.clsDatabase.DB_PROXY_INITIALIZED Then
|
||||
Dim proc = String.Format("EXEC PRPROXY_DOC_CHECK_DELETE {0}", oDoc.DocId)
|
||||
MYDB_ECM.ExecuteNonQuery(proc)
|
||||
End If
|
||||
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", "Error in delete file: ", ex.Message)
|
||||
End Try
|
||||
|
||||
Reference in New Issue
Block a user