fix dataset for window assignments
This commit is contained in:
@@ -55,7 +55,9 @@ Public Class ctrlApplicationAssignment
|
||||
If Database.ExecuteNonQuery(oSQL) = False Then
|
||||
Return False
|
||||
Else
|
||||
oSQL = String.Format("INSERT INTO TBCW_PROF_REL_WINDOW (DESCRIPTION, REGEX, ADDED_WHO,PROCESS_ID) VALUES ('{0}', '^{1}$','{3}',{4})", oWindowTitle, oWindowTitle, Environment.UserName, CURRENT_PROCESSID)
|
||||
Dim oNewProcessId = Database.GetScalarValue("SELECT MAX(GUID) FROM TBCW_PROFILE_PROCESS")
|
||||
|
||||
oSQL = String.Format("INSERT INTO TBCW_PROF_REL_WINDOW (DESCRIPTION, REGEX, ADDED_WHO, PROCESS_ID) VALUES ('{0}', '^{1}$', '{2}' ,{3})", oWindowTitle, oWindowTitle, Environment.UserName, oNewProcessId)
|
||||
If Database.ExecuteNonQuery(oSQL) = False Then
|
||||
Return False
|
||||
End If
|
||||
@@ -74,7 +76,7 @@ Public Class ctrlApplicationAssignment
|
||||
Public Function Process_DeleteAssignment() As Boolean
|
||||
Try
|
||||
Dim oProcessId = GridViewProcessProfile.GetFocusedRowCellValue(GridViewProcessProfile.Columns("GUID"))
|
||||
Dim oSQL = String.Format("EXEC PRCW_DELETE_PROCESS {0},{1}", oProcessId, Current_ProfileId)
|
||||
Dim oSQL = String.Format("EXEC PRCW_DELETE_PROCESS {0}", oProcessId)
|
||||
If Database.ExecuteNonQuery(oSQL) Then
|
||||
Process_Load(Current_ProfileId)
|
||||
Return True
|
||||
@@ -161,8 +163,6 @@ Public Class ctrlApplicationAssignment
|
||||
TBCW_PROF_REL_WINDOWTableAdapter.Update(MyDataset.TBCW_PROF_REL_WINDOW)
|
||||
Return True
|
||||
End If
|
||||
|
||||
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
Return False
|
||||
|
||||
Reference in New Issue
Block a user