RecipeDataLayout.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. using Aitex.Core.RT.Log;
  2. using Caliburn.Micro.Core;
  3. using MECF.Framework.Common.RecipeCenter;
  4. using MECF.Framework.UI.Client.CenterViews.Editors.Recipe;
  5. using RecipeEditorLib.RecipeModel.Params;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Collections.ObjectModel;
  9. using System.Linq;
  10. using System.Reflection;
  11. using System.Text;
  12. using System.Windows;
  13. using System.Xml;
  14. namespace FurnaceUI.Views.Recipes
  15. {
  16. public class RecipeDataLayout : PropertyChangedBase
  17. {
  18. public bool IsChanged
  19. {
  20. get
  21. {
  22. bool changed = !IsSavedDesc;
  23. if (!changed)
  24. {
  25. //changed = ChkChanged(Steps) || ChkChanged(PopSettingSteps) || ChkChanged(StepTolerances);
  26. }
  27. if (!changed)
  28. {
  29. foreach (Param config in this.ConfigItems)
  30. {
  31. if (!config.IsSaved)
  32. {
  33. changed = true;
  34. break;
  35. }
  36. }
  37. }
  38. return changed;
  39. }
  40. }
  41. private bool _isSavedDesc;
  42. public bool IsSavedDesc
  43. {
  44. get { return _isSavedDesc; }
  45. set
  46. {
  47. this._isSavedDesc = value;
  48. this.NotifyOfPropertyChange("IsSavedDesc");
  49. }
  50. }
  51. private string name;
  52. public string Name
  53. {
  54. get { return this.name; }
  55. set
  56. {
  57. this.name = value;
  58. this.NotifyOfPropertyChange("Name");
  59. }
  60. }
  61. private string _chamberType;
  62. public string RecipeChamberType
  63. {
  64. get { return this._chamberType; }
  65. set
  66. {
  67. this._chamberType = value;
  68. this.NotifyOfPropertyChange("RecipeChamberType");
  69. }
  70. }
  71. private string _recipePermission;
  72. public string RecipePermission
  73. {
  74. get { return this._recipePermission; }
  75. set
  76. {
  77. this._recipePermission = value;
  78. this.NotifyOfPropertyChange("RecipePermisson");
  79. }
  80. }
  81. private string _recipeLevel;
  82. public string RecipeLevel
  83. {
  84. get { return this._recipeLevel; }
  85. set
  86. {
  87. this._recipeLevel = value;
  88. this.NotifyOfPropertyChange("RecipeLevel");
  89. }
  90. }
  91. private string _recipeVersion;
  92. public string RecipeVersion
  93. {
  94. get { return this._recipeVersion; }
  95. set
  96. {
  97. this._recipeVersion = value;
  98. this.NotifyOfPropertyChange("RecipeVersion");
  99. }
  100. }
  101. private string _prefixPath;
  102. public string PrefixPath
  103. {
  104. get { return _prefixPath; }
  105. set
  106. {
  107. _prefixPath = value;
  108. this.NotifyOfPropertyChange("PrefixPath");
  109. }
  110. }
  111. private string creator;
  112. public string Creator
  113. {
  114. get { return this.creator; }
  115. set
  116. {
  117. this.creator = value;
  118. this.NotifyOfPropertyChange("Creator");
  119. }
  120. }
  121. private DateTime createTime;
  122. public DateTime CreateTime
  123. {
  124. get { return this.createTime; }
  125. set
  126. {
  127. this.createTime = value;
  128. this.NotifyOfPropertyChange("CreateTime");
  129. }
  130. }
  131. private string description;
  132. public string Description
  133. {
  134. get { return this.description; }
  135. set
  136. {
  137. this.description = value;
  138. this.NotifyOfPropertyChange("Description");
  139. }
  140. }
  141. private string devisor;
  142. public string Revisor
  143. {
  144. get { return this.devisor; }
  145. set
  146. {
  147. this.devisor = value;
  148. this.NotifyOfPropertyChange("Revisor");
  149. }
  150. }
  151. private DateTime deviseTime;
  152. public DateTime ReviseTime
  153. {
  154. get { return this.deviseTime; }
  155. set
  156. {
  157. this.deviseTime = value;
  158. this.NotifyOfPropertyChange("ReviseTime");
  159. }
  160. }
  161. public ObservableCollection<RecipeLayoutEntityNormal> NormalSteps { get; private set; } = new ObservableCollection<RecipeLayoutEntityNormal>();
  162. public ObservableCollection<RecipeLayoutEntityExpert> ExpertSteps { get; private set; } = new ObservableCollection<RecipeLayoutEntityExpert>();
  163. public ObservableCollection<Param> ConfigItems { get; private set; }
  164. public ObservableCollection<Param> Configs
  165. {
  166. get;
  167. set;
  168. }
  169. private XmlDocument _doc;
  170. private string _module;
  171. public bool ToleranceEnable { get; set; }
  172. public bool IsCompatibleWithCurrentFormat { get; set; }
  173. private RecipeProvider _recipeProvider = new RecipeProvider();
  174. private Dictionary<string, ObservableCollection<RecipeTemplateColumnBase>> RecipeTemplate;
  175. public bool ChkChanged(Dictionary<string, ObservableCollection<ObservableCollection<Param>>> PopSteps)
  176. {
  177. //foreach (ObservableCollection<ObservableCollection<Param>> parameters in PopSteps.Values)
  178. //{
  179. // if (ChkChanged(parameters))
  180. // {
  181. // return true;
  182. // }
  183. //}
  184. return false;
  185. }
  186. public RecipeDataLayout()
  187. {
  188. ConfigItems = new ObservableCollection<Param>();
  189. IsSavedDesc = true;
  190. _doc = new XmlDocument();
  191. XmlElement node = _doc.CreateElement("Aitex");
  192. _doc.AppendChild(node);
  193. node.AppendChild(_doc.CreateElement("TableRecipeData"));
  194. string vars = _recipeProvider.GetRecipeFormatXml(MECF.Framework.Common.Equipment.ModuleName.PM1);
  195. RecipeTemplate = _recipeProvider.GetGroupRecipeTemplate();
  196. }
  197. public void Clear()
  198. {
  199. NormalSteps.Clear();
  200. ExpertSteps.Clear();
  201. ConfigItems.Clear();
  202. RecipeChamberType = "";
  203. RecipeVersion = "";
  204. IsSavedDesc = true;
  205. _module = "";
  206. }
  207. private void LoadSteps(XmlNodeList steps)
  208. {
  209. NormalSteps.Clear();
  210. ExpertSteps.Clear();
  211. foreach (XmlNode stepNode in steps)
  212. {
  213. if (stepNode.Attributes["Name"].Value == "Normal")
  214. {
  215. RecipeLayoutEntityNormal step = new RecipeLayoutEntityNormal();
  216. //遍历Step节点
  217. foreach (XmlAttribute att in stepNode.Attributes)
  218. {
  219. PropertyInfo pi = step.GetType().GetProperty(att.Name);
  220. if (pi != null && pi.Name == att.Name)
  221. {
  222. pi.SetValue(step, att.Value);
  223. }
  224. }
  225. NormalSteps.Add(step);
  226. }
  227. else
  228. {
  229. RecipeLayoutEntityExpert step = new RecipeLayoutEntityExpert();
  230. //遍历Step节点
  231. for (int i = 0; i < stepNode.Attributes.Count; i++)
  232. {
  233. BoatWaferItem item = new BoatWaferItem();
  234. if (stepNode.Attributes[i].Name.StartsWith("slot"))
  235. {
  236. item.Slot = i + 1;
  237. item.Description = stepNode.Attributes[i].Value;
  238. step.Items.Add(item);
  239. }
  240. else
  241. {
  242. PropertyInfo pi = step.GetType().GetProperty(stepNode.Attributes[i].Name);
  243. if (pi.Name == stepNode.Attributes[i].Name)
  244. {
  245. pi.SetValue(step, stepNode.Attributes[i].Value);
  246. }
  247. }
  248. }
  249. ExpertSteps.Add(step);
  250. }
  251. }
  252. }
  253. public void InitData(string prefixPath, string recipeName, string recipeContent, ObservableCollection<Param> configDefine, string module)
  254. {
  255. IsCompatibleWithCurrentFormat = false;
  256. _module = module;
  257. Name = recipeName;
  258. PrefixPath = prefixPath;
  259. try
  260. {
  261. _doc = new XmlDocument();
  262. _doc.LoadXml(recipeContent);
  263. if (!LoadHeader(_doc.SelectSingleNode("Aitex/TableRecipeData")))
  264. return;
  265. XmlNodeList nodeSteps = _doc.SelectNodes($"Aitex/TableRecipeData/Module[@Name='{module}']/Step");
  266. if (nodeSteps == null)
  267. nodeSteps = _doc.SelectNodes($"Aitex/TableRecipeData/Step");
  268. LoadSteps(nodeSteps);
  269. XmlNode nodeConfig =
  270. _doc.SelectSingleNode($"Aitex/TableRecipeData/Module[@Name='{module}']/Config");
  271. if (nodeSteps == null)
  272. nodeConfig = _doc.SelectSingleNode($"Aitex/TableRecipeData/Config");
  273. LoadConfigs(configDefine, nodeConfig);
  274. IsCompatibleWithCurrentFormat = true;
  275. }
  276. catch (Exception ex)
  277. {
  278. LOG.Write(ex);
  279. }
  280. }
  281. private void LoadConfigs(ObservableCollection<Param> configDefine, XmlNode configNode)
  282. {
  283. ConfigItems.Clear();
  284. foreach (var param in configDefine)
  285. {
  286. if (param is DoubleParam param1)
  287. {
  288. var config = new DoubleParam()
  289. {
  290. Name = param.Name,
  291. Value = param1.Value,
  292. DisplayName = param.DisplayName,
  293. Minimun = param1.Minimun,
  294. Maximun = param1.Maximun,
  295. Resolution = param1.Resolution
  296. };
  297. if (configNode != null && configNode.Attributes[param1.Name] != null)
  298. config.Value = configNode.Attributes[param1.Name].Value;
  299. ConfigItems.Add(config);
  300. }
  301. if (param is NumParam paramInt)
  302. {
  303. var config = new NumParam()
  304. {
  305. Name = paramInt.Name,
  306. Value = paramInt.Value,
  307. DisplayName = paramInt.DisplayName,
  308. };
  309. if (configNode != null && configNode.Attributes[paramInt.Name] != null)
  310. {
  311. int.TryParse(configNode.Attributes[paramInt.Name].Value, out int intValue);
  312. config.Value = intValue;
  313. }
  314. ConfigItems.Add(config);
  315. }
  316. if (param is StringParam paramString)
  317. {
  318. var config = new StringParam()
  319. {
  320. Name = param.Name,
  321. Value = paramString.Value,
  322. DisplayName = param.DisplayName,
  323. };
  324. if (configNode != null && configNode.Attributes[paramString.Name] != null)
  325. config.Value = configNode.Attributes[paramString.Name].Value;
  326. ConfigItems.Add(config);
  327. }
  328. }
  329. }
  330. public string GetXmlString()
  331. {
  332. try
  333. {
  334. XmlElement nodeData = _doc.SelectSingleNode($"Aitex/TableRecipeData") as XmlElement;
  335. nodeData.SetAttribute("CreatedBy", Creator);
  336. nodeData.SetAttribute("CreationTime", CreateTime.ToString("yyyy-MM-dd HH:mm:ss"));
  337. nodeData.SetAttribute("LastRevisedBy", Revisor);
  338. nodeData.SetAttribute("LastRevisionTime", ReviseTime.ToString("yyyy-MM-dd HH:mm:ss"));
  339. nodeData.SetAttribute("Description", Description);
  340. nodeData.SetAttribute("RecipeChamberType", RecipeChamberType);
  341. nodeData.SetAttribute("RecipeVersion", RecipeVersion);
  342. nodeData.SetAttribute("RecipePermission", RecipePermission);
  343. nodeData.SetAttribute("RecipeLevel", RecipeLevel);
  344. XmlNode nodeModule = _doc.SelectSingleNode($"Aitex/TableRecipeData/Module[@Name='{_module}']");
  345. if (nodeModule == null)
  346. {
  347. nodeModule = _doc.CreateElement("Module");
  348. nodeData.AppendChild(nodeModule);
  349. }
  350. nodeModule.RemoveAll();
  351. (nodeModule as XmlElement).SetAttribute("Name", _module);
  352. foreach (var parameters in NormalSteps)
  353. {
  354. XmlElement nodeStep = _doc.CreateElement("Step");
  355. nodeStep.SetAttribute("Name", parameters.Name);
  356. //遍历属性
  357. foreach (var prop in parameters.GetType().GetProperties())
  358. {
  359. if (prop.Name == "IsNotifying")
  360. continue;
  361. string strValue = prop.GetValue(parameters) == null ? "" : prop.GetValue(parameters).ToString();
  362. nodeStep.SetAttribute(prop.Name, strValue);
  363. }
  364. nodeModule.AppendChild(nodeStep);
  365. }
  366. foreach (var parameters in ExpertSteps)
  367. {
  368. XmlElement nodeStep = _doc.CreateElement("Step");
  369. nodeStep.SetAttribute("Name", parameters.Name);
  370. for (int i = 0; i < parameters.Items.Count; i++)
  371. {
  372. nodeStep.SetAttribute($"slot{i + 1}", parameters.Items[i].Description);
  373. }
  374. nodeModule.AppendChild(nodeStep);
  375. }
  376. XmlElement nodeConfig = _doc.CreateElement("Config");
  377. foreach (Param parameter in ConfigItems)
  378. {
  379. if (parameter.Visible == System.Windows.Visibility.Visible)
  380. {
  381. if (parameter is IntParam)
  382. nodeConfig.SetAttribute(parameter.Name, ((IntParam)parameter).Value.ToString());
  383. if (parameter is NumParam)
  384. nodeConfig.SetAttribute(parameter.Name, ((NumParam)parameter).Value.ToString());
  385. else if (parameter is DoubleParam)
  386. {
  387. string strValue = ((DoubleParam)parameter).Value;
  388. bool succed = double.TryParse(strValue, out double dValue);
  389. if (!succed)
  390. {
  391. MessageBox.Show($"The set value of {parameter.DisplayName} is {strValue}, not a valid value");
  392. return null;
  393. }
  394. var config = ConfigItems.Where(m => m.Name == parameter.Name).FirstOrDefault();
  395. if (config is DoubleParam param1)
  396. {
  397. if (param1.Minimun == 0 && param1.Maximun == 0)
  398. {
  399. //没有设定范围
  400. }
  401. else if (dValue > param1.Maximun || dValue < param1.Minimun)
  402. {
  403. MessageBox.Show($"The set value of {parameter.DisplayName} is {dValue}, out of the range {param1.Minimun}~{param1.Maximun}");
  404. return null;
  405. }
  406. }
  407. nodeConfig.SetAttribute(parameter.Name, ((DoubleParam)parameter).Value.ToString());
  408. }
  409. else if (parameter is StringParam)
  410. nodeConfig.SetAttribute(parameter.Name, ((StringParam)parameter).Value.ToString());
  411. else if (parameter is ComboxParam)
  412. nodeConfig.SetAttribute(parameter.Name, ((ComboxParam)parameter).Value.ToString());
  413. else if (parameter is LoopComboxParam)
  414. nodeConfig.SetAttribute(parameter.Name, ((LoopComboxParam)parameter).Value.ToString());
  415. else if (parameter is PositionParam)
  416. nodeConfig.SetAttribute(parameter.Name, ((PositionParam)parameter).Value.ToString());
  417. else if (parameter is BoolParam)
  418. nodeConfig.SetAttribute(parameter.Name, ((BoolParam)parameter).Value.ToString());
  419. else if (parameter is StepParam)
  420. nodeConfig.SetAttribute(parameter.Name, ((StepParam)parameter).Value.ToString());
  421. else if (parameter is MultipleSelectParam)
  422. {
  423. List<string> selected = new List<string>();
  424. ((MultipleSelectParam)parameter).Options.Apply(
  425. opt =>
  426. {
  427. if (opt.IsChecked)
  428. selected.Add(opt.ControlName);
  429. }
  430. );
  431. nodeConfig.SetAttribute(parameter.Name, string.Join(",", selected));
  432. }
  433. }
  434. }
  435. nodeModule.AppendChild(nodeConfig);
  436. }
  437. catch (Exception ex)
  438. {
  439. LOG.Write(ex);
  440. return _doc.OuterXml;
  441. }
  442. return _doc.OuterXml;
  443. }
  444. public void SaveTo(string[] moduleList)
  445. {
  446. //GetXmlString();
  447. XmlNode nodeModule = _doc.SelectSingleNode($"Aitex/TableRecipeData/Module[@Name='{_module}']");
  448. if (nodeModule == null)
  449. {
  450. LOG.Write("recipe not find modules," + Name);
  451. return;
  452. }
  453. XmlNode nodeData = nodeModule.ParentNode;
  454. foreach (var module in moduleList)
  455. {
  456. if (module == _module)
  457. {
  458. continue;
  459. }
  460. var child = _doc.SelectSingleNode($"Aitex/TableRecipeData/Module[@Name='{module}']");
  461. if (child != null)
  462. nodeData.RemoveChild(child);
  463. XmlElement node = nodeModule.Clone() as XmlElement;
  464. node.SetAttribute("Name", module);
  465. nodeData.AppendChild(node);
  466. }
  467. }
  468. public string DictionaryStepTime(Dictionary<string, string> steptimes)
  469. {
  470. if (steptimes == null && steptimes.Count == 0) return null;
  471. StringBuilder rtn = new StringBuilder();
  472. foreach (var item in steptimes.Keys)
  473. {
  474. if (steptimes[item] == "00:00:00") continue;
  475. rtn.Append($"{item},{steptimes[item]};");
  476. }
  477. if (rtn.Length > 0) rtn.Remove(rtn.Length - 1, 1);
  478. return rtn.ToString();
  479. }
  480. public Dictionary<string, string> StepTimeToDictionary(string stepTime)
  481. {
  482. Dictionary<string, string> steptimes = new Dictionary<string, string>();
  483. string[] tempTimes = stepTime.Split(';');
  484. foreach (var item in tempTimes)
  485. {
  486. string[] subTimes = item.Split(',');
  487. steptimes.Add(subTimes[0], subTimes[1]);
  488. }
  489. return steptimes;
  490. }
  491. private bool LoadHeader(XmlNode nodeHeader)
  492. {
  493. if (nodeHeader == null)
  494. return false;
  495. if (nodeHeader.Attributes["CreatedBy"] != null)
  496. this.Creator = nodeHeader.Attributes["CreatedBy"].Value;
  497. if (nodeHeader.Attributes["CreationTime"] != null)
  498. this.CreateTime = DateTime.Parse(nodeHeader.Attributes["CreationTime"].Value);
  499. if (nodeHeader.Attributes["LastRevisedBy"] != null)
  500. this.Revisor = nodeHeader.Attributes["LastRevisedBy"].Value;
  501. if (nodeHeader.Attributes["LastRevisionTime"] != null)
  502. this.ReviseTime = DateTime.Parse(nodeHeader.Attributes["LastRevisionTime"].Value);
  503. if (nodeHeader.Attributes["Description"] != null)
  504. this.Description = nodeHeader.Attributes["Description"].Value;
  505. string chamberType = string.Empty;
  506. if (nodeHeader.Attributes["RecipeChamberType"] != null)
  507. chamberType = nodeHeader.Attributes["RecipeChamberType"].Value;
  508. if (!string.IsNullOrEmpty(chamberType) && chamberType != RecipeChamberType)
  509. {
  510. LOG.Write($"{chamberType} is not accordance with {RecipeChamberType}");
  511. return false;
  512. }
  513. string version = string.Empty;
  514. if (nodeHeader.Attributes["RecipeVersion"] != null)
  515. version = nodeHeader.Attributes["RecipeVersion"].Value;
  516. //if (!string.IsNullOrEmpty(version) && version != RecipeVersion)
  517. //{
  518. // LOG.Write($"{version} is not accordance with {RecipeVersion}");
  519. // return false;
  520. //}
  521. return true;
  522. }
  523. }
  524. public class RecipeLayoutEntityNormal : PropertyChangedBase
  525. {
  526. public RecipeLayoutEntityNormal()
  527. {
  528. Name = "Normal";
  529. }
  530. private string name;
  531. public string Name
  532. {
  533. get { return name; }
  534. set { name = value; this.NotifyOfPropertyChange(nameof(Name)); }
  535. }
  536. private string dummyUpperSlot;
  537. public string DummyUpperSlot
  538. {
  539. get { return dummyUpperSlot; }
  540. set { dummyUpperSlot = value; this.NotifyOfPropertyChange(nameof(DummyUpperSlot)); }
  541. }
  542. private string dummyLowerSlot;
  543. public string DummyLowerSlot
  544. {
  545. get { return dummyLowerSlot; }
  546. set { dummyLowerSlot = value; this.NotifyOfPropertyChange(nameof(DummyLowerSlot)); }
  547. }
  548. private string centeringSlotPosition;
  549. public string CenteringSlotPosition
  550. {
  551. get { return centeringSlotPosition; }
  552. set { centeringSlotPosition = value; this.NotifyOfPropertyChange(nameof(CenteringSlotPosition)); }
  553. }
  554. private string productPosition;
  555. public string ProductPosition
  556. {
  557. get { return productPosition; }
  558. set { productPosition = value; this.NotifyOfPropertyChange(nameof(ProductPosition)); }
  559. }
  560. private string productSlotNo;
  561. public string ProductSlotNo
  562. {
  563. get { return productSlotNo; }
  564. set { productSlotNo = value; this.NotifyOfPropertyChange(nameof(ProductSlotNo)); }
  565. }
  566. private string monitorPosition;
  567. public string MonitorPosition
  568. {
  569. get { return monitorPosition; }
  570. set { monitorPosition = value; this.NotifyOfPropertyChange(nameof(MonitorPosition)); }
  571. }
  572. private string monitor1SlotNo;
  573. public string Monitor1SlotNo
  574. {
  575. get { return monitor1SlotNo; }
  576. set { monitor1SlotNo = value; this.NotifyOfPropertyChange(nameof(Monitor1SlotNo)); }
  577. }
  578. private string monitor2SlotNo;
  579. public string Monitor2SlotNo
  580. {
  581. get { return monitor2SlotNo; }
  582. set { monitor2SlotNo = value; this.NotifyOfPropertyChange(nameof(Monitor2SlotNo)); }
  583. }
  584. private string sdDummySlotNo;
  585. public string SDDummySlotNo
  586. {
  587. get { return sdDummySlotNo; }
  588. set { sdDummySlotNo = value; this.NotifyOfPropertyChange(nameof(SDDummySlotNo)); }
  589. }
  590. private string fdDummySlotNo;
  591. public string FDDummySlotNo
  592. {
  593. get { return fdDummySlotNo; }
  594. set { fdDummySlotNo = value; this.NotifyOfPropertyChange(nameof(FDDummySlotNo)); }
  595. }
  596. private string whenPWaferShort = "LeaveAs";
  597. public string WhenPWaferShort
  598. {
  599. get { return whenPWaferShort; }
  600. set { whenPWaferShort = value; this.NotifyOfPropertyChange(nameof(WhenPWaferShort)); }
  601. }
  602. private string sdRule = "DonotMove";
  603. public string SDRule
  604. {
  605. get { return sdRule; }
  606. set { sdRule = value; this.NotifyOfPropertyChange(nameof(SDRule)); }
  607. }
  608. private string whenCassetteInBatchAreShort = "LeaveAs";
  609. public string WhenCassetteInBatchAreShort
  610. {
  611. get { return whenCassetteInBatchAreShort; }
  612. set { whenCassetteInBatchAreShort = value; this.NotifyOfPropertyChange(nameof(WhenCassetteInBatchAreShort)); }
  613. }
  614. private string whenWaferInCassetteAreShort = "LeaveAs";
  615. public string WhenWaferInCassetteAreShort
  616. {
  617. get { return whenWaferInCassetteAreShort; }
  618. set { whenWaferInCassetteAreShort = value; this.NotifyOfPropertyChange(nameof(WhenWaferInCassetteAreShort)); }
  619. }
  620. private string whenEDAreShort = "LeaveAs";
  621. public string WhenEDAreShort
  622. {
  623. get { return whenEDAreShort; }
  624. set { whenEDAreShort = value; this.NotifyOfPropertyChange(nameof(WhenEDAreShort)); }
  625. }
  626. private string ruleOfSpaceInBoat = "LeaveAs";
  627. public string RuleOfSpaceInBoat
  628. {
  629. get { return ruleOfSpaceInBoat; }
  630. set { ruleOfSpaceInBoat = value; this.NotifyOfPropertyChange(nameof(RuleOfSpaceInBoat)); }
  631. }
  632. }
  633. public class RecipeLayoutEntityExpert
  634. {
  635. public RecipeLayoutEntityExpert()
  636. {
  637. Name = "Expert";
  638. }
  639. public string Name { get; set; }
  640. public List<BoatWaferItem> Items { get; set; } = new List<BoatWaferItem>();
  641. }
  642. }