JJ 09.05.16
This commit is contained in:
@@ -289,7 +289,8 @@ Public Class ClassControlBuilder
|
||||
|
||||
' DependingControlId bezeichnet das Control, das die Abhängigkeit enthält
|
||||
Dim dependingControlId As Integer = row.Item("GUID")
|
||||
Dim panel As Panel = DirectCast(control.Parent, Panel)
|
||||
Dim panel As Panel = CtrlBuilder.MasterPanel
|
||||
'Dim panel As Panel = DirectCast(control.Parent, Panel)
|
||||
' Über die Id das Control finden
|
||||
Dim dependingControl As Control = panel.Controls.OfType(Of Control)().Where(Function(c As Control)
|
||||
Return DirectCast(c.Tag, ClassControlMetadata).Id = dependingControlId
|
||||
@@ -464,9 +465,13 @@ Public Class ClassControlBuilder
|
||||
If CURRENT_RECORD_ID = 0 Then
|
||||
Exit Sub
|
||||
End If
|
||||
If CtrlCommandUI.IsInsert = False Then
|
||||
ClassControlCommandsUI.UpdateMultipleValues(controlId, CURRENT_RECORD_ID, CONTROL_VALUE)
|
||||
End If
|
||||
|
||||
|
||||
' Da wir beim Klick auf Hinzfügen einen Record anlegen,
|
||||
' muss UpdateMultipleValues auch aufgerufen werden, wenn wir IsInsert = True ist
|
||||
'If CtrlCommandUI.IsInsert = False Then
|
||||
ClassControlCommandsUI.UpdateMultipleValues(controlId, CURRENT_RECORD_ID, CONTROL_VALUE)
|
||||
'End If
|
||||
|
||||
|
||||
Dim datatable As DataTable = ClassDatabase.Return_Datatable(SQL)
|
||||
|
||||
Reference in New Issue
Block a user