ProcessHistoryViewModel.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. using MECF.Framework.Common.DataCenter;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.Windows.Media;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Venus_Core;
  10. using Prism.Commands;
  11. using Prism.Mvvm;
  12. using Venus_MainPages.Unity;
  13. using Venus_MainPages.Views;
  14. using System.Collections.ObjectModel;
  15. using System.Windows.Threading;
  16. using System.Windows;
  17. using Aitex.Core.RT.Log;
  18. using Aitex.Core.UI.ControlDataContext;
  19. using WPF.Themes.UserControls;
  20. using System.IO;
  21. using System.Diagnostics;
  22. using Aitex.Core.RT.Routine;
  23. using System.Xml.Linq;
  24. using System.Windows.Forms;
  25. using ExcelLibrary.BinaryFileFormat;
  26. using Aitex.Core.UI.View.Common;
  27. using Aitex.Core.RT.DataCenter;
  28. namespace Venus_MainPages.ViewModels
  29. {
  30. public class ProcessHistoryViewModel : BindableBase
  31. {
  32. #region 私有字段
  33. private ProcessHistoryView view;
  34. List<string> keys = new List<string>();
  35. RealtimeProvider _provider = new RealtimeProvider();
  36. private ObservableCollection<ParameterNode> _ParameterNodes;
  37. DispatcherTimer timer = new DispatcherTimer();
  38. ObservableCollection<PdKeyData>_PdKeyDataObservation= new ObservableCollection<PdKeyData>();
  39. public List<string> RecipesAdd=new List<string>();
  40. public List<SolidColorBrush> solidColorBrushes = new List<SolidColorBrush>();
  41. DateTime currentTime;
  42. private RecipeItem selectedRecipeItem;
  43. #endregion
  44. #region 属性
  45. public List<HistoryDataItem> ProcessData { get; set; }
  46. public List<Recipeslist> CheboxRecipes { get; set; }
  47. public ProcessDataChartDataItem ProcessChartData{ get; set; }
  48. public DateTime StartDateTime { get; set; }
  49. public DateTime EndDateTime { get; set; }
  50. public string SelectedValuePM { get; set; }
  51. public string RecipeName { get; set; }
  52. public ObservableCollection<RecipeItem> Recipes { get; set; }
  53. public class Recipeslist
  54. {
  55. public string BoxName { get; set; }
  56. }
  57. public class RecipeAdd
  58. {
  59. public string Recipesname { get; set; }
  60. }
  61. public ObservableCollection<ParameterNode> ParameterNodes
  62. {
  63. get { return _ParameterNodes; }
  64. set { SetProperty(ref _ParameterNodes, value); }
  65. }
  66. public ObservableCollection<PdKeyData> PdKeyDataCollection
  67. {
  68. get { return _PdKeyDataObservation; }
  69. set { SetProperty(ref _PdKeyDataObservation,value); }
  70. }
  71. #endregion
  72. #region 命令
  73. private DelegateCommand<object> _LoadCommandPD;
  74. public DelegateCommand<object> LoadCommandPD =>
  75. _LoadCommandPD ?? (_LoadCommandPD = new DelegateCommand<object>(OnLoadPd));
  76. private DelegateCommand _SearchRecipeCommand;
  77. public DelegateCommand SearchRecipeCommand =>
  78. _SearchRecipeCommand ?? (_SearchRecipeCommand = new DelegateCommand(SearchRecipes));
  79. private DelegateCommand<object> _PdParameterCheckCommand;
  80. public DelegateCommand<object> PdParameterCheckCommand=>
  81. _PdParameterCheckCommand??(_PdParameterCheckCommand=new DelegateCommand<object>(OnParameterCheck));
  82. private DelegateCommand<object> _DataGridSelectionChangedCommand;
  83. public DelegateCommand<object> DataGridSelectionChangedCommand =>
  84. _DataGridSelectionChangedCommand ?? (_DataGridSelectionChangedCommand = new DelegateCommand<object>(OnDataGridSelectionChanged));
  85. private DelegateCommand _SearchDataCommand;
  86. public DelegateCommand SearchDataCommand =>
  87. _SearchDataCommand ?? (_SearchDataCommand = new DelegateCommand(OnSearchData));
  88. private DelegateCommand _ClearDataCommand;
  89. public DelegateCommand ClearDataCommand =>
  90. _ClearDataCommand ?? (_ClearDataCommand = new DelegateCommand(OnClearData));
  91. #endregion
  92. #region 构造函数
  93. public ProcessHistoryViewModel()
  94. {
  95. ProcessChartData = new ProcessDataChartDataItem(60000);
  96. Recipes = new ObservableCollection<RecipeItem>();
  97. timer.Interval = TimeSpan.FromSeconds(0.5);
  98. CheboxRecipes = new List<Recipeslist>();
  99. solidColorBrushes.Add(new SolidColorBrush(Colors.Green));
  100. solidColorBrushes.Add(new SolidColorBrush(Colors.Red));
  101. solidColorBrushes.Add(new SolidColorBrush(Colors.Blue));
  102. solidColorBrushes.Add(new SolidColorBrush(Colors.Orange));
  103. solidColorBrushes.Add(new SolidColorBrush(Colors.Yellow));
  104. solidColorBrushes.Add(new SolidColorBrush(Colors.YellowGreen));
  105. solidColorBrushes.Add(new SolidColorBrush(Colors.AliceBlue));
  106. solidColorBrushes.Add(new SolidColorBrush(Colors.Chocolate));
  107. solidColorBrushes.Add(new SolidColorBrush(Colors.Cyan));
  108. solidColorBrushes.Add(new SolidColorBrush(Colors.DarkGreen));
  109. }
  110. #endregion
  111. #region 命令方法
  112. private void OnLoadPd(Object eventView)
  113. {
  114. this.view = (ProcessHistoryView)eventView;
  115. this.view.wfTimeFrom.Value = DateTime.Today;
  116. this.view.wfTimeTo.Value = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 23, 59, 59, 999);
  117. this.LoadRecipeCheckBox();
  118. }
  119. private void LoadRecipeCheckBox()
  120. {
  121. List<string> chamber = new List<string>() { "PMA","PMB","PMC","PMD"};
  122. CheboxRecipes.Clear();
  123. foreach (string item in chamber)
  124. {
  125. string path = Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", item);
  126. if (Directory.Exists(path))
  127. {
  128. string[] dir = Directory.GetFiles(path);
  129. for (int i = 0; i < dir.Length; i++)
  130. {
  131. CheboxRecipes.Add(new Recipeslist { BoxName = Path.GetFileName(dir[i]) });
  132. }
  133. }
  134. }
  135. }
  136. public void SearchRecipes()
  137. {
  138. SearchRecipe(this.view.wfTimeFrom.Value, this.view.wfTimeTo.Value);
  139. }
  140. public void searchlot(string id)
  141. {
  142. Recipes.Clear();
  143. try
  144. {
  145. string sql1 = string.Format($"SELECT * FROM \"lot_wafer_data\" where guid ='{id}'; ") ;
  146. DataTable dbData1 = QueryDataClient.Instance.Service.QueryData(sql1);
  147. string lot_data_guid = dbData1.Rows[0]["wafer_data_guid"].ToString();
  148. string sql = string.Format($"SELECT * FROM \"process_data\" where guid ='{lot_data_guid}'");
  149. if (!string.IsNullOrEmpty(SelectedValuePM))
  150. {
  151. string[] pms = SelectedValuePM.Split(',');
  152. if (pms.Length > 0)
  153. {
  154. sql += " and (FALSE ";
  155. foreach (var pm in pms)
  156. {
  157. sql += $" OR \"process_in\"='{pm}' ";
  158. }
  159. sql += " ) ";
  160. }
  161. }
  162. if (!string.IsNullOrEmpty(RecipeName))
  163. {
  164. sql += string.Format(" and lower(\"recipe_name\") like '%{0}%'", RecipeName.ToLower());
  165. }
  166. sql += " order by \"process_begin_time\" ASC;";
  167. DataTable dbData = QueryDataClient.Instance.Service.QueryData(sql);
  168. System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() =>
  169. {
  170. if (dbData == null || dbData.Rows.Count == 0) return;
  171. for (int i = 0; i < dbData.Rows.Count; i++)
  172. {
  173. RecipeItem item = new RecipeItem();
  174. item.Selected = false;
  175. item.Recipe = dbData.Rows[i]["recipe_name"].ToString();
  176. item.Guid = dbData.Rows[i]["guid"].ToString();
  177. item.RecipeRunGuid = dbData.Rows[i]["wafer_data_guid"].ToString();
  178. item.Chamber = dbData.Rows[i]["process_in"].ToString();
  179. item.Status = dbData.Rows[i]["process_status"].ToString();
  180. item.SlotID = dbData.Rows[i]["slot_id"].ToString();
  181. item.LotID = dbData.Rows[i]["lot_id"].ToString();
  182. if (!dbData.Rows[i]["process_begin_time"].Equals(DBNull.Value))
  183. item.StartTime = ((DateTime)dbData.Rows[i]["process_begin_time"]).ToString("yyyy-MM-dd HH:mm:ss");
  184. if (!dbData.Rows[i]["process_end_time"].Equals(DBNull.Value))
  185. item.EndTime = ((DateTime)dbData.Rows[i]["process_end_time"]).ToString("yyyy-MM-dd HH:mm:ss");
  186. Recipes.Add(item);
  187. }
  188. }));
  189. }
  190. catch (Exception e)
  191. {
  192. LOG.WriteExeption(e);
  193. }
  194. }
  195. public void SearchRecipe(DateTime start,DateTime end )
  196. {
  197. this.StartDateTime = start;
  198. this.EndDateTime = end;
  199. Recipes.Clear();
  200. try
  201. {
  202. string sql = $"SELECT * FROM \"process_data\" where \"process_begin_time\" >='{StartDateTime.ToString("yyyy/MM/dd HH:mm:ss.fff")}' and \"process_begin_time\" <='{EndDateTime.ToString("yyyy/MM/dd HH:mm:ss.fff")}' ";
  203. if (!string.IsNullOrEmpty(SelectedValuePM))
  204. {
  205. string[] pms = SelectedValuePM.Split(',');
  206. if (pms.Length > 0)
  207. {
  208. sql += " and (FALSE ";
  209. foreach (var pm in pms)
  210. {
  211. sql += $" OR \"process_in\"='{pm}' ";
  212. }
  213. sql += " ) ";
  214. }
  215. }
  216. if (!string.IsNullOrEmpty(RecipeName))
  217. {
  218. sql += string.Format(" and lower(\"recipe_name\") like '%{0}%'", RecipeName.ToLower());
  219. }
  220. sql += " order by \"process_begin_time\" ASC;";
  221. DataTable dbData = QueryDataClient.Instance.Service.QueryData(sql);
  222. System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() =>
  223. {
  224. if (dbData == null || dbData.Rows.Count == 0) return;
  225. for (int i = 0; i < dbData.Rows.Count; i++)
  226. {
  227. RecipeItem item = new RecipeItem();
  228. item.Selected = false;
  229. item.Recipe = dbData.Rows[i]["recipe_name"].ToString();
  230. item.Guid = dbData.Rows[i]["guid"].ToString();
  231. item.RecipeRunGuid = dbData.Rows[i]["wafer_data_guid"].ToString();
  232. item.Chamber = dbData.Rows[i]["process_in"].ToString();
  233. item.Status = dbData.Rows[i]["process_status"].ToString();
  234. item.SlotID = dbData.Rows[i]["slot_id"].ToString();
  235. item.LotID = dbData.Rows[i]["lot_id"].ToString();
  236. if (!dbData.Rows[i]["process_begin_time"].Equals(DBNull.Value))
  237. item.StartTime = ((DateTime)dbData.Rows[i]["process_begin_time"]).ToString("yyyy-MM-dd HH:mm:ss");
  238. if (!dbData.Rows[i]["process_end_time"].Equals(DBNull.Value))
  239. item.EndTime = ((DateTime)dbData.Rows[i]["process_end_time"]).ToString("yyyy-MM-dd HH:mm:ss");
  240. Recipes.Add(item);
  241. }
  242. }));
  243. }
  244. catch (Exception e)
  245. {
  246. LOG.WriteExeption(e);
  247. }
  248. }
  249. private void CalKeys(ParameterNode parameterNode)
  250. {
  251. if (parameterNode.ChildNodes.Count > 0)
  252. {
  253. foreach (var item in parameterNode.ChildNodes)
  254. {
  255. CalKeys(item);
  256. }
  257. }
  258. else
  259. {
  260. if (parameterNode.Selected == true)
  261. {
  262. keys.Add(parameterNode.Name);
  263. }
  264. }
  265. }
  266. private Dictionary<string, List<HistoryDataItem>> GetData(List<string> keys, DateTime from, DateTime to)
  267. {
  268. string sql = "select time AS InternalTimeStamp";
  269. foreach (var dataId in keys)
  270. {
  271. sql += "," + string.Format("\"{0}\"", dataId);
  272. }
  273. sql += string.Format(" from \"{0}\" where time > {1} and time <= {2} order by time asc",
  274. from.ToString("yyyyMMdd") + "." + "Data", from.Ticks, to.Ticks);
  275. DataTable dataTable = QueryDataClient.Instance.Service.QueryData(sql);
  276. Dictionary<string, List<HistoryDataItem>> historyData = new Dictionary<string, List<HistoryDataItem>>();
  277. if (dataTable == null || dataTable.Rows.Count == 0)
  278. return null;
  279. DateTime dt = new DateTime();
  280. Dictionary<int, string> colName = new Dictionary<int, string>();
  281. for (int colNo = 0; colNo < dataTable.Columns.Count; colNo++)
  282. {
  283. colName.Add(colNo, dataTable.Columns[colNo].ColumnName);
  284. historyData[dataTable.Columns[colNo].ColumnName] = new List<HistoryDataItem>();
  285. }
  286. for (int rowNo = 0; rowNo < dataTable.Rows.Count; rowNo++)
  287. {
  288. PointCollection points = new PointCollection();
  289. var row = dataTable.Rows[rowNo];
  290. for (int i = 0; i < dataTable.Columns.Count; i++)
  291. {
  292. HistoryDataItem data = new HistoryDataItem();
  293. if (i == 0)
  294. {
  295. long ticks = (long)row[i];
  296. dt = new DateTime(ticks);
  297. continue;
  298. }
  299. else
  300. {
  301. string dataId = colName[i];
  302. if (row[i] is DBNull || row[i] == null)
  303. {
  304. data.dateTime = dt;
  305. data.dbName = colName[i];
  306. data.value = 0;
  307. }
  308. else if (row[i] is bool)
  309. {
  310. data.dateTime = dt;
  311. data.dbName = colName[i];
  312. data.value = (bool)row[i] ? 1 : 0;
  313. }
  314. else
  315. {
  316. data.dateTime = dt;
  317. data.dbName = colName[i];
  318. data.value = float.Parse(row[i].ToString());
  319. }
  320. }
  321. historyData[data.dbName].Add(data);
  322. }
  323. }
  324. foreach (var item in historyData)
  325. {
  326. item.Value.Sort((x, y) => DateTime.Compare(x.dateTime, y.dateTime));
  327. }
  328. return historyData;
  329. }
  330. private bool RefreshTreeStatusToChild(ParameterNode node)
  331. {
  332. if (node.ChildNodes.Count > 0)
  333. {
  334. for (int i = 0; i < node.ChildNodes.Count; i++)
  335. {
  336. ParameterNode n = node.ChildNodes[i];
  337. n.Selected = node.Selected;
  338. if (!RefreshTreeStatusToChild(n))
  339. {
  340. //uncheck left node
  341. for (int j = i; j < node.ChildNodes.Count; j++)
  342. {
  343. node.ChildNodes[j].Selected = !node.Selected;
  344. }
  345. //node.Selected = !node.Selected;
  346. return false;
  347. }
  348. }
  349. }
  350. //else
  351. //{
  352. // if (node.Selected == true)
  353. // {
  354. // keys.Add(node.Name);
  355. // }
  356. // else
  357. // {
  358. // keys.Remove(node.Name);
  359. // }
  360. //}
  361. return true;
  362. }
  363. private void RefreshTreeStatusToParent(ParameterNode node)
  364. {
  365. if (node.ParentNode != null)
  366. {
  367. if (node.Selected)
  368. {
  369. bool flag = true;
  370. for (int i = 0; i < node.ParentNode.ChildNodes.Count; i++)
  371. {
  372. if (!node.ParentNode.ChildNodes[i].Selected)
  373. {
  374. flag = false; //as least one child is unselected
  375. break;
  376. }
  377. }
  378. if (flag)
  379. node.ParentNode.Selected = true;
  380. }
  381. else
  382. {
  383. node.ParentNode.Selected = false;
  384. }
  385. RefreshTreeStatusToParent(node.ParentNode);
  386. }
  387. }
  388. private void OnParameterCheck(object obj)
  389. {
  390. ParameterNode node = obj as ParameterNode;
  391. if (!RefreshTreeStatusToChild(node))
  392. {
  393. node.Selected = !node.Selected;
  394. }
  395. else
  396. {
  397. RefreshTreeStatusToParent(node);
  398. }
  399. keys.Clear();
  400. for (int i = 0; i < ParameterNodes.Count; i++)
  401. {
  402. CalKeys(ParameterNodes[i]);
  403. }
  404. if (keys.Count > 10)
  405. {
  406. WPFMessageBox.ShowWarning("最多显示10个数据");
  407. return;
  408. }
  409. PdKeyDataCollection.Clear();
  410. for (int i = 0; i < keys.Count; i++)
  411. {
  412. if (i == 10)
  413. {
  414. break;
  415. }
  416. PdKeyDataCollection.Add(new PdKeyData() { Key = keys[i], Color = solidColorBrushes[i] });
  417. }
  418. }
  419. public void UpdateData(RecipeItem dataLog)
  420. {
  421. if (dataLog == null)
  422. {
  423. this.view.MyDrawGraphicsControl.ClearPlotPoints();
  424. return;
  425. }
  426. keys.Clear();
  427. for (int i = 0; i < ParameterNodes.Count; i++)
  428. {
  429. CalKeys(ParameterNodes[i]);
  430. }
  431. if (keys.Count > 10)
  432. {
  433. WPFMessageBox.ShowWarning("最多显示10个数据");
  434. return;
  435. }
  436. //Application.Current.Dispatcher.Invoke(new Action(() =>
  437. //{
  438. // string type = "A";
  439. // string s = dataLog.Chamber;
  440. // if (dataLog.Chamber == "PMA")
  441. // {
  442. // //keys = new List<string> { "IO.PMA.AI_Chamber_Pressure", "PMA.Rf.PowerSetPoint", "PMA.Rf.ForwardPower", "PMA.Rf.ReflectPower", "PMA.IoMfc.MfcGas1.FeedBack", "PMA.IoMfc.MfcGas1.SetPoint", "PMA.IoMfc.MfcGas2.FeedBack", "PMA.IoMfc.MfcGas2.SetPoint", "PMA.IoMfc.MfcGas3.FeedBack", "PMA.IoMfc.MfcGas3.SetPoint" };
  443. // if ((bool)QueryDataClient.Instance.Service.GetConfig($"PMA.BiasRf.EnableBiasRF"))
  444. // type = "A";
  445. // }
  446. // else if (dataLog.Chamber == "PMB")
  447. // {
  448. // // keys = new List<string> { "IO.PMB.AI_Chamber_Pressure", "PMB.Rf.PowerSetPoint", "PMB.Rf.ForwardPower", "PMB.Rf.ReflectPower", "PMB.IoMfc.MfcGas1.FeedBack", "PMB.IoMfc.MfcGas1.SetPoint", "PMB.IoMfc.MfcGas2.FeedBack", "PMB.IoMfc.MfcGas2.SetPoint", "PMB.IoMfc.MfcGas3.FeedBack", "PMB.IoMfc.MfcGas3.SetPoint" };
  449. // if ((bool)QueryDataClient.Instance.Service.GetConfig($"PMB.BiasRf.EnableBiasRF"))
  450. // type = "B";
  451. // }
  452. //}));
  453. this.view.MyDrawGraphicsControl.ClearPlotPoints();
  454. //DateTime dtFrom = dataLog.StartTime;
  455. DateTime dtFrom = Convert.ToDateTime(dataLog.StartTime);
  456. //DateTime dtTo = dtFrom.AddMinutes(10);
  457. DateTime dtTo = Convert.ToDateTime(dataLog.EndTime);
  458. //if (!string.IsNullOrEmpty(dataLog.EndTime))
  459. //{
  460. // dtTo = Convert.ToDateTime(dataLog.EndTime);
  461. //}
  462. var result = GetData(keys.Distinct().ToList(), dtFrom, dtTo);
  463. List<PointCollection> cls = new List<PointCollection>();
  464. for (int i = 0; i < keys.Count; i++)
  465. {
  466. PointCollection points = new PointCollection();
  467. int k = 1;
  468. result[keys[i]].ForEach(point =>
  469. {
  470. points.Add(new Point() { X = point.dateTime.ToOADate(), Y = point.value });
  471. k += 1;
  472. });
  473. cls.Add(points);
  474. }
  475. this.view.MyDrawGraphicsControl.PointCollections = cls;
  476. this.view.MyDrawGraphicsControl.FitControl();
  477. }
  478. public void OnDataGridSelectionChanged(object obj)
  479. {
  480. selectedRecipeItem = obj as RecipeItem;
  481. ParameterNodes = new ObservableCollection<ParameterNode>(_provider.GetParameters().Where(x => x.Name == selectedRecipeItem?.Chamber));
  482. }
  483. private void OnSearchData()
  484. {
  485. this.view.MyDrawGraphicsControl.ClearPlotPoints();
  486. var Keys = new List<string>();
  487. PdKeyDataCollection.ToList().ForEach(key =>
  488. {
  489. Keys.Add(key.Key);
  490. });
  491. if (keys.Count == 0)
  492. {
  493. return;
  494. }
  495. var result = GetData(Keys.Distinct().ToList(), Convert.ToDateTime(selectedRecipeItem?.StartTime) , Convert.ToDateTime(selectedRecipeItem?.EndTime) );
  496. if (result == null)
  497. {
  498. return;
  499. }
  500. List<PointCollection> cls = new List<PointCollection>();
  501. for (int i = 0; i < Keys.Count; i++)
  502. {
  503. PointCollection points = new PointCollection();
  504. int k = 1;
  505. result[Keys[i]].ForEach(point =>
  506. {
  507. points.Add(new Point() { X = point.dateTime.ToOADate(), Y = point.value });
  508. k += 1;
  509. });
  510. cls.Add(points);
  511. }
  512. this.view.MyDrawGraphicsControl.PointCollections = cls;
  513. this.view.MyDrawGraphicsControl.FitControl();
  514. }
  515. private void OnClearData()
  516. {
  517. }
  518. }
  519. #endregion
  520. #region 数据类
  521. public class RecipeItem
  522. {
  523. public bool Selected { get; set; }
  524. public string Recipe { get; set; }
  525. public string Guid { get; set; }
  526. public string RecipeRunGuid { get; set; }
  527. public string Chamber { get; set; }
  528. public string Status { get; set; }
  529. public string StartTime { get; set; }
  530. public string EndTime { get; set; }
  531. public string LotID { get; set; }
  532. public string SlotID { get; set; }
  533. }
  534. public class PdKeyData
  535. {
  536. public string Key { get; set; }
  537. public SolidColorBrush Color { get; set; }
  538. }
  539. #endregion
  540. }