update ElementModel
This commit is contained in:
parent
b2342b6758
commit
e3a81bfdbf
@ -121,8 +121,7 @@ Public Class ElementModel
|
|||||||
,[WIDTH]
|
,[WIDTH]
|
||||||
,[HEIGHT]
|
,[HEIGHT]
|
||||||
,[REQUIRED]
|
,[REQUIRED]
|
||||||
,[READ_ONLY]
|
,[READ_ONLY]
|
||||||
,[STATUS]
|
|
||||||
,[PAGE])
|
,[PAGE])
|
||||||
VALUES
|
VALUES
|
||||||
(@DOCUMENT_ID
|
(@DOCUMENT_ID
|
||||||
@ -134,7 +133,6 @@ Public Class ElementModel
|
|||||||
,@HEIGHT
|
,@HEIGHT
|
||||||
,@REQUIRED
|
,@REQUIRED
|
||||||
,@READ_ONLY
|
,@READ_ONLY
|
||||||
,@STATUS
|
|
||||||
,@PAGE)"
|
,@PAGE)"
|
||||||
|
|
||||||
Dim oCommand As New SqlCommand(oSql)
|
Dim oCommand As New SqlCommand(oSql)
|
||||||
@ -147,7 +145,6 @@ Public Class ElementModel
|
|||||||
oCommand.Parameters.Add("HEIGHT", SqlDbType.Float).Value = pElement.Height
|
oCommand.Parameters.Add("HEIGHT", SqlDbType.Float).Value = pElement.Height
|
||||||
oCommand.Parameters.Add("REQUIRED", SqlDbType.Bit).Value = pElement.Required
|
oCommand.Parameters.Add("REQUIRED", SqlDbType.Bit).Value = pElement.Required
|
||||||
oCommand.Parameters.Add("READ_ONLY", SqlDbType.Bit).Value = pElement.ReadOnly
|
oCommand.Parameters.Add("READ_ONLY", SqlDbType.Bit).Value = pElement.ReadOnly
|
||||||
oCommand.Parameters.Add("STATUS", SqlDbType.NVarChar).Value = pElement.Status.ToString
|
|
||||||
oCommand.Parameters.Add("PAGE", SqlDbType.Int).Value = pElement.Page
|
oCommand.Parameters.Add("PAGE", SqlDbType.Int).Value = pElement.Page
|
||||||
|
|
||||||
If Database.ExecuteNonQuery(oCommand) Then
|
If Database.ExecuteNonQuery(oCommand) Then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user