Version, 8 Spalten, Icon variabel
This commit is contained in:
@@ -6,7 +6,6 @@ Imports Independentsoft
|
||||
Imports System.IO
|
||||
Imports System.Text.RegularExpressions
|
||||
Imports System.ComponentModel
|
||||
Imports DD_LIB_Standards
|
||||
Imports DigitalData.Controls.LookupGrid
|
||||
Imports DevExpress.XtraGrid
|
||||
Imports System.Reflection
|
||||
@@ -600,7 +599,7 @@ Public Class frmValidator
|
||||
oValue = value
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
clsLogger.Add("Error in LoadSimpleData for TextBox: " & ex.Message)
|
||||
|
||||
End Try
|
||||
ElseIf TypeOf control Is ComboBox Then
|
||||
Try
|
||||
@@ -618,7 +617,7 @@ Public Class frmValidator
|
||||
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
clsLogger.Add("Error in LoadSimpleData for Combobox: " & ex.Message)
|
||||
|
||||
End Try
|
||||
ElseIf TypeOf control Is LookupControl2 Then
|
||||
Try
|
||||
@@ -627,7 +626,7 @@ Public Class frmValidator
|
||||
lookup.DataSource = oDTContent
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
clsLogger.Add("Error in LoadSimpleData for LookupControl2: " & ex.Message)
|
||||
|
||||
End Try
|
||||
ElseIf TypeOf control Is GridControl Then
|
||||
Try
|
||||
@@ -654,14 +653,13 @@ Public Class frmValidator
|
||||
End If
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
clsLogger.Add("Error in LoadSimpleData for DataGridView: " & ex.Message)
|
||||
|
||||
End Try
|
||||
End If
|
||||
Next
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Warn($"{ex.Message} - Loading ControlID: {pControlId}")
|
||||
MsgBox("Error in LoadSQLData: " & ex.Message, MsgBoxStyle.Critical, ADDITIONAL_TITLE)
|
||||
clsLogger.Add("Error in LoadSQLData: " & ex.Message)
|
||||
End Try
|
||||
End Sub
|
||||
'Sub LoadSQLData2(control As Control, controlId As Integer)
|
||||
@@ -836,7 +834,7 @@ Public Class frmValidator
|
||||
AddHandler oComboBox.SelectedValueChanged, AddressOf OnCmbselectedIndex
|
||||
AddHandler oComboBox.GotFocus, Sub(sender As Control, e As EventArgs)
|
||||
If DirectCast(oComboBox.Tag, ClassControlCreator.ControlMetadata).ReadOnly = False Then
|
||||
oComboBox.BackColor = Color.Lime
|
||||
oComboBox.BackColor = Color.LightSteelBlue
|
||||
End If
|
||||
End Sub
|
||||
AddHandler oComboBox.LostFocus, Sub(sender As Control, e As EventArgs)
|
||||
@@ -1000,7 +998,7 @@ Public Class frmValidator
|
||||
|
||||
AddHandler lookup.GotFocus, Sub(sender As Control, e As EventArgs)
|
||||
If DirectCast(lookup.Tag, ClassControlCreator.ControlMetadata).ReadOnly = False Then
|
||||
lookup.BackColor = Color.Lime
|
||||
lookup.BackColor = Color.LightSteelBlue
|
||||
End If
|
||||
End Sub
|
||||
AddHandler lookup.LostFocus, Sub(sender As Control, e As EventArgs)
|
||||
@@ -1178,7 +1176,7 @@ Public Class frmValidator
|
||||
Dim box As TextBox = sender
|
||||
|
||||
If DirectCast(box.Tag, ClassControlCreator.ControlMetadata).ReadOnly = False Then
|
||||
box.BackColor = Color.Lime
|
||||
box.BackColor = Color.LightSteelBlue
|
||||
box.SelectAll()
|
||||
End If
|
||||
End Sub
|
||||
@@ -3274,8 +3272,11 @@ Public Class frmValidator
|
||||
Next
|
||||
Else
|
||||
If omytype = "System.String" Then
|
||||
'If USER_USERNAME.ToLower = "'marscheiber" Then MsgBox($"IDB Fill Grid [{oControl.Name}] with String")
|
||||
LOGGER.Debug($"IDB Fill Grid [{oControl.Name}] with String")
|
||||
oColValuesfromSource = Split(oValueFromSource.ToString, PMDelimiter)
|
||||
If oColValuesfromSource.Length > 8 Then
|
||||
LOGGER.Warn("Fill Grid Error - Max 8 columns can be configured!")
|
||||
End If
|
||||
Select Case oColValuesfromSource.Length
|
||||
Case 1
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0)})
|
||||
@@ -3285,15 +3286,26 @@ Public Class frmValidator
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2)})
|
||||
Case 4
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3)})
|
||||
Case 5
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4)})
|
||||
Case 6
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4), oColValuesfromSource(5)})
|
||||
Case 7
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4), oColValuesfromSource(5), oColValuesfromSource(6)})
|
||||
Case 8
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4), oColValuesfromSource(5), oColValuesfromSource(6), oColValuesfromSource(7)})
|
||||
|
||||
End Select
|
||||
ElseIf omytype = "System.Data.DataTable" Then
|
||||
Dim oMyDatatable As DataTable = oValueFromSource
|
||||
'If USER_USERNAME.ToLower = "'marscheiber" Then MsgBox($"IDB Fill Grid [{oControl.Name}] with Datatable - Rows: " & oMyDatatable.Rows.Count)
|
||||
LOGGER.Debug($"IDB Fill Grid [{oControl.Name}] with Datatable - Rows: " & oMyDatatable.Rows.Count)
|
||||
For Each oRow As DataRow In oMyDatatable.Rows
|
||||
LOGGER.Debug($"IDB ROW Vector {oRow.Item(0).ToString}...")
|
||||
oColValuesfromSource = Split(oRow.Item(0).ToString, PMDelimiter)
|
||||
'If USER_USERNAME.ToLower = "'marscheiber" Then MsgBox($"IDB ROW Vector {oRow.Item(0).ToString}...")
|
||||
|
||||
If oColValuesfromSource.Length > 8 Then
|
||||
LOGGER.Warn("Fill Grid with DatatableSplit Error - Max 8 columns can be configured!")
|
||||
End If
|
||||
Select Case oColValuesfromSource.Length
|
||||
Case 1
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0)})
|
||||
@@ -3303,12 +3315,22 @@ Public Class frmValidator
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2)})
|
||||
Case 4
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3)})
|
||||
Case 5
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4)})
|
||||
Case 6
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4), oColValuesfromSource(5)})
|
||||
Case 7
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4), oColValuesfromSource(5), oColValuesfromSource(6)})
|
||||
Case 8
|
||||
oDataSource.Rows.Add(New String() {oColValuesfromSource(0), oColValuesfromSource(1), oColValuesfromSource(2), oColValuesfromSource(3), oColValuesfromSource(4), oColValuesfromSource(5), oColValuesfromSource(6), oColValuesfromSource(7)})
|
||||
|
||||
End Select
|
||||
|
||||
Next
|
||||
End If
|
||||
|
||||
End If
|
||||
Else
|
||||
|
||||
End If
|
||||
|
||||
|
||||
Reference in New Issue
Block a user