|
@@ -1,4 +1,5 @@
|
|
|
-using Prism.Commands;
|
|
|
+using MECF.Framework.Common.OperationCenter;
|
|
|
+using Prism.Commands;
|
|
|
using Prism.Mvvm;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
@@ -15,6 +16,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
private bool m_PumpValveIsOpen;
|
|
|
private bool m_VentValveIsOpen;
|
|
|
private bool m_IsATM;
|
|
|
+ private string ModuleName="PMA";
|
|
|
#endregion
|
|
|
|
|
|
#region 属性
|
|
@@ -45,17 +47,17 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
|
|
|
#region 命令
|
|
|
-
|
|
|
|
|
|
-
|
|
|
|
|
|
- //private DelegateCommand _PurgeCommand;
|
|
|
- //public DelegateCommand PurgeCommand =>
|
|
|
- // _PurgeCommand ?? (_PurgeCommand = new DelegateCommand(OnPurge));
|
|
|
|
|
|
- //private DelegateCommand _VentCommand;
|
|
|
- //public DelegateCommand VentCommand =>
|
|
|
- // _VentCommand ?? (_VentCommand = new DelegateCommand(OnVent));
|
|
|
+
|
|
|
+ private DelegateCommand _PurgeCommand;
|
|
|
+ public DelegateCommand PurgeCommand =>
|
|
|
+ _PurgeCommand ?? (_PurgeCommand = new DelegateCommand(OnPurge));
|
|
|
+
|
|
|
+ private DelegateCommand _VentCommand;
|
|
|
+ public DelegateCommand VentCommand =>
|
|
|
+ _VentCommand ?? (_VentCommand = new DelegateCommand(OnVent));
|
|
|
|
|
|
private DelegateCommand _PumpCommand;
|
|
|
public DelegateCommand PumpCommand =>
|
|
@@ -80,7 +82,33 @@ namespace Venus_MainPages.ViewModels
|
|
|
//PumpValveIsOpen = true;
|
|
|
IsATM = !IsATM;
|
|
|
}
|
|
|
+ private void OnPurge()
|
|
|
+ {
|
|
|
+
|
|
|
+ //if (RtDataValues[$"{ModuleName}.FsmState"].ToString() == "Purge")
|
|
|
+ //{
|
|
|
+ // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.StopPurge");
|
|
|
+ //}
|
|
|
+ //else
|
|
|
+ //{
|
|
|
+ // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Purge");
|
|
|
+ //}
|
|
|
+ }
|
|
|
|
|
|
+ private void OnVent()
|
|
|
+ {
|
|
|
+
|
|
|
+ //if (RtDataValues[$"{ModuleName}.FsmState"].ToString() == "Vent")
|
|
|
+ //{
|
|
|
+ // //InvokeClient.Instance.Service.DoOperation($"{ModuleName}.StopPurge");
|
|
|
+ //}
|
|
|
+ //else
|
|
|
+ //{
|
|
|
+ // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Vent");
|
|
|
+ //}
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.VentLoadLock");
|
|
|
+
|
|
|
+ }
|
|
|
#endregion
|
|
|
}
|
|
|
}
|