|
@@ -1,11 +1,7 @@
|
|
|
-using Aitex.Core.RT.Log;
|
|
|
-using Aitex.Core.UI.Dialog;
|
|
|
-using Aitex.Core.UI.MVVM;
|
|
|
+using Aitex.Core.UI.MVVM;
|
|
|
using Aitex.Core.Utilities;
|
|
|
-using Caliburn.Micro.Core;
|
|
|
using MECF.Framework.Common.DataCenter;
|
|
|
using MECF.Framework.Common.RecipeCenter;
|
|
|
-using CyberX8_Core;
|
|
|
using CyberX8_MainPages.PMs;
|
|
|
using CyberX8_Themes.UserControls;
|
|
|
using Prism.Mvvm;
|
|
@@ -14,8 +10,6 @@ using System.Collections.Generic;
|
|
|
using System.Collections.ObjectModel;
|
|
|
using System.ComponentModel;
|
|
|
using System.Linq;
|
|
|
-using System.Text;
|
|
|
-using System.Threading.Tasks;
|
|
|
using System.Windows;
|
|
|
using System.Windows.Input;
|
|
|
|
|
@@ -26,6 +20,11 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
#region 常量
|
|
|
private const string ENGINEERING = "Engineering";
|
|
|
private const string SEQUENCE = "seq";
|
|
|
+ public enum PlatType
|
|
|
+ {
|
|
|
+ notch,
|
|
|
+ flat
|
|
|
+ }
|
|
|
#endregion
|
|
|
#region 内部变量
|
|
|
/// <summary>
|
|
@@ -94,6 +93,11 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
/// </summary>
|
|
|
private List<string> _crsTypeLst = null;
|
|
|
/// <summary>
|
|
|
+ /// <summary>
|
|
|
+ /// PlatType类型集合
|
|
|
+ /// </summary>
|
|
|
+ private List<PlatType> _platTypeLst = null;
|
|
|
+ /// <summary>
|
|
|
/// Wafer尺寸集合
|
|
|
/// </summary>
|
|
|
private List<int> _waferSizeLst = null;
|
|
@@ -113,6 +117,10 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
/// 属性检验结果字典
|
|
|
/// </summary>
|
|
|
private Dictionary<string, bool> _propertyValidResultDic = new Dictionary<string, bool>();
|
|
|
+ /// <summary>
|
|
|
+ /// Selected Flat Type
|
|
|
+ /// </summary>
|
|
|
+ private PlatType _selectedPlatType;
|
|
|
#endregion
|
|
|
#region 属性
|
|
|
public ObservableCollection<RecipeNode> RecipeNodes
|
|
@@ -221,6 +229,14 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
set { SetProperty(ref _crsTypeLst, value); }
|
|
|
}
|
|
|
/// <summary>
|
|
|
+ /// PlatType集合
|
|
|
+ /// </summary>
|
|
|
+ public List<PlatType> PlatTypeLst
|
|
|
+ {
|
|
|
+ get { return _platTypeLst; }
|
|
|
+ set { SetProperty(ref _platTypeLst, value); }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
/// Wafer 尺寸集合
|
|
|
/// </summary>
|
|
|
public List<int> WaferSizeLst
|
|
@@ -244,6 +260,15 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
get { return _propertyValidResultDic; }
|
|
|
set { SetProperty(ref _propertyValidResultDic, value); }
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// Selected Plat Type
|
|
|
+ /// </summary>
|
|
|
+ public PlatType SelectedPlatType
|
|
|
+ {
|
|
|
+ get { return _selectedPlatType; }
|
|
|
+ set { SetProperty(ref _selectedPlatType, value); }
|
|
|
+ }
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
#region 指令
|
|
@@ -312,6 +337,9 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
{
|
|
|
CrsTypeLst = crstypeContent.Split(',').ToList();
|
|
|
}
|
|
|
+ PlatTypeLst = new List<PlatType>();
|
|
|
+ PlatTypeLst.Add(PlatType.notch);
|
|
|
+ PlatTypeLst.Add(PlatType.flat);
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 加载数据
|
|
@@ -371,6 +399,7 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
{
|
|
|
ProcessRecipes.AddRange(Recipe.Recipes);
|
|
|
}
|
|
|
+ SelectedPlatType = (PlatType)Recipe.PlatType;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -516,6 +545,7 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
Recipe.Recipes = new List<string>();
|
|
|
Recipe.Recipes.AddRange(ProcessRecipes);
|
|
|
Recipe.SaveDate = DateTime.Now;
|
|
|
+ Recipe.PlatType = (int)SelectedPlatType;
|
|
|
try
|
|
|
{
|
|
|
_uiRecipeManager.SaveRecipe<SequenceRecipe>(ENGINEERING, Recipe.Ppid, "seq",Recipe);
|