3.7.2 Optimierungen und Button Knoten hinzufügen
This commit is contained in:
@@ -64,9 +64,9 @@ Public Class frmConstructor_Main
|
||||
Private DT_TREEVIEW_NODES_ALL As DataTable
|
||||
Private DT_TREEVIEW_NODES_FIRST As DataTable
|
||||
Private DT_TREEVIEW_NODES_DEVEXPRESS As DataTable
|
||||
|
||||
Private DT_TREEVIEW_CONFIGURATION As DataTable
|
||||
Private DT_CONTROLS_ENTITY As DataTable
|
||||
Private DT_CONFIGURABLE_NODES As DataTable
|
||||
|
||||
|
||||
Private DT_ADDING_USERS As DataTable
|
||||
@@ -268,7 +268,7 @@ Public Class frmConstructor_Main
|
||||
Private Sub Load_Configurable_Nodes()
|
||||
Try
|
||||
Dim oSql = String.Format("SELECT * FROM TBPMO_STRUCTURE_NODES_CONFIGURATION where TYPE_NODE = 1000 AND ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID)
|
||||
NODE_CONFIGURABLE_NODES_DT = MYDB_ECM.GetDatatable(oSql)
|
||||
DT_CONFIGURABLE_NODES = MYDB_ECM.GetDatatable(oSql)
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Load_Configurable_Nodes")
|
||||
End Try
|
||||
@@ -1338,7 +1338,7 @@ Public Class frmConstructor_Main
|
||||
If SelectedNode IsNot Nothing Then
|
||||
Update_Status_Label(True, SelectedNode.Tag)
|
||||
|
||||
ClassNodeNavigation.Check_NODE_CONFIG_ID(ENTITY_ID, SelectedNode)
|
||||
ClassNodeNavigation.Check_NODE_CONFIG_ID(ENTITY_ID, SelectedNode, DT_CONFIGURABLE_NODES)
|
||||
|
||||
If SelectedNode.Tag.ToString.Contains("RECORD-ID") Then
|
||||
Dim Record = ClassNodeNavigation.Return_RECORD_forTag(SelectedNode.Tag)
|
||||
@@ -1404,7 +1404,7 @@ Public Class frmConstructor_Main
|
||||
'Else
|
||||
Try
|
||||
LOGGER.Debug($"NODES: DT_TREEVIEW_NODES_ALL-Count: {DT_TREEVIEW_NODES_ALL.Rows.Count}")
|
||||
Dim async As New ClassAsyncNodeBuild(DT_TREEVIEW_NODES_ALL, TREEVIEW_IMAGELIST)
|
||||
Dim async As New ClassAsyncNodeBuild(DT_TREEVIEW_NODES_ALL, TREEVIEW_IMAGELIST, DT_CONFIGURABLE_NODES)
|
||||
async.bw.RunWorkerAsync()
|
||||
While async.bw.IsBusy
|
||||
Application.DoEvents()
|
||||
@@ -1418,7 +1418,7 @@ Public Class frmConstructor_Main
|
||||
MyTreeview = async.newTreeview
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error in Async NodeBuild", ex.Message & vbNewLine & "orgFLOW will try an alternative method!", ex.StackTrace)
|
||||
MyTreeview = ClassNodeNavigation.CreateTreeViewNodes(DT_TREEVIEW_NODES_ALL, TREEVIEW_IMAGELIST)
|
||||
MyTreeview = ClassNodeNavigation.CreateTreeViewNodes(DT_TREEVIEW_NODES_ALL, TREEVIEW_IMAGELIST, DT_CONFIGURABLE_NODES)
|
||||
End Try
|
||||
|
||||
|
||||
@@ -6647,7 +6647,7 @@ WHERE T2.SHORT_NAME = 'ADDI' AND T.EMAIL IS NOT NULL order by USERNAME")
|
||||
expression = "ENTITY_ID = " & ENTITY_ID & " AND GUID = " & CURRENT_NODE_CONFIGURABLE_ID
|
||||
Dim foundRowsLevel0() As DataRow
|
||||
' Use the Select method to find all rows matching the filter.
|
||||
foundRowsLevel0 = NODE_CONFIGURABLE_NODES_DT.Select(expression)
|
||||
foundRowsLevel0 = DT_CONFIGURABLE_NODES.Select(expression)
|
||||
Dim i As Integer
|
||||
Dim RECORD_CREATE As Boolean
|
||||
' For each row create a Node
|
||||
@@ -6700,7 +6700,7 @@ WHERE T2.SHORT_NAME = 'ADDI' AND T.EMAIL IS NOT NULL order by USERNAME")
|
||||
|
||||
Dim NEW_GUID = ClassNodeNavigation.CreateNodeProcedure(NEWRECORD, CURRENT_NODE_CONFIGURABLE_ID, tsmINewText.Text, "CONFIG " & NEWRECORD & "-" & CURRENT_NODE_CONFIGURABLE_ID, PARENT_ID, USER_USERNAME)
|
||||
If NEW_GUID > 0 Then
|
||||
ClassNodeNavigation.Check_NODE_CONFIG_ID(ENTITY_ID, Nothing)
|
||||
ClassNodeNavigation.Check_NODE_CONFIG_ID(ENTITY_ID, Nothing, DT_CONFIGURABLE_NODES)
|
||||
NEWNODE.Tag = ClassNodeNavigation.CreateNODE_TAG(ENTITY_ID, NEW_GUID, NEWRECORD, CURRENT_NODE_CONFIGURABLE_ID)
|
||||
|
||||
If where = "HERE" Then
|
||||
@@ -6952,7 +6952,6 @@ WHERE T2.SHORT_NAME = 'ADDI' AND T.EMAIL IS NOT NULL order by USERNAME")
|
||||
End If
|
||||
Next
|
||||
CURRENT_TBPMO_FILES_USER.AcceptChanges()
|
||||
ClassFolderWatcher.Check_Scan_Files()
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "", "Unexpected Error in clearing User-Files: " & ex.Message, ex.StackTrace)
|
||||
Finally
|
||||
|
||||
Reference in New Issue
Block a user