MS_KW9
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
Dim image As Bitmap = CType(Drawing.Image.FromFile(pbNew.ImageLocation, True), Bitmap)
|
||||
Dim bimage() As Byte = BitmapToByteArray(image)
|
||||
Dim guid As String = gvMainView.GetFocusedRowCellValue(gvMainView.Columns(0).FieldName)
|
||||
|
||||
Dim SQL As String = "UPDATE TBPMO_FORM_CONSTRUCTOR SET MENU_IMG = @MENU_IMG, WHERE GUID = @GUID"
|
||||
'UPDATE TBPMO_FORM_CONSTRUCTOR SET MENU_IMG = @MENU_IMG, WHERE GUID = @GUID"
|
||||
Dim SQL As String = "UPDATE TBPMO_FORM_CONSTRUCTOR SET MENU_IMG = @MENU_IMG WHERE GUID = @GUID"
|
||||
Dim conn As SqlClient.SqlConnection = New SqlClient.SqlConnection(MyConnectionString)
|
||||
Dim cmd As SqlClient.SqlCommand = New SqlClient.SqlCommand(SQL, conn)
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
cmd.Parameters.Add("@GUID", SqlDbType.Int).Value = guid
|
||||
|
||||
conn.Open()
|
||||
'ClassDatabase.Execute_non_Query(SQL, True)
|
||||
cmd.ExecuteNonQuery()
|
||||
conn.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user