修改PM界面气源显示问题

This commit is contained in:
hanqiangqiang 2024-06-26 15:20:25 +08:00
parent 340bbaa15d
commit 59804dba94
2 changed files with 12 additions and 1 deletions

View File

@ -6784,7 +6784,7 @@
<Label <Label
Canvas.Left="120" Canvas.Left="120"
Canvas.Top="182" Canvas.Top="182"
Content="NH3" Content="{Binding NH2Name}"
FontSize="10" /> FontSize="10" />
<Label <Label

View File

@ -34,6 +34,9 @@ namespace SicUI.Models.PMs
public bool Mfc5IsInstalled { get; set; } public bool Mfc5IsInstalled { get; set; }
public string ChType { get; set; }
public string NH2Name { get; set; }
#region Enable #region Enable
//维护模式 //维护模式
public bool IsServiceMode => (Status == "Idle" || Status == "Safety" || Status == "VacIdle" || Status == "ProcessIdle" || Status == "Error" || Status == "ServiceIdle") && !IsOnline; 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"); //var serviceMode = QueryDataClient.Instance.Service.GetConfig("System.IsServiceControlMode");
//EnableServiceControl = (bool)serviceMode; //EnableServiceControl = (bool)serviceMode;
this.SetLabels(); this.SetLabels();
GetSC();
}
private void GetSC()
{
Mfc5IsInstalled = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.MFC.Mfc5.IsInstalled"); Mfc5IsInstalled = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.MFC.Mfc5.IsInstalled");
TMAEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.TMAEnable"); 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"); IsNH3Transform = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.NH3Transform");
NH2Name = IsNH3Transform ? "NH2" : "NH3";
mOpacity = TMAEnable ? 1 : 0.2; mOpacity = TMAEnable ? 1 : 0.2;
} }