TMViewModel.cs 44 KB

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