jj 25.10.
This commit is contained in:
@@ -543,7 +543,14 @@ Public Class ClassControlCommandsUI
|
||||
End If
|
||||
End If
|
||||
Else ' Update Control
|
||||
If TypeOf ctrl Is DevExpress.XtraEditors.DateEdit And (IsNothing(CONTROL_VALUE) Or CONTROL_VALUE = String.Empty) Then
|
||||
Dim isEmptyValue As Boolean = IsNothing(CONTROL_VALUE) Or CONTROL_VALUE = String.Empty
|
||||
Dim isDateEdit = TypeOf ctrl Is DevExpress.XtraEditors.DateEdit
|
||||
Dim isTextBox = TypeOf ctrl Is TextBox
|
||||
Dim isComboBox = TypeOf ctrl Is CustomComboBox
|
||||
|
||||
' Bei bestimmten Controls soll der Wert in CONTROL_VALUES gelöscht werden
|
||||
' wenn der Wert im Control leer ist
|
||||
If (isDateEdit Or isTextBox Or isComboBox) And isEmptyValue Then
|
||||
|
||||
Dim sql As String = $"DELETE FROM TBPMO_CONTROL_VALUE WHERE RECORD_ID = {RecordID} AND CONTROL_ID = {CONTROL_ID}"
|
||||
If ClassDatabase.Execute_non_Query(sql) = True Then
|
||||
|
||||
Reference in New Issue
Block a user