N2PurgeEditViewModel.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. using Aitex.Core.RT.SCCore;
  2. using Aitex.Core.Util;
  3. using Caliburn.Micro;
  4. using DocumentFormat.OpenXml.Drawing;
  5. using FurnaceUI.Client.Dialog;
  6. using MECF.Framework.Common.DataCenter;
  7. using MECF.Framework.Common.OperationCenter;
  8. using MECF.Framework.UI.Client.CenterViews.Configs.SystemConfig;
  9. using MECF.Framework.UI.Client.CenterViews.Dialogs;
  10. using MECF.Framework.UI.Client.CenterViews.Editors.Recipe;
  11. using MECF.Framework.UI.Client.ClientBase;
  12. using OpenSEMI.ClientBase;
  13. using OxyPlot;
  14. using OxyPlot.Axes;
  15. using OxyPlot.Series;
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Collections.ObjectModel;
  19. using System.Globalization;
  20. using System.Linq;
  21. using System.Text;
  22. using System.Threading;
  23. using System.Threading.Tasks;
  24. using System.Windows;
  25. using System.Windows.Controls;
  26. using System.Windows.Data;
  27. namespace FurnaceUI.Views.Parameter
  28. {
  29. public class N2PurgeEditViewModel : ModuleUiViewModelBase
  30. {
  31. public bool IsPermission { get => this.Permission == 3; }
  32. public string TransferRoomVisibleBackGround { get; set; } = "#FF7DABD4";
  33. public string FOUPOpenVisibleBackGround { get; set; } = "#FF7DABD4";
  34. public string O2DetectorVisibleBackGround { get; set; } = "#FF7DABD4";
  35. public string ClampOFFVisibleBackGround { get; set; } = "#FF7DABD4";
  36. public string FurnaceOpenVisibleBackGround { get; set; } = "#FF7DABD4";
  37. public string OperationCheckVisibleBackGround { get; set; } = "#FF7DABD4";
  38. public string O2DensityQuickDownVisibleBackGround { get; set; } = "#FF7DABD4";
  39. public string FoupEnterVisibleBackGround { get; set; } = "#FF7DABD4";
  40. public string WaferChargeVisibleBackGround { get; set; } = "#FF7DABD4";
  41. public string BoatLoadVisibleBackGround { get; set; } = "#FF7DABD4";
  42. public string FoupInhibitAfterVisibleBackGround { get; set; } = "#FF7DABD4";
  43. public string BoatUnloadVisibleBackGround { get; set; } = "#FF7DABD4";
  44. public string BoatUnloadPreVisibleBackGround { get; set; } = "#FF7DABD4";
  45. public string WaferCoolingVisibleBackGround { get; set; } = "#FF7DABD4";
  46. public string WaferDishargeVisibleBackGround { get; set; } = "#FF7DABD4";
  47. public List<ParamBase> ParameterTree { get; set; } = new List<ParamBase>();
  48. public RecipeDataBase CurrentRecipe { get; set; } = new RecipeDataBase();
  49. public ObservableCollection<TempSetData> HeadLst { get; set; } = new ObservableCollection<TempSetData>();
  50. public ObservableCollection<TempSetData> PIDHeadLst { get; set; } = new ObservableCollection<TempSetData>();
  51. private ConfigNode levelOneNode;
  52. public ConfigNode LevelOneNode
  53. {
  54. get { return levelOneNode; }
  55. set { levelOneNode = value; this.NotifyOfPropertyChange(nameof(LevelOneNode)); }
  56. }
  57. private ConfigNode levelTwoNode;
  58. public ConfigNode LevelTwoNode
  59. {
  60. get { return levelTwoNode; }
  61. set { levelTwoNode = value; this.NotifyOfPropertyChange(nameof(LevelTwoNode)); }
  62. }
  63. private List<ConfigItem> currenItems;
  64. public List<ConfigItem> CurrenItems
  65. {
  66. get { return currenItems; }
  67. set { currenItems = value; this.NotifyOfPropertyChange(nameof(CurrenItems)); }
  68. }
  69. private List<ConfigNode> _ConfigNodes = new List<ConfigNode>();
  70. public List<ConfigNode> ConfigNodes
  71. {
  72. get { return _ConfigNodes; }
  73. set { _ConfigNodes = value; NotifyOfPropertyChange("ConfigNodes"); }
  74. }
  75. private string _defaultUnit = "Pa";
  76. public string DefaultUnit
  77. {
  78. get
  79. {
  80. return _defaultUnit;
  81. }
  82. set
  83. {
  84. _defaultUnit = value;
  85. NotifyOfPropertyChange("DefaultUnit");
  86. }
  87. }
  88. private ConfigNode _rootNode;
  89. private string _CurrentNodeName = string.Empty;
  90. private string path;
  91. private string currentValue;
  92. private ObservableCollection<PageValue> valueList { get; set; } = new ObservableCollection<PageValue>();
  93. private PlotModel o2Model;
  94. public PlotModel O2Model
  95. {
  96. get { return o2Model; }
  97. set { o2Model = value; NotifyOfPropertyChange("O2Model"); }
  98. }
  99. private PlotModel n2Model;
  100. public PlotModel N2Model
  101. {
  102. get { return n2Model; }
  103. set { n2Model = value; NotifyOfPropertyChange("N2Model"); }
  104. }
  105. [Subscription("PM1.ConcentrationO2.Value")]
  106. public double ConcentrationO2Value { get; set; }
  107. [Subscription("PM1.MFC51.Feedback")]
  108. public double MFC51Feedback { get; set; }
  109. [Subscription("PM1.MFM57.Feedback")]
  110. public double MFM57Feedback { get; set; }
  111. protected override void OnInitialize()
  112. {
  113. base.OnInitialize();
  114. this.SystemName = "System";
  115. ConfigNodes = SystemConfigProvider.Instance.GetConfigTree(SystemName).SubNodes;
  116. InitTree();
  117. _rootNode = SystemConfigProvider.Instance.GetConfig(true);
  118. }
  119. protected override void OnActivate()
  120. {
  121. base.OnActivate();
  122. DefaultUnit = (string)QueryDataClient.Instance.Service.GetConfig($"PM1.APC.PressureUnit");
  123. GetO2ModelSpline();
  124. GetN2ModelSpline();
  125. }
  126. public void GetO2ModelSpline()
  127. {
  128. var tmp = new PlotModel { };
  129. tmp.Axes.Add(new DateTimeAxis()
  130. {
  131. StringFormat = "HH:mm:ss",
  132. IsZoomEnabled = false,
  133. IsPanEnabled = false,
  134. IntervalType = DateTimeIntervalType.Seconds
  135. });
  136. tmp.Series.Add(new LineSeries
  137. {
  138. Color = OxyColors.Blue,
  139. MarkerType = MarkerType.Circle,
  140. });
  141. this.O2Model = tmp;
  142. Task.Run(() =>
  143. {
  144. while (true)
  145. {
  146. var date = DateTime.Now;
  147. tmp.Axes[0].Maximum = DateTimeAxis.ToDouble(date.AddSeconds(1));
  148. var lineSer = this.O2Model.Series[0] as LineSeries;
  149. lineSer.Points.Add(new OxyPlot.DataPoint(DateTimeAxis.ToDouble(date), ConcentrationO2Value));
  150. if (lineSer.Points.Count > 30)
  151. {
  152. lineSer.Points.RemoveAt(0);
  153. }
  154. tmp.InvalidatePlot(true);
  155. Thread.Sleep(1000);
  156. }
  157. });
  158. }
  159. public void GetN2ModelSpline()
  160. {
  161. var tmp = new PlotModel { };
  162. tmp.Axes.Add(new DateTimeAxis()
  163. {
  164. StringFormat = "HH:mm:ss",
  165. IsZoomEnabled = false,
  166. IsPanEnabled = false,
  167. IntervalType = DateTimeIntervalType.Seconds
  168. });
  169. tmp.Series.Add(new LineSeries
  170. {
  171. Color = OxyColors.Blue,
  172. MarkerType = MarkerType.Circle,
  173. });
  174. this.N2Model = tmp;
  175. Task.Run(() =>
  176. {
  177. while (true)
  178. {
  179. var date = DateTime.Now;
  180. tmp.Axes[0].Maximum = DateTimeAxis.ToDouble(date.AddSeconds(1));
  181. var lineSer = this.N2Model.Series[0] as LineSeries;
  182. var pointValue = MFC51Feedback + MFM57Feedback;
  183. lineSer.Points.Add(new OxyPlot.DataPoint(DateTimeAxis.ToDouble(date), pointValue));
  184. if (lineSer.Points.Count > 30)
  185. {
  186. lineSer.Points.RemoveAt(0);
  187. }
  188. tmp.InvalidatePlot(true);
  189. Thread.Sleep(1000);
  190. }
  191. });
  192. }
  193. private void InitTree()
  194. {
  195. var node = SystemConfigProvider.Instance.GetConfigTree(SystemName).SubNodes;
  196. ParameterTree.Add(new ParamBase() { ID = 1, ParentID = 0, Name = "StepTime", ConfigName = "StepTime" });
  197. ParameterTree.Add(new ParamBase() { ID = 2, ParentID = 0, Name = "Temperature" });
  198. {
  199. ParameterTree.Add(new ParamBase() { ID = 21, ParentID = 2, Name = "TempOffset", ConfigName = "TempOffsetTable" });
  200. ParameterTree.Add(new ParamBase() { ID = 22, ParentID = 2, Name = "TempProfile", ConfigName = "TempProfileTable" });
  201. ParameterTree.Add(new ParamBase() { ID = 23, ParentID = 2, Name = "TempStabilize", ConfigName = "TempStabilizeTable" });
  202. ParameterTree.Add(new ParamBase() { ID = 24, ParentID = 2, Name = "TempSetting", ConfigName = "TempSetting" });
  203. ParameterTree.Add(new ParamBase() { ID = 25, ParentID = 2, Name = "TempPIDTable", ConfigName = "TempPIDTable" });
  204. }
  205. //ParameterTree.Add(new ParamBase() { ID = 3, ParentID = 0, Name = "TempSetting", ConfigName = "TempSetting" });
  206. ParameterTree.Add(new ParamBase() { ID = 4, ParentID = 0, Name = "PressureStabilize", ConfigName = "PressureStabilizeTable" });
  207. ParameterTree.Add(new ParamBase() { ID = 5, ParentID = 0, Name = "AlarmWatchTable" });
  208. {
  209. ParameterTree.Add(new ParamBase() { ID = 51, ParentID = 5, Name = "TempAlarm", ConfigName = "AlarmWatchTable.TempAlarmWatch" });
  210. ParameterTree.Add(new ParamBase() { ID = 52, ParentID = 5, Name = "FlowAlarm", ConfigName = "AlarmWatchTable.FlowAlarmWatch" });
  211. ParameterTree.Add(new ParamBase() { ID = 53, ParentID = 5, Name = "PressureAlarm", ConfigName = "AlarmWatchTable.PressureAlarmWatch" });
  212. }
  213. ParameterTree.Add(new ParamBase() { ID = 6, ParentID = 0, Name = "FlowSetting", ConfigName = "FlowSetting" });
  214. {
  215. var MfcItems = ConfigNodes.Where(x => x.Display == "Parameter").FirstOrDefault().SubNodes.Where(y => y.Name == "MFC").FirstOrDefault().SubNodes;
  216. foreach (var item in MfcItems)
  217. {
  218. var isInstalled = QueryDataClient.Instance.Service.GetConfig($"PM1.MFC.{item.Name}.IsMFCInstalled");
  219. if (!(bool)isInstalled) continue;
  220. ParameterTree.Add(new ParamBase()
  221. {
  222. ID = 61,
  223. ParentID = 6,
  224. Name = SystemConfigProvider.Instance.GetValueByName($"PM1.MFC.{item.Name}.GasName"),
  225. ConfigName = $"FlowSetting.{item.Name}"
  226. });
  227. }
  228. }
  229. ParameterTree.Add(new ParamBase() { ID = 7, ParentID = 0, Name = "APCSetting" });
  230. {
  231. ParameterTree.Add(new ParamBase() { ID = 71, ParentID = 7, Name = "Pressure", ConfigName = "APCSetting.Pressure" });
  232. ParameterTree.Add(new ParamBase() { ID = 72, ParentID = 7, Name = "Position", ConfigName = "APCSetting.Position" });
  233. }
  234. ParameterTree.Add(new ParamBase() { ID = 8, ParentID = 0, Name = "LayoutPitch", ConfigName = "LayoutPitch" });
  235. ParameterTree.Add(new ParamBase() { ID = 9, ParentID = 0, Name = "CoolingTime", ConfigName = "CoolTime" });
  236. ParameterTree = this.LoadTreeView(0);
  237. }
  238. private List<ParamBase> LoadTreeView(int id)
  239. {
  240. List<ParamBase> node = ParameterTree.FindAll(s => s.ParentID.Equals(id));
  241. foreach (var item in node)
  242. {
  243. item.Children = LoadTreeView(item.ID);
  244. }
  245. return node;
  246. }
  247. public void HideAllCanvas()
  248. {
  249. }
  250. public void TreeViewSelectedItemChanged(object obj)
  251. {
  252. valueList.Clear();
  253. LevelOneNode = LevelTwoNode = new ConfigNode();
  254. HideAllCanvas();
  255. var view = GetView() as N2PurgeEditView;
  256. ParamBase para = obj as ParamBase;
  257. string strHeader = "PM1.RecipeEditParameter";
  258. Canvas canvas = null;
  259. LevelOneNode = FindNodeByName(_rootNode, $"{strHeader}.{para.ConfigName}");
  260. LevelTwoNode = LevelOneNode.SubNodes.FirstOrDefault();
  261. if (canvas == null) return;
  262. canvas.Visibility = Visibility.Visible;
  263. this.GetHeaderConfig();
  264. this.GetPIDHeaderConfig();
  265. if (LevelTwoNode == null)
  266. {
  267. InitItemsCurrentValue(LevelOneNode, false);
  268. }
  269. else
  270. {
  271. InitItemsCurrentValue(LevelTwoNode, true);
  272. ConfigNode subNode = LevelTwoNode.SubNodes.FirstOrDefault();
  273. if (subNode != null) InitItemsCurrentValue(subNode, true);
  274. }
  275. }
  276. private void InitItemsCurrentValue(ConfigNode node, bool initSubItems = true)
  277. {
  278. if (node == null) return;
  279. CurrenItems = node.Items;
  280. _CurrentNodeName = string.IsNullOrEmpty(node.Path) ? node.Name : $"{node.Path}.{node.Name}";
  281. if (CurrenItems == null || CurrenItems.Count <= 0)
  282. {
  283. if (!initSubItems) return;
  284. foreach (var item in node.SubNodes)
  285. {
  286. InitItemsCurrentValue(item);
  287. }
  288. }
  289. else
  290. {
  291. GetDataOfConfigItems();
  292. }
  293. }
  294. private void GetDataOfConfigItems()
  295. {
  296. if (CurrenItems == null)
  297. return;
  298. for (int i = 0; i < CurrenItems.Count; i++)
  299. {
  300. var isInstalled = QueryDataClient.Instance.Service.GetConfig($"PM1.MFC.{CurrenItems[i].Name}.IsMFCInstalled");
  301. if (isInstalled != null && !(bool)isInstalled)
  302. CurrenItems[i].Visible = false;
  303. else
  304. CurrenItems[i].Visible = true;
  305. string key = String.Format("{0}{1}{2}", _CurrentNodeName, ".", CurrenItems[i].Name);
  306. CurrenItems[i].CurrentValue = SystemConfigProvider.Instance.GetValueByName(key);
  307. CurrenItems[i].Path = key;
  308. if (CurrenItems[i].Type == DataType.Bool)
  309. {
  310. bool value;
  311. if (bool.TryParse(CurrenItems[i].CurrentValue, out value))
  312. {
  313. CurrenItems[i].BoolValue = value;
  314. CurrenItems[i].CurrentValue = value ? "Yes" : "No";
  315. }
  316. }
  317. else
  318. CurrenItems[i].StringValue = CurrenItems[i].CurrentValue;
  319. }
  320. }
  321. public void MenuCommand(object obj, object menuLevel)
  322. {
  323. RadioButton radioButton = obj as RadioButton;
  324. ConfigNode currentNode = null;
  325. switch (menuLevel.ToString())
  326. {
  327. case "LevelOne":
  328. currentNode = LevelTwoNode = LevelOneNode.SubNodes.Find((x) => x.Name == radioButton.ToolTip.ToString());
  329. break;
  330. case "LevelTwo":
  331. currentNode = LevelTwoNode.SubNodes.Find((x) => x.Name == radioButton.ToolTip.ToString());
  332. break;
  333. }
  334. InitItemsCurrentValue(currentNode);
  335. }
  336. public void SetValue(object obj)
  337. {
  338. var CurrentRecipes = CurrentRecipe;
  339. if (CurrenItems == null || currenItems.Count == 0) return;
  340. ConfigItem item = null;
  341. if (obj is Control)
  342. item = CurrenItems.Find((x) => x.Name == (obj as Control).ToolTip.ToString());
  343. else
  344. item = obj as ConfigItem;
  345. InputDialogViewModel dialog = new InputDialogViewModel();
  346. dialog.Item = item;
  347. dialog.DisplayName = "Set Value";
  348. WindowManager wm = new WindowManager();
  349. bool? bret = wm.ShowDialog(dialog);
  350. if ((bool)bret)
  351. {
  352. item.StringValue = dialog.DialogResult;
  353. //key :System.IsSimulatorMode
  354. //value: true or false 都是字符串
  355. //input check
  356. string value;
  357. if (item.Type == DataType.Bool)
  358. {
  359. if (item.StringValue.Equals("Yes", StringComparison.CurrentCultureIgnoreCase))
  360. item.BoolValue = true;
  361. else if (item.StringValue.Equals("No", StringComparison.CurrentCultureIgnoreCase))
  362. item.BoolValue = false;
  363. else
  364. {
  365. DialogBox.ShowWarning("The Value Should be Yes Or No.");
  366. return;
  367. }
  368. value = item.BoolValue.ToString().ToLower();
  369. }
  370. else
  371. {
  372. if (item.Type == DataType.Int)
  373. {
  374. int iValue;
  375. if (int.TryParse(item.StringValue, out iValue))
  376. {
  377. if (!double.IsNaN(item.Max) && !double.IsNaN(item.Min))
  378. {
  379. if (iValue > item.Max || iValue < item.Min)
  380. {
  381. DialogBox.ShowWarning(string.Format("The value should be between {0} and {1}.", ((int)item.Min).ToString(), ((int)item.Max).ToString()));
  382. return;
  383. }
  384. }
  385. }
  386. else
  387. {
  388. DialogBox.ShowWarning("Please input valid data.");
  389. return;
  390. }
  391. value = item.StringValue;
  392. }
  393. else if (item.Type == DataType.Double)
  394. {
  395. double fValue;
  396. if (double.TryParse(item.StringValue, out fValue))
  397. {
  398. if (!double.IsNaN(item.Max) && !double.IsNaN(item.Min))
  399. {
  400. if (fValue > item.Max || fValue < item.Min)
  401. {
  402. DialogBox.ShowWarning(string.Format("The value should be between {0} and {1}.", item.Min.ToString(), item.Max.ToString()));
  403. return;
  404. }
  405. string[] box = fValue.ToString().Split('.');
  406. if (box.Length > 1 && box[1].Length > 3)
  407. {
  408. DialogBox.ShowWarning(string.Format("The value should be more than three decimal places"));
  409. return;
  410. }
  411. }
  412. }
  413. else
  414. {
  415. DialogBox.ShowWarning("Please input valid data.");
  416. return;
  417. }
  418. value = item.StringValue;
  419. }
  420. else
  421. value = item.StringValue;
  422. }
  423. string key = String.Format("{0}{1}{2}", _CurrentNodeName, ".", item.Name);
  424. if (item.Path.Split('.')[2] == "LayoutPitch")
  425. {
  426. if (item.Path.Split('.')[3] == "StandardPitch")
  427. {
  428. foreach (var current in currenItems.Where(x => x.Description != "StandardPitch"))
  429. {
  430. current.CurrentValue = "No";
  431. InvokeClient.Instance.Service.DoOperation($"{SystemName}.SetConfig", current.Path, "false");
  432. }
  433. }
  434. else if (item.Path.Split('.')[3] == "DoublePitch")
  435. {
  436. foreach (var current in currenItems.Where(x => x.Description != "DoublePitch"))
  437. {
  438. current.CurrentValue = "No";
  439. InvokeClient.Instance.Service.DoOperation($"{SystemName}.SetConfig", current.Path, "false");
  440. }
  441. }
  442. else
  443. {
  444. foreach (var current in currenItems.Where(x => x.Description != "TriplePitch"))
  445. {
  446. current.CurrentValue = "No";
  447. InvokeClient.Instance.Service.DoOperation($"{SystemName}.SetConfig", current.Path, "false");
  448. }
  449. }
  450. }
  451. path = item.Path;
  452. currentValue = value;
  453. valueList.Add(new PageValue() { Path = path, CurrentValue = currentValue });
  454. }
  455. }
  456. public void SaveParameter()
  457. {
  458. foreach (var item in valueList)
  459. {
  460. InvokeClient.Instance.Service.DoOperation($"{SystemName}.SetConfig", item.Path, item.CurrentValue);
  461. }
  462. }
  463. public void GetHeaderConfig()
  464. {
  465. HeadLst.Clear();
  466. for (int i = 0; i < 10; i++)
  467. {
  468. if (i % 2 != 0)
  469. {
  470. var configHeater = (string)QueryDataClient.Instance.Service.GetConfig($"PM1.Heater.Heater{i}.DisplayName");
  471. TempSetData item = new TempSetData(configHeater);
  472. item.SetValue.Value = configHeater;
  473. HeadLst.Add(item);
  474. }
  475. }
  476. }
  477. public void GetPIDHeaderConfig()
  478. {
  479. PIDHeadLst.Clear();
  480. for (int i = 0; i < 10; i++)
  481. {
  482. if (i % 2 != 0)
  483. {
  484. var configHeater = (string)QueryDataClient.Instance.Service.GetConfig($"PM1.Heater.Heater{i}.DisplayName");
  485. TempSetData item1 = new TempSetData(configHeater);
  486. TempSetData item2 = new TempSetData(configHeater);
  487. TempSetData item3 = new TempSetData(configHeater);
  488. item1.SetValue.Value = $"{configHeater} P";
  489. PIDHeadLst.Add(item1);
  490. item2.SetValue.Value = $"{configHeater} I";
  491. PIDHeadLst.Add(item2);
  492. item3.SetValue.Value = $"{configHeater} D";
  493. PIDHeadLst.Add(item3);
  494. }
  495. }
  496. }
  497. private ConfigNode FindNodeByName(ConfigNode parentNode, string strName)
  498. {
  499. string strCates = strName.Split('.')[0];
  500. ConfigNode node = parentNode.SubNodes.Find((x) => x.Name == strCates);
  501. if (node == null)
  502. return parentNode;
  503. else
  504. return FindNodeByName(node, strName.Replace(strCates + ".", ""));
  505. }
  506. public void N2PurgeParaSelect(string ButtonPara)
  507. {
  508. this.GetType().GetProperty($"{ButtonPara}BackGround").SetValue(this, "#FF7DD486");
  509. UpdataProperty();
  510. N2PurgeSelectDialogViewModel dialog = new N2PurgeSelectDialogViewModel(ButtonPara);
  511. WindowManager wm = new WindowManager();
  512. bool? bret = wm.ShowDialog(dialog);
  513. this.GetType().GetProperty($"{ButtonPara}BackGround").SetValue(this, "#FF7DABD4");
  514. UpdataProperty();
  515. if (!(bool)bret)
  516. return;
  517. }
  518. public void UpdataProperty()
  519. {
  520. NotifyOfPropertyChange("TransferRoomVisibleBackGround");
  521. NotifyOfPropertyChange("FOUPOpenVisibleBackGround");
  522. NotifyOfPropertyChange("O2DetectorVisibleBackGround");
  523. NotifyOfPropertyChange("ClampOFFVisibleBackGround");
  524. NotifyOfPropertyChange("OperationCheckVisibleBackGround");
  525. NotifyOfPropertyChange("O2DensityQuickDownVisibleBackGround");
  526. NotifyOfPropertyChange("FoupEnterVisibleBackGround");
  527. NotifyOfPropertyChange("WaferChargeVisibleBackGround");
  528. NotifyOfPropertyChange("BoatLoadVisibleBackGround");
  529. NotifyOfPropertyChange("FoupInhibitAfterVisibleBackGround");
  530. NotifyOfPropertyChange("BoatUnloadVisibleBackGround");
  531. NotifyOfPropertyChange("BoatUnloadPreVisibleBackGround");
  532. NotifyOfPropertyChange("WaferCoolingVisibleBackGround");
  533. NotifyOfPropertyChange("WaferDishargeVisibleBackGround");
  534. }
  535. protected override void InvokeAfterUpdateProperty(Dictionary<string, object> data)
  536. {
  537. base.InvokeAfterUpdateProperty(data);
  538. NotifyOfPropertyChange("TransferRoomVisibleBackGround");
  539. }
  540. }
  541. }