TMViewModel.cs 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226
  1. using Aitex.Sorter.Common;
  2. using MECF.Framework.Common.CommonData;
  3. using MECF.Framework.Common.DataCenter;
  4. using MECF.Framework.Common.Equipment;
  5. using MECF.Framework.Common.OperationCenter;
  6. using MECF.Framework.Common.Schedulers;
  7. using OpenSEMI.ClientBase;
  8. using Prism.Commands;
  9. using Prism.Mvvm;
  10. using System;
  11. using System.Collections.Generic;
  12. using System.Collections.ObjectModel;
  13. using System.Linq;
  14. using System.Threading.Tasks;
  15. using System.Windows.Threading;
  16. using Venus_Core;
  17. using Venus_MainPages.Unity;
  18. using Venus_Themes.CustomControls;
  19. using Venus_Themes.Unity;
  20. namespace Venus_MainPages.ViewModels
  21. {
  22. public enum TMModule
  23. {
  24. PMA, PMB, PMC, PMD, LLA, LLB
  25. }
  26. public enum TMBlade
  27. {
  28. Blade1, Blade2
  29. }
  30. internal class TMViewModel : BindableBase
  31. {
  32. #region 私有字段
  33. //private ModuleInfo m_PMAWafer;
  34. private ModuleInfo m_LLAModuleInfo;
  35. private ModuleInfo m_LLBModuleInfo;
  36. private ModuleInfo m_TMModuleInfo;
  37. private bool m_TMIsOFFline;
  38. private bool m_LLIsOFFline;
  39. private WaferInfo m_PMAWafer;
  40. private WaferInfo m_PMBWafer;
  41. private WaferInfo m_PMCWafer;
  42. private WaferInfo m_PMDWafer;
  43. private WaferInfo m_LLAWafer;
  44. private WaferInfo m_LLBWafer;
  45. private WaferInfo m_BladeAWafer;
  46. private WaferInfo m_BladeBWafer;
  47. private bool m_PMADoorIsOpen;
  48. //private bool m_PMBDoorIsOpen;
  49. //private bool m_PMCDoorIsOpen;
  50. //private bool m_PMDDoorIsOpen;
  51. private bool m_LLADoorIsOpen;
  52. private WaferRobotTAction m_WaferRobotTAction;
  53. private WaferRobotTAction m_Robot1TAction;
  54. private WaferRobotXAction m_Robot1XAction;
  55. private WaferRobotTAction m_Robot2TAction;
  56. private WaferRobotXAction m_Robot2XAction;
  57. private TMModule m_PickSelectedModule;
  58. private TMModule m_PlaceSelectedModule;
  59. private TMModule m_ExtendSelectedModule;
  60. private TMModule m_RetractSelectedModule;
  61. private TMBlade m_PickSelectedBlade;
  62. private TMBlade m_PlaceSelectedBlade;
  63. private TMBlade m_ExtendSelectedBlade;
  64. private TMBlade m_RetractSelectedBlade;
  65. private TMBlade m_GoToSelectedBlade;
  66. private ObservableCollection<int> m_PlaceSoltItemsSource = new ObservableCollection<int>();
  67. private ObservableCollection<int> m_PickSoltItemsSource = new ObservableCollection<int>();
  68. private ObservableCollection<int> m_ExtendSoltItemsSource = new ObservableCollection<int>();
  69. private ObservableCollection<int> m_RetractSoltItemsSource = new ObservableCollection<int>();
  70. private int m_PickSoltSelectedIndex;
  71. private int m_PlaceSoltSelectedIndex;
  72. private int m_ExtendSoltSelectedIndex;
  73. private int m_RetractSoltSelectedIndex;
  74. private List<string> m_RtDataKeys=new List<string> ();
  75. private Dictionary<string, object> m_RtDataValues;
  76. private string m_ModuleCheckedName="TM";
  77. private string m_RobotAction;
  78. private string m_RobotTarget;
  79. private string m_RobotArm;
  80. private bool m_PMAIsInstalled;
  81. private bool m_PMBIsInstalled;
  82. private bool m_PMCIsInstalled;
  83. private bool m_PMDIsInstalled;
  84. private bool m_LLAIsInstalled;
  85. private bool m_LLBIsInstalled;
  86. private bool m_TMIsInstalled;
  87. private List<string> m_OriginalCycle=new List<string> ();
  88. private List<string> m_ToCycle = new List<string>();
  89. private List<TMModule> m_TMModules= new List<TMModule>();
  90. private bool m_CycleEnable;
  91. private string m_OriginalCycleSelectedItem;
  92. private string m_ToCycleSelectedItem;
  93. private bool m_PMAIsCycle;
  94. private bool m_PMBIsCycle;
  95. private bool m_PMCIsCycle;
  96. private bool m_PMDIsCycle;
  97. private int m_CycleCount;
  98. #endregion
  99. #region 属性
  100. public List<string> OriginalCycle
  101. {
  102. get { return m_OriginalCycle; }
  103. set { SetProperty(ref m_OriginalCycle, value); }
  104. }
  105. public List<string> ToCycle
  106. {
  107. get { return m_ToCycle; }
  108. set { SetProperty(ref m_ToCycle, value); }
  109. }
  110. public string RobotAction2
  111. {
  112. get { return m_RobotAction; }
  113. set
  114. {
  115. //RobotActiont(m_RobotAction, value);
  116. SetProperty(ref m_RobotAction, value);
  117. }
  118. }
  119. public RobotMoveInfo m_robotMoveInfo;
  120. public RobotMoveInfo RobotMoveInfo
  121. {
  122. get { return m_robotMoveInfo; }
  123. set
  124. {
  125. RobotMoveInfoChanged(m_robotMoveInfo, value);
  126. m_robotMoveInfo = value;
  127. }
  128. }
  129. public string RobotTarget
  130. {
  131. get { return m_RobotTarget; }
  132. set
  133. {
  134. SetProperty(ref m_RobotTarget, value);
  135. }
  136. }
  137. public string RobotArm
  138. {
  139. get { return m_RobotArm; }
  140. set
  141. {
  142. SetProperty(ref m_RobotArm, value);
  143. }
  144. }
  145. int arm1oldWaferStatus = 100;
  146. int arm2oldWaferStatus = 100;
  147. private async void RobotMoveInfoChanged(RobotMoveInfo oldValue,RobotMoveInfo newValue)
  148. {
  149. if (oldValue == null ||newValue==null)
  150. {
  151. return;
  152. }
  153. #region pick 和 place LL
  154. if (oldValue.Action == RobotAction.None && (newValue.Action == RobotAction.Placing || newValue.Action == RobotAction.Picking))
  155. {
  156. var TMRobotMoveActionBladeTarget = newValue.BladeTarget;
  157. if (TMRobotMoveActionBladeTarget != null)
  158. {
  159. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  160. }
  161. else
  162. {
  163. return;
  164. }
  165. var values = RobotTarget.Split('.');
  166. var arm = values[0];
  167. var module = values[1];
  168. if (arm == "ArmA")
  169. {
  170. Robot1TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  171. await Task.Delay(1500);
  172. Robot1XAction = WaferRobotXAction.Extend;
  173. await Task.Delay(3000);
  174. Robot1XAction = WaferRobotXAction.Retract;
  175. }
  176. else if (arm == "ArmB")
  177. {
  178. Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  179. await Task.Delay(1500);
  180. Robot2XAction = WaferRobotXAction.Extend;
  181. await Task.Delay(3000);
  182. Robot2XAction = WaferRobotXAction.Retract;
  183. }
  184. }
  185. //if ((oldValue.Action==RobotAction.Placing||oldValue.Action==RobotAction.Picking) && newValue.Action==RobotAction.None)
  186. //{
  187. // var TMRobotMoveActionBladeTarget = oldValue.BladeTarget;
  188. // if (TMRobotMoveActionBladeTarget != null)
  189. // {
  190. // RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  191. // }
  192. // else
  193. // {
  194. // return;
  195. // }
  196. // var values = RobotTarget.Split('.');
  197. // var arm = values[0];
  198. // var module = values[1];
  199. // if (arm == "ArmA")
  200. // {
  201. // Robot1XAction = WaferRobotXAction.Retract;
  202. // }
  203. // else if (arm == "ArmB")
  204. // {
  205. // Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  206. // await Task.Delay(1500);
  207. // Robot2XAction = WaferRobotXAction.Retract;
  208. // }
  209. //}
  210. #endregion
  211. #region pick 和 place pm
  212. if (oldValue.Action == RobotAction.None && newValue.Action == RobotAction.Extending)
  213. {
  214. var TMRobotMoveActionBladeTarget = newValue.BladeTarget;
  215. if (TMRobotMoveActionBladeTarget != null)
  216. {
  217. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  218. }
  219. else
  220. {
  221. return;
  222. }
  223. var values = RobotTarget.Split('.');
  224. var arm = values[0];
  225. var module = values[1];
  226. if (arm == "ArmA")
  227. {
  228. Robot1TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  229. await Task.Delay(1500);
  230. Robot1XAction = WaferRobotXAction.Extend;
  231. }
  232. else if (arm == "ArmB")
  233. {
  234. Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  235. await Task.Delay(1500);
  236. Robot2XAction = WaferRobotXAction.Extend;
  237. }
  238. }
  239. if (oldValue.Action == RobotAction.None && newValue.Action == RobotAction.Retracting)
  240. {
  241. var TMRobotMoveActionBladeTarget = newValue.BladeTarget;
  242. if (TMRobotMoveActionBladeTarget != null)
  243. {
  244. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  245. }
  246. else
  247. {
  248. return;
  249. }
  250. var values = RobotTarget.Split('.');
  251. var arm = values[0];
  252. if (arm == "ArmA")
  253. {
  254. Robot1XAction = WaferRobotXAction.Retract;
  255. }
  256. else if (arm == "ArmB")
  257. {
  258. Robot2XAction = WaferRobotXAction.Retract;
  259. }
  260. }
  261. #endregion
  262. arm1oldWaferStatus = ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[0].WaferStatus;
  263. arm2oldWaferStatus = ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[1].WaferStatus;
  264. }
  265. private async void RobotActiont(string oldValue,string newValue)
  266. {
  267. if (oldValue == "None" && newValue == "Placing" && ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[0].WaferStatus==1)
  268. {
  269. var TMRobotMoveActionBladeTarget = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.BladeTarget");
  270. if (TMRobotMoveActionBladeTarget != null)
  271. {
  272. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  273. }
  274. else
  275. {
  276. return;
  277. }
  278. var values = RobotTarget.Split('.');
  279. var arm = values[0];
  280. var module = values[1];
  281. Robot1TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  282. await Task.Delay(1500);
  283. Robot1XAction = WaferRobotXAction.Extend;
  284. if (arm == "ArmA")
  285. {
  286. Robot1TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  287. await Task.Delay(1500);
  288. Robot1XAction = WaferRobotXAction.Extend;
  289. }
  290. else if (arm == "ArmB")
  291. {
  292. Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  293. await Task.Delay(1500);
  294. Robot2XAction = WaferRobotXAction.Extend;
  295. }
  296. }
  297. if (oldValue == "None" && newValue == "Placing" && ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[1].WaferStatus == 1)
  298. {
  299. var TMRobotMoveActionBladeTarget = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.BladeTarget");
  300. if (TMRobotMoveActionBladeTarget != null)
  301. {
  302. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  303. }
  304. else
  305. {
  306. return;
  307. }
  308. var values = RobotTarget.Split('.');
  309. var arm = values[0];
  310. var module = values[1];
  311. if (arm == "ArmA")
  312. {
  313. Robot1TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  314. await Task.Delay(1500);
  315. Robot1XAction = WaferRobotXAction.Extend;
  316. }
  317. else if (arm == "ArmB")
  318. {
  319. Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  320. await Task.Delay(1500);
  321. Robot2XAction = WaferRobotXAction.Extend;
  322. }
  323. //Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  324. //await Task.Delay(1500);
  325. //Robot2XAction = WaferRobotXAction.Extend;
  326. }
  327. if (arm1oldWaferStatus != ModuleManager.ModuleInfos["TM"].WaferManager.Wafers[0].WaferStatus)
  328. {
  329. Robot1XAction = WaferRobotXAction.Retract;
  330. }
  331. if (arm2oldWaferStatus != ModuleManager.ModuleInfos["TM"].WaferManager.Wafers[1].WaferStatus)
  332. {
  333. Robot2XAction = WaferRobotXAction.Retract;
  334. }
  335. if (oldValue == "None" && newValue == "Picking" && ModuleManager.ModuleInfos["TM"].WaferManager.Wafers[1].WaferStatus == 0)
  336. {
  337. var TMRobotMoveActionBladeTarget = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.BladeTarget");
  338. if (TMRobotMoveActionBladeTarget != null)
  339. {
  340. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  341. }
  342. else
  343. {
  344. return;
  345. }
  346. var values = RobotTarget.Split('.');
  347. var arm = values[0];
  348. var module = values[1];
  349. if (arm == "ArmA")
  350. {
  351. Robot1TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  352. await Task.Delay(1500);
  353. Robot1XAction = WaferRobotXAction.Extend;
  354. }
  355. else if (arm == "ArmB")
  356. {
  357. Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  358. await Task.Delay(1500);
  359. Robot2XAction = WaferRobotXAction.Extend;
  360. }
  361. }
  362. #region pick 和 place pm
  363. if (oldValue == "None" && newValue == "Extending")
  364. {
  365. var TMRobotMoveActionBladeTarget = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.BladeTarget");
  366. if (TMRobotMoveActionBladeTarget != null)
  367. {
  368. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  369. }
  370. else
  371. {
  372. return;
  373. }
  374. var values = RobotTarget.Split('.');
  375. var arm = values[0];
  376. var module = values[1];
  377. if (arm == "ArmA")
  378. {
  379. Robot1TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  380. await Task.Delay(1500);
  381. Robot1XAction = WaferRobotXAction.Extend;
  382. }
  383. else if (arm == "ArmB")
  384. {
  385. Robot2TAction = (WaferRobotTAction)Enum.Parse(typeof(WaferRobotTAction), module, true);
  386. await Task.Delay(1500);
  387. Robot2XAction = WaferRobotXAction.Extend;
  388. }
  389. }
  390. if (oldValue == "None" && newValue == "Retracting")
  391. {
  392. var TMRobotMoveActionBladeTarget = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.BladeTarget");
  393. if (TMRobotMoveActionBladeTarget != null)
  394. {
  395. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  396. }
  397. else
  398. {
  399. return;
  400. }
  401. var values = RobotTarget.Split('.');
  402. var arm = values[0];
  403. if (arm == "ArmA")
  404. {
  405. Robot1XAction = WaferRobotXAction.Retract;
  406. }
  407. else if (arm == "ArmB")
  408. {
  409. Robot2XAction = WaferRobotXAction.Retract;
  410. }
  411. }
  412. #endregion
  413. arm1oldWaferStatus = ModuleManager.ModuleInfos["TM"].WaferManager.Wafers[0].WaferStatus;
  414. arm2oldWaferStatus = ModuleManager.ModuleInfos["TM"].WaferManager.Wafers[1].WaferStatus;
  415. }
  416. public WaferInfo LLAWafer
  417. {
  418. get { return m_LLAWafer; }
  419. set { SetProperty(ref m_LLAWafer, value); }
  420. }
  421. public WaferInfo LLBWafer
  422. {
  423. get { return m_LLBWafer; }
  424. set { SetProperty(ref m_LLBWafer, value); }
  425. }
  426. public WaferInfo PMAWafer
  427. {
  428. get { return m_PMAWafer; }
  429. set { SetProperty(ref m_PMAWafer, value); }
  430. }
  431. public WaferInfo PMBWafer
  432. {
  433. get { return m_PMBWafer; }
  434. set { SetProperty(ref m_PMBWafer, value); }
  435. }
  436. public WaferInfo PMCWafer
  437. {
  438. get { return m_PMCWafer; }
  439. set { SetProperty(ref m_PMCWafer, value); }
  440. }
  441. public WaferInfo PMDWafer
  442. {
  443. get { return m_PMDWafer; }
  444. set { SetProperty(ref m_PMDWafer, value); }
  445. }
  446. public WaferInfo BladeAWafer
  447. {
  448. get { return m_BladeAWafer; }
  449. set { SetProperty(ref m_BladeAWafer, value); }
  450. }
  451. public WaferInfo BladeBWafer
  452. {
  453. get { return m_BladeBWafer; }
  454. set { SetProperty(ref m_BladeBWafer, value); }
  455. }
  456. public ModuleInfo LLAModuleInfo
  457. {
  458. get { return m_LLAModuleInfo; }
  459. set { SetProperty(ref m_LLAModuleInfo, value); }
  460. }
  461. public ModuleInfo LLBModuleInfo
  462. {
  463. get { return m_LLBModuleInfo; }
  464. set { SetProperty(ref m_LLBModuleInfo, value); }
  465. }
  466. public ModuleInfo TMModuleInfo
  467. {
  468. get { return m_TMModuleInfo; }
  469. set { SetProperty(ref m_TMModuleInfo, value); }
  470. }
  471. public bool TMIsOFFline
  472. {
  473. get { return m_TMIsOFFline; }
  474. set { SetProperty(ref m_TMIsOFFline, value); }
  475. }
  476. public bool LLIsOFFline
  477. {
  478. get { return m_LLIsOFFline; }
  479. set { SetProperty(ref m_LLIsOFFline, value); }
  480. }
  481. public bool PMADoorIsOpen
  482. {
  483. get { return m_PMADoorIsOpen; }
  484. set { SetProperty(ref m_PMADoorIsOpen, value); }
  485. }
  486. public bool LLADoorIsOpen
  487. {
  488. get { return m_LLADoorIsOpen; }
  489. set { SetProperty(ref m_LLADoorIsOpen, value); }
  490. }
  491. public WaferRobotTAction WaferRobotTAction
  492. {
  493. get { return m_WaferRobotTAction; }
  494. set { SetProperty(ref m_WaferRobotTAction, value); }
  495. }
  496. public WaferRobotTAction Robot1TAction
  497. {
  498. get { return m_Robot1TAction; }
  499. set { SetProperty(ref m_Robot1TAction, value); }
  500. }
  501. public WaferRobotXAction Robot1XAction
  502. {
  503. get { return m_Robot1XAction; }
  504. set { SetProperty(ref m_Robot1XAction, value); }
  505. }
  506. public WaferRobotTAction Robot2TAction
  507. {
  508. get { return m_Robot2TAction; }
  509. set { SetProperty(ref m_Robot2TAction, value); }
  510. }
  511. public WaferRobotXAction Robot2XAction
  512. {
  513. get { return m_Robot2XAction; }
  514. set { SetProperty(ref m_Robot2XAction, value); }
  515. }
  516. public TMModule PickSelectedModule
  517. {
  518. get { return m_PickSelectedModule; }
  519. set { SetProperty(ref m_PickSelectedModule, value); }
  520. }
  521. public TMModule PlaceSelectedModule
  522. {
  523. get { return m_PlaceSelectedModule; }
  524. set { SetProperty(ref m_PlaceSelectedModule, value); }
  525. }
  526. public TMModule ExtendSelectedModule
  527. {
  528. get { return m_ExtendSelectedModule; }
  529. set { SetProperty(ref m_ExtendSelectedModule, value); }
  530. }
  531. public TMModule RetractSelectedModule
  532. {
  533. get { return m_RetractSelectedModule; }
  534. set { SetProperty(ref m_RetractSelectedModule, value); }
  535. }
  536. public TMBlade PickSelectedBlade
  537. {
  538. get { return m_PickSelectedBlade; }
  539. set { SetProperty(ref m_PickSelectedBlade, value); }
  540. }
  541. public TMBlade PlaceSelectedBlade
  542. {
  543. get { return m_PlaceSelectedBlade; }
  544. set { SetProperty(ref m_PlaceSelectedBlade, value); }
  545. }
  546. public TMBlade ExtendSelectedBlade
  547. {
  548. get { return m_ExtendSelectedBlade; }
  549. set { SetProperty(ref m_ExtendSelectedBlade, value); }
  550. }
  551. public TMBlade RetractSelectedBlade
  552. {
  553. get { return m_RetractSelectedBlade; }
  554. set { SetProperty(ref m_RetractSelectedBlade, value); }
  555. }
  556. public TMBlade GoToSelectedBlade
  557. {
  558. get { return m_GoToSelectedBlade; }
  559. set { SetProperty(ref m_GoToSelectedBlade, value); }
  560. }
  561. public ObservableCollection<int> PickSoltItemsSource
  562. {
  563. get { return m_PickSoltItemsSource; }
  564. set { SetProperty(ref m_PickSoltItemsSource, value); }
  565. }
  566. public ObservableCollection<int> PlaceSoltItemsSource
  567. {
  568. get { return m_PlaceSoltItemsSource; }
  569. set { SetProperty(ref m_PlaceSoltItemsSource, value); }
  570. }
  571. public ObservableCollection<int> ExtendSoltItemsSource
  572. {
  573. get { return m_ExtendSoltItemsSource; }
  574. set { SetProperty(ref m_ExtendSoltItemsSource, value); }
  575. }
  576. public ObservableCollection<int> RetractSoltItemsSource
  577. {
  578. get { return m_RetractSoltItemsSource; }
  579. set { SetProperty(ref m_RetractSoltItemsSource, value); }
  580. }
  581. public int PickSoltSelectedIndex
  582. {
  583. get { return m_PickSoltSelectedIndex; }
  584. set { SetProperty(ref m_PickSoltSelectedIndex, value); }
  585. }
  586. public int PlaceSoltSelectedIndex
  587. {
  588. get { return m_PlaceSoltSelectedIndex; }
  589. set { SetProperty(ref m_PlaceSoltSelectedIndex, value); }
  590. }
  591. public int ExtendSoltSelectedIndex
  592. {
  593. get { return m_ExtendSoltSelectedIndex; }
  594. set { SetProperty(ref m_ExtendSoltSelectedIndex, value); }
  595. }
  596. public int RetractSoltSelectedIndex
  597. {
  598. get { return m_RetractSoltSelectedIndex; }
  599. set { SetProperty(ref m_RetractSoltSelectedIndex, value); }
  600. }
  601. public Dictionary<string, object> RtDataValues
  602. {
  603. get { return m_RtDataValues; }
  604. set { SetProperty(ref m_RtDataValues, value); }
  605. }
  606. public bool PMAIsInstalled
  607. {
  608. get { return m_PMAIsInstalled; }
  609. set { SetProperty(ref m_PMAIsInstalled, value); }
  610. }
  611. public bool PMBIsInstalled
  612. {
  613. get { return m_PMBIsInstalled; }
  614. set { SetProperty(ref m_PMBIsInstalled, value); }
  615. }
  616. public bool PMCIsInstalled
  617. {
  618. get { return m_PMCIsInstalled; }
  619. set { SetProperty(ref m_PMCIsInstalled, value); }
  620. }
  621. public bool PMDIsInstalled
  622. {
  623. get { return m_PMDIsInstalled; }
  624. set { SetProperty(ref m_PMDIsInstalled, value); }
  625. }
  626. public bool LLAIsInstalled
  627. {
  628. get { return m_LLAIsInstalled; }
  629. set { SetProperty(ref m_LLAIsInstalled, value); }
  630. }
  631. public bool LLBIsInstalled
  632. {
  633. get { return m_LLBIsInstalled; }
  634. set { SetProperty(ref m_LLBIsInstalled, value); }
  635. }
  636. public bool TMIsInstalled
  637. {
  638. get { return m_TMIsInstalled; }
  639. set { SetProperty(ref m_TMIsInstalled, value); }
  640. }
  641. public List<TMModule> TMModules
  642. {
  643. get { return m_TMModules; }
  644. set { SetProperty(ref m_TMModules, value); }
  645. }
  646. public bool CycleEnable
  647. {
  648. get { return m_CycleEnable; }
  649. set { SetProperty(ref m_CycleEnable, value); }
  650. }
  651. public string OriginalCycleSelectedItem
  652. {
  653. get { return m_OriginalCycleSelectedItem; }
  654. set { SetProperty(ref m_OriginalCycleSelectedItem, value); }
  655. }
  656. public string ToCycleSelectedItem
  657. {
  658. get { return m_ToCycleSelectedItem; }
  659. set { SetProperty(ref m_ToCycleSelectedItem, value); }
  660. }
  661. public bool PMAIsCycle
  662. {
  663. get { return m_PMAIsCycle; }
  664. set { SetProperty(ref m_PMAIsCycle, value); }
  665. }
  666. public bool PMBIsCycle
  667. {
  668. get { return m_PMBIsCycle; }
  669. set { SetProperty(ref m_PMBIsCycle, value); }
  670. }
  671. public bool PMCIsCycle
  672. {
  673. get { return m_PMCIsCycle; }
  674. set { SetProperty(ref m_PMCIsCycle, value); }
  675. }
  676. public bool PMDIsCycle
  677. {
  678. get { return m_PMDIsCycle; }
  679. set { SetProperty(ref m_PMDIsCycle, value); }
  680. }
  681. public int CycleCount
  682. {
  683. get { return m_CycleCount; }
  684. set { SetProperty(ref m_CycleCount, value); }
  685. }
  686. #endregion
  687. #region 命令
  688. private DelegateCommand _RobotHomeCommand;
  689. public DelegateCommand RobotHomeCommand =>
  690. _RobotHomeCommand ?? (_RobotHomeCommand = new DelegateCommand(OnRobotHome));
  691. private DelegateCommand _GotoCommand;
  692. public DelegateCommand GotoCommand =>
  693. _GotoCommand ?? (_GotoCommand = new DelegateCommand(OnGoto));
  694. private DelegateCommand _ExtendCommand;
  695. public DelegateCommand ExtendCommand =>
  696. _ExtendCommand ?? (_ExtendCommand = new DelegateCommand(OnExtend));
  697. private DelegateCommand _RetractCommand;
  698. public DelegateCommand RetractCommand =>
  699. _RetractCommand ?? (_RetractCommand = new DelegateCommand(OnRetract));
  700. private DelegateCommand<object> _ModuleChangeCommand;
  701. public DelegateCommand<object> ModuleChangeCommand =>
  702. _ModuleChangeCommand ?? (_ModuleChangeCommand = new DelegateCommand<object>(OnModuleChange));
  703. private DelegateCommand _PickCommand;
  704. public DelegateCommand PickCommand =>
  705. _PickCommand ?? (_PickCommand = new DelegateCommand(OnPick));
  706. private DelegateCommand _PlaceCommand;
  707. public DelegateCommand PlaceCommand =>
  708. _PlaceCommand ?? (_PlaceCommand = new DelegateCommand(OnPlace));
  709. private DelegateCommand _HomeCommand;
  710. public DelegateCommand HomeCommand =>
  711. _HomeCommand ?? (_HomeCommand = new DelegateCommand(OnHome));
  712. private DelegateCommand _VentCommand;
  713. public DelegateCommand VentCommand =>
  714. _VentCommand ?? (_VentCommand = new DelegateCommand(OnVent));
  715. private DelegateCommand _PumpCommand;
  716. public DelegateCommand PumpCommand =>
  717. _PumpCommand ?? (_PumpCommand = new DelegateCommand(OnPump));
  718. private DelegateCommand _PurgeCommand;
  719. public DelegateCommand PurgeCommand =>
  720. _PurgeCommand ?? (_PurgeCommand = new DelegateCommand(OnPurge));
  721. private DelegateCommand<object> _ModuleCheckedCommand;
  722. public DelegateCommand<object> ModuleCheckedCommand =>
  723. _ModuleCheckedCommand ?? (_ModuleCheckedCommand = new DelegateCommand<object>(OnModuleChecked));
  724. private DelegateCommand _AbortCommand;
  725. public DelegateCommand AbortCommand =>
  726. _AbortCommand ?? (_AbortCommand = new DelegateCommand(OnAbort));
  727. private DelegateCommand _StartCycleCommand;
  728. public DelegateCommand StartCycleCommand =>
  729. _StartCycleCommand ?? (_StartCycleCommand = new DelegateCommand(OnStartCycle));
  730. private DelegateCommand _StopCycleCommand;
  731. public DelegateCommand StopCycleCommand =>
  732. _StopCycleCommand ?? (_StopCycleCommand = new DelegateCommand(OnStopCycle));
  733. private DelegateCommand _SystemHomeCommand;
  734. public DelegateCommand SystemHomeCommand =>
  735. _SystemHomeCommand ?? (_SystemHomeCommand = new DelegateCommand(OnSystemHome));
  736. private DelegateCommand<object> _ChamberDoorOpenCommand;
  737. public DelegateCommand<object> ChamberDoorOpenCommand =>
  738. _ChamberDoorOpenCommand ?? (_ChamberDoorOpenCommand = new DelegateCommand<object>(OnChamberDoorOpen));
  739. private DelegateCommand<object> _ChamberDoorCloseCommand;
  740. public DelegateCommand<object> ChamberDoorCloseCommand =>
  741. _ChamberDoorCloseCommand ?? (_ChamberDoorCloseCommand = new DelegateCommand<object>(OnChamberDoorClose));
  742. #endregion
  743. #region 构造函数
  744. public TMViewModel()
  745. {
  746. string allModules = QueryDataClient.Instance.Service.GetConfig($"System.InstalledModules").ToString();
  747. PMAIsInstalled = allModules.Contains("PMA");
  748. PMBIsInstalled = allModules.Contains("PMB");
  749. PMCIsInstalled = allModules.Contains("PMC");
  750. PMDIsInstalled = allModules.Contains("PMD");
  751. LLAIsInstalled = allModules.Contains("LLA");
  752. LLBIsInstalled = allModules.Contains("LLB");
  753. TMIsInstalled= allModules.Contains("TM");
  754. if (PMAIsInstalled == true)
  755. {
  756. TMModules.Add(TMModule.PMA);
  757. }
  758. if (PMBIsInstalled == true)
  759. {
  760. TMModules.Add(TMModule.PMB);
  761. }
  762. if (PMCIsInstalled == true)
  763. {
  764. TMModules.Add(TMModule.PMC);
  765. }
  766. if (PMDIsInstalled == true)
  767. {
  768. TMModules.Add(TMModule.PMD);
  769. }
  770. if (LLAIsInstalled == true)
  771. {
  772. OriginalCycle.Add("LLA");
  773. ToCycle.Add("LLA");
  774. TMModules.Add(TMModule.LLA);
  775. }
  776. if (LLBIsInstalled == true)
  777. {
  778. OriginalCycle.Add("LLB");
  779. ToCycle.Add("LLB");
  780. TMModules.Add(TMModule.LLB);
  781. }
  782. addDataKeys();
  783. DispatcherTimer timer = new DispatcherTimer();
  784. timer.Interval = TimeSpan.FromSeconds(0.1);
  785. timer.Tick += Timer_Tick;
  786. timer.Start();
  787. PickSoltItemsSource.Add(1);
  788. PlaceSoltItemsSource.Add(1);
  789. ExtendSoltItemsSource.Add(1);
  790. RetractSoltItemsSource.Add(1);
  791. //Robot1TAction = WaferRobotTAction.PMA;
  792. //Robot2TAction = WaferRobotTAction.PMD;
  793. //UIEvents.PMDoorRaiseChangedEvent += UIEvents_PMDoorRaiseChangedEvent;
  794. //UIEvents.LLTDoorRaiseChangedEvent += UIEvents_LLTDoorRaiseChangedEvent;
  795. //UIEvents.LLEDoorRaiseChangedEvent += UIEvents_LLEDoorRaiseChangedEvent;
  796. }
  797. private void Timer_Tick(object sender, EventArgs e)
  798. {
  799. if (LLAIsInstalled == true)
  800. {
  801. LLAWafer = ModuleManager.ModuleInfos["LLA"].WaferManager.Wafers.FirstOrDefault(x=>x.WaferStatus!=0);
  802. LLAModuleInfo = ModuleManager.ModuleInfos["LLA"];
  803. }
  804. if (LLBIsInstalled == true)
  805. {
  806. LLBWafer = ModuleManager.ModuleInfos["LLB"].WaferManager.Wafers.FirstOrDefault(x => x.WaferStatus != 0);
  807. LLBModuleInfo = ModuleManager.ModuleInfos["LLB"];
  808. }
  809. if (PMAIsInstalled == true)
  810. {
  811. PMAWafer = ModuleManager.ModuleInfos["PMA"].WaferManager.Wafers[0];
  812. }
  813. if (PMBIsInstalled == true)
  814. {
  815. PMBWafer = ModuleManager.ModuleInfos["PMB"].WaferManager.Wafers[0];
  816. }
  817. if (PMCIsInstalled == true)
  818. {
  819. PMCWafer = ModuleManager.ModuleInfos["PMC"].WaferManager.Wafers[0];
  820. }
  821. if (PMDIsInstalled == true)
  822. {
  823. PMDWafer = ModuleManager.ModuleInfos["PMD"].WaferManager.Wafers[0];
  824. }
  825. if (TMIsInstalled == true)
  826. {
  827. BladeAWafer = ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[0];
  828. BladeBWafer = ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[1];
  829. TMModuleInfo = ModuleManager.ModuleInfos["TMRobot"];
  830. }
  831. RtDataValues = QueryDataClient.Instance.Service.PollData(m_RtDataKeys);
  832. var TMRobotMoveActionArmTarget = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.ArmTarget");
  833. if (TMRobotMoveActionArmTarget != null)
  834. {
  835. RobotArm = ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[0].WaferStatus.ToString();
  836. }
  837. var TMRobotMoveActionBladeTarget = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.BladeTarget");
  838. if (TMRobotMoveActionBladeTarget != null)
  839. {
  840. RobotTarget = TMRobotMoveActionBladeTarget.ToString();
  841. }
  842. var TMRobotMoveActionRobotAction = QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction.RobotAction");
  843. if (TMRobotMoveActionRobotAction != null)
  844. {
  845. RobotAction2 = TMRobotMoveActionRobotAction.ToString();
  846. }
  847. RobotMoveInfo = (RobotMoveInfo)QueryDataClient.Instance.Service.GetData("TM.RobotMoveAction");
  848. }
  849. #endregion
  850. #region 命令方法
  851. private void OnRobotHome()
  852. {
  853. InvokeClient.Instance.Service.DoOperation($"TM.RobotHome", "TMRobot");
  854. }
  855. private void OnGoto()
  856. {
  857. if (GoToSelectedBlade == TMBlade.Blade1)
  858. {
  859. Robot1TAction = WaferRobotTAction;
  860. }
  861. else if (GoToSelectedBlade == TMBlade.Blade2)
  862. {
  863. Robot2TAction = WaferRobotTAction;
  864. }
  865. }
  866. private void OnExtend()
  867. {
  868. var moduleName = (ModuleName)Enum.Parse(typeof(ModuleName), PlaceSelectedModule.ToString(), true);
  869. var selectedHand = (Hand)Enum.Parse(typeof(Hand), PlaceSelectedBlade.ToString(), true);
  870. InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.Extend}", moduleName, 0, selectedHand);
  871. }
  872. private void OnRetract()
  873. {
  874. var moduleName = (ModuleName)Enum.Parse(typeof(ModuleName), PlaceSelectedModule.ToString(), true);
  875. var selectedHand = (Hand)Enum.Parse(typeof(Hand), PlaceSelectedBlade.ToString(), true);
  876. InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.Retract}", moduleName, 0, selectedHand);
  877. }
  878. private void OnModuleChange(object obj)
  879. {
  880. var value = obj.ToString();
  881. switch (value)
  882. {
  883. case "Pick":
  884. PickSoltItemsSource.Clear();
  885. if ((int)PickSelectedModule == 4)
  886. {
  887. for (int i = 1; i <= LLAModuleInfo.WaferManager.Wafers.Count; i++)
  888. {
  889. PickSoltItemsSource.Add(i);
  890. }
  891. }
  892. else if ((int)PickSelectedModule == 5)
  893. {
  894. for (int i = 1; i <= LLBModuleInfo.WaferManager.Wafers.Count; i++)
  895. {
  896. PickSoltItemsSource.Add(i);
  897. }
  898. }
  899. else
  900. {
  901. PickSoltItemsSource.Add(1);
  902. }
  903. PickSoltSelectedIndex = 0;
  904. break;
  905. case "Place":
  906. PlaceSoltItemsSource.Clear();
  907. if ((int)PlaceSelectedModule == 4)
  908. {
  909. for (int i = 1; i <= LLAModuleInfo.WaferManager.Wafers.Count; i++)
  910. {
  911. PlaceSoltItemsSource.Add(i);
  912. }
  913. }
  914. else if ((int)PlaceSelectedModule == 5)
  915. {
  916. for (int i = 1; i <= LLBModuleInfo.WaferManager.Wafers.Count; i++)
  917. {
  918. PlaceSoltItemsSource.Add(i);
  919. }
  920. }
  921. else
  922. {
  923. PlaceSoltItemsSource.Add(1);
  924. }
  925. PlaceSoltSelectedIndex = 0;
  926. break;
  927. case "Extend":
  928. ExtendSoltItemsSource.Clear();
  929. if ((int)ExtendSelectedModule == 4)
  930. {
  931. for (int i = 1; i <= LLAModuleInfo.WaferManager.Wafers.Count; i++)
  932. {
  933. ExtendSoltItemsSource.Add(i);
  934. }
  935. }
  936. else if ((int)ExtendSelectedModule == 5)
  937. {
  938. for (int i = 1; i <= LLBModuleInfo.WaferManager.Wafers.Count; i++)
  939. {
  940. ExtendSoltItemsSource.Add(i);
  941. }
  942. }
  943. else
  944. {
  945. ExtendSoltItemsSource.Add(1);
  946. }
  947. ExtendSoltSelectedIndex = 0;
  948. break;
  949. case "Retract":
  950. RetractSoltItemsSource.Clear();
  951. if ((int)RetractSelectedModule == 4)
  952. {
  953. for (int i = 1; i <= LLAModuleInfo.WaferManager.Wafers.Count; i++)
  954. {
  955. RetractSoltItemsSource.Add(i);
  956. }
  957. //RetractSoltItemsSource = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8 };
  958. }
  959. else if ((int)RetractSelectedModule == 5)
  960. {
  961. for (int i = 1; i <= LLBModuleInfo.WaferManager.Wafers.Count; i++)
  962. {
  963. RetractSoltItemsSource.Add(i);
  964. }
  965. }
  966. else
  967. {
  968. RetractSoltItemsSource.Add(1);
  969. }
  970. RetractSoltSelectedIndex = 0;
  971. break;
  972. }
  973. }
  974. private void OnPick()
  975. {
  976. Queue<MoveItem> moveItems = new Queue<MoveItem>();
  977. var moduleName= (ModuleName)Enum.Parse(typeof(ModuleName), PickSelectedModule.ToString(), true);
  978. var selectedHand= (Hand)Enum.Parse(typeof(Hand), PickSelectedBlade.ToString(), true);
  979. MoveItem moveItem = new MoveItem(moduleName, PickSoltItemsSource[PickSoltSelectedIndex] - 1, 0, 0, selectedHand);
  980. moveItems.Enqueue(moveItem);
  981. if ((int)PickSelectedModule > 3)
  982. {
  983. InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.LLPick}", moveItems);
  984. }
  985. else
  986. {
  987. InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.PMPick}", moveItems);
  988. }
  989. }
  990. private void OnPlace()
  991. {
  992. Queue<MoveItem> moveItems = new Queue<MoveItem>();
  993. var moduleName = (ModuleName)Enum.Parse(typeof(ModuleName), PlaceSelectedModule.ToString(), true);
  994. var selectedHand = (Hand)Enum.Parse(typeof(Hand), PlaceSelectedBlade.ToString(), true);
  995. MoveItem moveItem = new MoveItem(0,0,moduleName, PlaceSoltItemsSource[PlaceSoltSelectedIndex]-1, selectedHand);
  996. moveItems.Enqueue(moveItem);
  997. if ((int)PlaceSelectedModule > 3)
  998. {
  999. InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.LLPlace}", moveItems);
  1000. }
  1001. else
  1002. {
  1003. InvokeClient.Instance.Service.DoOperation($"TM.{RtOperation.PMPlace}", moveItems);
  1004. }
  1005. }
  1006. private void OnHome()
  1007. {
  1008. InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.Home");
  1009. }
  1010. private void OnVent()
  1011. {
  1012. InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.{RtOperation.Vent}");
  1013. }
  1014. private void OnPump()
  1015. {
  1016. InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.{RtOperation.Pump}");
  1017. }
  1018. private void OnPurge()
  1019. {
  1020. InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.{RtOperation.Purge}");
  1021. }
  1022. private void OnModuleChecked(object obj)
  1023. {
  1024. m_ModuleCheckedName=obj.ToString();
  1025. }
  1026. private void OnAbort()
  1027. {
  1028. InvokeClient.Instance.Service.DoOperation($"{m_ModuleCheckedName}.{RtOperation.Abort}");
  1029. }
  1030. private void OnStartCycle()
  1031. {
  1032. if (CycleEnable == false)
  1033. {
  1034. return;
  1035. }
  1036. List<string> strings = new List<string>();
  1037. if (OriginalCycleSelectedItem != "")
  1038. {
  1039. strings.Add(OriginalCycleSelectedItem);
  1040. }
  1041. else
  1042. {
  1043. return;
  1044. }
  1045. if (PMAIsCycle==true)
  1046. {
  1047. strings.Add("PMA");
  1048. }
  1049. if (PMBIsCycle == true)
  1050. {
  1051. strings.Add("PMB");
  1052. }
  1053. if (PMCIsCycle == true)
  1054. {
  1055. strings.Add("PMC");
  1056. }
  1057. if (PMDIsCycle == true)
  1058. {
  1059. strings.Add("PMD");
  1060. }
  1061. if (ToCycleSelectedItem != "")
  1062. {
  1063. strings.Add(ToCycleSelectedItem);
  1064. }
  1065. else
  1066. {
  1067. return;
  1068. }
  1069. InvokeClient.Instance.Service.DoOperation("TMCycle.Start", strings.ToArray(),CycleCount);
  1070. }
  1071. private void OnStopCycle()
  1072. {
  1073. InvokeClient.Instance.Service.DoOperation("TMCycle.Abort");
  1074. }
  1075. private void OnSystemHome()
  1076. {
  1077. InvokeClient.Instance.Service.DoOperation("System.Home");
  1078. }
  1079. private void OnChamberDoorOpen(object obj)
  1080. {
  1081. InvokeClient.Instance.Service.DoOperation($"{obj?.ToString()}.SlitDoor.Open");
  1082. }
  1083. private void OnChamberDoorClose(object obj)
  1084. {
  1085. InvokeClient.Instance.Service.DoOperation($"{obj?.ToString()}.SlitDoor.Close");
  1086. }
  1087. #endregion
  1088. #region 私有方法
  1089. private void addDataKeys()
  1090. {
  1091. m_RtDataKeys.Add("PMA.IsSlitDoorClosed");
  1092. m_RtDataKeys.Add("PMB.IsSlitDoorClosed");
  1093. m_RtDataKeys.Add("PMC.IsSlitDoorClosed");
  1094. m_RtDataKeys.Add("PMD.IsSlitDoorClosed");
  1095. m_RtDataKeys.Add("TM.LLATSlitDoor.IsClosed");
  1096. m_RtDataKeys.Add("TM.LLBTSlitDoor.IsClosed");
  1097. m_RtDataKeys.Add("TM.LLAESlitDoor.IsClosed");
  1098. m_RtDataKeys.Add("TM.LLBESlitDoor.IsClosed");
  1099. m_RtDataKeys.Add("TMCycle.CycleIndex");
  1100. }
  1101. //private void UIEvents_PMDoorRaiseChangedEvent(DoorPara obj)
  1102. //{
  1103. // InvokeClient.Instance.Service.DoOperation($"{obj?.ModuleName}.SlitDoor.{obj?.IsOpen}");
  1104. //}
  1105. //private void UIEvents_LLTDoorRaiseChangedEvent(DoorPara obj)
  1106. //{
  1107. // InvokeClient.Instance.Service.DoOperation($"TM.{obj.ModuleName}TSlitDoor.{obj?.IsOpen}");
  1108. //}
  1109. //private void UIEvents_LLEDoorRaiseChangedEvent(DoorPara obj)
  1110. //{
  1111. // InvokeClient.Instance.Service.DoOperation($"TM.{obj.ModuleName}ESlitDoor.{obj?.IsOpen}");
  1112. //}
  1113. #endregion
  1114. }
  1115. }