jj
This commit is contained in:
@@ -178,9 +178,12 @@ Public Class ctrlApplicationAssignment
|
||||
Try
|
||||
Dim oControlTitle As String = GetSQLFriendlyString(oForm.ControlName)
|
||||
Dim oProcessName As String = oForm.ProcessName
|
||||
Dim oAutomationId As String = oForm.AutomationId
|
||||
Dim oFrameworkId As String = oForm.FrameworkId
|
||||
Dim oDefaultRegex As String = "\.+"
|
||||
|
||||
If oControlTitle <> "" Then
|
||||
Dim insert = String.Format("INSERT INTO TBCW_PROF_REL_CONTROL (PROFILE_ID, DESCRIPTION, PROCESS_NAME, REGEX, WINDOW_ID, ADDED_WHO) VALUES ({0}, '{1}', '{2}','^{3}$',{4},'{5}')", ProfileId, Current_ProcessName, Current_ProcessName, oControlTitle, Current_WindowId, Environment.UserName)
|
||||
If oControlTitle <> "" Or oAutomationId <> "" Then
|
||||
Dim insert = String.Format("INSERT INTO TBCW_PROF_REL_CONTROL (PROFILE_ID, DESCRIPTION, AUTOMATION_ID, FRAMEWORK_ID, PROCESS_NAME, REGEX, WINDOW_ID, ADDED_WHO) VALUES ({0}, '{1}', '{2}', '{3}', '{4}','^{5}$',{6},'{7}')", ProfileId, oControlTitle, oAutomationId, oFrameworkId, Current_ProcessName, oDefaultRegex, Current_WindowId, Environment.UserName)
|
||||
If Database.ExecuteNonQuery(insert) = False Then
|
||||
Return False
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user