修改PM界面气源显示问题
This commit is contained in:
parent
340bbaa15d
commit
59804dba94
|
@ -6784,7 +6784,7 @@
|
|||
<Label
|
||||
Canvas.Left="120"
|
||||
Canvas.Top="182"
|
||||
Content="NH3"
|
||||
Content="{Binding NH2Name}"
|
||||
FontSize="10" />
|
||||
|
||||
<Label
|
||||
|
|
|
@ -34,6 +34,9 @@ namespace SicUI.Models.PMs
|
|||
|
||||
public bool Mfc5IsInstalled { get; set; }
|
||||
|
||||
public string ChType { get; set; }
|
||||
public string NH2Name { get; set; }
|
||||
|
||||
#region Enable
|
||||
//维护模式
|
||||
public bool IsServiceMode => (Status == "Idle" || Status == "Safety" || Status == "VacIdle" || Status == "ProcessIdle" || Status == "Error" || Status == "ServiceIdle") && !IsOnline;
|
||||
|
@ -1558,10 +1561,18 @@ namespace SicUI.Models.PMs
|
|||
//var serviceMode = QueryDataClient.Instance.Service.GetConfig("System.IsServiceControlMode");
|
||||
//EnableServiceControl = (bool)serviceMode;
|
||||
this.SetLabels();
|
||||
GetSC();
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void GetSC()
|
||||
{
|
||||
Mfc5IsInstalled = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.MFC.Mfc5.IsInstalled");
|
||||
TMAEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.TMAEnable");
|
||||
ChType = (string)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.ChType");
|
||||
IsNH3Transform = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.NH3Transform");
|
||||
NH2Name = IsNH3Transform ? "NH2" : "NH3";
|
||||
mOpacity = TMAEnable ? 1 : 0.2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue