MS Language
This commit is contained in:
@@ -41,7 +41,7 @@ Public Class frmValidator
|
||||
'Anzahl der validierten Dokumente
|
||||
Dim Anzahl_validierte_Dok As Integer = 0
|
||||
Dim me_closing As Boolean = False
|
||||
Dim oErrorMessage As String = "Please validate red marked fields"
|
||||
Dim oErrorMessage As String = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("frmValidator.MissingInput")
|
||||
Dim first_control As Control
|
||||
Dim last_control As Control
|
||||
Dim _Indexe_Loaded As Boolean = False
|
||||
@@ -84,7 +84,7 @@ Public Class frmValidator
|
||||
End If
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Fehler in set_foreground: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler:")
|
||||
MsgBox("ERror in set_foreground: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "")
|
||||
End Try
|
||||
|
||||
End Function
|
||||
@@ -136,12 +136,12 @@ Public Class frmValidator
|
||||
_step = 4
|
||||
TBPM_CONTROL_TABLETableAdapter.FillAll(DD_DMSLiteDataSet.TBPM_CONTROL_TABLE)
|
||||
|
||||
LOGGER.Debug("Profile Data geladen")
|
||||
LOGGER.Debug("Profile Data loaded")
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Error LOADING profile-data(" & _step.ToString & "):" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
|
||||
allgFunk.Insert_LogEntry($"ERROR frmValidatorLoad>> {ex.Message}")
|
||||
LOGGER.Info(">> Fehler in LOADING profile-data: " & ex.Message, True)
|
||||
LOGGER.Info(">> Error in LOADING profile-data: " & ex.Message, True)
|
||||
Me.Close()
|
||||
End Try
|
||||
|
||||
@@ -151,11 +151,11 @@ Public Class frmValidator
|
||||
|
||||
If CURRENT_DT_PROFILE.Rows.Count = 0 Then
|
||||
LOGGER.Info(">> ProfileData could not be loaded - Profile: : " & CURRENT_ProfilName, True)
|
||||
MsgBox("Achtung: Profildaten konnten nicht übergeben oder geladen werden.", MsgBoxStyle.Critical, "Achtung:")
|
||||
MsgBox("ProfileData could not be loaded - Profile: " & CURRENT_ProfilName, MsgBoxStyle.Critical, "Attention:")
|
||||
Me.Close()
|
||||
End If
|
||||
If CURRENT_DT_PROFILE.Rows.Count > 1 Then
|
||||
MsgBox("Es wurde mehr als 1 Profil (" & CURRENT_DT_PROFILE.Rows.Count & ") zurückgegeben!!", MsgBoxStyle.Critical, "Achtung:")
|
||||
MsgBox("More than 1 profile (" & CURRENT_DT_PROFILE.Rows.Count & ") returned!!", MsgBoxStyle.Critical, "Attention:")
|
||||
Else
|
||||
If CURRENT_DT_PROFILE.Rows.Count = 1 Then
|
||||
For Each dr As DataRow In CURRENT_DT_PROFILE.Rows
|
||||
@@ -182,16 +182,16 @@ Public Class frmValidator
|
||||
If text <> "" Then
|
||||
btnSave.Text = text
|
||||
Else
|
||||
btnSave.Text = "Validierung speichern - Nächstes Dokument & (F2)"
|
||||
btnSave.Text = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("frmValidator.ValidationButton")
|
||||
End If
|
||||
Else
|
||||
btnSave.Text = "Validierung speichern - Nächstes Dokument & (F2)"
|
||||
btnSave.Text = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("frmValidator.ValidationButton")
|
||||
End If
|
||||
LOGGER.Debug("Final profile Text geladen")
|
||||
LOGGER.Debug("Buttontext validation loaded")
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Error loading final profile text:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
|
||||
LOGGER.Info(">> Fehler in loading final profile text: " & ex.Message, True)
|
||||
LOGGER.Info(">> Error loading final profile text: " & ex.Message, True)
|
||||
End Try
|
||||
ToolStripButtonJumpFile.Enabled = True
|
||||
If CURRENT_JUMP_DOC_GUID <> 0 Then
|
||||
@@ -204,7 +204,7 @@ Public Class frmValidator
|
||||
|
||||
Next
|
||||
If LOG_ERRORS_ONLY = False Then
|
||||
LOGGER.Info(" >> Profildaten gespeichert")
|
||||
LOGGER.Info(" >> profiledata saved:")
|
||||
LOGGER.Info(" >> WD_Search: " & WD_Search)
|
||||
LOGGER.Info(" >> finalProfile: " & finalProfile)
|
||||
LOGGER.Info(" >> Move2Folder: " & Move2Folder)
|
||||
@@ -230,7 +230,7 @@ Public Class frmValidator
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Error LOADING Profile-Data1:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
|
||||
allgFunk.Insert_LogEntry($"ERROR LOADING Profile-Data1 >> {ex.Message}")
|
||||
LOGGER.Info(">> Fehler in LOADING(2) Profile-Data: " & ex.Message, True)
|
||||
LOGGER.Info(">> error in LOADING(2) Profile-Data: " & ex.Message, True)
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
@@ -262,7 +262,7 @@ Public Class frmValidator
|
||||
ClassDatabase.Execute_non_Query(oDel)
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Fehler bei Übersprungene Files löschen:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
MsgBox("Error in delete jumped files:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
|
||||
If CURRENT_DOC_GUID <> 0 Then
|
||||
@@ -307,7 +307,7 @@ Public Class frmValidator
|
||||
End If
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(">> Fehler in process_User_exists: " & ex.Message, True)
|
||||
LOGGER.Info(">> error in process_User_exists: " & ex.Message, True)
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
@@ -326,7 +326,7 @@ Public Class frmValidator
|
||||
' Next
|
||||
' Return False
|
||||
' Catch ex As Exception
|
||||
' LOGGER.Info(">> Fehler in process_terminate: " & ex.Message, True)
|
||||
' LOGGER.Info(">> error in process_terminate: " & ex.Message, True)
|
||||
' End Try
|
||||
'End Function
|
||||
Private Function Init_IDB()
|
||||
@@ -341,13 +341,13 @@ Public Class frmValidator
|
||||
Try
|
||||
WINDREAM = New ClassPMWindream()
|
||||
WINDREAM.Create_Session()
|
||||
LOGGER.Debug("Windream initiiert")
|
||||
LOGGER.Debug("windream initialized")
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Error Init_windream:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
|
||||
allgFunk.Insert_LogEntry($"ERROR Init_windream >> {ex.Message}")
|
||||
LOGGER.Info(">> Fehler in Init_windream: " & ex.Message, True)
|
||||
LOGGER.Info(">> Error Init_windream: " & ex.Message, True)
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
@@ -362,14 +362,14 @@ Public Class frmValidator
|
||||
'Check whether DocData is there
|
||||
Dim oConID = CURRENT_DT_PROFILE_SEARCHES_SQL.Rows(0).Item("CONN_ID")
|
||||
oDataResultCommand = CURRENT_DT_PROFILE_SEARCHES_SQL.Rows(0).Item("SQL_COMMAND")
|
||||
oDataResultCommand = clsPatterns.ReplaceAllValues(oDataResultCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oDataResultCommand = clsPatterns.ReplaceAllValues(oDataResultCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oDatatableDataResult = ClassDatabase.Return_Datatable(oDataResultCommand)
|
||||
End If
|
||||
If CURRENT_DT_PROFILE_SEARCHES_DOC.Rows.Count > 0 Then
|
||||
'Check whether DocData is there
|
||||
Dim oConID = CURRENT_DT_PROFILE_SEARCHES_DOC.Rows(0).Item("CONN_ID")
|
||||
oDocResultCommand = CURRENT_DT_PROFILE_SEARCHES_DOC.Rows(0).Item("SQL_COMMAND")
|
||||
oDocResultCommand = clsPatterns.ReplaceAllValues(oDocResultCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oDocResultCommand = clsPatterns.ReplaceAllValues(oDocResultCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oDatatableDocResult = ClassDatabase.Return_Datatable(oDocResultCommand)
|
||||
End If
|
||||
|
||||
@@ -414,7 +414,7 @@ Public Class frmValidator
|
||||
_frmValidatorSearch._DTSQLSearches = CURRENT_DT_PROFILE_SEARCHES_SQL
|
||||
Dim oConID = CURRENT_DT_PROFILE_SEARCHES_SQL.Rows(0).Item("CONN_ID")
|
||||
Dim oCommand = CURRENT_DT_PROFILE_SEARCHES_SQL.Rows(0).Item("SQL_COMMAND")
|
||||
oCommand = clsPatterns.ReplaceAllValues(oCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oCommand = clsPatterns.ReplaceAllValues(oCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
|
||||
_frmValidatorSearch.Refresh_Load_GridSQL(oConID, oCommand, 0, CURRENT_DT_PROFILE_SEARCHES_SQL.Rows(0).Item("TAB_TITLE"))
|
||||
End If
|
||||
@@ -422,7 +422,7 @@ Public Class frmValidator
|
||||
_frmValidatorSearch._DTDocSearches = CURRENT_DT_PROFILE_SEARCHES_DOC
|
||||
Dim oConID = CURRENT_DT_PROFILE_SEARCHES_DOC.Rows(0).Item("CONN_ID")
|
||||
Dim oCommand = CURRENT_DT_PROFILE_SEARCHES_DOC.Rows(0).Item("SQL_COMMAND")
|
||||
oCommand = clsPatterns.ReplaceAllValues(oCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oCommand = clsPatterns.ReplaceAllValues(oCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
|
||||
_frmValidatorSearch.RefreshTabDoc(oConID, oCommand, 0, CURRENT_DT_PROFILE_SEARCHES_DOC.Rows(0).Item("TAB_TITLE"))
|
||||
End If
|
||||
@@ -458,7 +458,7 @@ Public Class frmValidator
|
||||
Continue For
|
||||
End If
|
||||
|
||||
sql = clsPatterns.ReplaceUserValues(sqlStatement, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
sql = clsPatterns.ReplaceUserValues(sqlStatement, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
sql = clsPatterns.ReplaceInternalValues(sql)
|
||||
LOGGER.Debug(">>> sql after ReplaceInternalValues: " & sql)
|
||||
'sql = ClassPatterns.ReplaceInternalValues(sqlStatement)
|
||||
@@ -693,7 +693,7 @@ Public Class frmValidator
|
||||
End If
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(" - Unvorhergesehener Fehler bei GetValues SQL - Fehler: " & vbNewLine & ex.Message)
|
||||
LOGGER.Info(" -Unexpected error in GetValues SQL - Fehler: " & vbNewLine & ex.Message)
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei GetValues SQL:")
|
||||
End Try
|
||||
End If
|
||||
@@ -928,7 +928,7 @@ Public Class frmValidator
|
||||
Exit Sub
|
||||
End If
|
||||
Dim box As TextBox = sender
|
||||
If box.Text <> String.Empty And me_closing = False And _Indexe_Loaded = True Then
|
||||
If box.Text <> String.Empty And me_closing = False And _Indexe_Loaded = True And box.Height < 25 Then
|
||||
|
||||
If (e.KeyCode = Keys.Return) Or (e.KeyCode = Keys.Tab) Or (e.KeyCode = Keys.Enter) Then
|
||||
Try
|
||||
@@ -943,7 +943,7 @@ Public Class frmValidator
|
||||
Dim sql_Statement = ROW.Item(2)
|
||||
|
||||
|
||||
sql_Statement = clsPatterns.ReplaceAllValues(sql_Statement, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
sql_Statement = clsPatterns.ReplaceAllValues(sql_Statement, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
LOGGER.Debug(">>> sql after ReplaceAllValues: " & sql)
|
||||
'' Regulären Ausdruck zum Auslesen der Indexe definieren
|
||||
'Dim preg As String = "\[%{1}[a-zA-Z0-9\!\$\&\/\(\)\=\?\,\.\-\;\:_öÖüÜäÄ\#\'\+\*\~\{\}\@\€\<\>\ ]+]{1}"
|
||||
@@ -1011,9 +1011,9 @@ Public Class frmValidator
|
||||
oSQL2 = ""
|
||||
End If
|
||||
' = $"select SQL_UEBERPRUEFUNG,SQL2 FROM TBPM_PROFILE_CONTROLS WHERE GUID = {oControlID}"
|
||||
oSQL = clsPatterns.ReplaceAllValues(oSQL, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oSQL = clsPatterns.ReplaceAllValues(oSQL, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
LOGGER.Debug($"oSQL after replace {oSQL}")
|
||||
oSQL2 = clsPatterns.ReplaceAllValues(oSQL2, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oSQL2 = clsPatterns.ReplaceAllValues(oSQL2, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
Dim oDT_ACTIONS As DataTable = ClassDatabase.Return_Datatable(oSQL)
|
||||
If IsNothing(oDT_ACTIONS) Then
|
||||
MsgBox("Something went wrong in custom action - Please check Your log!", MsgBoxStyle.Exclamation)
|
||||
@@ -1066,7 +1066,7 @@ Public Class frmValidator
|
||||
End Try
|
||||
Try
|
||||
Override_SQLCommand = oSQL2
|
||||
Override_SQLCommand = clsPatterns.ReplaceAllValues(Override_SQLCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
Override_SQLCommand = clsPatterns.ReplaceAllValues(Override_SQLCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
LOGGER.Debug($"Override_SQLCommand after replace {Override_SQLCommand}")
|
||||
|
||||
Catch ex As Exception
|
||||
@@ -1233,7 +1233,7 @@ Public Class frmValidator
|
||||
End If
|
||||
If Not IsDBNull(oFilteredDatatable.Rows(0).Item("CONNECTION_ID")) And Not IsDBNull(oFilteredDatatable.Rows(0).Item("SQL_UEBERPRUEFUNG")) Then
|
||||
Dim oSqlCommand = IIf(IsDBNull(oFilteredDatatable.Rows(0).Item("SQL_UEBERPRUEFUNG")), "", oFilteredDatatable.Rows(0).Item("SQL_UEBERPRUEFUNG"))
|
||||
oSqlCommand = clsPatterns.ReplaceAllValues(oSqlCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oSqlCommand = clsPatterns.ReplaceAllValues(oSqlCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
LOGGER.Debug(">>> sql after ReplaceAllValues: " & oSqlCommand)
|
||||
_dependingControl_in_action = True
|
||||
Dim oDTDEPENDING_RESULT As DataTable = ClassDatabase.Return_Datatable(oSqlCommand)
|
||||
@@ -1280,7 +1280,7 @@ Public Class frmValidator
|
||||
If _dependingControl_in_action = True Then
|
||||
Exit Sub
|
||||
End If
|
||||
oSqlCommand = clsPatterns.ReplaceAllValues(oSqlCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
oSqlCommand = clsPatterns.ReplaceAllValues(oSqlCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
LOGGER.Debug(">>> sql after ReplaceAllValues: " & oSqlCommand)
|
||||
_dependingControl_in_action = True
|
||||
Try
|
||||
@@ -1324,7 +1324,7 @@ Public Class frmValidator
|
||||
_Step = 2
|
||||
Dim sql_Statement = IIf(IsDBNull(ROW.Item("SQL_UEBERPRUEFUNG")), "", ROW.Item("SQL_UEBERPRUEFUNG"))
|
||||
|
||||
sql_Statement = clsPatterns.ReplaceAllValues(sql_Statement, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
sql_Statement = clsPatterns.ReplaceAllValues(sql_Statement, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
_Step = 3
|
||||
LOGGER.Debug(">>> sql after ReplaceAllValues: " & sql)
|
||||
'' Regulären Ausdruck zum Auslesen der Indexe definieren
|
||||
@@ -1452,7 +1452,7 @@ Public Class frmValidator
|
||||
If allgFunk.checkValue_Exists(dr.Item("SQL_UEBERPRUEFUNG"), "@Eingabe", control.Text, dr.Item("TYP"), cs, CURRENT_ProfilGUID) = True Then
|
||||
Return True
|
||||
Else
|
||||
errormessage = "Der eingegebene Wert '" & control.Text & "' existiert nicht in der Datenbank!"
|
||||
errormessage = "the input-value '" & control.Text & "' is not existing in database!"
|
||||
My.Settings.Save()
|
||||
Return False
|
||||
End If
|
||||
@@ -1463,7 +1463,7 @@ Public Class frmValidator
|
||||
Next
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info("Unvorhergesehener Fehler bei CheckValueExists:" & ex.Message)
|
||||
LOGGER.Info("Unexpected error in CheckValueExists:" & ex.Message)
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
@@ -1504,7 +1504,7 @@ Public Class frmValidator
|
||||
newGUID = oDT.Rows(0).Item(0)
|
||||
CURRENT_DOC_ID = oDT.Rows(0).Item(1)
|
||||
Else
|
||||
LOGGER.Info(" >> ACHTUNG: Ausnahme in GetNextGUID - Es konnte keine GUID abgerufen werden!")
|
||||
LOGGER.Info(" >> Attention: in GetNextGUID - Could not get a GUID(1)")
|
||||
newGUID = 0
|
||||
Return newGUID
|
||||
End If
|
||||
@@ -1517,15 +1517,15 @@ Public Class frmValidator
|
||||
LOGGER.Debug("newGUID: " & newGUID.ToString)
|
||||
|
||||
ElseIf newGUID <> 0 Then
|
||||
LOGGER.Info(" >> ACHTUNG: Ausnahme in GetNextGUID - Es konnte keine GUID abgerufen werden!")
|
||||
LOGGER.Info(" >> Attention: in GetNextGUID - Could not get a GUID(2)")
|
||||
newGUID = 0
|
||||
End If
|
||||
|
||||
Return newGUID
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
oErrorMessage = "Unvorhergesehener Fehler in Get_Next_GUID: " & ex.Message
|
||||
LOGGER.Info(">> Unvorhergesehener Fehler in Get_Next_GUID:: " & ex.Message, True)
|
||||
oErrorMessage = "Unexpected error in Get_Next_GUID: " & ex.Message
|
||||
LOGGER.Info(">> Unexpected error in Get_Next_GUID:: " & ex.Message, True)
|
||||
Return 0
|
||||
End Try
|
||||
|
||||
@@ -1673,7 +1673,8 @@ Public Class frmValidator
|
||||
Exit Sub
|
||||
End If
|
||||
Else
|
||||
Load_IDB_DOC_DATA
|
||||
Load_IDB_DOC_DATA()
|
||||
|
||||
If IDB_DT_DOC_DATA.Rows.Count = 1 Then
|
||||
LOGGER.Debug("Got one IDB DocData Result")
|
||||
End If
|
||||
@@ -1704,7 +1705,7 @@ Public Class frmValidator
|
||||
If oErrorMessage = "" Then
|
||||
|
||||
load_viewer()
|
||||
LOGGER.Debug("Viewer geladen")
|
||||
LOGGER.Debug("Viewer loaded!")
|
||||
If WMDocPathWindows.ToLower.EndsWith(".pdf") Then
|
||||
ToolStripButtonAnnotation.Visible = True
|
||||
Else
|
||||
@@ -1721,7 +1722,7 @@ Public Class frmValidator
|
||||
LoadSQLData(oControl, DirectCast(oControl.Tag, ClassControlCreator.ControlMetadata).Guid)
|
||||
Next
|
||||
|
||||
LOGGER.Debug("Indexmaske geladen")
|
||||
LOGGER.Debug("Indexmask loaded")
|
||||
LOGGER.Debug("")
|
||||
|
||||
'Nun im Vektoprindex loggen das das Profil geladen wurde
|
||||
@@ -1769,12 +1770,12 @@ Public Class frmValidator
|
||||
frmError.ShowDialog()
|
||||
Else
|
||||
LOGGER.Info("End of profile - no more document!")
|
||||
If USER_LANGUAGE <> "de-DE" Then
|
||||
MsgBox("No more document! End of profile!" & vbNewLine & "Validation will be closed.", MsgBoxStyle.Information, "")
|
||||
Else
|
||||
MsgBox("Kein weiteres Dokument gefunden - Ende des Profils!" & vbNewLine & "Das Formular wird nun geschlossen.", MsgBoxStyle.Information, "Hinweis:")
|
||||
End If
|
||||
|
||||
Dim oROW As DataRow = ClassAllgemeineFunktionen.GUI_LANGUAGE_MSGBOX("frmValidator.NoMoreDocument")
|
||||
Try
|
||||
MsgBox(oROW.Item("STRING1"), MsgBoxStyle.Information, oROW.Item("STRING2"))
|
||||
Catch ex As Exception
|
||||
MsgBox("No more document!" & vbNewLine & "Form will be closed now!", MsgBoxStyle.Information, "")
|
||||
End Try
|
||||
activate_controls(True)
|
||||
Me.Close()
|
||||
End If
|
||||
@@ -1783,9 +1784,9 @@ Public Class frmValidator
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
allgFunk.Insert_LogEntry($"ERROR LoadNextDocument >> {ex.Message}")
|
||||
errormessage = "Unvorhergesehener Fehler bei Load_Next_Document:" & ex.Message
|
||||
errormessage = "unexpected error in Load_Next_Document:" & ex.Message
|
||||
My.Settings.Save()
|
||||
LOGGER.Info("Unvorhergesehener Fehler in Load_Next_Document: " & ex.Message)
|
||||
LOGGER.Info("unexpected error in Load_Next_Document: " & ex.Message)
|
||||
frmError.ShowDialog()
|
||||
End Try
|
||||
End Sub
|
||||
@@ -1839,8 +1840,8 @@ Public Class frmValidator
|
||||
|
||||
CURRENT_DOC_CREATION_DATE = CURRENT_WMFILE.GetVariableValue(INDEX_DMS_ERSTELLT)
|
||||
Else
|
||||
LOGGER.Info("Fehler in Windream_get_Doc_info 1: " & ex.Message)
|
||||
Return "Fehler in Windream_get_Doc_info 1: " & ex.Message
|
||||
LOGGER.Info("error in Windream_get_Doc_info 1: " & ex.Message)
|
||||
Return "error in Windream_get_Doc_info 1: " & ex.Message
|
||||
End If
|
||||
End Try
|
||||
|
||||
@@ -1878,8 +1879,8 @@ Public Class frmValidator
|
||||
CURRENT_DOC_CREATION_TIME = CURRENT_WMFILE.GetVariableValue(INDEX_DMS_ERSTELLT_ZEIT)
|
||||
Else
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info("Fehler in Windream_get_Doc_info 3: " & ex.Message)
|
||||
Return "Fehler in Windream_get_Doc_info 3: " & ex.Message
|
||||
LOGGER.Info("error in Windream_get_Doc_info 3: " & ex.Message)
|
||||
Return "error in Windream_get_Doc_info 3: " & ex.Message
|
||||
End If
|
||||
End Try
|
||||
|
||||
@@ -1894,8 +1895,8 @@ Public Class frmValidator
|
||||
Return ""
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info("Fehler in Windream_get_Doc_info (GENERELL): " & ex.Message)
|
||||
Return "Fehler in Windream_get_Doc_info (GENERELL): " & ex.Message
|
||||
LOGGER.Info("error in Windream_get_Doc_info (GENERELL): " & ex.Message)
|
||||
Return "error in Windream_get_Doc_info (GENERELL): " & ex.Message
|
||||
End Try
|
||||
|
||||
End Function
|
||||
@@ -2072,8 +2073,8 @@ Public Class frmValidator
|
||||
Return value
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Fehler in ReturnVektor_IndexValue: " & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
LOGGER.Info("Fehler in ReturnVektor_IndexValue: " & ex.Message)
|
||||
MsgBox("error in ReturnVektor_IndexValue: " & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
LOGGER.Info("error in ReturnVektor_IndexValue: " & ex.Message)
|
||||
Return ""
|
||||
End Try
|
||||
|
||||
@@ -2138,7 +2139,7 @@ Public Class frmValidator
|
||||
Try
|
||||
oControlType = "Textbox"
|
||||
If oSourceIndexName = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("Attention wrong configuration:" & vbNewLine & "for control " & oControl.Name & " no INDEX configured!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If oSourceIndexName Is Nothing = False Then
|
||||
@@ -2195,7 +2196,7 @@ Public Class frmValidator
|
||||
errormessage = $"Unvorhergesehener Fehler bei FillIndexValues TextBox [{oControl.Name}]:" & vbNewLine & ex.Message & vbNewLine & "Check Logfile"
|
||||
My.Settings.Save()
|
||||
frmError.ShowDialog()
|
||||
LOGGER.Info(">> Unvorhergesehener Fehler bei FillIndexValuesTextBox: " & ex.Message, True)
|
||||
LOGGER.Info("Unexpected error in FillIndexValuesTextBox: " & ex.Message, True)
|
||||
LOGGER.Info(">> Controltype: " & oControlType)
|
||||
LOGGER.Info(">> Indexname windream: " & oIndexName)
|
||||
Exit Sub
|
||||
@@ -2206,7 +2207,7 @@ Public Class frmValidator
|
||||
Dim oMyCombobox As ComboBox = oControl
|
||||
Try
|
||||
If oSourceIndexName = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("Attention wrong configuration:" & vbNewLine & "for control " & oControl.Name & " no INDEX configured!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If oSourceIndexName Is Nothing = False Then
|
||||
@@ -2276,10 +2277,10 @@ Public Class frmValidator
|
||||
LOGGER.Debug("")
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(">> Unvorhergesehener Fehler bei FillIndexValues(Combobox: " & oMyCombobox.Name & "): " & ex.Message, True)
|
||||
LOGGER.Info(">> Unexpected error in FillIndexValues(Combobox: " & oMyCombobox.Name & "): " & ex.Message, True)
|
||||
LOGGER.Info(">> Controltype: " & oControlType)
|
||||
LOGGER.Info(">> Indexname windream: " & oIndexName)
|
||||
errormessage = "Unvorhergesehener Fehler bei FillIndexValues(Combobox: " & oMyCombobox.Name & "): " & vbNewLine & ex.Message & vbNewLine & "Check Logfile"
|
||||
errormessage = "Unexpected error in FillIndexValues(Combobox: " & oMyCombobox.Name & "): " & vbNewLine & ex.Message & vbNewLine & "Check Logfile"
|
||||
My.Settings.Save()
|
||||
frmError.ShowDialog()
|
||||
|
||||
@@ -2289,7 +2290,7 @@ Public Class frmValidator
|
||||
oControlType = "DataGridView"
|
||||
Dim dgv As DataGridView = oControl
|
||||
If oSourceIndexName = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("Attention wrong configuration:" & vbNewLine & "for control " & oControl.Name & " no INDEX configured!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If oSourceIndexName Is Nothing = False Then
|
||||
@@ -2365,7 +2366,7 @@ Public Class frmValidator
|
||||
oControlType = "DevExpress.XtraGrid.GridControl"
|
||||
Dim oMyGridControl As GridControl = oControl
|
||||
If oSourceIndexName = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("Attention wrong configuration:" & vbNewLine & "for control " & oControl.Name & " no INDEX configured!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If oSourceIndexName Is Nothing = False Then
|
||||
@@ -2396,15 +2397,11 @@ Public Class frmValidator
|
||||
For Each Zeile As Object In oValueFromSource
|
||||
LOGGER.Debug($"vektorrow Value {Zeile.ToString}...")
|
||||
SpaltenWerte = Split(Zeile, Delimiter)
|
||||
|
||||
|
||||
|
||||
Select Case dt.Rows.Count
|
||||
Dim oColCount = dt.Rows.Count
|
||||
Select Case oColCount
|
||||
Case 1
|
||||
If SpaltenWerte.Length = 2 Then
|
||||
|
||||
End If
|
||||
oDataSource.Rows.Add(New String() {Zeile.ToString})
|
||||
|
||||
'dgv.Rows.Add(New String() {Zeile.ToString})
|
||||
Case 2
|
||||
If SpaltenWerte.Length = 2 Then
|
||||
@@ -2544,7 +2541,7 @@ Public Class frmValidator
|
||||
LOGGER.Debug("Loading checkbox.")
|
||||
oControlType = "CheckBox"
|
||||
If oSourceIndexName = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("Attention wrong configuration:" & vbNewLine & "for control " & oControl.Name & " no INDEX configured!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If oSourceIndexName Is Nothing = False Then
|
||||
@@ -2628,7 +2625,7 @@ Public Class frmValidator
|
||||
End Select
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(">> Unvorhergesehener Fehler bei CBool(wertWD) - CheckBox: " & ex.Message & vbNewLine & "Wert WD: " & oValueFromSource.ToString, True)
|
||||
LOGGER.Info("Unexpected error in CBool(wertWD) - CheckBox: " & ex.Message & vbNewLine & "Wert WD: " & oValueFromSource.ToString, True)
|
||||
chk.Checked = False
|
||||
End Try
|
||||
End If
|
||||
@@ -2690,7 +2687,7 @@ Public Class frmValidator
|
||||
oControlType = "DateTimePicker"
|
||||
Dim DTP As DateTimePicker = oControl
|
||||
If oSourceIndexName = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("Attention wrong configuration:" & vbNewLine & "for control " & oControl.Name & " no INDEX configured!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If oSourceIndexName Is Nothing = False Then
|
||||
@@ -2730,9 +2727,9 @@ Public Class frmValidator
|
||||
LOGGER.Error(ex)
|
||||
errormessage = "Unvorhergesehener Fehler bei DTP: " & vbNewLine & ex.Message
|
||||
|
||||
LOGGER.Info(">> Unvorhergesehener Fehler bei FillIndex DTP: " & ex.Message & vbNewLine & "Wert WD: " & oValueFromSource.ToString & vbNewLine & "Indexname: " & oSourceIndexName, True)
|
||||
LOGGER.Info("Unexpected error in FillIndex DTP: " & ex.Message & vbNewLine & "Wert WD: " & oValueFromSource.ToString & vbNewLine & "Indexname: " & oSourceIndexName, True)
|
||||
frmError.ShowDialog()
|
||||
LOGGER.Info(">> Unvorhergesehener Fehler bei FillIndex DTP: " & ex.Message, True)
|
||||
LOGGER.Info("Unexpected error in FillIndex DTP: " & ex.Message, True)
|
||||
End Try
|
||||
|
||||
|
||||
@@ -2788,8 +2785,6 @@ Public Class frmValidator
|
||||
|
||||
'lblerror.Visible = False
|
||||
Try
|
||||
|
||||
|
||||
TBPM_PROFILE_FINAL_INDEXINGTableAdapter.Fill(FinalIndexDataSet.TBPM_PROFILE_FINAL_INDEXING, CURRENT_ProfilName)
|
||||
Dim oDTFinalIndexes As DataTable = FinalIndexDataSet.TBPM_PROFILE_FINAL_INDEXING
|
||||
If oDTFinalIndexes.Rows.Count > 0 Then
|
||||
@@ -2802,11 +2797,10 @@ Public Class frmValidator
|
||||
oIndexType = WINDREAM.GetTypeOfIndex(oFinalIndexRow.Item("INDEXNAME"))
|
||||
End If
|
||||
If oValue.ToUpper = "SQL-Command".ToUpper Then '###### Indexierung mit variablen SQL ###
|
||||
LOGGER.Debug("Indexierung mit dynamischem SQL!")
|
||||
LOGGER.Debug("Indexing wih dynamic sql...")
|
||||
Dim oSQLCommand = oFinalIndexRow.Item("SQL_COMMAND")
|
||||
|
||||
LOGGER.Debug("SQL_COMMAND before ReplaceAllValues: " & oSQLCommand)
|
||||
oSQLCommand = clsPatterns.ReplaceAllValues(oSQLCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
s
|
||||
oSQLCommand = clsPatterns.ReplaceAllValues(oSQLCommand, pnldesigner, CURRENT_WMFILE, USER_PRENAME, USER_SURNAME, USER_SHORTNAME, USER_LANGUAGE, USER_EMAIL, USER_ID, CURRENT_CLICKED_PROFILE_ID)
|
||||
If IsNothing(oSQLCommand) Then
|
||||
errormessage = "Error while replacing Values in final indexing - Check the log"
|
||||
My.Settings.Save()
|
||||
@@ -2815,7 +2809,6 @@ Public Class frmValidator
|
||||
ItemWorked = False
|
||||
End If
|
||||
If Not IsNothing(oSQLCommand) Then
|
||||
LOGGER.Debug("SQL_COMMAND after ReplaceAllValues: " & oSQLCommand)
|
||||
Dim dynamic_value = ClassDatabase.Execute_Scalar(oSQLCommand, CONNECTION_STRING, True)
|
||||
|
||||
If Not IsNothing(dynamic_value) Then
|
||||
@@ -2849,11 +2842,11 @@ Public Class frmValidator
|
||||
If oIndexType > 4000 And oIndexType < 5000 Then
|
||||
'If dr.Item("INDEXNAME").ToString.StartsWith("[%VKT") Then
|
||||
' Dim PM_String = Return_PM_VEKTOR(value, dr.Item("INDEXNAME"))
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
'Hier muss nun separat as Vektorfeld indexiert werden
|
||||
If WMIndexVectofield(oValue, oFinalIndexRow.Item("INDEXNAME"), oFinalIndexRow.Item("PREVENT_DUPLICATES"), oFinalIndexRow.Item("ALLOW_NEW_VALUES")) = False Then
|
||||
LOGGER.Debug("FINALER Vektorindex '" & oFinalIndexRow.Item("INDEXNAME").ToString & "' WURDE ERFOLGREICH GESETZT")
|
||||
Else
|
||||
errormessage = "Fehler beim finalen Indexieren:" & vbNewLine & idxerr_message
|
||||
errormessage = "Error in final indexing:" & vbNewLine & idxerr_message
|
||||
My.Settings.Save()
|
||||
frmError.ShowDialog()
|
||||
oErrorOcurred = True
|
||||
@@ -3084,7 +3077,7 @@ Public Class frmValidator
|
||||
MsgBox("Unhandled error occured ... please check your log!", MsgBoxStyle.Exclamation)
|
||||
ItemWorked = False
|
||||
Else
|
||||
'Das Dokument freigeben und als editiert markieren
|
||||
'Das Dokument freigeben und as editiert markieren
|
||||
'Dim sql = String.Format("UPDATE TBPM_PROFILE_FILES SET IN_WORK = 0, IN_WORK_WHEN = NULL, WORK_USER = '{0}', EDIT = 1 WHERE GUID = {1}", USER_USERNAME, CURRENT_DOC_GUID)
|
||||
'ClassDatabase.Execute_non_Query(sql)
|
||||
Anzahl_validierte_Dok += 1
|
||||
@@ -3122,7 +3115,7 @@ Public Class frmValidator
|
||||
PM_String = "DD-PM" & Delimiter & Bezeichner & Delimiter & input & Delimiter & USER_USERNAME & Delimiter & Now.ToString
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(">> Fehler in Return_PM_VEKTOR: " & ex.Message, True)
|
||||
LOGGER.Info(">> error in Return_PM_VEKTOR: " & ex.Message, True)
|
||||
PM_String = "DD-PM ERROR: " & ex.Message
|
||||
End Try
|
||||
Return PM_String
|
||||
@@ -3139,7 +3132,7 @@ Public Class frmValidator
|
||||
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(">> Fehler in Return_LOGString: " & ex.Message, True)
|
||||
LOGGER.Info(">> error in Return_LOGString: " & ex.Message, True)
|
||||
PM_String = "DD-PM ERROR: " & ex.Message
|
||||
End Try
|
||||
Return PM_String
|
||||
@@ -3177,7 +3170,7 @@ Public Class frmValidator
|
||||
'Jetzt die Datei indexieren
|
||||
If Indexiere_File(CURRENT_WMFILE, NameVKTIndex, oNewValue) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Vektorfeld '" & NameVKTIndex & "' - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Vektorfeld '" & NameVKTIndex & "' - ERROR: " & idxerr_message
|
||||
End If
|
||||
End If
|
||||
|
||||
@@ -3220,7 +3213,7 @@ Public Class frmValidator
|
||||
Dim oRegexMatch As String = NotNull(dr.Item("REGEX_MATCH"), String.Empty)
|
||||
Dim oRegexMessage As String = NotNull(dr.Item("REGEX_MESSAGE_DE"), String.Empty)
|
||||
oControlName = dr.Item("CTRL_NAME")
|
||||
|
||||
Dim oOVERWRITE_DATA = dr.Item("OVERWRITE_DATA")
|
||||
'Nur wenn der Name der Zeile entspricht und der Index READ_ONLY FALSE ist
|
||||
If dr.Item("CTRL_NAME") = oControl.Name And (oIsReadOnly = False Or oSQLCheckCommand <> "") And oIndexName <> "DD PM-ONLY FOR DISPLAY" Then
|
||||
LOGGER.Debug("Indexierung für Control (" & oControlId & ") '" & oControlName & "' gestartet. Indexname '" & oIndexName & "'")
|
||||
@@ -3262,12 +3255,13 @@ Public Class frmValidator
|
||||
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, myVektorArr) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren von LookupGrid - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing von LookupGrid - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
Dim oMyDT = DT_FOR_ARRAY(myVektorArr)
|
||||
If IDBData.SetVariableValue(oIndexName, oMyDT, True) = False Then
|
||||
|
||||
If IDBData.SetVariableValue(oIndexName, oMyDT, oOVERWRITE_DATA) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Error while indexing IDB-Object LookupGrid"
|
||||
Exit For
|
||||
@@ -3280,7 +3274,7 @@ Public Class frmValidator
|
||||
If IDB_ACTIVE = False Then
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, oValues.ToArray) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren von LookupGrid - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing von LookupGrid - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
|
||||
@@ -3305,7 +3299,9 @@ Public Class frmValidator
|
||||
oValueFromObject = ReturnVektor_IndexValue(oIndexName)
|
||||
Else
|
||||
oValueFromObject = GetVariableValuefromSource(oIndexName, oIDBTyp)
|
||||
Dim oValueIsIndifferent As Boolean = False
|
||||
If Not IsNothing(oValueFromObject) Then
|
||||
|
||||
If IDB_ACTIVE = False Then
|
||||
If oValueFromObject.ToString = "System.Object[]" Then
|
||||
If oValueFromObject.Length = 1 Then
|
||||
@@ -3320,15 +3316,43 @@ Public Class frmValidator
|
||||
oValueFromObject = ""
|
||||
End If
|
||||
|
||||
If IsNothing(oValueFromObject) Then
|
||||
LOGGER.Debug($"CheckUpdateIndex.LookUpGrid: oValueFromObject is NOTHING!")
|
||||
oValueIsIndifferent = True
|
||||
End If
|
||||
If oValueIsIndifferent = False Then
|
||||
If IsDBNull(oValueFromObject) Then
|
||||
LOGGER.Debug($"CheckUpdateIndex.LookUpGrid: oValueFromObject is DBNULL!")
|
||||
oValueIsIndifferent = True
|
||||
End If
|
||||
End If
|
||||
Dim oValueSourceIsDifferent As Boolean = False
|
||||
If oValueIsIndifferent = False Then
|
||||
LOGGER.Debug($"CheckUpdateIndex.LookUpGrid: oValueFromObject is [{oValueFromObject}]")
|
||||
Try
|
||||
If oValueFromObject <> oMyInput Then
|
||||
oValueSourceIsDifferent = True
|
||||
LOGGER.Debug($"CheckUpdateIndex.LookUpGrid: There is a difference between oValueFromObject and [{oValueFromObject}]")
|
||||
End If
|
||||
Catch ex As Exception
|
||||
oValueSourceIsDifferent = True
|
||||
LOGGER.Debug($"oValueFromObject <> oMyInput not possible as one object might be a multiple row object")
|
||||
End Try
|
||||
|
||||
Else
|
||||
|
||||
End If
|
||||
|
||||
'wenn Wert in Windream <> der Eingabe darf indexiert werden
|
||||
If IsNothing(oValueFromObject) Or oValueFromObject <> oMyInput Then
|
||||
'IsNothing(oValueFromObject) Or oValueFromObject <> oMyInput
|
||||
If (oValueIsIndifferent = True Or oValueSourceIsDifferent = True) Then
|
||||
'Wenn der Wert in ein Vektorfeld geschrieben wird
|
||||
If oIndexName.StartsWith("[%VKT") Then
|
||||
oMyInput = Return_PM_VEKTOR(oMyInput, oIndexName)
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
'Hier muss nun separat as Vektorfeld indexiert werden
|
||||
If WMIndexVectofield(oMyInput, PROFIL_VEKTORINDEX) = True Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Textbox als VEKTOR - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Textbox as VEKTOR - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3338,7 +3362,7 @@ Public Class frmValidator
|
||||
result(0) = oMyInput
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, result) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Textbox - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Textbox - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3370,13 +3394,11 @@ Public Class frmValidator
|
||||
|
||||
Case "System.Windows.Forms.TextBox"
|
||||
Try
|
||||
Dim oWrongInputMessage = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("frmValidator.WrongInputControl")
|
||||
If oRegexMatch <> String.Empty AndAlso Not Regex.IsMatch(oControl.Text, oRegexMatch) Then
|
||||
oMissing = True
|
||||
If USER_LANGUAGE <> "de-DE" Then
|
||||
oErrorMessage = "Wrong input in textbox '" & oControl.Name & "'"
|
||||
Else
|
||||
oErrorMessage = "Falsche Eingabe in Textbox '" & oControl.Name & "'"
|
||||
End If
|
||||
|
||||
oErrorMessage = oWrongInputMessage & " textbox '" & oControl.Name & "'"
|
||||
|
||||
|
||||
If oRegexMessage <> String.Empty Then
|
||||
@@ -3387,14 +3409,10 @@ Public Class frmValidator
|
||||
Exit For
|
||||
End If
|
||||
|
||||
'Als erstes überprüfen ob überhaupt etwas eingetragen worden ist
|
||||
'as erstes überprüfen ob überhaupt etwas eingetragen worden ist
|
||||
If Check_Missing(oControl, "txt") = True And oIsRequired = True Then 'NICHTS EINGETRAGEN
|
||||
oMissing = True
|
||||
If USER_LANGUAGE <> "de-DE" Then
|
||||
oErrorMessage = "Missing input in textbox '" & oControl.Name & "'"
|
||||
Else
|
||||
oErrorMessage = "Fehlende Eingabe in Textbox '" & oControl.Name & "'"
|
||||
End If
|
||||
oErrorMessage = oWrongInputMessage & " textbox '" & oControl.Name & "'"
|
||||
|
||||
oControl.BackColor = Color.Red
|
||||
Exit For
|
||||
@@ -3421,15 +3439,29 @@ Public Class frmValidator
|
||||
oSourceValue = ""
|
||||
End If
|
||||
End If
|
||||
Dim oSetValue As Boolean = False
|
||||
If IsDBNull(oSourceValue) Then
|
||||
oSetValue = True
|
||||
End If
|
||||
If oSetValue = False Then
|
||||
If IsNothing(oSourceValue) Then
|
||||
oSetValue = True
|
||||
End If
|
||||
End If
|
||||
If oSetValue = False Then
|
||||
If oSourceValue <> oMyInput Then
|
||||
oSetValue = True
|
||||
End If
|
||||
End If
|
||||
'wenn Wert in Windream <> der Eingabe darf indexiert werden
|
||||
If IsNothing(oSourceValue) Or oSourceValue <> oMyInput Then
|
||||
If oSetValue = True Then
|
||||
'Wenn der Wert in ein Vektorfeld geschrieben wird
|
||||
If oIndexName.StartsWith("[%VKT") Then
|
||||
oMyInput = Return_PM_VEKTOR(oMyInput, oIndexName)
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
'Hier muss nun separat as Vektorfeld indexiert werden
|
||||
If WMIndexVectofield(oMyInput, PROFIL_VEKTORINDEX) = True Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Textbox als VEKTOR - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing textbox as VEKTOR - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3439,7 +3471,7 @@ Public Class frmValidator
|
||||
result(0) = oMyInput
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, result) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Textbox - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Textbox - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3469,8 +3501,7 @@ Public Class frmValidator
|
||||
LOGGER.Error(ex)
|
||||
Dim st As New StackTrace(True)
|
||||
st = New StackTrace(ex, True)
|
||||
' MsgBox("Unvorhergesehener Fehler in Check_UpdateIndexe TextBox: " & vbNewLine & ex.Message & vbNewLine & "Line: " & st.GetFrame(0).GetFileLineNumber().ToString, MsgBoxStyle.Critical, "Error:")
|
||||
LOGGER.Warn("Unvorhergesehener Fehler in Check_UpdateIndexe:" & ex.Message & " - Line: " & st.GetFrame(0).GetFileLineNumber().ToString, True)
|
||||
LOGGER.Warn("Unexpected error in Check_UpdateIndexe TextBox :" & ex.Message, True)
|
||||
Return True
|
||||
End Try
|
||||
|
||||
@@ -3533,10 +3564,10 @@ Public Class frmValidator
|
||||
'Wenn der Wert in ein Vektorfeld geschrieben wird
|
||||
If oIndexName.StartsWith("[%VKT") Then
|
||||
oMyInput = Return_PM_VEKTOR(oMyInput, oIndexName)
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
'Hier muss nun separat as Vektorfeld indexiert werden
|
||||
If WMIndexVectofield(oMyInput, PROFIL_VEKTORINDEX) = True Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Combobox als VEKTOR - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Combobox as VEKTOR - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3547,7 +3578,7 @@ Public Class frmValidator
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, result) = False Then
|
||||
cmb.DroppedDown = True
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Combobox - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Combobox - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3583,8 +3614,8 @@ Public Class frmValidator
|
||||
LOGGER.Error(ex)
|
||||
Dim st As New StackTrace(True)
|
||||
st = New StackTrace(ex, True)
|
||||
MsgBox($"Unvorhergesehener Fehler in Check_UpdateIndexe Combobox : ID{oControlId} " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Error:")
|
||||
LOGGER.Info($"Unvorhergesehener Fehler in Check_UpdateIndexe Combobox : ID{oControlId}" & ex.Message)
|
||||
MsgBox($"Unexpected error in Check_UpdateIndexe Combobox : ID{oControlId} " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Error:")
|
||||
LOGGER.Info($"Unexpected error in Check_UpdateIndexe Combobox : ID{oControlId}" & ex.Message)
|
||||
Return True
|
||||
End Try
|
||||
|
||||
@@ -3612,12 +3643,12 @@ Public Class frmValidator
|
||||
If oObjectValue <> oMyInput Then
|
||||
'Wenn der WErt in ein Vektorfeld geschrieben wird
|
||||
If oIndexName.StartsWith("[%VKT") Then
|
||||
'Input = die String komponente als String
|
||||
'Input = die String komponente as String
|
||||
oMyInput = Return_PM_VEKTOR(oMyInput, oIndexName)
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
'Hier muss nun separat as Vektorfeld indexiert werden
|
||||
If WMIndexVectofield(oMyInput, PROFIL_VEKTORINDEX) = True Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren DatePicker als VEKTOR - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing DatePicker as VEKTOR - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3627,7 +3658,7 @@ Public Class frmValidator
|
||||
result(0) = CDate(oMyInput)
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, result) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren DatePicker- ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing DatePicker- ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3709,19 +3740,19 @@ Public Class frmValidator
|
||||
End If
|
||||
|
||||
If oIndexName.StartsWith("[%VKT") Then
|
||||
'Input = die String komponente mit Boolean als String
|
||||
'Input = die String komponente mit Boolean as String
|
||||
oMyInput = Return_PM_VEKTOR(chk.Checked.ToString, oIndexName)
|
||||
'Hier muss nun separat als Vektorfeld indexiert werden
|
||||
'Hier muss nun separat as Vektorfeld indexiert werden
|
||||
If WMIndexVectofield(oMyInput, PROFIL_VEKTORINDEX) = True Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Checkbox als VEKTOR - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Checkbox as VEKTOR - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
If IDB_ACTIVE = False Then
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, result) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Checkbox - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Checkbox - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3802,7 +3833,7 @@ Public Class frmValidator
|
||||
If IDB_ACTIVE = False Then
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, myVektorArr) = False Then
|
||||
oMissing = True
|
||||
oErrorMessage = "Fehler beim Indexieren Vektorfeld - ERROR: " & idxerr_message
|
||||
oErrorMessage = "Error while indexing Vektorfeld - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
Else
|
||||
@@ -3897,7 +3928,7 @@ Public Class frmValidator
|
||||
If IDB_ACTIVE = False Then
|
||||
If Indexiere_File(CURRENT_WMFILE, oIndexName, oValue.ToArray) = False Then
|
||||
oMissing = True
|
||||
'oErrorMessage = "Fehler beim Indexieren der Tabelle - ERROR: " & idxerr_message
|
||||
'oErrorMessage = "Error while indexing der Tabelle - ERROR: " & idxerr_message
|
||||
oErrorMessage = $"Error while indexing table (2) {dgv.Name} - ERROR: " & idxerr_message
|
||||
Exit For
|
||||
End If
|
||||
@@ -3921,8 +3952,8 @@ Public Class frmValidator
|
||||
LOGGER.Error(ex)
|
||||
Dim st As New StackTrace(True)
|
||||
st = New StackTrace(ex, True)
|
||||
MsgBox($"Unvorhergesehener Fehler in Check_UpdateIndexe ControlID,Name: {oControlId},{oControlName}" & vbNewLine & ex.Message & vbNewLine & "Line: " & st.GetFrame(0).GetFileLineNumber().ToString, MsgBoxStyle.Critical, "Error:")
|
||||
LOGGER.Info("Unvorhergesehener Fehler in Check_UpdateIndexe:" & ex.Message & " - Line: " & st.GetFrame(0).GetFileLineNumber().ToString, True)
|
||||
MsgBox($"Unexpected error in Check_UpdateIndexe ControlID,Name: {oControlId},{oControlName}" & vbNewLine & ex.Message & vbNewLine & "Line: " & st.GetFrame(0).GetFileLineNumber().ToString, MsgBoxStyle.Critical, "Error:")
|
||||
LOGGER.Info("Unexpected error in Check_UpdateIndexe:" & ex.Message & " - Line: " & st.GetFrame(0).GetFileLineNumber().ToString, True)
|
||||
Return True
|
||||
End Try
|
||||
|
||||
@@ -3963,8 +3994,8 @@ Public Class frmValidator
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
allgFunk.Insert_LogEntry($"ERROR Indexiere_File Validator >> {ex.Message}")
|
||||
idxerr_message = "unvorhergesehener Fehler in Indexiere_File: " & ex.Message.ToString
|
||||
LOGGER.Info(">> Unvorhergesehener Fehler bei Indexiere_File: " & ex.Message.ToString, True)
|
||||
idxerr_message = "Unexpected error in Indexiere_File: " & ex.Message.ToString
|
||||
LOGGER.Info("Unexpected error in Indexiere_File: " & ex.Message.ToString, True)
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
@@ -3997,7 +4028,7 @@ Public Class frmValidator
|
||||
Return connectionString
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(" - Unvorhergesehener Fehler bei GetConnectionString - Fehler: " & vbNewLine & ex.Message)
|
||||
LOGGER.Info(" -Unexpected error in GetConnectionString - Fehler: " & vbNewLine & ex.Message)
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei GetConnectionString:")
|
||||
Return ""
|
||||
End Try
|
||||
@@ -4211,7 +4242,7 @@ Public Class frmValidator
|
||||
oShellExecuteInfo.fMask = SEE_MASK_INVOKEIDLIST
|
||||
If Not ShellExecuteEx(oShellExecuteInfo) Then
|
||||
Dim ex As New System.ComponentModel.Win32Exception(System.Runtime.InteropServices.Marshal.GetLastWin32Error())
|
||||
MsgBox("Fehler in Datei-Eigenschaften öffnen:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
MsgBox("error in Datei-Eigenschaften öffnen:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
End If
|
||||
End If
|
||||
Cursor = Cursors.Default
|
||||
@@ -4238,7 +4269,7 @@ Public Class frmValidator
|
||||
End Sub
|
||||
|
||||
Private Sub btnSave_MouseHover(sender As Object, e As EventArgs) Handles btnSave.MouseHover
|
||||
Dim msg = "F2 für Seichern"
|
||||
Dim msg = "F2 für Speichern"
|
||||
If USER_LANGUAGE <> "de-DE" Then
|
||||
msg = "F2 for saving"
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user