SystemFacilitiesViewModel.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  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 = "SrdDiEnable";
  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 _systemExhaustData1 = new CommonLimitData();
  66. private CommonLimitData _systemExhaustData2 = 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 SystemExhaustData1 { get { return _systemExhaustData1; } set { SetProperty(ref _systemExhaustData1, value); } }
  114. public CommonLimitData SystemExhaustData2 { get { return _systemExhaustData2; } set { SetProperty(ref _systemExhaustData2, 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 VpwDiWEnable { get { return _vpwDiWEnable; } set { SetProperty(ref _vpwDiWEnable, value); } }
  124. public bool DiFillEnable{ get { return _diFillEnable; } set { SetProperty(ref _diFillEnable, value); }}
  125. public bool DiReplenEnable{get { return _diReplenEnable; }set { SetProperty(ref _diReplenEnable, value); } }
  126. public bool SrdDiWEnable { get { return _srdDiWEnable; } set { SetProperty(ref _srdDiWEnable, value); } }
  127. public bool SampleStationEnable { get { return _sampleStationEnable; } set { SetProperty(ref _sampleStationEnable, value); } }
  128. public bool FilterPurgeEnable{ get { return _filterPurgeEnable; } set { SetProperty(ref _filterPurgeEnable, value);} }
  129. public double N2BlanketPressure { get { return _n2BlanketPressure; } set { SetProperty(ref _n2BlanketPressure, value); } }
  130. public double N2OverflowPressure { get { return _n2OverflowPressure; } set { SetProperty(ref _n2OverflowPressure, value); } }
  131. public double ClamshellCylinderPressure { get { return _clamshellCylinderPressure; } set { SetProperty(ref _clamshellCylinderPressure, value); } }
  132. public double TiltCylinderPressure { get { return _tiltCylinderPressure; } set { SetProperty(ref _tiltCylinderPressure, value); } }
  133. #region FFU
  134. public bool PlateCellFFUPressureError { get { return _plateCellFFUPressureError; } set { SetProperty(ref _plateCellFFUPressureError, value); } }
  135. public bool CorridorFFUPressureError { get { return _corridorFFUPressureError; } set { SetProperty(ref _corridorFFUPressureError, value); } }
  136. public double PlateCellFFUPressure { get { return _plateCellFFUPressure; } set { SetProperty(ref _plateCellFFUPressure, value); } }
  137. public double CorridorFFUPressure { get { return _corridorFFUPressure; } set { SetProperty(ref _corridorFFUPressure, value); } }
  138. #endregion
  139. #endregion
  140. #region 指令
  141. public ICommand NitrogenOnCommand{get;private set;}
  142. public ICommand NitrogenOffCommand{ get;private set;}
  143. public ICommand CDAOnCommand { get; private set; }
  144. public ICommand CDAOffCommand { get; private set; }
  145. public ICommand ExternalCDAOnCommand { get;private set; }
  146. public ICommand ExternalCDAOffCommand { get;private set; }
  147. public ICommand DiWaterPressureOnCommand { get; private set; }
  148. public ICommand DiWaterPressureOffCommand { get; private set; }
  149. public ICommand HouseChilledWaferFlowOnCommand { get; private set; }
  150. public ICommand HouseChilledWaferFlowOffCommand { get; private set; }
  151. public ICommand VpwDiwEnableCommand { get; private set; }
  152. public ICommand VpwDiwDisableCommand { get; private set; }
  153. public ICommand DiwFillEnableCommand { get; private set; }
  154. public ICommand DiwFillDisableCommand { get; private set; }
  155. public ICommand DiwReplenEnableCommand { get; private set; }
  156. public ICommand DiwReplenDisableCommand { get; private set; }
  157. public ICommand SrdDiwEnableCommand { get; private set; }
  158. public ICommand SrdDiwDisableCommand { get; private set; }
  159. public ICommand SampleStationEnableCommand { get; private set; }
  160. public ICommand SampleStationDisableCommand { get; private set; }
  161. public ICommand FilterPurgeEnableCommand { get; private set; }
  162. public ICommand FilterPurgeDisableCommand { get; private set; }
  163. #endregion
  164. /// <summary>
  165. /// 构造函数
  166. /// </summary>
  167. public SystemFacilitiesViewModel()
  168. {
  169. NitrogenOnCommand = new DelegateCommand<object>(NitrogenOnAction);
  170. NitrogenOffCommand = new DelegateCommand<object>(NitrogenOffAction);
  171. CDAOnCommand=new DelegateCommand<object>(CDAOnAction);
  172. CDAOffCommand=new DelegateCommand<object>(CDAOffAction);
  173. ExternalCDAOnCommand = new DelegateCommand<object>(ExternalCDAOnAction);
  174. ExternalCDAOffCommand = new DelegateCommand<object>(ExternalCDAOffAction);
  175. DiWaterPressureOnCommand = new DelegateCommand<object>(DiWaterOnAction);
  176. DiWaterPressureOffCommand = new DelegateCommand<object>(DiWaterOffAction);
  177. HouseChilledWaferFlowOnCommand = new DelegateCommand<object>(HouseChilledWaterOnAction);
  178. HouseChilledWaferFlowOffCommand = new DelegateCommand<object>(HouseChilledWaterOffAction);
  179. VpwDiwEnableCommand = new DelegateCommand<object>(VpwDiwEnableAction);
  180. VpwDiwDisableCommand = new DelegateCommand<object>(VpwDiwDisableAction);
  181. DiwFillEnableCommand = new DelegateCommand<object>(DiwFillEnableAction);
  182. DiwFillDisableCommand=new DelegateCommand<object>(DiwFillDisableAction);
  183. DiwReplenEnableCommand = new DelegateCommand<object>(DiwReplenEnableAction);
  184. DiwReplenDisableCommand = new DelegateCommand<object>(DiwReplenDisableAction);
  185. SrdDiwEnableCommand = new DelegateCommand<object>(SrdDiEnableAction);
  186. SrdDiwDisableCommand = new DelegateCommand<object>(SrdDiDisableAction);
  187. SampleStationEnableCommand = new DelegateCommand<object>(SampleStationEnableAction);
  188. SampleStationDisableCommand = new DelegateCommand<object>(SampleStationDisableAction);
  189. FilterPurgeEnableCommand = new DelegateCommand<object>(FilterPurgeEnableAction);
  190. FilterPurgeDisableCommand = new DelegateCommand<object>(FilterPurgeDisableAction);
  191. }
  192. /// <summary>
  193. /// 加载数据
  194. /// </summary>
  195. public void LoadData(string systemName)
  196. {
  197. InitialKeys();
  198. if (_timer == null)
  199. {
  200. _timer = new DispatcherTimer();
  201. _timer.Interval = TimeSpan.FromMilliseconds(200) ;
  202. _timer.Tick += Timer_Tick; ;
  203. }
  204. _timer.Start();
  205. }
  206. /// <summary>
  207. /// 定时器执行
  208. /// </summary>
  209. /// <param name="sender"></param>
  210. /// <param name="e"></param>
  211. /// <exception cref="NotImplementedException"></exception>
  212. private void Timer_Tick(object sender, EventArgs e)
  213. {
  214. if (_rtDataKeys.Count != 0)
  215. {
  216. _rtDataValueDic = QueryDataClient.Instance.Service.PollData(_rtDataKeys);
  217. if (_rtDataValueDic != null)
  218. {
  219. List<CommonLimitData> facilitiesDatas = CommonFunction.GetValue<List<CommonLimitData>>(_rtDataValueDic, $"System.{FACILITIES}.{FACILITIES_DATA}");
  220. if (facilitiesDatas != null) //顺序待修正
  221. {
  222. Cda1Data = facilitiesDatas[0];
  223. Cda2Data = facilitiesDatas[1];
  224. Nitrogen1AData = facilitiesDatas[2];
  225. Nitrogen1BData = facilitiesDatas[3];
  226. Nitrogen2AData = facilitiesDatas[4];
  227. Nitrogen2BData = facilitiesDatas[5];
  228. DiWaterPressureData = facilitiesDatas[6];
  229. HouseChilledWaterFlowData = facilitiesDatas[7];
  230. ExtendCdaData = facilitiesDatas[8];
  231. SystemVacuumData = facilitiesDatas[9];
  232. SystemExhaustData1 = facilitiesDatas[10];
  233. //SystemExhaustData2 = facilitiesDatas[11]; 修正facility device后修改
  234. //DiWaterReturnFlowData = facilitiesDatas[12];
  235. }
  236. NitrogenOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{N2_ENABLE}");
  237. CdaOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{CDA_ENABLE}");
  238. ExtendCdaOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{EXTERNAL_CDA_ENABLE}");
  239. DiWaterPressureOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{DI_WATER_ENABLE}");
  240. HouseChilledWaterFlowOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{HOUSE_CHILLED_WATER_ENABLE}");
  241. VpwDiWEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{VPW_DI_ENABLE}");
  242. DiFillEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{DI_FILL_ENABLE}");
  243. DiReplenEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{DI_REPLEN_ENABLE}");
  244. SrdDiWEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{SRD_DI_ENABLE}");
  245. SampleStationEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{SAMPLE_STATION_ENABLE}");
  246. FilterPurgeEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{FILTER_PURGE_ENABLE}");
  247. N2BlanketPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{N2_BLANKET_PRESSURE_VALUE}");
  248. N2OverflowPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{N2_OVERFLOW_PRESSURE_VALUE}");
  249. ClamshellCylinderPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{CLAMSHELL_CYLINDER_PRESSURE_VALUE}");
  250. TiltCylinderPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{TILT_CYLINDER_PRESSURE_VALUE}");
  251. PlateCellFFUPressureError = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_ERROR}");
  252. CorridorFFUPressureError = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE_ERROR}");
  253. PlateCellFFUPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_PRESSURE}");
  254. CorridorFFUPressure = CommonFunction.GetValue<double>(_rtDataValueDic, $"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE}");
  255. }
  256. }
  257. }
  258. /// <summary>
  259. /// 隐藏
  260. /// </summary>
  261. public void Hide()
  262. {
  263. if (_timer != null)
  264. {
  265. _timer.Stop();
  266. }
  267. }
  268. /// <summary>
  269. /// 初始化Keys
  270. /// </summary>
  271. private void InitialKeys()
  272. {
  273. _rtDataKeys.Clear();
  274. _rtDataKeys.Add($"System.{FACILITIES}.{FACILITIES_DATA}");
  275. _rtDataKeys.Add($"System.{FACILITIES}.{N2_ENABLE}");
  276. _rtDataKeys.Add($"System.{FACILITIES}.{CDA_ENABLE}");
  277. _rtDataKeys.Add($"System.{FACILITIES}.{EXTERNAL_CDA_ENABLE}");
  278. _rtDataKeys.Add($"System.{FACILITIES}.{DI_WATER_ENABLE}");
  279. _rtDataKeys.Add($"System.{FACILITIES}.{HOUSE_CHILLED_WATER_ENABLE}");
  280. _rtDataKeys.Add($"System.{FACILITIES}.{VPW_DI_ENABLE}");
  281. _rtDataKeys.Add($"System.{FACILITIES}.{DI_FILL_ENABLE}");
  282. _rtDataKeys.Add($"System.{FACILITIES}.{DI_REPLEN_ENABLE}");
  283. _rtDataKeys.Add($"System.{FACILITIES}.{SRD_DI_ENABLE}");
  284. _rtDataKeys.Add($"System.{FACILITIES}.{SAMPLE_STATION_ENABLE}");
  285. _rtDataKeys.Add($"System.{FACILITIES}.{FILTER_PURGE_ENABLE}");
  286. _rtDataKeys.Add($"System.{FACILITIES}.{N2_BLANKET_PRESSURE_VALUE}");
  287. _rtDataKeys.Add($"System.{FACILITIES}.{N2_OVERFLOW_PRESSURE_VALUE}");
  288. _rtDataKeys.Add($"System.{FACILITIES}.{CLAMSHELL_CYLINDER_PRESSURE_VALUE}");
  289. _rtDataKeys.Add($"System.{FACILITIES}.{TILT_CYLINDER_PRESSURE_VALUE}");
  290. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_ERROR}");
  291. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE_ERROR}");
  292. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_PLATECELL_PRESSURE_PRESSURE}");
  293. _rtDataKeys.Add($"System.{FACILITIES}.{FFU_CORRIDOR_PRESSURE}");
  294. }
  295. #region 指令Action
  296. /// <summary>
  297. /// Loader Home
  298. /// </summary>
  299. /// <param name="param"></param>
  300. private void HomeLoaderAction(object param)
  301. {
  302. InvokeClient.Instance.Service.DoOperation($"{ModuleName.Loader1}.Common.HomeAll");
  303. }
  304. /// <summary>
  305. /// PUF Home
  306. /// </summary>
  307. /// <param name="param"></param>
  308. private void HomePufAction(object param)
  309. {
  310. InvokeClient.Instance.Service.DoOperation($"{ModuleName.PUF1}.HomeAll");
  311. InvokeClient.Instance.Service.DoOperation($"{ModuleName.PUF2}.HomeAll");
  312. }
  313. /// <summary>
  314. /// EFEM Home
  315. /// </summary>
  316. /// <param name="param"></param>
  317. private void HomeEfemAction(object param)
  318. {
  319. InvokeClient.Instance.Service.DoOperation($"{ModuleName.EFEM}.Home");
  320. }
  321. /// <summary>
  322. /// Process Transporter Home
  323. /// </summary>
  324. /// <param name="param"></param>
  325. private void HomeProcessTransporterAction(object param)
  326. {
  327. InvokeClient.Instance.Service.DoOperation($"{ModuleName.Transporter1}.HomeAll");
  328. }
  329. /// <summary>
  330. /// Loader Transporter Home
  331. /// </summary>
  332. /// <param name="param"></param>
  333. private void HomeLoaderTransporterAction(object param)
  334. {
  335. InvokeClient.Instance.Service.DoOperation($"{ModuleName.Transporter2}.HomeAll");
  336. }
  337. /// <summary>
  338. /// Loader Transporter Home
  339. /// </summary>
  340. /// <param name="param"></param>
  341. private void HomeSRDsAction(object param)
  342. {
  343. InvokeClient.Instance.Service.DoOperation($"{ModuleName.SRD1}.HomeAll");
  344. InvokeClient.Instance.Service.DoOperation($"{ModuleName.SRD2}.HomeAll");
  345. }
  346. /// <summary>
  347. /// N2 Enable
  348. /// </summary>
  349. /// <param name="param"></param>
  350. private void NitrogenOnAction(object param)
  351. {
  352. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.N2Enable");
  353. }
  354. /// <summary>
  355. /// N2 Disable
  356. /// </summary>
  357. /// <param name="param"></param>
  358. private void NitrogenOffAction(object param)
  359. {
  360. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.N2Disable");
  361. }
  362. /// <summary>
  363. /// CDA Enable
  364. /// </summary>
  365. /// <param name="param"></param>
  366. private void CDAOnAction(object param)
  367. {
  368. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.CDAEnable");
  369. }
  370. /// <summary>
  371. /// CDA Disable
  372. /// </summary>
  373. /// <param name="param"></param>
  374. private void CDAOffAction(object param)
  375. {
  376. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.CDADisable");
  377. }
  378. /// <summary>
  379. /// External CDA Enable
  380. /// </summary>
  381. /// <param name="param"></param>
  382. private void ExternalCDAOnAction(object param)
  383. {
  384. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.ExternalCDAEnable");
  385. }
  386. /// <summary>
  387. /// External CDA Disable
  388. /// </summary>
  389. /// <param name="param"></param>
  390. private void ExternalCDAOffAction(object param)
  391. {
  392. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.ExternalCDADisable");
  393. }
  394. /// <summary>
  395. /// DI Water Enable
  396. /// </summary>
  397. /// <param name="param"></param>
  398. private void DiWaterOnAction(object param)
  399. {
  400. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiWaterEnable");
  401. }
  402. /// <summary>
  403. /// DI Water Disable
  404. /// </summary>
  405. /// <param name="param"></param>
  406. private void DiWaterOffAction(object param)
  407. {
  408. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiWaterDisable");
  409. }
  410. /// <summary>
  411. /// House Chilled Water Enable
  412. /// </summary>
  413. /// <param name="param"></param>
  414. private void HouseChilledWaterOnAction(object param)
  415. {
  416. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.HouseChilledWaterEnable");
  417. }
  418. /// <summary>
  419. /// House Chilled Water Disable
  420. /// </summary>
  421. /// <param name="param"></param>
  422. private void HouseChilledWaterOffAction(object param)
  423. {
  424. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.HouseChilledWaterDisable");
  425. }
  426. /// <summary>
  427. /// VPW DI Enable
  428. /// </summary>
  429. /// <param name="param"></param>
  430. private void VpwDiwEnableAction(object param)
  431. {
  432. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.VpwDiwEnable");
  433. }
  434. /// <summary>
  435. /// VPW DI Disable
  436. /// </summary>
  437. /// <param name="param"></param>
  438. private void VpwDiwDisableAction(object param)
  439. {
  440. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.VpwDiwDisable");
  441. }
  442. /// <summary>
  443. /// DI Fill Enable
  444. /// </summary>
  445. /// <param name="param"></param>
  446. private void DiwFillEnableAction(object param)
  447. {
  448. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiFillEnable");
  449. }
  450. /// <summary>
  451. /// DI Fill Disable
  452. /// </summary>
  453. /// <param name="param"></param>
  454. private void DiwFillDisableAction(object param)
  455. {
  456. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiFillDisable");
  457. }
  458. /// <summary>
  459. /// DI Replen Enable
  460. /// </summary>
  461. /// <param name="param"></param>
  462. private void DiwReplenEnableAction(object param)
  463. {
  464. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiReplenEnable");
  465. }
  466. /// <summary>
  467. /// DI Replen Disable
  468. /// </summary>
  469. /// <param name="param"></param>
  470. private void DiwReplenDisableAction(object param)
  471. {
  472. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.DiReplenDisable");
  473. }
  474. /// <summary>
  475. /// Loader DI Enable
  476. /// </summary>
  477. /// <param name="param"></param>
  478. private void SrdDiEnableAction(object param)
  479. {
  480. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SrdDiEnable");
  481. }
  482. /// <summary>
  483. /// Loader DI Disable
  484. /// </summary>
  485. /// <param name="param"></param>
  486. private void SrdDiDisableAction(object param)
  487. {
  488. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SrdDiDisable");
  489. }
  490. /// <summary>
  491. /// Filter Purge Enable
  492. /// </summary>
  493. /// <param name="param"></param>
  494. private void FilterPurgeEnableAction(object param)
  495. {
  496. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.FilterPurgeEnable");
  497. }
  498. /// <summary>
  499. /// Filter Purge Disable
  500. /// </summary>
  501. /// <param name="param"></param>
  502. private void FilterPurgeDisableAction(object param)
  503. {
  504. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.FilterPurgeDisable");
  505. }
  506. /// <summary>
  507. /// Filter Purge Enable
  508. /// </summary>
  509. /// <param name="param"></param>
  510. private void SampleStationEnableAction(object param)
  511. {
  512. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleStationEnable");
  513. }
  514. /// <summary>
  515. /// Filter Purge Disable
  516. /// </summary>
  517. /// <param name="param"></param>
  518. private void SampleStationDisableAction(object param)
  519. {
  520. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleStationDisable");
  521. }
  522. /// <summary>
  523. /// All On
  524. /// </summary>
  525. /// <param name="param"></param>
  526. private void AllOnAction(object param)
  527. {
  528. }
  529. /// <summary>
  530. /// All Off
  531. /// </summary>
  532. /// <param name="param"></param>
  533. private void AllOffAction(object param)
  534. {
  535. }
  536. /// <summary>
  537. /// Sample Enable
  538. /// </summary>
  539. /// <param name="param"></param>
  540. private void SampleEnableAction(object param)
  541. {
  542. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleEnable");
  543. }
  544. /// <summary>
  545. /// Sample Disable
  546. /// </summary>
  547. /// <param name="param"></param>
  548. private void SampleDisableAction(object param)
  549. {
  550. InvokeClient.Instance.Service.DoOperation($"System.{FACILITIES}.SampleDisable");
  551. }
  552. #endregion
  553. }
  554. }