|
@@ -1,5 +1,4 @@
|
|
|
using Aitex.Core.Common.DeviceData;
|
|
|
-using Aitex.Core.UI.Control;
|
|
|
using MECF.Framework.Common.DataCenter;
|
|
|
using MECF.Framework.Common.Equipment;
|
|
|
using MECF.Framework.Common.OperationCenter;
|
|
@@ -14,7 +13,6 @@ using Venus_Core;
|
|
|
using Venus_MainPages.Unity;
|
|
|
using Venus_MainPages.Views;
|
|
|
using Venus_Themes.CustomControls;
|
|
|
-using Venus_Themes.Unity;
|
|
|
|
|
|
namespace Venus_MainPages.ViewModels
|
|
|
{
|
|
@@ -27,15 +25,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
private bool m_TMIsOFFline = true;
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- //private bool m_PMADoorIsOpen;
|
|
|
- //private bool m_PMBDoorIsOpen;
|
|
|
- //private bool m_PMCDoorIsOpen;
|
|
|
- //private bool m_PMDDoorIsOpen;
|
|
|
- //private bool m_LLADoorIsOpen;
|
|
|
-
|
|
|
-
|
|
|
private bool m_PMAIsInstalled;
|
|
|
private bool m_PMBIsInstalled;
|
|
|
private bool m_PMCIsInstalled;
|
|
@@ -72,6 +61,10 @@ namespace Venus_MainPages.ViewModels
|
|
|
private int m_StepProcess;
|
|
|
private bool m_TMIsHoming;
|
|
|
private PressureType m_PressureType;
|
|
|
+ private TMState m_TMCurrentState;
|
|
|
+ private LLState m_LLACurrentState;
|
|
|
+ private LLState m_LLBCurrentState;
|
|
|
+ private ObservableCollection<PMLeakCheckResult> m_LeakCheckResultList = new ObservableCollection<PMLeakCheckResult>();
|
|
|
|
|
|
|
|
|
#endregion
|
|
@@ -174,45 +167,11 @@ namespace Venus_MainPages.ViewModels
|
|
|
{
|
|
|
get { return m_TMIsOFFline; }
|
|
|
set
|
|
|
- {
|
|
|
- if (m_TMIsOFFline == true && value == false)
|
|
|
- {
|
|
|
- //InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.ControlPressure}");
|
|
|
-
|
|
|
- }
|
|
|
- if (m_TMIsOFFline == false && value == true)
|
|
|
- {
|
|
|
- //InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.AbortControlPressure}");
|
|
|
- }
|
|
|
+ {
|
|
|
SetProperty(ref m_TMIsOFFline, value);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //public bool PMADoorIsOpen
|
|
|
- //{
|
|
|
- // get { return m_PMADoorIsOpen; }
|
|
|
- // set { SetProperty(ref m_PMADoorIsOpen, value); }
|
|
|
- //}
|
|
|
- //public bool PMBDoorIsOpen
|
|
|
- //{
|
|
|
- // get { return m_PMBDoorIsOpen; }
|
|
|
- // set { SetProperty(ref m_PMBDoorIsOpen, value); }
|
|
|
- //}
|
|
|
- //public bool PMCDoorIsOpen
|
|
|
- //{
|
|
|
- // get { return m_PMCDoorIsOpen; }
|
|
|
- // set { SetProperty(ref m_PMCDoorIsOpen, value); }
|
|
|
- //}
|
|
|
- //public bool PMDDoorIsOpen
|
|
|
- //{
|
|
|
- // get { return m_PMDDoorIsOpen; }
|
|
|
- // set { SetProperty(ref m_PMDDoorIsOpen, value); }
|
|
|
- //}
|
|
|
- //public bool LLADoorIsOpen
|
|
|
- //{
|
|
|
- // get { return m_LLADoorIsOpen; }
|
|
|
- // set { SetProperty(ref m_LLADoorIsOpen, value); }
|
|
|
- //}
|
|
|
public Dictionary<string, object> RtDataValues
|
|
|
{
|
|
|
get { return m_RtDataValues; }
|
|
@@ -266,10 +225,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
get { return m_TMOutChamberPressure; }
|
|
|
set
|
|
|
{
|
|
|
- //if (value != m_TMOutChamberPressure)
|
|
|
- //{
|
|
|
- // InvokeClient.Instance.Service.DoOperation($"TM.SetChamberPressure",value);
|
|
|
- //}
|
|
|
SetProperty(ref m_TMOutChamberPressure, value);
|
|
|
}
|
|
|
}
|
|
@@ -288,6 +243,59 @@ namespace Venus_MainPages.ViewModels
|
|
|
get { return m_TMIsHoming; }
|
|
|
set { SetProperty(ref m_TMIsHoming, value); }
|
|
|
}
|
|
|
+ public TMState TMCurrentState
|
|
|
+ {
|
|
|
+ get { return m_TMCurrentState; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (( m_TMCurrentState == TMState.Leakchecking) && value == TMState.Idle)
|
|
|
+ {
|
|
|
+ var AllLeakCheckDa = QueryDataClient.Instance.Service.GetPMLeakCheckResult(m_ModuleCheckedName);
|
|
|
+ if (AllLeakCheckDa != null)
|
|
|
+ {
|
|
|
+ LeakCheckResultList = new ObservableCollection<PMLeakCheckResult>(AllLeakCheckDa);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ SetProperty(ref m_TMCurrentState, value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public LLState LLACurrentState
|
|
|
+ {
|
|
|
+ get { return m_LLACurrentState; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if ((m_LLACurrentState == LLState.LeakCheck) && value == LLState.Idle)
|
|
|
+ {
|
|
|
+ var AllLeakCheckDa = QueryDataClient.Instance.Service.GetPMLeakCheckResult(m_ModuleCheckedName);
|
|
|
+ if (AllLeakCheckDa != null)
|
|
|
+ {
|
|
|
+ LeakCheckResultList = new ObservableCollection<PMLeakCheckResult>(AllLeakCheckDa);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ SetProperty(ref m_LLACurrentState, value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public LLState LLBCurrentState
|
|
|
+ {
|
|
|
+ get { return m_LLBCurrentState; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if ((m_LLBCurrentState == LLState.LeakCheck) && value == LLState.Idle)
|
|
|
+ {
|
|
|
+ var AllLeakCheckDa = QueryDataClient.Instance.Service.GetPMLeakCheckResult(m_ModuleCheckedName);
|
|
|
+ if (AllLeakCheckDa != null)
|
|
|
+ {
|
|
|
+ LeakCheckResultList = new ObservableCollection<PMLeakCheckResult>(AllLeakCheckDa);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ SetProperty(ref m_LLBCurrentState, value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public ObservableCollection<PMLeakCheckResult> LeakCheckResultList
|
|
|
+ {
|
|
|
+ get { return m_LeakCheckResultList; }
|
|
|
+ set { SetProperty(ref m_LeakCheckResultList, value); }
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
#region 命令
|
|
@@ -357,9 +365,9 @@ namespace Venus_MainPages.ViewModels
|
|
|
_ChamberDoorCloseCommand ?? (_ChamberDoorCloseCommand = new DelegateCommand<object>(OnChamberDoorClose));
|
|
|
|
|
|
|
|
|
- private DelegateCommand _SetTMChamberPressureCommand;
|
|
|
- public DelegateCommand SetTMChamberPressureCommand =>
|
|
|
- _SetTMChamberPressureCommand ?? (_SetTMChamberPressureCommand = new DelegateCommand(OnSetTMChamberPressure));
|
|
|
+ //private DelegateCommand _SetTMChamberPressureCommand;
|
|
|
+ //public DelegateCommand SetTMChamberPressureCommand =>
|
|
|
+ // _SetTMChamberPressureCommand ?? (_SetTMChamberPressureCommand = new DelegateCommand(OnSetTMChamberPressure));
|
|
|
|
|
|
private DelegateCommand _OnlineCommand;
|
|
|
public DelegateCommand OnlineCommand =>
|
|
@@ -411,10 +419,10 @@ namespace Venus_MainPages.ViewModels
|
|
|
{
|
|
|
InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.Home");
|
|
|
}
|
|
|
- private void OnRobotHome()
|
|
|
- {
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.RobotHome");
|
|
|
- }
|
|
|
+ //private void OnRobotHome()
|
|
|
+ //{
|
|
|
+ // InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.RobotHome");
|
|
|
+ //}
|
|
|
private void OnVent()
|
|
|
{
|
|
|
InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.{RtOperation.Vent}");
|
|
@@ -467,7 +475,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
}
|
|
|
private void OnDoorUpDown(object obj)
|
|
|
{
|
|
|
- //string[] value=obj.ToString().Split('.');
|
|
|
InvokeClient.Instance.Service.DoOperation(obj.ToString());
|
|
|
}
|
|
|
private void OnChamberDoorOpen(object obj)
|
|
@@ -478,12 +485,12 @@ namespace Venus_MainPages.ViewModels
|
|
|
{
|
|
|
InvokeClient.Instance.Service.DoOperation($"{obj?.ToString()}.SlitDoor.Close");
|
|
|
}
|
|
|
- private void OnSetTMChamberPressure()
|
|
|
- {
|
|
|
- //InvokeClient.Instance.Service.DoOperation($"TM.SetChamberPressure", TMChamberPressureSetPoint);
|
|
|
- //TMOutChamberPressure = TMChamberPressureSetPoint;
|
|
|
- ////InvokeClient.Instance.Service.DoOperation("System.SetConfig", "TM.ControlPressureSetPoint", TMChamberPressureSetPoint.ToString());
|
|
|
- }
|
|
|
+ //private void OnSetTMChamberPressure()
|
|
|
+ //{
|
|
|
+ // //InvokeClient.Instance.Service.DoOperation($"TM.SetChamberPressure", TMChamberPressureSetPoint);
|
|
|
+ // //TMOutChamberPressure = TMChamberPressureSetPoint;
|
|
|
+ // ////InvokeClient.Instance.Service.DoOperation("System.SetConfig", "TM.ControlPressureSetPoint", TMChamberPressureSetPoint.ToString());
|
|
|
+ //}
|
|
|
private void OnOnline()
|
|
|
{
|
|
|
InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.{RtOperation.Online}");
|
|
@@ -524,7 +531,10 @@ namespace Venus_MainPages.ViewModels
|
|
|
LLBVentValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, "TM.LLBVentValve.IsOpen");
|
|
|
IsOFFline= !CommonFunction.GetValue<bool>(RtDataValues, $"{m_ModuleCheckedName}.IsOnline");
|
|
|
TMIsOFFline= !CommonFunction.GetValue<bool>(RtDataValues, $"TM.IsOnline");
|
|
|
- TMIsHoming= (TMState)(Enum.Parse(typeof(TMState), RtDataValues[$"TM.FsmState"].ToString()))== TMState.Initializing || (TMState)(Enum.Parse(typeof(TMState), RtDataValues[$"TM.FsmState"].ToString())) == TMState.InitializingRB;
|
|
|
+ TMCurrentState = (TMState)(Enum.Parse(typeof(TMState), RtDataValues[$"TM.FsmState"].ToString()));
|
|
|
+ LLACurrentState = (LLState)(Enum.Parse(typeof(LLState), RtDataValues[$"LLA.FsmState"].ToString()));
|
|
|
+ LLBCurrentState = (LLState)(Enum.Parse(typeof(LLState), RtDataValues[$"LLB.FsmState"].ToString()));
|
|
|
+ TMIsHoming = TMCurrentState == TMState.Initializing || (TMState)(Enum.Parse(typeof(TMState), RtDataValues[$"TM.FsmState"].ToString())) == TMState.InitializingRB;
|
|
|
if (m_TMOperationView != null)
|
|
|
{
|
|
|
m_TMOperationView.stepBar.Progress= CommonFunction.GetValue<int>(RtDataValues, "TM.Home.StepNo");
|
|
@@ -579,22 +589,13 @@ namespace Venus_MainPages.ViewModels
|
|
|
m_RtDataKeys.Add("LLB.IsOnline");
|
|
|
m_RtDataKeys.Add("TM.IsOnline");
|
|
|
m_RtDataKeys.Add("TM.FsmState");
|
|
|
+ m_RtDataKeys.Add("LLA.FsmState");
|
|
|
+ m_RtDataKeys.Add("LLB.FsmState");
|
|
|
+
|
|
|
m_RtDataKeys.Add("TM.Home.StepNo");
|
|
|
|
|
|
|
|
|
}
|
|
|
- //private void UIEvents_PMDoorRaiseChangedEvent(DoorPara obj)
|
|
|
- //{
|
|
|
- // InvokeClient.Instance.Service.DoOperation($"{obj?.ModuleName}.SlitDoor.{obj?.IsOpen}");
|
|
|
- //}
|
|
|
- //private void UIEvents_LLTDoorRaiseChangedEvent(DoorPara obj)
|
|
|
- //{
|
|
|
- // InvokeClient.Instance.Service.DoOperation($"TM.{obj.ModuleName}TSlitDoor.{obj?.IsOpen}");
|
|
|
- //}
|
|
|
- //private void UIEvents_LLEDoorRaiseChangedEvent(DoorPara obj)
|
|
|
- //{
|
|
|
- // InvokeClient.Instance.Service.DoOperation($"TM.{obj.ModuleName}ESlitDoor.{obj?.IsOpen}");
|
|
|
- //}
|
|
|
#endregion
|
|
|
}
|
|
|
}
|