MS V 2.4.2.1
This commit is contained in:
parent
f9ae01b631
commit
32fce5f142
@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.5.4.1")>
|
<Assembly: AssemblyVersion("2.5.4.2")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
<Assembly: NeutralResourcesLanguage("")>
|
<Assembly: NeutralResourcesLanguage("")>
|
||||||
|
|||||||
@ -25,6 +25,7 @@ Public Class frmAdministration
|
|||||||
Private Property profile_guid As Integer = 0
|
Private Property profile_guid As Integer = 0
|
||||||
Private Property DT_CHART_CONFIG As DataTable
|
Private Property DT_CHART_CONFIG As DataTable
|
||||||
Private Property PROF_ORIGIN As DataTable
|
Private Property PROF_ORIGIN As DataTable
|
||||||
|
Private focusedRowHandle As Integer = 199
|
||||||
|
|
||||||
Private Sub frmAdministration_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Private Sub frmAdministration_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
_Logger.Debug("Loading Administration")
|
_Logger.Debug("Loading Administration")
|
||||||
@ -429,6 +430,7 @@ Public Class frmAdministration
|
|||||||
pgFinalIndexes.SelectedObject = Nothing
|
pgFinalIndexes.SelectedObject = Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei Refresh_Final_indexe:")
|
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei Refresh_Final_indexe:")
|
||||||
Finally
|
Finally
|
||||||
@ -657,9 +659,12 @@ Public Class frmAdministration
|
|||||||
Try
|
Try
|
||||||
Dim view As GridView = sender
|
Dim view As GridView = sender
|
||||||
Dim focusedRow As DataRow = view.GetFocusedDataRow()
|
Dim focusedRow As DataRow = view.GetFocusedDataRow()
|
||||||
|
pgFinalIndexes.SelectedObject = Nothing
|
||||||
|
|
||||||
If IsNothing(focusedRow) Then
|
If IsNothing(focusedRow) Then
|
||||||
Exit Sub
|
Exit Sub
|
||||||
|
ElseIf INSERT_ACTIVE = True Then
|
||||||
|
'Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oShouldRefreshGrid = False
|
Dim oShouldRefreshGrid = False
|
||||||
@ -668,7 +673,6 @@ Public Class frmAdministration
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim guid As Integer = focusedRow.Item("GUID")
|
Dim guid As Integer = focusedRow.Item("GUID")
|
||||||
Dim index As String = NotNull(focusedRow.Item("INDEXNAME"), Nothing)
|
Dim index As String = NotNull(focusedRow.Item("INDEXNAME"), Nothing)
|
||||||
Dim sqlCommand As String = NotNull(focusedRow.Item("SQL_COMMAND"), "")
|
Dim sqlCommand As String = NotNull(focusedRow.Item("SQL_COMMAND"), "")
|
||||||
@ -1038,11 +1042,15 @@ Public Class frmAdministration
|
|||||||
|
|
||||||
Private Sub BarButtonItem18_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem18.ItemClick
|
Private Sub BarButtonItem18_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem18.ItemClick
|
||||||
Save_Final_Indexes()
|
Save_Final_Indexes()
|
||||||
Refresh_Final_Indexes()
|
'Refresh_Final_Indexes()
|
||||||
|
If focusedRowHandle <> 199 Then
|
||||||
|
viewFinalIndex.SelectRow(focusedRowHandle)
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub Save_Final_Indexes()
|
Private Sub Save_Final_Indexes()
|
||||||
Try
|
Try
|
||||||
'Dim obj As FinalIndexProperties = PropertyGrid1.SelectedObject
|
'Dim obj As FinalIndexProperties = PropertyGrid1.SelectedObject
|
||||||
|
pgFinalIndexes.EndUpdate()
|
||||||
Dim obj As FinalIndexProperties = pgFinalIndexes.SelectedObject
|
Dim obj As FinalIndexProperties = pgFinalIndexes.SelectedObject
|
||||||
|
|
||||||
If Not IsNothing(obj) Then
|
If Not IsNothing(obj) Then
|
||||||
@ -1058,7 +1066,8 @@ Public Class frmAdministration
|
|||||||
|
|
||||||
Dim guid = obj.GUID
|
Dim guid = obj.GUID
|
||||||
Dim oProfileId As Integer = PROFILGUIDTextBox.Text
|
Dim oProfileId As Integer = PROFILGUIDTextBox.Text
|
||||||
|
focusedRowHandle = 199
|
||||||
|
focusedRowHandle = viewFinalIndex.FocusedRowHandle
|
||||||
'Dim connectionId As Integer = obj.ConnectionId
|
'Dim connectionId As Integer = obj.ConnectionId
|
||||||
' Dim connectionId As Integer = NotNull(obj.SQLCommand.ConnectionId, 1)
|
' Dim connectionId As Integer = NotNull(obj.SQLCommand.ConnectionId, 1)
|
||||||
Dim sqlCommand As String = NotNull(obj.SQLCommand.Value, String.Empty).Replace("'", "''")
|
Dim sqlCommand As String = NotNull(obj.SQLCommand.Value, String.Empty).Replace("'", "''")
|
||||||
@ -1104,15 +1113,20 @@ Public Class frmAdministration
|
|||||||
If DatabaseFallback.ExecuteNonQueryECM(sql) Then
|
If DatabaseFallback.ExecuteNonQueryECM(sql) Then
|
||||||
tsbStaticInfo.Caption = $"Final index added - {Now.ToLongTimeString}"
|
tsbStaticInfo.Caption = $"Final index added - {Now.ToLongTimeString}"
|
||||||
INSERT_ACTIVE = False
|
INSERT_ACTIVE = False
|
||||||
|
'Refresh_Final_Indexes()
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Dim sql As String = $"UPDATE TBPM_PROFILE_FINAL_INDEXING
|
Dim sql As String = $"UPDATE TBPM_PROFILE_FINAL_INDEXING
|
||||||
SET CONNECTION_ID = 0, SQL_COMMAND = '{sqlCommand}', INDEXNAME = '{indexName}', CHANGED_WHO = '{addedWho}', DESCRIPTION = '{oDescription}',
|
SET CONNECTION_ID = 0, SQL_COMMAND = '{sqlCommand}', INDEXNAME = '{indexName}', CHANGED_WHO = '{addedWho}', DESCRIPTION = '{oDescription}',
|
||||||
VALUE = '{value}', ACTIVE = {active}, ALLOW_NEW_VALUES = {AllowAddNewValues}, PREVENT_DUPLICATES = {preventDuplicates},IF_VEKTOR_BEHAVIOUR = '{IF_VEKTOR_BEHAVIOUR}', [SEQUENCE] = {oSequence}, CONTINUE_INDETERMINED = {oContinueOIdS}
|
VALUE = '{value}', ACTIVE = {active}, ALLOW_NEW_VALUES = {AllowAddNewValues}, PREVENT_DUPLICATES = {preventDuplicates},
|
||||||
|
IF_VEKTOR_BEHAVIOUR = '{IF_VEKTOR_BEHAVIOUR}',
|
||||||
|
[SEQUENCE] = {oSequence}, CONTINUE_INDETERMINED = {oContinueOIdS}
|
||||||
WHERE GUID = {guid}"
|
WHERE GUID = {guid}"
|
||||||
|
|
||||||
If DatabaseFallback.ExecuteNonQueryECM(sql) Then
|
If DatabaseFallback.ExecuteNonQueryECM(sql) Then
|
||||||
tsbStaticInfo.Caption = $"Final index saved - {Now.ToLongTimeString} - RESTART NECESSARY"
|
tsbStaticInfo.Caption = $"Final index saved - {Now.ToLongTimeString} - RESTART NECESSARY"
|
||||||
|
Else
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -1127,7 +1141,10 @@ Public Class frmAdministration
|
|||||||
Finally
|
Finally
|
||||||
BarButtonItem19.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
|
BarButtonItem19.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
|
||||||
BarButtonItem16.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
|
BarButtonItem16.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
|
||||||
|
If INSERT_ACTIVE Then
|
||||||
INSERT_ACTIVE = False
|
INSERT_ACTIVE = False
|
||||||
|
End If
|
||||||
|
|
||||||
UNSAVED_CHANGES_FI = False
|
UNSAVED_CHANGES_FI = False
|
||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@ -1099,20 +1099,19 @@ Public Class frmFormDesigner
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub frmFormDesigner_KeyUp(sender As Object, e As KeyEventArgs) Handles MyBase.KeyUp
|
Private Sub frmFormDesigner_down(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
|
||||||
If e.Control Then
|
If e.Control AndAlso e.KeyCode = e.KeyCode.Add Then
|
||||||
|
Height_plus()
|
||||||
|
ElseIf e.Control AndAlso e.KeyCode = e.KeyCode.Subtract Then
|
||||||
|
Height_minus()
|
||||||
|
Else
|
||||||
|
|
||||||
If e.KeyCode = e.KeyCode.Delete Then
|
If e.KeyCode = e.KeyCode.Delete Then
|
||||||
Control_Delete()
|
Control_Delete()
|
||||||
ElseIf e.KeyCode = e.KeyCode.F5 Then
|
ElseIf e.KeyCode = e.KeyCode.F5 Then
|
||||||
LoadControls()
|
LoadControls()
|
||||||
tslblAenderungen.Caption = "Controls loaded - " + Now.ToString
|
tslblAenderungen.Caption = "Controls loaded - " + Now.ToString
|
||||||
ElseIf e.KeyCode = e.KeyCode.Add Then
|
ElseIf e.KeyCode = Keys.Escape Then
|
||||||
Height_plus()
|
|
||||||
ElseIf e.KeyCode = e.KeyCode.Subtract Then
|
|
||||||
Height_minus()
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
If e.KeyCode = Keys.Escape Then
|
|
||||||
If Me.Cursor = Cursors.Cross Then
|
If Me.Cursor = Cursors.Cross Then
|
||||||
Mouse_IsPressed = False
|
Mouse_IsPressed = False
|
||||||
Me.Cursor = Cursors.Default
|
Me.Cursor = Cursors.Default
|
||||||
|
|||||||
@ -125,7 +125,7 @@
|
|||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADw
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADw
|
||||||
CAAAAk1TRnQBSQFMAgEBAgEAASgBCwEoAQsBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
CAAAAk1TRnQBSQFMAgEBAgEAATgBCwE4AQsBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||||
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
||||||
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
||||||
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||||
|
|||||||
@ -3220,6 +3220,7 @@ FROM VWPM_PROFILE_ACTIVE T WHERE T.GUID IN (SELECT PROFILE_ID FROM [dbo].[FNPM_G
|
|||||||
LOGGER.Debug($"oTargetPath: {oTargetPath}")
|
LOGGER.Debug($"oTargetPath: {oTargetPath}")
|
||||||
LOGGER.Debug($"oSourcePath: {oSourcePath}")
|
LOGGER.Debug($"oSourcePath: {oSourcePath}")
|
||||||
If oTargetPath = String.Empty Or oSourcePath = String.Empty Then
|
If oTargetPath = String.Empty Or oSourcePath = String.Empty Then
|
||||||
|
LOGGER.Warn($"oTargetPath is nothing - PRofile can not be startet . Check TARGET_PATH_BLIND_FILE Column in Profile")
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
oTargetPath = $"{oTargetPath}\{Now.Year}\{Now.Month}\{Now.Day}"
|
oTargetPath = $"{oTargetPath}\{Now.Year}\{Now.Month}\{Now.Day}"
|
||||||
|
|||||||
@ -637,7 +637,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.9.7.0, Culture=neutral, PublicKeyToken=null</value>
|
<value>DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=1.9.8.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>
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
Imports DevExpress.DataAccess.Native.Sql
|
Imports DevExpress.DataAccess.Native.Sql
|
||||||
|
Imports DevExpress.DataProcessing.InMemoryDataProcessor
|
||||||
Imports DevExpress.Utils
|
Imports DevExpress.Utils
|
||||||
Imports DevExpress.XtraBars
|
Imports DevExpress.XtraBars
|
||||||
Imports DevExpress.XtraEditors
|
Imports DevExpress.XtraEditors
|
||||||
@ -4225,9 +4226,11 @@ Public Class frmValidator
|
|||||||
})
|
})
|
||||||
|
|
||||||
If oDTFinalIndexing?.Rows.Count > 0 Then
|
If oDTFinalIndexing?.Rows.Count > 0 Then
|
||||||
|
Dim oDT_FIResult As DataTable
|
||||||
'Jetzt finale Indexe setzen
|
'Jetzt finale Indexe setzen
|
||||||
Logger.Debug("FINAL INDEXING STARTING...")
|
Logger.Debug("FINAL INDEXING STARTING...")
|
||||||
For Each oFinalIndexRow As DataRow In oDTFinalIndexing.Rows
|
For Each oFinalIndexRow As DataRow In oDTFinalIndexing.Rows
|
||||||
|
oDT_FIResult = Nothing
|
||||||
Dim oValue As String = oFinalIndexRow.Item("VALUE").ToString
|
Dim oValue As String = oFinalIndexRow.Item("VALUE").ToString
|
||||||
Dim oFinalIndex = oFinalIndexRow.Item("INDEXNAME")
|
Dim oFinalIndex = oFinalIndexRow.Item("INDEXNAME")
|
||||||
Logger.Debug($"Working on final index [{oFinalIndex}]...")
|
Logger.Debug($"Working on final index [{oFinalIndex}]...")
|
||||||
@ -4250,24 +4253,17 @@ Public Class frmValidator
|
|||||||
_ItemWorked = False
|
_ItemWorked = False
|
||||||
End If
|
End If
|
||||||
If Not IsNothing(oSQLCommand) Then
|
If Not IsNothing(oSQLCommand) Then
|
||||||
Dim oResultfromSQL As Object = DatabaseFallback.GetScalarValueWithConnection(oSQLCommand, oConnectionID)
|
|
||||||
If Not IsNothing(oResultfromSQL) Then
|
If oConnectionID <> 0 Then
|
||||||
Logger.Debug($"oResultfromSQL is [{oResultfromSQL.ToString}]")
|
oDT_FIResult = DatabaseFallback.GetDatatableWithConnection(oSQLCommand, oConnectionID)
|
||||||
If IsDBNull(oResultfromSQL) Then
|
|
||||||
If oContinueOnIndifferentState = False Then
|
|
||||||
errormessage = "Result from SQL is DBNull - Check the SQL and the log"
|
|
||||||
My.Settings.Save()
|
|
||||||
frmError.ShowDialog()
|
|
||||||
oErrorOcurred = True
|
|
||||||
_ItemWorked = False
|
|
||||||
Else
|
Else
|
||||||
Logger.Warn($"FinalIndexResult from SQL is DBNull - AttributeName [{oFinalIndexRow.Item("INDEXNAME")}] - oContinueOnIndifferentState = true, Continuing with next Attribute and Replacing with empty String")
|
oDT_FIResult = DatabaseFallback.GetDatatable(New GetDatatableOptions(oSQLCommand, DatabaseType.ECM))
|
||||||
oResultfromSQL = ""
|
|
||||||
Continue For
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
If Not IsNothing(oDT_FIResult) Then
|
||||||
If Len(oResultfromSQL) = 0 Then
|
Logger.Debug($"oResultfromSQL is [{oDT_FIResult.ToString}]")
|
||||||
|
|
||||||
|
If oDT_FIResult.Rows.Count = 0 Then
|
||||||
If oContinueOnIndifferentState = False Then
|
If oContinueOnIndifferentState = False Then
|
||||||
errormessage = "Result from SQL is EmptyValue - Check the SQL and the log"
|
errormessage = "Result from SQL is EmptyValue - Check the SQL and the log"
|
||||||
My.Settings.Save()
|
My.Settings.Save()
|
||||||
@ -4279,9 +4275,9 @@ Public Class frmValidator
|
|||||||
Continue For
|
Continue For
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
oValue = oResultfromSQL
|
'oValue = oResultDT
|
||||||
Else
|
Else
|
||||||
Logger.Warn("ATTENTION: DYNAMIC VALUE IS NOTHING!")
|
Logger.Warn("ATTENTION: oResultDT for Automatic Index IS NOTHING!")
|
||||||
Continue For
|
Continue For
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@ -4297,6 +4293,14 @@ Public Class frmValidator
|
|||||||
oValue = oFinalIndexRow.Item("VALUE")
|
oValue = oFinalIndexRow.Item("VALUE")
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
|
oDT_FIResult = New DataTable()
|
||||||
|
' Spalte hinzufügen – z.B. "Ergebnis" vom Typ String
|
||||||
|
oDT_FIResult.Columns.Add("Ergebnis", GetType(String))
|
||||||
|
|
||||||
|
' Zeile hinzufügen – mit festem Wert z.B. "OK"
|
||||||
|
Dim newRow As DataRow = oDT_FIResult.NewRow()
|
||||||
|
newRow("Ergebnis") = oValue
|
||||||
|
oDT_FIResult.Rows.Add(newRow)
|
||||||
End If
|
End If
|
||||||
If oErrorOcurred Then
|
If oErrorOcurred Then
|
||||||
Exit For
|
Exit For
|
||||||
@ -4305,14 +4309,36 @@ Public Class frmValidator
|
|||||||
Dim oResult() As String
|
Dim oResult() As String
|
||||||
ReDim Preserve oResult(0)
|
ReDim Preserve oResult(0)
|
||||||
oResult(0) = oValue
|
oResult(0) = oValue
|
||||||
|
Logger.Debug("Now the final indexing...")
|
||||||
Logger.Debug($"oIndexType {oIndexType.ToString}")
|
Logger.Debug($"oIndexType {oIndexType.ToString}")
|
||||||
If oIndexType > 4000 And oIndexType < 5000 Then
|
|
||||||
'If dr.Item("INDEXNAME").ToString.StartsWith("[%VKT") Then
|
If oIndexType > 4000 And oIndexType < 5000 And oDT_FIResult.Rows.Count > 0 Then
|
||||||
' Dim PM_String = Return_PM_VEKTOR(value, dr.Item("INDEXNAME"))
|
Dim oOldValue As Object = CURRENT_WMFILE.GetVariableValue(oFinalIndex)
|
||||||
'Hier muss nun separat as Vektorfeld indexiert werden
|
Dim oValueList As New List(Of Object)
|
||||||
If WMIndexVectofield(oValue, oFinalIndexRow.Item("INDEXNAME"), oFinalIndexRow.Item("PREVENT_DUPLICATES"), oFinalIndexRow.Item("ALLOW_NEW_VALUES")) = False Then
|
Dim oNewValue As Object()
|
||||||
Logger.Debug("Final Vektorindex '" & oFinalIndexRow.Item("INDEXNAME").ToString & "' has beens et suxxessfully!")
|
Dim oMissing As Boolean = False
|
||||||
|
|
||||||
|
If oOldValue IsNot Nothing AndAlso TypeOf oOldValue Is Object Then
|
||||||
|
|
||||||
|
' If new values are allowed, add the old values first
|
||||||
|
If CBool(oFinalIndexRow.Item("ALLOW_NEW_VALUES")) = True Then
|
||||||
|
oValueList = DirectCast(oOldValue, Object()).ToList()
|
||||||
|
End If
|
||||||
|
|
||||||
|
' Add the new value(S)
|
||||||
|
oValueList = WMVectorResult_add_Items_From_DT(oDT_FIResult, oValueList)
|
||||||
|
Else
|
||||||
|
oValueList = WMVectorResult_add_Items_From_DT(oDT_FIResult, oValueList)
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CBool(oFinalIndexRow.Item("PREVENT_DUPLICATES")) = True Then
|
||||||
|
oValueList = oValueList.Distinct().ToList()
|
||||||
|
End If
|
||||||
|
|
||||||
|
oNewValue = oValueList.ToArray()
|
||||||
|
|
||||||
|
If Indexiere_File(CURRENT_WMFILE, oFinalIndexRow.Item("INDEXNAME"), oNewValue) = True Then
|
||||||
|
Logger.Debug("Final Vektorindex '" & oFinalIndexRow.Item("INDEXNAME").ToString & "' has been set successfully!")
|
||||||
Else
|
Else
|
||||||
errormessage = "Error in final indexing:" & vbNewLine & idxerr_message
|
errormessage = "Error in final indexing:" & vbNewLine & idxerr_message
|
||||||
My.Settings.Save()
|
My.Settings.Save()
|
||||||
@ -4320,13 +4346,32 @@ Public Class frmValidator
|
|||||||
oErrorOcurred = True
|
oErrorOcurred = True
|
||||||
_ItemWorked = False
|
_ItemWorked = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
''Hier muss nun separat as Vektorfeld indexiert werden
|
||||||
|
'If WMIndexVectofield(oValue, oFinalIndex, oFinalIndexRow.Item("PREVENT_DUPLICATES"), oFinalIndexRow.Item("ALLOW_NEW_VALUES")) = False Then
|
||||||
|
' Logger.Debug("Final Vektorindex '" & oFinalIndexRow.Item("INDEXNAME").ToString & "' has beens et suxxessfully!")
|
||||||
|
'Else
|
||||||
|
' errormessage = "Error in final indexing:" & vbNewLine & idxerr_message
|
||||||
|
' My.Settings.Save()
|
||||||
|
' frmError.ShowDialog()
|
||||||
|
' oErrorOcurred = True
|
||||||
|
' _ItemWorked = False
|
||||||
|
'End If
|
||||||
Else
|
Else
|
||||||
Logger.Debug("Now the final indexing...")
|
|
||||||
If oValue.ToUpper = "SQL-Command".ToUpper Then
|
If oValue.ToUpper = "SQL-Command".ToUpper Then
|
||||||
|
If oDT_FIResult.Rows.Count = 1 Then
|
||||||
|
oValue = oDT_FIResult.Rows(0).Item(0).ToString
|
||||||
|
oResult = Nothing
|
||||||
|
ReDim Preserve oResult(0)
|
||||||
|
oResult(0) = oValue
|
||||||
|
ElseIf isnothing(oResult) Then
|
||||||
MsgBox("Something went wrong while final-indexing. Check Your log and inform the admin-team!", MsgBoxStyle.Critical, ADDITIONAL_TITLE)
|
MsgBox("Something went wrong while final-indexing. Check Your log and inform the admin-team!", MsgBoxStyle.Critical, ADDITIONAL_TITLE)
|
||||||
Logger.Warn("Something went wrong while final-indexing")
|
Logger.Warn("Something went wrong while final-indexing")
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
Dim oFIResult As Boolean = False
|
Dim oFIResult As Boolean = False
|
||||||
If IDB_ACTIVE = False Then
|
If IDB_ACTIVE = False Then
|
||||||
If Indexiere_File(CURRENT_WMFILE, oFinalIndexRow.Item("INDEXNAME"), oResult) = True Then
|
If Indexiere_File(CURRENT_WMFILE, oFinalIndexRow.Item("INDEXNAME"), oResult) = True Then
|
||||||
@ -4574,6 +4619,12 @@ Public Class frmValidator
|
|||||||
|
|
||||||
btnSave.Enabled = True
|
btnSave.Enabled = True
|
||||||
End Sub
|
End Sub
|
||||||
|
Private Function WMVectorResult_add_Items_From_DT(oDT As DataTable, oValueList As List(Of Object)) As List(Of Object)
|
||||||
|
For Each oRow As DataRow In oDT.Rows
|
||||||
|
oValueList.Add(oRow.Item(0))
|
||||||
|
Next
|
||||||
|
Return oValueList
|
||||||
|
End Function
|
||||||
Sub Focus_FirstControl()
|
Sub Focus_FirstControl()
|
||||||
If first_control Is Nothing = False Then
|
If first_control Is Nothing = False Then
|
||||||
Dim otype = first_control.GetType
|
Dim otype = first_control.GetType
|
||||||
@ -5662,6 +5713,9 @@ Public Class frmValidator
|
|||||||
Dim File_indexiert As Boolean = False
|
Dim File_indexiert As Boolean = False
|
||||||
idxerr_message = ""
|
idxerr_message = ""
|
||||||
Try
|
Try
|
||||||
|
If pIndexName = "Vektor_Text2" Then
|
||||||
|
Logger.Info("Achtung")
|
||||||
|
End If
|
||||||
'Die Arrays vorbereiten
|
'Die Arrays vorbereiten
|
||||||
Dim arrIndex() As String = Nothing
|
Dim arrIndex() As String = Nothing
|
||||||
Dim arrValue() As String = Nothing
|
Dim arrValue() As String = Nothing
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user