DAtabase integriert
This commit is contained in:
@@ -11,13 +11,13 @@ Public Class frmWM_CreateVersion
|
||||
If clsWD_SET.Create_Version(row.Item("FILEPATH"), txtComment.Text) Then
|
||||
MsgBox("Version was created successfully!", MsgBoxStyle.Information)
|
||||
Dim sql = "SELECT Version from TBPMO_DOCRESULT_LIST Where DocID = " & row.Item("DOC_ID")
|
||||
Dim VERSION = clsDatabase.Execute_Scalar(sql, True)
|
||||
Dim VERSION = MYDB_ECM.GetScalarValue(sql)
|
||||
If Not IsNothing(VERSION) Then
|
||||
VERSION = VERSION + 1
|
||||
Dim upd = String.Format("UPDATE TBPMO_DOCRESULT_LIST SET Version = {0},Change_DateTime = GETDATE() WHERE DocID = {1}", VERSION, row.Item("DOC_ID"))
|
||||
clsDatabase.Execute_non_Query(upd)
|
||||
MYDB_ECM.ExecuteNonQuery(upd)
|
||||
If LICENSE_PROXY = True And clsDatabase.DB_PROXY_INITIALIZED Then
|
||||
clsDatabase.Execute_non_Query(upd, True)
|
||||
MYDB_ECM.ExecuteNonQuery(upd, True)
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
|
||||
Reference in New Issue
Block a user