Personalakte
This commit is contained in:
@@ -393,10 +393,10 @@ Public Class ClassControlCommandsUI
|
||||
End Sub
|
||||
|
||||
Private Sub UpsertImage(ControlID As Integer, RecordID As Integer, image As Bitmap)
|
||||
Dim existsSQL As String = "SELECT GUID FROM TBPMO_CONTROL_IMAGE WHERE CONTROL_ID = " & ControlID & " AND RECORD_ID = " & RecordID
|
||||
Dim exists = MYDB_ECM.ExecuteNonQuery(existsSQL)
|
||||
Dim existsSQL As String = "SELECT COALESCE(MAX(GUID),0) FROM TBPMO_CONTROL_IMAGE WHERE CONTROL_ID = " & ControlID & " AND RECORD_ID = " & RecordID
|
||||
Dim exists = MYDB_ECM.GetScalarValue(existsSQL)
|
||||
|
||||
If IsNothing(exists) Then
|
||||
If exists = 0 Then
|
||||
InsertImage(ControlID, RecordID, image)
|
||||
Else
|
||||
UpdateImage(ControlID, RecordID, image)
|
||||
|
||||
Reference in New Issue
Block a user