TMViewModel.cs 44 KB

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