MS_1708
This commit is contained in:
@@ -18,11 +18,11 @@ Public Class ClassControlCommandsUI
|
||||
''' <param name="AddAppointmentDelegate">Ein Delegate, der auf eine AddAppointment-Methode verweist, mit AddressOf verwenden</param>
|
||||
''' <param name="AddFormDataDelegate">Ein Delegate, der auf eine AddFormData-Methode verweist, mit AddressOf verwenden</param>
|
||||
''' <remarks></remarks>
|
||||
Sub New(ControlBuilder As ClassControlBuilder, ContextMenuStrip As ContextMenuStrip, AddAppointmentDelegate As System.EventHandler, AddFormDataDelegate As System.EventHandler)
|
||||
Sub New(ControlBuilder As ClassControlBuilder, ContextMenuStrip As ContextMenuStrip, AddAppointmentDelegate As System.EventHandler) ', AddFormDataDelegate As System.EventHandler)
|
||||
_CtrlBuilder = ControlBuilder
|
||||
_ContextMenuStrip = ContextMenuStrip
|
||||
_AddAppointmentHandler = AddAppointmentDelegate
|
||||
_AddFormDataHandler = AddFormDataDelegate
|
||||
' _AddFormDataHandler = AddFormDataDelegate
|
||||
End Sub
|
||||
|
||||
Sub LoadControls(FormId As Integer)
|
||||
@@ -455,7 +455,7 @@ Public Class ClassControlCommandsUI
|
||||
Dim VALUE = "%%" & ImageID.ToString & "%%"
|
||||
|
||||
If valueExists Then
|
||||
SQL = String.Format("UPDATE TBPMO_CONTROL_VALUE SET VALUE = '{0}' WHERE CONTROL_ID = {1} AND RECORD_ID = {2}", VALUE, ControlID, RecordID)
|
||||
SQL = String.Format("UPDATE TBPMO_CONTROL_VALUE SET VALUE = '{0}', CHANGED_WHO = '{1}' WHERE CONTROL_ID = {2} AND RECORD_ID = {3}", VALUE, Environment.UserName, ControlID, RecordID)
|
||||
Else
|
||||
SQL = String.Format("INSERT INTO TBPMO_CONTROL_VALUE (RECORD_ID, CONTROL_ID, VALUE, ADDED_WHO) VALUES ({0}, {1}, '{2}', '{3}')", RecordID, ControlID, VALUE, Environment.UserName)
|
||||
End If
|
||||
@@ -613,7 +613,8 @@ Public Class ClassControlCommandsUI
|
||||
v = Decimal.Parse(v, Globalization.NumberStyles.Integer)
|
||||
End Select
|
||||
End If
|
||||
ClassDatabase.Execute_non_Query(String.Format("INSERT INTO TBPMO_CONTROL_VALUE (CONTROL_ID, RECORD_ID, VALUE) VALUES({0}, {1}, '{2}')", ControlId, RecordId, v))
|
||||
Dim ins = String.Format("INSERT INTO TBPMO_CONTROL_VALUE (CONTROL_ID, RECORD_ID, VALUE,ADDED_WHO) VALUES({0}, {1}, '{2}','{3}')", ControlId, RecordId, v, Environment.UserName)
|
||||
ClassDatabase.Execute_non_Query(ins)
|
||||
Next
|
||||
|
||||
For Each v As String In RemoveValues
|
||||
|
||||
Reference in New Issue
Block a user