SystemFacilitiesViewModel.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. using Aitex.Core.RT.DataCenter;
  2. using Aitex.Core.RT.Log;
  3. using Aitex.Core.UI.Dialog;
  4. using Aitex.Core.UI.MVVM;
  5. using Aitex.Core.Util;
  6. using Aitex.Core.Utilities;
  7. using MECF.Framework.Common.CommonData;
  8. using MECF.Framework.Common.DataCenter;
  9. using MECF.Framework.Common.Equipment;
  10. using MECF.Framework.Common.OperationCenter;
  11. using MECF.Framework.Common.RecipeCenter;
  12. using MECF.Framework.Common.Utilities;
  13. using PunkHPX8_Core;
  14. using PunkHPX8_MainPages.PMs;
  15. using PunkHPX8_Themes.UserControls;
  16. using Prism.Mvvm;
  17. using System;
  18. using System.Collections.Generic;
  19. using System.Collections.ObjectModel;
  20. using System.ComponentModel;
  21. using System.Linq;
  22. using System.Reflection;
  23. using System.Text;
  24. using System.Threading.Tasks;
  25. using System.Timers;
  26. using System.Windows;
  27. using System.Windows.Input;
  28. using System.Windows.Threading;
  29. namespace PunkHPX8_MainPages.ViewModels
  30. {
  31. public class SystemFacilitiesViewModel : BindableBase
  32. {
  33. #region 常量
  34. private const string FACILITIES = "Facilities";
  35. private const string FACILITIES_DATA = "Facilities_Data";
  36. private const string N2_ENABLE = "N2Enable";
  37. private const string CDA_ENABLE = "CDAEnable";
  38. private const string EXTERNAL_CDA_ENABLE = "ExternalCDAEnable";
  39. private const string DI_WATER_ENABLE = "DiWaterEnable";
  40. private const string HOUSE_CHILLED_WATER_ENABLE="HouseChilledWaterEnable";
  41. private const string VPW_DI_ENABLE = "VpwDiEnable";
  42. private const string DI_REPLEN_ENABLE = "DiReplenEnable";
  43. private const string DI_FILL_ENABLE = "DiFillEnable";
  44. private const string SRD_DI_ENABLE = "SrdDiwEnable";
  45. private const string SAMPLE_STATION_ENABLE = "SampleStationEnable";
  46. private const string FILTER_PURGE_ENABLE = "FilterPurgeEnable";
  47. private const string N2_BLANKET_PRESSURE_VALUE = "N2BlanketPressure";
  48. private const string N2_OVERFLOW_PRESSURE_VALUE = "N2OverflowPressure";
  49. private const string CLAMSHELL_CYLINDER_PRESSURE_VALUE = "ClamshellCylinderPressure";
  50. private const string TILT_CYLINDER_PRESSURE_VALUE = "TiltCylinderPressure";
  51. private const string FFU_PLATECELL_PRESSURE_ERROR = "FFUPlateCellPressureError";
  52. private const string FFU_CORRIDOR_PRESSURE_ERROR = "FFUCorridorPressureError";
  53. private const string FFU_PLATECELL_PRESSURE_PRESSURE = "FFUPlateCellPressure";
  54. private const string FFU_CORRIDOR_PRESSURE = "FFUCorridorPressure";
  55. #endregion
  56. #region 内部变量
  57. private CommonLimitData _nitrogen1AData = new CommonLimitData();
  58. private CommonLimitData _nitrogen1BData = new CommonLimitData();
  59. private CommonLimitData _nitrogen2AData = new CommonLimitData();
  60. private CommonLimitData _nitrogen2BData = new CommonLimitData();
  61. private CommonLimitData _cda1Data = new CommonLimitData();
  62. private CommonLimitData _cda2Data = new CommonLimitData();
  63. private CommonLimitData _extendCdaData = new CommonLimitData();
  64. private CommonLimitData _systemVacuumData = new CommonLimitData();
  65. private CommonLimitData _systemExhaust1Data = new CommonLimitData();
  66. private CommonLimitData _systemExhaust2Data = new CommonLimitData();
  67. private CommonLimitData _diWaterPressureData = new CommonLimitData();
  68. private CommonLimitData _diWaterReturnFlowData = new CommonLimitData();
  69. private CommonLimitData _houseChilledWaterFlowData = new CommonLimitData();
  70. private bool _nitrogenOn;
  71. private bool _cdaOn;
  72. private bool _extendCdaOn;
  73. private bool _diWaterPressureOn;
  74. private bool _houseChilledWaterFlowOn;
  75. private bool _vpwDiWEnable;
  76. private bool _diFillEnable;
  77. private bool _diReplenEnable;
  78. private bool _srdDiWEnable;
  79. private bool _sampleStationEnable;
  80. private bool _filterPurgeEnable;
  81. private bool _plateCellFFUPressureError;
  82. private bool _corridorFFUPressureError;
  83. private double _n2BlanketPressure;
  84. private double _n2OverflowPressure;
  85. private double _clamshellCylinderPressure;
  86. private double _tiltCylinderPressure;
  87. private double _plateCellFFUPressure;
  88. private double _corridorFFUPressure;
  89. /// <summary>
  90. /// 定时器
  91. /// </summary>
  92. DispatcherTimer _timer;
  93. /// <summary>
  94. /// 查询后台数据集合
  95. /// </summary>
  96. private List<string> _rtDataKeys = new List<string>();
  97. /// <summary>
  98. /// rt查询key数值字典
  99. /// </summary>
  100. private Dictionary<string, object> _rtDataValueDic = new Dictionary<string, object>();
  101. #region Home
  102. #endregion
  103. #endregion
  104. #region 属性
  105. public CommonLimitData Nitrogen1AData{ get { return _nitrogen1AData; } set { SetProperty(ref _nitrogen1AData, value); } }
  106. public CommonLimitData Nitrogen1BData { get { return _nitrogen1BData; } set { SetProperty(ref _nitrogen1BData, value); }}
  107. public CommonLimitData Nitrogen2AData { get { return _nitrogen2AData; } set { SetProperty(ref _nitrogen2AData, value); } }
  108. public CommonLimitData Nitrogen2BData { get { return _nitrogen2BData; } set { SetProperty(ref _nitrogen2BData, value); } }
  109. public CommonLimitData SystemVacuumData { get { return _systemVacuumData; } set { SetProperty(ref _systemVacuumData, value); } }
  110. public CommonLimitData Cda1Data { get { return _cda1Data; }set { SetProperty(ref _cda1Data, value); } }
  111. public CommonLimitData Cda2Data{ get { return _cda2Data; } set { SetProperty(ref _cda2Data, value); }}
  112. public CommonLimitData ExtendCdaData{ get { return _extendCdaData; } set { SetProperty(ref _extendCdaData, value); }}
  113. public CommonLimitData SystemExhaust1Data { get { return _systemExhaust1Data; } set { SetProperty(ref _systemExhaust1Data, value); } }
  114. public CommonLimitData SystemExhaust2Data { get { return _systemExhaust2Data; } set { SetProperty(ref _systemExhaust2Data, value); } }
  115. public CommonLimitData DiWaterPressureData { get { return _diWaterPressureData; } set { SetProperty(ref _diWaterPressureData, value); }}
  116. public CommonLimitData DiWaterReturnFlowData { get { return _diWaterReturnFlowData; } set { SetProperty(ref _diWaterReturnFlowData, value); }}
  117. public CommonLimitData HouseChilledWaterFlowData{ get { return _houseChilledWaterFlowData; } set { SetProperty(ref _houseChilledWaterFlowData, value); }}
  118. public bool NitrogenOn { get { return _nitrogenOn; } set { SetProperty(ref _nitrogenOn, value); }}
  119. public bool CdaOn { get { return _cdaOn; } set { SetProperty(ref _cdaOn, value); } }
  120. public bool ExtendCdaOn { get { return _extendCdaOn; } set { SetProperty(ref _extendCdaOn, value); } }
  121. public bool DiWaterPressureOn{ get { return _diWaterPressureOn; } set { SetProperty(ref _diWaterPressureOn, value); } }
  122. public bool HouseChilledWaterFlowOn { get { return _houseChilledWaterFlowOn; } set { SetProperty(ref _houseChilledWaterFlowOn, value); } }
  123. public bool DiFillEnable{ get { return _diFillEnable; } set { SetProperty(ref _diFillEnable, value); }}
  124. public bool DiReplenEnable{get { return _diReplenEnable; }set { SetProperty(ref _diReplenEnable, value); } }
  125. public bool SrdDiWEnable { get { return _srdDiWEnable; } set { SetProperty(ref _srdDiWEnable, value); } }
  126. public bool SampleStationEnable { get { return _sampleStationEnable; } set { SetProperty(ref _sampleStationEnable, value); } }
  127. public bool FilterPurgeEnable{ get { return _filterPurgeEnable; } set { SetProperty(ref _filterPurgeEnable, value);} }
  128. public double N2BlanketPressure { get { return _n2BlanketPressure; } set { SetProperty(ref _n2BlanketPressure, value); } }
  129. public double N2OverflowPressure { get { return _n2OverflowPressure; } set { SetProperty(ref _n2OverflowPressure, value); } }
  130. public double ClamshellCylinderPressure { get { return _clamshellCylinderPressure; } set { SetProperty(ref _clamshellCylinderPressure, value); } }
  131. public double TiltCylinderPressure { get { return _tiltCylinderPressure; } set { SetProperty(ref _tiltCylinderPressure, value); } }
  132. #region FFU
  133. public bool PlateCellFFUPressureError { get { return _plateCellFFUPressureError; } set { SetProperty(ref _plateCellFFUPressureError, value); } }
  134. public bool CorridorFFUPressureError { get { return _corridorFFUPressureError; } set { SetProperty(ref _corridorFFUPressureError, value); } }
  135. public double PlateCellFFUPressure { get { return _plateCellFFUPressure; } set { SetProperty(ref _plateCellFFUPressure, value); } }
  136. public double CorridorFFUPressure { get { return _corridorFFUPressure; } set { SetProperty(ref _corridorFFUPressure, value); } }
  137. #endregion
  138. #region Other Module
  139. public bool VpwDiWEnable { get { return _vpwDiWEnable; } set { SetProperty(ref _vpwDiWEnable, value); } }
  140. #endregion
  141. #endregion
  142. #region 指令
  143. public ICommand NitrogenOnCommand{get;private set;}
  144. public ICommand NitrogenOffCommand{ get;private set;}
  145. public ICommand CDAOnCommand { get; private set; }
  146. public ICommand CDAOffCommand { get; private set; }
  147. public ICommand ExternalCDAOnCommand { get;private set; }
  148. public ICommand ExternalCDAOffCommand { get;private set; }
  149. public ICommand DiWaterPressureOnCommand { get; private set; }
  150. public ICommand DiWaterPressureOffCommand { get; private set; }
  151. public ICommand HouseChilledWaferFlowOnCommand { get; private set; }
  152. public ICommand HouseChilledWaferFlowOffCommand { get; private set; }
  153. public ICommand VpwDiwEnableCommand { get; private set; }
  154. public ICommand VpwDiwDisableCommand { get; private set; }
  155. public ICommand DiwFillEnableCommand { get; private set; }
  156. public ICommand DiwFillDisableCommand { get; private set; }
  157. public ICommand DiwReplenEnableCommand { get; private set; }
  158. public ICommand DiwReplenDisableCommand { get; private set; }
  159. public ICommand SrdDiwEnableCommand { get; private set; }
  160. public ICommand SrdDiwDisableCommand { get; private set; }
  161. public ICommand SampleStationEnableCommand { get; private set; }
  162. public ICommand SampleStationDisableCommand { get; private set; }
  163. public ICommand FilterPurgeEnableCommand { get; private set; }
  164. public ICommand FilterPurgeDisableCommand { get; private set; }
  165. #endregion
  166. /// <summary>
  167. /// 构造函数
  168. /// </summary>
  169. public SystemFacilitiesViewModel()
  170. {
  171. NitrogenOnCommand = new DelegateCommand<object>(NitrogenOnAction);
  172. NitrogenOffCommand = new DelegateCommand<object>(NitrogenOffAction);
  173. CDAOnCommand=new DelegateCommand<object>(CDAOnAction);
  174. CDAOffCommand=new DelegateCommand<object>(CDAOffAction);
  175. ExternalCDAOnCommand = new DelegateCommand<object>(ExternalCDAOnAction);
  176. ExternalCDAOffCommand = new DelegateCommand<object>(ExternalCDAOffAction);
  177. DiWaterPressureOnCommand = new DelegateCommand<object>(DiWaterOnAction);
  178. DiWaterPressureOffCommand = new DelegateCommand<object>(DiWaterOffAction);
  179. HouseChilledWaferFlowOnCommand = new DelegateCommand<object>(HouseChilledWaterOnAction);
  180. HouseChilledWaferFlowOffCommand = new DelegateCommand<object>(HouseChilledWaterOffAction);
  181. VpwDiwEnableCommand = new DelegateCommand<object>(VpwDiwEnableAction);
  182. VpwDiwDisableCommand = new DelegateCommand<object>(VpwDiwDisableAction);
  183. DiwFillEnableCommand = new DelegateCommand<object>(DiwFillEnableAction);
  184. DiwFillDisableCommand=new DelegateCommand<object>(DiwFillDisableAction);
  185. DiwReplenEnableCommand = new DelegateCommand<object>(DiwReplenEnableAction);
  186. DiwReplenDisableCommand = new DelegateCommand<object>(DiwReplenDisableAction);
  187. SrdDiwEnableCommand = new DelegateCommand<object>(SrdDiEnableAction);
  188. SrdDiwDisableCommand = new DelegateCommand<object>(SrdDiDisableAction);
  189. SampleStationEnableCommand = new DelegateCommand<object>(SampleStationEnableAction);
  190. SampleStationDisableCommand = new DelegateCommand<object>(SampleStationDisableAction);
  191. FilterPurgeEnableCommand = new DelegateCommand<object>(FilterPurgeEnableAction);
  192. FilterPurgeDisableCommand = new DelegateCommand<object>(FilterPurgeDisableAction);
  193. }
  194. /// <summary>
  195. /// 加载数据
  196. /// </summary>
  197. public void LoadData(string systemName)
  198. {
  199. InitialKeys();
  200. if (_timer == null)
  201. {
  202. _timer = new DispatcherTimer();
  203. _timer.Interval = TimeSpan.FromMilliseconds(200) ;
  204. _timer.Tick += Timer_Tick; ;
  205. }
  206. _timer.Start();
  207. }
  208. /// <summary>
  209. /// 定时器执行
  210. /// </summary>
  211. /// <param name="sender"></param>
  212. /// <param name="e"></param>
  213. /// <exception cref="NotImplementedException"></exception>
  214. private void Timer_Tick(object sender, EventArgs e)
  215. {
  216. if (_rtDataKeys.Count != 0)
  217. {
  218. _rtDataValueDic = QueryDataClient.Instance.Service.PollData(_rtDataKeys);
  219. if (_rtDataValueDic != null)
  220. {
  221. List<CommonLimitData> facilitiesDatas = CommonFunction.GetValue<List<CommonLimitData>>(_rtDataValueDic, $"System.{FACILITIES}.{FACILITIES_DATA}");
  222. if (facilitiesDatas != null)
  223. {
  224. Cda1Data = facilitiesDatas[0];
  225. Cda2Data = facilitiesDatas[1];
  226. Nitrogen1AData = facilitiesDatas[2];
  227. Nitrogen1BData = facilitiesDatas[3];
  228. Nitrogen2AData = facilitiesDatas[4];
  229. Nitrogen2BData = facilitiesDatas[5];
  230. DiWaterPressureData = facilitiesDatas[6];
  231. HouseChilledWaterFlowData = facilitiesDatas[7];
  232. ExtendCdaData = facilitiesDatas[8];
  233. SystemVacuumData = facilitiesDatas[9];
  234. SystemExhaust1Data = facilitiesDatas[10];
  235. SystemExhaust2Data = facilitiesDatas[11];
  236. DiWaterReturnFlowData = facilitiesDatas[12];
  237. }
  238. NitrogenOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{N2_ENABLE}");
  239. CdaOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{CDA_ENABLE}");
  240. ExtendCdaOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{EXTERNAL_CDA_ENABLE}");
  241. DiWaterPressureOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{DI_WATER_ENABLE}");
  242. HouseChilledWaterFlowOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{HOUSE_CHILLED_WATER_ENABLE}");
  243. VpwDiWEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"VPWMain1.DiwEnable");
  244. DiFillEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{DI_FILL_ENABLE}");
  245. DiReplenEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{DI_REPLEN_ENABLE}");
  246. SrdDiWEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{SRD_DI_ENABLE}");
  247. SampleStationEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{SAMPLE_STATION_ENABLE}");
  248. FilterPurgeEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{FILTER_PURGE_ENABLE}");
  249. N2BlanketPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{N2_BLANKET_PRESSURE_VALUE}");
  250. N2OverflowPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{N2_OVERFLOW_PRESSURE_VALUE}");
  251. ClamshellCylinderPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{CLAMSHELL_CYLINDER_PRESSURE_VALUE}");
  252. TiltCylinderPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{TILT_CYLINDER_PRESSURE_VALUE}");
  253. PlateCellFFUPressureError = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_ERROR}");
  254. CorridorFFUPressureError = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE_ERROR}");
  255. PlateCellFFUPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_PRESSURE}");
  256. CorridorFFUPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE}");
  257. }
  258. }
  259. }
  260. /// <summary>
  261. /// 隐藏
  262. /// </summary>
  263. public void Hide()
  264. {
  265. if (_timer != null)
  266. {
  267. _timer.Stop();
  268. }
  269. }
  270. /// <summary>
  271. /// 初始化Keys
  272. /// </summary>
  273. private void InitialKeys()
  274. {
  275. _rtDataKeys.Clear();
  276. _rtDataKeys.Add($"System.{FACILITIES}.{FACILITIES_DATA}");
  277. _rtDataKeys.Add($"System.{FACILITIES}.{N2_ENABLE}");
  278. _rtDataKeys.Add($"System.{FACILITIES}.{CDA_ENABLE}");
  279. _rtDataKeys.Add($"System.{FACILITIES}.{EXTERNAL_CDA_ENABLE}");
  280. _rtDataKeys.Add($"System.{FACILITIES}.{DI_WATER_ENABLE}");
  281. _rtDataKeys.Add($"System.{FACILITIES}.{HOUSE_CHILLED_WATER_ENABLE}");
  282. _rtDataKeys.Add($"System.{FACILITIES}.{VPW_DI_ENABLE}");
  283. _rtDataKeys.Add($"System.{FACILITIES}.{DI_FILL_ENABLE}");
  284. _rtDataKeys.Add($"System.{FACILITIES}.{DI_REPLEN_ENABLE}");
  285. _rtDataKeys.Add($"System.{FACILITIES}.{SRD_DI_ENABLE}");
  286. _rtDataKeys.Add($"System.{FACILITIES}.{SAMPLE_STATION_ENABLE}");
  287. _rtDataKeys.Add($"System.{FACILITIES}.{FILTER_PURGE_ENABLE}");
  288. _rtDataKeys.Add($"System.{FACILITIES}.{N2_BLANKET_PRESSURE_VALUE}");
  289. _rtDataKeys.Add($"System.{FACILITIES}.{N2_OVERFLOW_PRESSURE_VALUE}");
  290. _rtDataKeys.Add($"System.{FACILITIES}.{CLAMSHELL_CYLINDER_PRESSURE_VALUE}");
  291. _rtDataKeys.Add($"System.{FACILITIES}.{TILT_CYLINDER_PRESSURE_VALUE}");
  292. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_ERROR}");
  293. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE_ERROR}");
  294. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_PRESSURE}");
  295. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE}");
  296. _rtDataKeys.Add($"VPWMain1.DiwEnable");
  297. }
  298. #region 指令Action
  299. /// <summary>
  300. /// Loader Home
  301. /// </summary>
  302. /// <param name="param"></param>
  303. private void HomeLoaderAction(object param)
  304. {
  305. InvokeClient.Instance.Service.DoOperation($"{ModuleName.Loader1}.Common.HomeAll");
  306. }
  307. /// <summary>
  308. /// PUF Home
  309. /// </summary>
  310. /// <param name="param"></param>
  311. private void HomePufAction(object param)
  312. {
  313. InvokeClient.Instance.Service.DoOperation($"{ModuleName.PUF1}.HomeAll");
  314. InvokeClient.Instance.Service.DoOperation($"{ModuleName.PUF2}.HomeAll");
  315. }
  316. /// <summary>
  317. /// EFEM Home
  318. /// </summary>
  319. /// <param name="param"></param>
  320. private void HomeEfemAction(object param)
  321. {
  322. InvokeClient.Instance.Service.DoOperation($"{ModuleName.EFEM}.Home");
  323. }
  324. /// <summary>
  325. /// Process Transporter Home
  326. /// </summary>
  327. /// <param name="param"></param>
  328. private void HomeProcessTransporterAction(object param)
  329. {
  330. InvokeClient.Instance.Service.DoOperation($"{ModuleName.Transporter1}.HomeAll");
  331. }
  332. /// <summary>
  333. /// Loader Transporter Home
  334. /// </summary>
  335. /// <param name="param"></param>
  336. private void HomeLoaderTransporterAction(object param)
  337. {
  338. InvokeClient.Instance.Service.DoOperation($"{ModuleName.Transporter2}.HomeAll");
  339. }
  340. /// <summary>
  341. /// Loader Transporter Home
  342. /// </summary>
  343. /// <param name="param"></param>
  344. private void HomeSRDsAction(object param)
  345. {
  346. InvokeClient.Instance.Service.DoOperation($"{ModuleName.SRD1}.HomeAll");
  347. InvokeClient.Instance.Service.DoOperation($"{ModuleName.SRD2}.HomeAll");
  348. }
  349. /// <summary>
  350. /// N2 Enable
  351. /// </summary>
  352. /// <param name="param"></param>
  353. private void NitrogenOnAction(object param)
  354. {
  355. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.N2Enable");
  356. }
  357. /// <summary>
  358. /// N2 Disable
  359. /// </summary>
  360. /// <param name="param"></param>
  361. private void NitrogenOffAction(object param)
  362. {
  363. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.N2Disable");
  364. }
  365. /// <summary>
  366. /// CDA Enable
  367. /// </summary>
  368. /// <param name="param"></param>
  369. private void CDAOnAction(object param)
  370. {
  371. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.CDAEnable");
  372. }
  373. /// <summary>
  374. /// CDA Disable
  375. /// </summary>
  376. /// <param name="param"></param>
  377. private void CDAOffAction(object param)
  378. {
  379. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.CDADisable");
  380. }
  381. /// <summary>
  382. /// External CDA Enable
  383. /// </summary>
  384. /// <param name="param"></param>
  385. private void ExternalCDAOnAction(object param)
  386. {
  387. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.ExternalCDAEnable");
  388. }
  389. /// <summary>
  390. /// External CDA Disable
  391. /// </summary>
  392. /// <param name="param"></param>
  393. private void ExternalCDAOffAction(object param)
  394. {
  395. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.ExternalCDADisable");
  396. }
  397. /// <summary>
  398. /// DI Water Enable
  399. /// </summary>
  400. /// <param name="param"></param>
  401. private void DiWaterOnAction(object param)
  402. {
  403. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiWaterEnable");
  404. }
  405. /// <summary>
  406. /// DI Water Disable
  407. /// </summary>
  408. /// <param name="param"></param>
  409. private void DiWaterOffAction(object param)
  410. {
  411. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiWaterDisable");
  412. }
  413. /// <summary>
  414. /// House Chilled Water Enable
  415. /// </summary>
  416. /// <param name="param"></param>
  417. private void HouseChilledWaterOnAction(object param)
  418. {
  419. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.HouseChilledWaterEnable");
  420. }
  421. /// <summary>
  422. /// House Chilled Water Disable
  423. /// </summary>
  424. /// <param name="param"></param>
  425. private void HouseChilledWaterOffAction(object param)
  426. {
  427. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.HouseChilledWaterDisable");
  428. }
  429. /// <summary>
  430. /// VPW DI Enable
  431. /// </summary>
  432. /// <param name="param"></param>
  433. private void VpwDiwEnableAction(object param)
  434. {
  435. InvokeClient.Instance.Service.DoOperation($"VPWMain1.DiwEnable");
  436. }
  437. /// <summary>
  438. /// VPW DI Disable
  439. /// </summary>
  440. /// <param name="param"></param>
  441. private void VpwDiwDisableAction(object param)
  442. {
  443. InvokeClient.Instance.Service.DoOperation($"VPWMain1.DiwDisable");
  444. }
  445. /// <summary>
  446. /// DI Fill Enable
  447. /// </summary>
  448. /// <param name="param"></param>
  449. private void DiwFillEnableAction(object param)
  450. {
  451. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiFillEnable");
  452. }
  453. /// <summary>
  454. /// DI Fill Disable
  455. /// </summary>
  456. /// <param name="param"></param>
  457. private void DiwFillDisableAction(object param)
  458. {
  459. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiFillDisable");
  460. }
  461. /// <summary>
  462. /// DI Replen Enable
  463. /// </summary>
  464. /// <param name="param"></param>
  465. private void DiwReplenEnableAction(object param)
  466. {
  467. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiReplenEnable");
  468. }
  469. /// <summary>
  470. /// DI Replen Disable
  471. /// </summary>
  472. /// <param name="param"></param>
  473. private void DiwReplenDisableAction(object param)
  474. {
  475. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiReplenDisable");
  476. }
  477. /// <summary>
  478. /// Srd diw Enable
  479. /// </summary>
  480. /// <param name="param"></param>
  481. private void SrdDiEnableAction(object param)
  482. {
  483. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SrdDiwEnable");
  484. }
  485. /// <summary>
  486. /// Srd diw Disable
  487. /// </summary>
  488. /// <param name="param"></param>
  489. private void SrdDiDisableAction(object param)
  490. {
  491. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SrdDiwDisable");
  492. }
  493. /// <summary>
  494. /// Filter Purge Enable
  495. /// </summary>
  496. /// <param name="param"></param>
  497. private void FilterPurgeEnableAction(object param)
  498. {
  499. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.FilterPurgeEnable");
  500. }
  501. /// <summary>
  502. /// Filter Purge Disable
  503. /// </summary>
  504. /// <param name="param"></param>
  505. private void FilterPurgeDisableAction(object param)
  506. {
  507. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.FilterPurgeDisable");
  508. }
  509. /// <summary>
  510. /// Filter Purge Enable
  511. /// </summary>
  512. /// <param name="param"></param>
  513. private void SampleStationEnableAction(object param)
  514. {
  515. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleStationEnable");
  516. }
  517. /// <summary>
  518. /// Filter Purge Disable
  519. /// </summary>
  520. /// <param name="param"></param>
  521. private void SampleStationDisableAction(object param)
  522. {
  523. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleStationDisable");
  524. }
  525. /// <summary>
  526. /// All On
  527. /// </summary>
  528. /// <param name="param"></param>
  529. private void AllOnAction(object param)
  530. {
  531. }
  532. /// <summary>
  533. /// All Off
  534. /// </summary>
  535. /// <param name="param"></param>
  536. private void AllOffAction(object param)
  537. {
  538. }
  539. /// <summary>
  540. /// Sample Enable
  541. /// </summary>
  542. /// <param name="param"></param>
  543. private void SampleEnableAction(object param)
  544. {
  545. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleEnable");
  546. }
  547. /// <summary>
  548. /// Sample Disable
  549. /// </summary>
  550. /// <param name="param"></param>
  551. private void SampleDisableAction(object param)
  552. {
  553. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleDisable");
  554. }
  555. #endregion
  556. }
  557. }