ms
This commit is contained in:
@@ -56,7 +56,7 @@ Public Class frmConstructor_Main
|
||||
|
||||
Private CONSTRUCTORID As Integer
|
||||
Private CONSTRUCTOR_DETAIL_ID As Integer
|
||||
Private CONSTRUCT_EXPAND As Boolean = True
|
||||
'Private CONSTRUCT_EXPAND As Boolean = True
|
||||
Private DT_CONSTRUCT_VIEW As DataTable
|
||||
Private DT_VWPMO_CONSTRUCTOR_FORMS As DataTable
|
||||
Private DT_ENTITY_DATA As DataTable
|
||||
@@ -246,157 +246,169 @@ Public Class frmConstructor_Main
|
||||
|
||||
Private Sub frmForm_Constructor_Main_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
Dim sw As New Stopwatch
|
||||
' Try
|
||||
sw.Start()
|
||||
CURRENT_DT_DOC_ENTITY_SEARCH = Nothing
|
||||
tsslblRecord.Text = ""
|
||||
tsslblStatus.Text = ""
|
||||
_FormClosing = False
|
||||
CONSTRUCTORID = CURRENT_CONSTRUCTOR_ID
|
||||
Me.Cursor = Cursors.WaitCursor
|
||||
|
||||
Init_Grid_Control()
|
||||
'Catch ex As Exception
|
||||
' ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, ex.StackTrace)
|
||||
'End Try
|
||||
|
||||
' Hintergrund Bild initialisieren
|
||||
BACKGROUND_HELPER = New ClassBackgroundHelper(GridViewDoc_Search, My.Resources.windream_Logo_transparent_klein)
|
||||
|
||||
|
||||
' Bestimme Dinge ausblenden wenn kein admin
|
||||
If USER_IS_ADMIN = True Then
|
||||
FormDesignerToolStripMenuItem.Visible = True
|
||||
Else
|
||||
FormDesignerToolStripMenuItem.Visible = False
|
||||
End If
|
||||
|
||||
'Try
|
||||
Dim SQL
|
||||
Dim DT_PROXY_ENTITY As DataTable
|
||||
If LICENSE_PROXY = True And DD_LIB_Standards.clsDatabase.DB_PROXY_INITIALIZED Then
|
||||
SQL = "SELECT * FROM TBPROXY_SYNC_ENTITY"
|
||||
DT_PROXY_ENTITY = ClassDatabase.Return_Datatable(SQL, True)
|
||||
End If
|
||||
Dim SQL
|
||||
Try
|
||||
sw.Start()
|
||||
CURRENT_DT_DOC_ENTITY_SEARCH = Nothing
|
||||
tsslblRecord.Text = ""
|
||||
tsslblStatus.Text = ""
|
||||
_FormClosing = False
|
||||
CONSTRUCTORID = CURRENT_CONSTRUCTOR_ID
|
||||
Me.Cursor = Cursors.WaitCursor
|
||||
|
||||
ClassWindowLocation.LoadFormLocationSize(Me, CONSTRUCTORID, CURRENT_SCREEN_ID, "CONSTRUCTOR_MAIN")
|
||||
' VWPMO_WF_USER_ACTIVETableAdapter.Connection.ConnectionString = MyConnectionString
|
||||
ClassWorkflow.Refresh_Workflows_Entity()
|
||||
SQL = String.Format("SELECT *, [dbo].[FNPMO_GETOBJECTCAPTION]('{0}','FORMVIEW_TITLE' + CONVERT(VARCHAR(5), FORM_VIEW_ID), {1}) AS 'CAPTION' " &
|
||||
"FROM VWPMO_CONSTRUCTOR_FORMS WHERE SCREEN_ID = {2} AND CONSTRUCT_ID = {3} ORDER BY SEQUENCE", USER_LANGUAGE, CURRENT_SCREEN_ID, CURRENT_SCREEN_ID, CONSTRUCTORID)
|
||||
Init_Grid_Control()
|
||||
'Catch ex As Exception
|
||||
' ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, ex.StackTrace)
|
||||
'End Try
|
||||
|
||||
DT_VWPMO_CONSTRUCTOR_FORMS = ClassDatabase.Return_Datatable(SQL, True)
|
||||
' Hintergrund Bild initialisieren
|
||||
BACKGROUND_HELPER = New ClassBackgroundHelper(GridViewDoc_Search, My.Resources.windream_Logo_transparent_klein)
|
||||
|
||||
If LICENSE_PROXY = True And DD_LIB_Standards.clsDatabase.DB_PROXY_INITIALIZED Then
|
||||
If DT_VWPMO_CONSTRUCTOR_FORMS.Rows.Count = 0 Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Missing Proxy-Configuration", String.Format("Attention: You are using Proxy-Server with synchronized data:" & vbNewLine &
|
||||
"Actually there is no data for this view synchronized or configured! Please inform Digital Data!" & vbNewLine &
|
||||
"View will now be terminated!"))
|
||||
ERROR_FORM_LOAD = True
|
||||
Exit Sub
|
||||
|
||||
' Bestimme Dinge ausblenden wenn kein admin
|
||||
If USER_IS_ADMIN = True Then
|
||||
FormDesignerToolStripMenuItem.Visible = True
|
||||
Else
|
||||
Dim Entity_Exists As Boolean = False
|
||||
Dim Entity_Name As String
|
||||
For Each Constr_row As DataRow In DT_VWPMO_CONSTRUCTOR_FORMS.Rows
|
||||
Entity_Name = Constr_row.Item("FORM_TITLE")
|
||||
Dim Constr_FORM = Constr_row.Item("FORM_ID")
|
||||
Dim expression As String = String.Format("ENTITY_ID = {0}", Constr_FORM)
|
||||
Dim matchingRows() As DataRow = DT_PROXY_ENTITY.Select(expression)
|
||||
'Prüfen ob Form in Config Proxy vorhanden
|
||||
For Each matchingRow As DataRow In matchingRows
|
||||
Entity_Exists = True
|
||||
Next
|
||||
If Entity_Exists = False Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Missing Proxy-Configuration", String.Format("Attention: You are using Proxy-Server with synchronized data:" &
|
||||
"The entity '{0}' used in this view is not configured for Your proxy-server! Please inform Digital Data!" &
|
||||
"View will now be terminated!", Entity_Name))
|
||||
ERROR_FORM_LOAD = True
|
||||
Exit Sub
|
||||
End If
|
||||
Next
|
||||
FormDesignerToolStripMenuItem.Visible = False
|
||||
End If
|
||||
End If
|
||||
|
||||
CURRENT_DT_TBPMO_ENTITY_RIGHT_CONTROLS = ClassDatabase.Return_Datatable(String.Format("SELECT * FROM TBPMO_ENTITY_RIGHT_CONTROLS where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID), False)
|
||||
'Try
|
||||
|
||||
SQL = String.Format("SELECT * FROM TBPMO_ENTITY_USERRIGHT_ADDING where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID)
|
||||
DT_ADDING_USERS = ClassDatabase.Return_Datatable(SQL, False)
|
||||
SQL = 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)
|
||||
CURRENT_DT_NODE_CONFIGURABLE_NODES = ClassDatabase.Return_Datatable(SQL, False)
|
||||
|
||||
SQL = String.Format("select * from VWPMO_STRUCTURE_NODES where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID)
|
||||
Dim DT As DataTable = ClassDatabase.Return_Datatable(SQL, True)
|
||||
If DT.Rows.Count > 1 Then
|
||||
TreeView_perControl = True
|
||||
DT_TREEVIEW_NODES = DT
|
||||
SQL = String.Format("select * from TBPMO_STRUCTURE_NODES_CONFIGURATION where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID)
|
||||
DT_TREEVIEW_CONFIGURATION = ClassDatabase.Return_Datatable(SQL)
|
||||
If LICENSE_PROXY = True And DD_LIB_Standards.clsDatabase.DB_PROXY_INITIALIZED Then
|
||||
SQL = "SELECT * FROM TBPROXY_SYNC_ENTITY"
|
||||
DT_PROXY_ENTITY = ClassDatabase.Return_Datatable(SQL, True)
|
||||
End If
|
||||
|
||||
Try
|
||||
TREEVIEW_IMAGELIST = New ImageList
|
||||
For Each row As DataRow In DT_TREEVIEW_CONFIGURATION.Rows
|
||||
Try
|
||||
Dim bimage = row.Item("NODE_IMAGE")
|
||||
If Not IsDBNull(bimage) Then
|
||||
Dim Node_image = ByteArrayToBitmap(bimage)
|
||||
TREEVIEW_IMAGELIST.Images.Add(row.Item("GUID").ToString & "#" & row.Item("ENTITY_ID"), Node_image)
|
||||
ClassWindowLocation.LoadFormLocationSize(Me, CONSTRUCTORID, CURRENT_SCREEN_ID, "CONSTRUCTOR_MAIN")
|
||||
' VWPMO_WF_USER_ACTIVETableAdapter.Connection.ConnectionString = MyConnectionString
|
||||
ClassWorkflow.Refresh_Workflows_Entity()
|
||||
SQL = String.Format("SELECT *, [dbo].[FNPMO_GETOBJECTCAPTION]('{0}','FORMVIEW_TITLE' + CONVERT(VARCHAR(5), FORM_VIEW_ID), {1}) AS 'CAPTION' " &
|
||||
"FROM VWPMO_CONSTRUCTOR_FORMS WHERE SCREEN_ID = {2} AND CONSTRUCT_ID = {3} ORDER BY SEQUENCE", USER_LANGUAGE, CURRENT_SCREEN_ID, CURRENT_SCREEN_ID, CONSTRUCTORID)
|
||||
|
||||
DT_VWPMO_CONSTRUCTOR_FORMS = ClassDatabase.Return_Datatable(SQL, True)
|
||||
Catch ex As System.Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Loading Form part 1")
|
||||
End Try
|
||||
Try
|
||||
If LICENSE_PROXY = True And DD_LIB_Standards.clsDatabase.DB_PROXY_INITIALIZED Then
|
||||
If DT_VWPMO_CONSTRUCTOR_FORMS.Rows.Count = 0 Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Missing Proxy-Configuration", String.Format("Attention: You are using Proxy-Server with synchronized data:" & vbNewLine &
|
||||
"Actually there is no data for this view synchronized or configured! Please inform Digital Data!" & vbNewLine &
|
||||
"View will now be terminated!"))
|
||||
ERROR_FORM_LOAD = True
|
||||
Exit Sub
|
||||
Else
|
||||
Dim Entity_Exists As Boolean = False
|
||||
Dim Entity_Name As String
|
||||
For Each Constr_row As DataRow In DT_VWPMO_CONSTRUCTOR_FORMS.Rows
|
||||
Entity_Name = Constr_row.Item("FORM_TITLE")
|
||||
Dim Constr_FORM = Constr_row.Item("FORM_ID")
|
||||
Dim expression As String = String.Format("ENTITY_ID = {0}", Constr_FORM)
|
||||
Dim matchingRows() As DataRow = DT_PROXY_ENTITY.Select(expression)
|
||||
'Prüfen ob Form in Config Proxy vorhanden
|
||||
For Each matchingRow As DataRow In matchingRows
|
||||
Entity_Exists = True
|
||||
Next
|
||||
If Entity_Exists = False Then
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Missing Proxy-Configuration", String.Format("Attention: You are using Proxy-Server with synchronized data:" &
|
||||
"The entity '{0}' used in this view is not configured for Your proxy-server! Please inform Digital Data!" &
|
||||
"View will now be terminated!", Entity_Name))
|
||||
ERROR_FORM_LOAD = True
|
||||
Exit Sub
|
||||
End If
|
||||
Catch ex As Exception
|
||||
|
||||
End Try
|
||||
|
||||
Next
|
||||
TreeViewMain.ImageList = TREEVIEW_IMAGELIST
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Adding NodeConfigurations to TreeView: ")
|
||||
End Try
|
||||
|
||||
|
||||
Me.SplitContainerTop.Panel1.Controls.Remove(Me.TreeViewMain)
|
||||
Me.SplitContainerFORM.Panel1.Controls.Add(Me.TreeViewMain)
|
||||
SplitContainerFORM.Collapsed = False
|
||||
SplitContainerFORM.PanelVisibility = SplitPanelVisibility.Both
|
||||
SplitContainerTop.Collapsed = True
|
||||
SplitContainerTop.PanelVisibility = SplitPanelVisibility.Panel2
|
||||
SplitContainerMain.Collapsed = True
|
||||
NODE_NAVIGATION = True
|
||||
tsmiNodedownSearch.Visible = True
|
||||
tsmi_NewNode.Visible = True
|
||||
Else
|
||||
tsmi_NewNode.Visible = False
|
||||
If DT_VWPMO_CONSTRUCTOR_FORMS.Rows.Count = 1 Then
|
||||
SplitContainerTop.PanelVisibility = SplitPanelVisibility.Both
|
||||
SplitContainerTop.CollapsePanel = SplitCollapsePanel.Panel1
|
||||
SplitContainerTop.Collapsed = True
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
DT_CONSTRUCT_VIEW = ClassDatabase.Return_Datatable("SELECT * FROM TBPMO_FORM_CONSTRUCTOR WHERE GUID = " & CONSTRUCTORID)
|
||||
Dim SEL1 = String.Format("SELECT * FROM TBPMO_FORM WHERE GUID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE SCREEN_ID = {0} AND CONSTRUCT_ID = {1})", CURRENT_SCREEN_ID, CONSTRUCTORID)
|
||||
DT_ENTITY_DATA = ClassDatabase.Return_Datatable(SEL1, True)
|
||||
DT_CONTROL_SCREEN_SHOW_COL_0 = ClassDatabase.Return_Datatable("SELECT FORM_ID, CONTROL_ID, CONTROL_COL_NAME, CONTROL_SHOW_COLUMN FROM VWPMO_CONTROL_SCREEN WHERE CONTROL_SHOW_COLUMN = 0", True)
|
||||
DT_VWPMO_CONTROL_SCREEN = ClassDatabase.Return_Datatable("SELECT * FROM VWPMO_CONTROL_SCREEN", True)
|
||||
If DT_CONSTRUCT_VIEW.Rows.Count = 1 Then
|
||||
'Load Input Grid
|
||||
Me.Text = DT_CONSTRUCT_VIEW.Rows(0).Item("FORM_TITLE")
|
||||
'Die Standards ein/ausblenden
|
||||
End If
|
||||
|
||||
Dim sql_ResultList = "select T1.ENTITY_ID,T.GUID,T.TITLE,T.MANUALLY,T.CREATE_ON_REC_CREATE,T.CREATE_ON_FOLL_UP " &
|
||||
"FROM TBPMO_WORKFLOW T,TBPMO_WORKFLOW_ENTITY_STATE T1 " &
|
||||
"WHERE T.GUID = T1.WF_ID " &
|
||||
"GROUP BY T1.ENTITY_ID,T.GUID,T.TITLE,T.MANUALLY,T.CREATE_ON_REC_CREATE,T.CREATE_ON_FOLL_UP"
|
||||
DT_WORKFLOWS_MANUAL = ClassDatabase.Return_Datatable(sql_ResultList)
|
||||
Load_Tree_View(CONSTRUCTORID)
|
||||
CURRENT_DT_TBPMO_ENTITY_RIGHT_CONTROLS = ClassDatabase.Return_Datatable(String.Format("SELECT * FROM TBPMO_ENTITY_RIGHT_CONTROLS where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID), False)
|
||||
|
||||
FORM_LOADED = True
|
||||
Dim elapsed As Double
|
||||
elapsed = sw.Elapsed.TotalSeconds
|
||||
sw.Stop()
|
||||
sw.Reset()
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Form Load took " & Format(elapsed, "0.000000000") & " seconds", False)
|
||||
'Catch ex As System.Exception
|
||||
' ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Loading Form part 2")
|
||||
'End Try
|
||||
Sql = String.Format("SELECT * FROM TBPMO_ENTITY_USERRIGHT_ADDING where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID)
|
||||
DT_ADDING_USERS = ClassDatabase.Return_Datatable(Sql, False)
|
||||
Sql = 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)
|
||||
CURRENT_DT_NODE_CONFIGURABLE_NODES = ClassDatabase.Return_Datatable(Sql, False)
|
||||
Catch ex As System.Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Loading Form part 2")
|
||||
End Try
|
||||
Try
|
||||
SQL = String.Format("select * from VWPMO_STRUCTURE_NODES where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID)
|
||||
Dim DT As DataTable = ClassDatabase.Return_Datatable(SQL, True)
|
||||
If DT.Rows.Count > 1 Then
|
||||
TreeView_perControl = True
|
||||
DT_TREEVIEW_NODES = DT
|
||||
SQL = String.Format("select * from TBPMO_STRUCTURE_NODES_CONFIGURATION where ENTITY_ID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = {0})", CONSTRUCTORID)
|
||||
DT_TREEVIEW_CONFIGURATION = ClassDatabase.Return_Datatable(SQL)
|
||||
|
||||
Try
|
||||
TREEVIEW_IMAGELIST = New ImageList
|
||||
For Each row As DataRow In DT_TREEVIEW_CONFIGURATION.Rows
|
||||
Try
|
||||
Dim bimage = row.Item("NODE_IMAGE")
|
||||
If Not IsDBNull(bimage) Then
|
||||
Dim Node_image = ByteArrayToBitmap(bimage)
|
||||
TREEVIEW_IMAGELIST.Images.Add(row.Item("GUID").ToString & "#" & row.Item("ENTITY_ID"), Node_image)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
|
||||
End Try
|
||||
|
||||
Next
|
||||
TreeViewMain.ImageList = TREEVIEW_IMAGELIST
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Adding NodeConfigurations to TreeView: ")
|
||||
End Try
|
||||
|
||||
|
||||
Me.SplitContainerTop.Panel1.Controls.Remove(Me.TreeViewMain)
|
||||
Me.SplitContainerFORM.Panel1.Controls.Add(Me.TreeViewMain)
|
||||
SplitContainerFORM.Collapsed = False
|
||||
SplitContainerFORM.PanelVisibility = SplitPanelVisibility.Both
|
||||
SplitContainerTop.Collapsed = True
|
||||
SplitContainerTop.PanelVisibility = SplitPanelVisibility.Panel2
|
||||
SplitContainerMain.Collapsed = True
|
||||
NODE_NAVIGATION = True
|
||||
tsmiNodedownSearch.Visible = True
|
||||
tsmi_NewNode.Visible = True
|
||||
Else
|
||||
tsmi_NewNode.Visible = False
|
||||
If DT_VWPMO_CONSTRUCTOR_FORMS.Rows.Count = 1 Then
|
||||
SplitContainerTop.PanelVisibility = SplitPanelVisibility.Both
|
||||
SplitContainerTop.CollapsePanel = SplitCollapsePanel.Panel1
|
||||
SplitContainerTop.Collapsed = True
|
||||
End If
|
||||
End If
|
||||
Catch ex As System.Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Loading Form part 3")
|
||||
End Try
|
||||
Try
|
||||
DT_CONSTRUCT_VIEW = ClassDatabase.Return_Datatable("SELECT * FROM TBPMO_FORM_CONSTRUCTOR WHERE GUID = " & CONSTRUCTORID)
|
||||
Dim SEL1 = String.Format("SELECT * FROM TBPMO_FORM WHERE GUID IN (SELECT FORM_ID FROM VWPMO_CONSTRUCTOR_FORMS WHERE SCREEN_ID = {0} AND CONSTRUCT_ID = {1})", CURRENT_SCREEN_ID, CONSTRUCTORID)
|
||||
DT_ENTITY_DATA = ClassDatabase.Return_Datatable(SEL1, True)
|
||||
DT_CONTROL_SCREEN_SHOW_COL_0 = ClassDatabase.Return_Datatable("SELECT FORM_ID, CONTROL_ID, CONTROL_COL_NAME, CONTROL_SHOW_COLUMN FROM VWPMO_CONTROL_SCREEN WHERE CONTROL_SHOW_COLUMN = 0", True)
|
||||
DT_VWPMO_CONTROL_SCREEN = ClassDatabase.Return_Datatable("SELECT * FROM VWPMO_CONTROL_SCREEN", True)
|
||||
If DT_CONSTRUCT_VIEW.Rows.Count = 1 Then
|
||||
'Load Input Grid
|
||||
Me.Text = DT_CONSTRUCT_VIEW.Rows(0).Item("FORM_TITLE")
|
||||
'Die Standards ein/ausblenden
|
||||
End If
|
||||
|
||||
Dim sql_ResultList = "select T1.ENTITY_ID,T.GUID,T.TITLE,T.MANUALLY,T.CREATE_ON_REC_CREATE,T.CREATE_ON_FOLL_UP " &
|
||||
"FROM TBPMO_WORKFLOW T,TBPMO_WORKFLOW_ENTITY_STATE T1 " &
|
||||
"WHERE T.GUID = T1.WF_ID " &
|
||||
"GROUP BY T1.ENTITY_ID,T.GUID,T.TITLE,T.MANUALLY,T.CREATE_ON_REC_CREATE,T.CREATE_ON_FOLL_UP"
|
||||
DT_WORKFLOWS_MANUAL = ClassDatabase.Return_Datatable(sql_ResultList)
|
||||
Load_Tree_View(CONSTRUCTORID)
|
||||
|
||||
FORM_LOADED = True
|
||||
Dim elapsed As Double
|
||||
elapsed = sw.Elapsed.TotalSeconds
|
||||
sw.Stop()
|
||||
sw.Reset()
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Form Load took " & Format(elapsed, "0.000000000") & " seconds", False)
|
||||
Catch ex As System.Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Error in Loading Form part 4")
|
||||
End Try
|
||||
Me.Cursor = Cursors.Default
|
||||
End Sub
|
||||
|
||||
@@ -1258,9 +1270,9 @@ Public Class frmConstructor_Main
|
||||
TreeViewMain.Nodes.Add(node.Clone)
|
||||
Next
|
||||
End If
|
||||
If CONSTRUCT_EXPAND = True Then
|
||||
TreeViewMain.ExpandAll()
|
||||
End If
|
||||
'If CONSTRUCT_EXPAND = True Then
|
||||
' TreeViewMain.ExpandAll()
|
||||
'End If
|
||||
End Sub
|
||||
Sub Load_Tree_View(ConstructorId As Integer)
|
||||
Try
|
||||
@@ -1361,8 +1373,8 @@ Public Class frmConstructor_Main
|
||||
' MsgBox("Proxy-Server is actually synchronizing! Please wait until synchronisation is finished!" & vbNewLine & "This might take up to 3 minutes!", MsgBoxStyle.Information)
|
||||
' Exit Sub
|
||||
'End If
|
||||
Try
|
||||
If NODE_NAVIGATION = True Then
|
||||
'Try
|
||||
If NODE_NAVIGATION = True Then
|
||||
If NODE_NAVIGATION_LOADED = True Then
|
||||
Exit Sub
|
||||
Else
|
||||
@@ -1467,15 +1479,15 @@ Public Class frmConstructor_Main
|
||||
elapsed = elapsed - sw.Elapsed.TotalSeconds
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Load_Datafor_Entity2 took " & Format(elapsed, "0.000000000") & " seconds", False)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Load_Datafor_Entity: " & ex.StackTrace)
|
||||
End Try
|
||||
'Catch ex As Exception
|
||||
' ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Load_Datafor_Entity: " & ex.StackTrace)
|
||||
'End Try
|
||||
|
||||
End Sub
|
||||
|
||||
Sub Get_RecordCounts_Nodes()
|
||||
Try
|
||||
If NODE_NAVIGATION = True Then
|
||||
'Try
|
||||
If NODE_NAVIGATION = True Then
|
||||
Exit Sub
|
||||
End If
|
||||
Dim selnode As TreeNode = TreeViewMain.SelectedNode
|
||||
@@ -1522,9 +1534,9 @@ Public Class frmConstructor_Main
|
||||
End If
|
||||
|
||||
Next
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Load_Datafor_Entity: " & ex.StackTrace)
|
||||
End Try
|
||||
'Catch ex As Exception
|
||||
' ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, "Load_Datafor_Entity: " & ex.StackTrace)
|
||||
'End Try
|
||||
End Sub
|
||||
Function ReturnAmountofRecords(EntityID As Integer)
|
||||
' Statt eine Table zurückzugeben, können wir die anzahl der Zeilen auch in der Datenbank berechnen,
|
||||
@@ -1718,7 +1730,7 @@ Public Class frmConstructor_Main
|
||||
EBENE2_RECID = CURRENT_PARENT_RECORD_ID
|
||||
End Select
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, ex.StackTrace)
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error in Adding Record", ex.Message, ex.StackTrace)
|
||||
End Try
|
||||
End If
|
||||
End If
|
||||
@@ -1766,7 +1778,7 @@ Public Class frmConstructor_Main
|
||||
tsButtonAdd.Enabled = False
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, ex.StackTrace)
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error tsButtonAdd", ex.Message, ex.StackTrace)
|
||||
Finally
|
||||
Me.Cursor = Cursors.Default
|
||||
End Try
|
||||
@@ -1933,7 +1945,7 @@ Public Class frmConstructor_Main
|
||||
End If
|
||||
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, ex.StackTrace)
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error Saving Record", ex.Message, ex.StackTrace)
|
||||
Return False
|
||||
End Try
|
||||
|
||||
@@ -2489,7 +2501,7 @@ Public Class frmConstructor_Main
|
||||
End While
|
||||
DTEntity = async.dt
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, ex.StackTrace)
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error Async EntitySQL", ex.Message, ex.StackTrace)
|
||||
End Try
|
||||
|
||||
If LOCK_CONTROLS_BG_LOAD = True Then
|
||||
@@ -2613,7 +2625,7 @@ Public Class frmConstructor_Main
|
||||
Reload_Entity_while_Control_Load()
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error", ex.Message, ex.StackTrace)
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error in Load_Entity_Data", ex.Message, ex.StackTrace)
|
||||
Finally
|
||||
Me.Cursor = Cursors.Default
|
||||
ENTITY_LOADED = True
|
||||
@@ -5901,8 +5913,10 @@ Public Class frmConstructor_Main
|
||||
|
||||
Private Sub AuswertungAnzeigenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles AuswertungAnzeigenToolStripMenuItem.Click
|
||||
Dim frm As New frmDiagrams()
|
||||
Me.Cursor = Cursors.WaitCursor
|
||||
'frm.MdiParent = MAIN_FORM
|
||||
frm.Show()
|
||||
Me.Cursor = Cursors.Default
|
||||
End Sub
|
||||
|
||||
Private Sub SucheAnzeigenToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles docCM_showGridSearch.Click
|
||||
@@ -6678,4 +6692,8 @@ Public Class frmConstructor_Main
|
||||
Private Sub tstxtboxSearchNode_Click(sender As Object, e As EventArgs) Handles tstxtboxSearchNode.Click, tstxtboxSearchNode.Enter
|
||||
tstxtboxSearchNode.Text = ""
|
||||
End Sub
|
||||
|
||||
Private Sub frmConstructor_Main_HandleDestroyed(sender As Object, e As EventArgs) Handles Me.HandleDestroyed
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user