Merge branch 'master' into Feature_LookupGrid_DependingControls
This commit is contained in:
@@ -711,9 +711,7 @@ Public Class frmMain
|
|||||||
If IsNumeric(_tag) Then
|
If IsNumeric(_tag) Then
|
||||||
If CURRENT_CLICKED_PROFILE_ID <> _tag Then
|
If CURRENT_CLICKED_PROFILE_ID <> _tag Then
|
||||||
OverviewOrDEtail = "DETAIL"
|
OverviewOrDEtail = "DETAIL"
|
||||||
|
|
||||||
CURRENT_CLICKED_PROFILE_ID = _tag
|
CURRENT_CLICKED_PROFILE_ID = _tag
|
||||||
LOGGER.Debug("CURRENT_CLICKED_PROFILE_ID set to [{0}]", CURRENT_CLICKED_PROFILE_ID)
|
|
||||||
CURRENT_CLICKED_PROFILE_TITLE = e.Link.Item.Caption
|
CURRENT_CLICKED_PROFILE_TITLE = e.Link.Item.Caption
|
||||||
GRID_LOAD_TYPE = "PROFILE#" & CURRENT_CLICKED_PROFILE_ID.ToString
|
GRID_LOAD_TYPE = "PROFILE#" & CURRENT_CLICKED_PROFILE_ID.ToString
|
||||||
TimerRefresh.Stop()
|
TimerRefresh.Stop()
|
||||||
@@ -1119,6 +1117,7 @@ Public Class frmMain
|
|||||||
' Catch ex As Exception
|
' Catch ex As Exception
|
||||||
' LOGGER.Warn($"Unexpected Error in freefileforUser [{oUpdate}] - {ex.Message}")
|
' LOGGER.Warn($"Unexpected Error in freefileforUser [{oUpdate}] - {ex.Message}")
|
||||||
' End Try
|
' End Try
|
||||||
|
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
If bwSync.IsBusy Then
|
If bwSync.IsBusy Then
|
||||||
@@ -1127,14 +1126,16 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
' SaveGridLayout()
|
||||||
|
'bwSync.ReportProgress(10)
|
||||||
LoadNavBar()
|
LoadNavBar()
|
||||||
|
'bwSync.ReportProgress(60)
|
||||||
Dim oStopWatch As New RefreshHelper.SW("Decide_Load")
|
Dim oStopWatch As New RefreshHelper.SW("Decide_Load")
|
||||||
Await Decide_Load(False)
|
Await Decide_Load(False)
|
||||||
oStopWatch.Done()
|
oStopWatch.Done()
|
||||||
|
'bwSync.ReportProgress(95)
|
||||||
|
|
||||||
If GridControl_Docs.Visible = True And FormOpenClose = False Then
|
If GridControl_Docs.Visible = True And FormOpenClose = False Then RefreshHelper.LoadViewInfo()
|
||||||
RefreshHelper.LoadViewInfo()
|
|
||||||
End If
|
|
||||||
|
|
||||||
Handling_DEBUG_USER()
|
Handling_DEBUG_USER()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -1142,9 +1143,13 @@ Public Class frmMain
|
|||||||
End Try
|
End Try
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
LOGGER.Error(ex)
|
LOGGER.Error(ex)
|
||||||
Finally
|
|
||||||
TimerRefresh_running = False
|
|
||||||
End Try
|
End Try
|
||||||
|
TimerRefresh_running = False
|
||||||
|
'BarEditItem1.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
|
||||||
|
'' call this method to start your asynchronous Task.
|
||||||
|
'bwSync.RunWorkerAsync()
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub NotifyIcon1_Click(sender As System.Object, e As EventArgs) Handles NotifyIcon1.Click
|
Private Sub NotifyIcon1_Click(sender As System.Object, e As EventArgs) Handles NotifyIcon1.Click
|
||||||
@@ -1168,12 +1173,7 @@ Public Class frmMain
|
|||||||
TimerRefresh.Stop()
|
TimerRefresh.Stop()
|
||||||
|
|
||||||
If GRID_LOAD_TYPE = "OVERVIEW" Then
|
If GRID_LOAD_TYPE = "OVERVIEW" Then
|
||||||
For Each orow As DataRow In CURRENT_DT_PROFILES.Rows
|
|
||||||
If orow.Item("GUID") = CURRENT_CLICKED_PROFILE_ID Then
|
|
||||||
CURRENT_CLICKED_PROFILE_TITLE = orow.Item("TITLE")
|
|
||||||
Exit For
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
Await Load_Grid_Overview(pIsFormLoad, ForceReload)
|
Await Load_Grid_Overview(pIsFormLoad, ForceReload)
|
||||||
ElseIf GRID_LOAD_TYPE.StartsWith("PROFILE#") Then
|
ElseIf GRID_LOAD_TYPE.StartsWith("PROFILE#") Then
|
||||||
Await Load_single_Profile(ForceReload)
|
Await Load_single_Profile(ForceReload)
|
||||||
@@ -1463,8 +1463,11 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
If Len(oHitProfilID) > 0 Then
|
If Len(oHitProfilID) > 0 Then
|
||||||
If oHitProfilID > 0 Then
|
If oHitProfilID > 0 Then
|
||||||
CURRENT_CLICKED_PROFILE_ID = oHitProfilID
|
If oHitProfilID <> CURRENT_CLICKED_PROFILE_ID Then
|
||||||
LOGGER.Debug("CURRENT_CLICKED_PROFILE_ID set to [{0}]", CURRENT_CLICKED_PROFILE_ID)
|
LOGGER.Debug($"Item_Scope: oHitProfilID {oHitProfilID} <> CURRENT_CLICKED_PROFILE_ID {CURRENT_CLICKED_PROFILE_ID} ")
|
||||||
|
CURRENT_CLICKED_PROFILE_ID = oHitProfilID
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -1476,7 +1479,7 @@ Public Class frmMain
|
|||||||
CURRENT_JUMP_DOC_GUID = 0
|
CURRENT_JUMP_DOC_GUID = 0
|
||||||
CURRENT_DOC_GUID = 0
|
CURRENT_DOC_GUID = 0
|
||||||
CURRENT_ProfilGUID = CURRENT_CLICKED_PROFILE_ID
|
CURRENT_ProfilGUID = CURRENT_CLICKED_PROFILE_ID
|
||||||
LOGGER.Debug($"Item_Scope: hitInfo.InGroupRow...oHitProfilID [{CURRENT_CLICKED_PROFILE_ID}]")
|
LOGGER.Debug($"Item_Scope: hitInfo.InGroupRow...CURRENT_CLICKED_PROFILE_ID [{CURRENT_CLICKED_PROFILE_ID}]")
|
||||||
Load_Profil_from_Grid(CURRENT_CLICKED_PROFILE_ID)
|
Load_Profil_from_Grid(CURRENT_CLICKED_PROFILE_ID)
|
||||||
ElseIf hitInfo.InDataRow Then
|
ElseIf hitInfo.InDataRow Then
|
||||||
LOGGER.Debug($"Item_Scope: hitInfo.InDataRow...")
|
LOGGER.Debug($"Item_Scope: hitInfo.InDataRow...")
|
||||||
@@ -2126,14 +2129,25 @@ Public Class frmMain
|
|||||||
DXMouseEventArgs.GetMouseArgs(e).Handled = True
|
DXMouseEventArgs.GetMouseArgs(e).Handled = True
|
||||||
GridViewItem_Clicked = "GROUP"
|
GridViewItem_Clicked = "GROUP"
|
||||||
CURRENT_CLICKED_PROFILE_ID = GridView_Docs.GetRowCellValue(GridView_Docs.GetDataRowHandleByGroupRowHandle(hi.RowHandle), GridView_Docs.Columns("PROFILE_ID"))
|
CURRENT_CLICKED_PROFILE_ID = GridView_Docs.GetRowCellValue(GridView_Docs.GetDataRowHandleByGroupRowHandle(hi.RowHandle), GridView_Docs.Columns("PROFILE_ID"))
|
||||||
LOGGER.Debug("CURRENT_CLICKED_PROFILE_ID set to [{0}]", CURRENT_CLICKED_PROFILE_ID)
|
|
||||||
ElseIf hi.InDataRow Then
|
ElseIf hi.InDataRow Then
|
||||||
GridViewItem_Clicked = "ROW"
|
GridViewItem_Clicked = "ROW"
|
||||||
CURRENT_CLICKED_PROFILE_ID = GridView_Docs.GetRowCellValue(GridView_Docs.GetDataRowHandleByGroupRowHandle(hi.RowHandle), GridView_Docs.Columns("PROFILE_ID"))
|
CURRENT_CLICKED_PROFILE_ID = GridView_Docs.GetRowCellValue(GridView_Docs.GetDataRowHandleByGroupRowHandle(hi.RowHandle), GridView_Docs.Columns("PROFILE_ID"))
|
||||||
LOGGER.Debug("CURRENT_CLICKED_PROFILE_ID set to [{0}]", CURRENT_CLICKED_PROFILE_ID)
|
|
||||||
Else
|
Else
|
||||||
GridViewItem_Clicked = Nothing
|
GridViewItem_Clicked = Nothing
|
||||||
End If
|
End If
|
||||||
|
If Not IsNothing(CURRENT_CLICKED_PROFILE_ID) Then
|
||||||
|
If IsNumeric(CURRENT_CLICKED_PROFILE_ID) Then
|
||||||
|
If CURRENT_CLICKED_PROFILE_ID > 0 Then
|
||||||
|
For Each orow As DataRow In CURRENT_DT_PROFILES.Rows
|
||||||
|
If orow.Item("GUID") = CURRENT_CLICKED_PROFILE_ID Then
|
||||||
|
CURRENT_CLICKED_PROFILE_TITLE = orow.Item("TITLE")
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub GridView_Docs_ColumnWidthChanged(sender As Object, e As Views.Base.ColumnEventArgs) Handles GridView_Docs.ColumnWidthChanged
|
Private Sub GridView_Docs_ColumnWidthChanged(sender As Object, e As Views.Base.ColumnEventArgs) Handles GridView_Docs.ColumnWidthChanged
|
||||||
|
|||||||
Reference in New Issue
Block a user