ProductionUiCordonel: - [START] locks display until Cordonel identified (may have changed)
This commit is contained in:
@@ -653,7 +653,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses
|
||||
/// <remarks date="2025-Apr-15" author="Thomas Wiedebusch">
|
||||
/// - Feed with processStateStruct.
|
||||
/// </remarks>
|
||||
protected void StartProcess(ProcessStateStruct processStateStruct)
|
||||
private void StartProcess(ProcessStateStruct processStateStruct)
|
||||
{
|
||||
// deny access if uninitialized
|
||||
if (Processes == null || processStateStruct.ProductionProcess == null)
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace Xylem.Common.Production.ProductionUiCordonel
|
||||
private static readonly Version _version = _assemblyName.Version;
|
||||
private readonly String _strSoftwareNameVersion;
|
||||
private RegisterLDAPUser _registerForm;
|
||||
private Boolean _lockGenesisInfo;
|
||||
|
||||
private Int32 Slot
|
||||
{
|
||||
@@ -447,6 +448,11 @@ namespace Xylem.Common.Production.ProductionUiCordonel
|
||||
PrintSuccessNote();
|
||||
BtnStop_Click(this, null);
|
||||
}
|
||||
// Enable display of Genesis information on new detected
|
||||
if (e.State == ProcessState.ConnectCordonel)
|
||||
{
|
||||
_lockGenesisInfo = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -695,15 +701,18 @@ namespace Xylem.Common.Production.ProductionUiCordonel
|
||||
/// <remarks date="????" author="Roland Drabesch">
|
||||
/// - Initial
|
||||
/// </remarks>
|
||||
/// <remarks date="2024-07-15" author="Thomas Wiedebusch">
|
||||
/// <remarks date="2024-Jul-15" author="Thomas Wiedebusch">
|
||||
/// - Additional info of Cordonel.
|
||||
/// </remarks>
|
||||
/// <remarks date="2025-Jun-18" author="Thomas Wiedebusch">
|
||||
/// - Lock display of OLD Genesis after connect until the Genesis has been detected.
|
||||
/// </remarks>
|
||||
private void UpdateGuiWithProductInfos()
|
||||
{
|
||||
var genesisMeter = _processCtrl?.GetGenesisMeter();
|
||||
_productionRequirements = _processCtrl?.GetProductionRequirements();
|
||||
|
||||
if (genesisMeter == null)
|
||||
if (genesisMeter == null || _lockGenesisInfo)
|
||||
return;
|
||||
|
||||
UpdateContentControl(lblOrderNumberValue,
|
||||
@@ -799,6 +808,8 @@ namespace Xylem.Common.Production.ProductionUiCordonel
|
||||
|
||||
_startTime = DateTimeOffset.UtcNow;
|
||||
_timer?.Start();
|
||||
// Avoid display of genesis info before the detect new meter has been executed
|
||||
_lockGenesisInfo = true;
|
||||
|
||||
// remove last userControl
|
||||
dpSubProcess.Children.Clear();
|
||||
|
||||
Reference in New Issue
Block a user