MS Datei ueberspringen
This commit is contained in:
parent
8fd3d1794f
commit
c854c407c5
@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.3.7.4")>
|
<Assembly: AssemblyVersion("2.3.7.5")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
|
|||||||
@ -1807,7 +1807,9 @@ Public Class frmMain
|
|||||||
Exit Function
|
Exit Function
|
||||||
End If
|
End If
|
||||||
If oSQLOverview.ToString.Contains("GROUP_TEXT") = False Then
|
If oSQLOverview.ToString.Contains("GROUP_TEXT") = False Then
|
||||||
|
LOGGER.Info($"SQL SO FAR: {oSQLOverview} ")
|
||||||
FormHelper.ShowInfoMessage("Incomplete Overview-Source (No Group-Columns). Please reload manually!", omsgTitleWarning)
|
FormHelper.ShowInfoMessage("Incomplete Overview-Source (No Group-Columns). Please reload manually!", omsgTitleWarning)
|
||||||
|
|
||||||
NO_WORKFLOWITEMS = True
|
NO_WORKFLOWITEMS = True
|
||||||
GridControl_Docs.Visible = False
|
GridControl_Docs.Visible = False
|
||||||
bindsourcegrid.DataSource = Nothing
|
bindsourcegrid.DataSource = Nothing
|
||||||
|
|||||||
@ -319,7 +319,7 @@
|
|||||||
<value>DocumentViewerValidator</value>
|
<value>DocumentViewerValidator</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>DocumentViewerValidator.Type" xml:space="preserve">
|
<data name=">>DocumentViewerValidator.Type" xml:space="preserve">
|
||||||
<value>DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=1.7.0.1, Culture=neutral, PublicKeyToken=null</value>
|
<value>DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=1.8.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>DocumentViewerValidator.Parent" xml:space="preserve">
|
<data name=">>DocumentViewerValidator.Parent" xml:space="preserve">
|
||||||
<value>SplitContainer1.Panel2</value>
|
<value>SplitContainer1.Panel2</value>
|
||||||
|
|||||||
@ -509,8 +509,8 @@ Public Class frmValidator
|
|||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
Sub Reset_CurrentReferences()
|
Sub Reset_CurrentReferences()
|
||||||
CURRENT_DOC_ID = 0
|
LOGGER.Info("Attention: Reset_CurrentReferences....")
|
||||||
CURRENT_DOC_GUID = 0
|
|
||||||
If Not IsNothing(DT_AdditionalSearches_Resultset_Docs) Then
|
If Not IsNothing(DT_AdditionalSearches_Resultset_Docs) Then
|
||||||
DT_AdditionalSearches_Resultset_Docs.Clear()
|
DT_AdditionalSearches_Resultset_Docs.Clear()
|
||||||
End If
|
End If
|
||||||
@ -2340,28 +2340,40 @@ Public Class frmValidator
|
|||||||
Try
|
Try
|
||||||
LOGGER.Debug("Get_Next_GUID...")
|
LOGGER.Debug("Get_Next_GUID...")
|
||||||
Dim oNewGUID As Integer
|
Dim oNewGUID As Integer
|
||||||
|
|
||||||
LOGGER.Debug("Old Document_Path: " & OLD_Document_Path)
|
|
||||||
Dim oBIT As Integer = 0
|
Dim oBIT As Integer = 0
|
||||||
If PROFIL_sortbynewest = True Then
|
If PROFIL_sortbynewest = True Then
|
||||||
oBIT = 1
|
oBIT = 1
|
||||||
End If
|
End If
|
||||||
Dim oSQL = $"EXEC PRPM_GET_NEXT_DOC_INFO {CURRENT_ProfilGUID},{CURRENT_DOC_ID},{USER_ID}"
|
Dim oSQL = $"EXEC PRPM_GET_NEXT_DOC_INFO {CURRENT_ProfilGUID},{CURRENT_DOC_ID},{USER_ID}"
|
||||||
'Dim oSQL = $"SELECT * from [dbo].[FNPM_GET_NEXT_DOC_INFO] ({CURRENT_ProfilGUID},{oBIT},{CURRENT_DOC_GUID},'{USER_USERNAME}')"
|
|
||||||
|
|
||||||
Dim oDT As DataTable = DatabaseFallback.GetDatatableECM(oSQL)
|
Dim oDT As DataTable = DatabaseFallback.GetDatatableECM(oSQL)
|
||||||
|
CURRENT_DOC_ID = 0
|
||||||
|
CURRENT_DOC_GUID = 0
|
||||||
If oDT.Rows.Count > 0 Then
|
If oDT.Rows.Count > 0 Then
|
||||||
oNewGUID = oDT.Rows(0).Item(0)
|
Try
|
||||||
CURRENT_DOC_ID = oDT.Rows(0).Item(1)
|
oNewGUID = oDT.Rows(0).Item(0)
|
||||||
|
Catch ex As Exception
|
||||||
|
LOGGER.Warn($">> Attention: in GetNextGUID - Could not get the next GUID - SQL [{oSQL}]")
|
||||||
|
LOGGER.Warn($"ERRORMESSAGE [{ex.Message}]")
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Try
|
||||||
|
CURRENT_DOC_ID = oDT.Rows(0).Item(1)
|
||||||
|
LOGGER.Debug($"Get_Next_GUID: CURRENT_DOC_ID [{CURRENT_DOC_ID}]...")
|
||||||
|
Catch ex As Exception
|
||||||
|
LOGGER.Warn($">> Attention: in GetNextGUID - Could not get the next DocID - SQL [{oSQL}]")
|
||||||
|
LOGGER.Warn($"ERRORMESSAGE [{ex.Message}]")
|
||||||
|
End Try
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Amount_Docs2Validate = oDT.Rows(0).Item(2)
|
Amount_Docs2Validate = oDT.Rows(0).Item(2)
|
||||||
|
LOGGER.Debug($"Get_Next_GUID: Amount_Docs2Validate [{Amount_Docs2Validate}]...")
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Amount_Docs2Validate = 0
|
Amount_Docs2Validate = 0
|
||||||
LOGGER.Warn("Amount_Docs2Validate Error: " & ex.Message)
|
LOGGER.Warn("Amount_Docs2Validate Error: " & ex.Message)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
Else
|
Else
|
||||||
LOGGER.Info(" >> Attention: in GetNextGUID - Could not get a GUID(1)")
|
LOGGER.Info($">> Attention: GetNextGUID - Could not get the next GUID - SQL [{oSQL}]")
|
||||||
oNewGUID = 0
|
oNewGUID = 0
|
||||||
Return oNewGUID
|
Return oNewGUID
|
||||||
End If
|
End If
|
||||||
@ -2548,7 +2560,12 @@ Public Class frmValidator
|
|||||||
If USER_LANGUAGE <> "de-DE" Then
|
If USER_LANGUAGE <> "de-DE" Then
|
||||||
omsg = $"Remaining documents: {omsg}"
|
omsg = $"Remaining documents: {omsg}"
|
||||||
End If
|
End If
|
||||||
bsiInformation.Caption = omsg
|
If Amount_Docs2Validate > 0 Then
|
||||||
|
bsiInformation.Caption = omsg
|
||||||
|
Else
|
||||||
|
bsiInformation.Caption = "Could not get the amount of remaining docs!"
|
||||||
|
End If
|
||||||
|
|
||||||
bsiDocID.Caption = "Document-ID: " & CURRENT_DOC_ID & " - GUID: " & CURRENT_DOC_GUID
|
bsiDocID.Caption = "Document-ID: " & CURRENT_DOC_ID & " - GUID: " & CURRENT_DOC_GUID
|
||||||
|
|
||||||
LOGGER.Debug("AllDocInfo created...")
|
LOGGER.Debug("AllDocInfo created...")
|
||||||
@ -5312,13 +5329,11 @@ Public Class frmValidator
|
|||||||
End Sub
|
End Sub
|
||||||
Sub Datei_ueberspringen()
|
Sub Datei_ueberspringen()
|
||||||
Try
|
Try
|
||||||
LOGGER.Debug("Dokument überspringen")
|
LOGGER.Debug("Skipping document....(Datei_ueberspringen)")
|
||||||
'Das Dokument freigeben
|
'Das Dokument freigeben
|
||||||
Free_File()
|
Free_File()
|
||||||
|
|
||||||
Dim oSQL = $"EXECUTE PRPM_FILES_NOT_INDEXED '{USER_USERNAME}',{CURRENT_ProfilGUID},'{WMDocPathWindows}',{CURRENT_DOC_GUID}"
|
Dim oSQL = $"EXECUTE PRPM_FILES_NOT_INDEXED '{USER_USERNAME}',{CURRENT_ProfilGUID},'{WMDocPathWindows}',{CURRENT_DOC_GUID}"
|
||||||
DatabaseFallback.ExecuteNonQueryECM(oSQL)
|
DatabaseFallback.ExecuteNonQueryECM(oSQL)
|
||||||
|
|
||||||
LOGGER.Debug($"Skipped DocGUID {CURRENT_DOC_GUID}")
|
LOGGER.Debug($"Skipped DocGUID {CURRENT_DOC_GUID}")
|
||||||
Load_Next_Document(False)
|
Load_Next_Document(False)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user