|
@@ -1,10 +1,6 @@
|
|
-using Aitex.Core.Account;
|
|
|
|
-using Aitex.Core.Common.DeviceData;
|
|
|
|
-using Aitex.Core.RT.IOCore;
|
|
|
|
|
|
+using Aitex.Core.Common.DeviceData;
|
|
using Aitex.Core.RT.Log;
|
|
using Aitex.Core.RT.Log;
|
|
using Aitex.Core.UI.View.Common;
|
|
using Aitex.Core.UI.View.Common;
|
|
-using MECF.Framework.Common.CommonData;
|
|
|
|
-//using MECF.Framework.Common.CommonData;
|
|
|
|
using MECF.Framework.Common.DataCenter;
|
|
using MECF.Framework.Common.DataCenter;
|
|
using MECF.Framework.Common.OperationCenter;
|
|
using MECF.Framework.Common.OperationCenter;
|
|
using Microsoft.VisualBasic;
|
|
using Microsoft.VisualBasic;
|
|
@@ -17,7 +13,6 @@ using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Reflection;
|
|
-using System.Runtime.InteropServices;
|
|
|
|
using System.Text;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading;
|
|
using System.Windows;
|
|
using System.Windows;
|
|
@@ -25,18 +20,14 @@ using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Data;
|
|
using System.Windows.Input;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media;
|
|
-using System.Windows.Threading;
|
|
|
|
using System.Xml;
|
|
using System.Xml;
|
|
using Venus_Core;
|
|
using Venus_Core;
|
|
using Venus_Core.Attributes;
|
|
using Venus_Core.Attributes;
|
|
using Venus_MainPages.PMs;
|
|
using Venus_MainPages.PMs;
|
|
using Venus_MainPages.Unity;
|
|
using Venus_MainPages.Unity;
|
|
using Venus_MainPages.Views;
|
|
using Venus_MainPages.Views;
|
|
-using Venus_Themes.CustomControls;
|
|
|
|
using Venus_Themes.UserControls;
|
|
using Venus_Themes.UserControls;
|
|
using WPF.Themes.UserControls;
|
|
using WPF.Themes.UserControls;
|
|
-using Xceed.Wpf.Toolkit.Primitives;
|
|
|
|
-using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
|
|
|
|
using RecipeStep = Venus_Core.RecipeStep;
|
|
using RecipeStep = Venus_Core.RecipeStep;
|
|
|
|
|
|
namespace Venus_MainPages.ViewModels
|
|
namespace Venus_MainPages.ViewModels
|
|
@@ -47,6 +38,7 @@ namespace Venus_MainPages.ViewModels
|
|
WCF,
|
|
WCF,
|
|
None
|
|
None
|
|
}
|
|
}
|
|
|
|
+
|
|
internal class RecipeViewModel : BindableBase
|
|
internal class RecipeViewModel : BindableBase
|
|
{
|
|
{
|
|
#region 私有字段
|
|
#region 私有字段
|
|
@@ -105,8 +97,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
#region 命令
|
|
#region 命令
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
private DelegateCommand<Object> _MouseRightButtonDownCommand;
|
|
private DelegateCommand<Object> _MouseRightButtonDownCommand;
|
|
public DelegateCommand<Object> MouseRightButtonDownCommand =>
|
|
public DelegateCommand<Object> MouseRightButtonDownCommand =>
|
|
_MouseRightButtonDownCommand ?? (_MouseRightButtonDownCommand = new DelegateCommand<Object>(OnMouseRightButtonDown));
|
|
_MouseRightButtonDownCommand ?? (_MouseRightButtonDownCommand = new DelegateCommand<Object>(OnMouseRightButtonDown));
|
|
@@ -115,8 +105,6 @@ namespace Venus_MainPages.ViewModels
|
|
public DelegateCommand<Object> LoadedCommand =>
|
|
public DelegateCommand<Object> LoadedCommand =>
|
|
_LoadedCommand ?? (_LoadedCommand = new DelegateCommand<Object>(OnLoaded));
|
|
_LoadedCommand ?? (_LoadedCommand = new DelegateCommand<Object>(OnLoaded));
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
private DelegateCommand _SaveRecipeCommand;
|
|
private DelegateCommand _SaveRecipeCommand;
|
|
public DelegateCommand SaveRecipeCommand =>
|
|
public DelegateCommand SaveRecipeCommand =>
|
|
_SaveRecipeCommand ?? (_SaveRecipeCommand = new DelegateCommand(OnSaveRecipe));
|
|
_SaveRecipeCommand ?? (_SaveRecipeCommand = new DelegateCommand(OnSaveRecipe));
|
|
@@ -150,37 +138,37 @@ namespace Venus_MainPages.ViewModels
|
|
{
|
|
{
|
|
|
|
|
|
recipeStep = new RecipeStep();
|
|
recipeStep = new RecipeStep();
|
|
|
|
+ recipeStep.LstUnit = RecipeUnity.GetAllUnits(currentChamber,CurrentRecipe.Header.Type);
|
|
|
|
+ //switch (currentChamber)
|
|
|
|
+ //{
|
|
|
|
+ // case JetChamber.Venus:
|
|
|
|
+ // recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
+ // break;
|
|
|
|
+ // case JetChamber.Kepler2300:
|
|
|
|
+ // recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
+ // break;
|
|
|
|
|
|
- switch (currentChamber)
|
|
|
|
- {
|
|
|
|
- case JetChamber.Venus:
|
|
|
|
- recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- break;
|
|
|
|
- case JetChamber.Kepler2300:
|
|
|
|
- recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- break;
|
|
|
|
|
|
+ // case JetChamber.Kepler2200A:
|
|
|
|
+ // recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
|
|
- case JetChamber.Kepler2200A:
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
|
|
+ // recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
|
|
- recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ // break;
|
|
|
|
+ //}
|
|
|
|
|
|
CurrentRecipe.Steps.Insert(index - 1, recipeStep);
|
|
CurrentRecipe.Steps.Insert(index - 1, recipeStep);
|
|
|
|
|
|
@@ -242,10 +230,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
if (currentEPDType == EPDType.Socket)
|
|
if (currentEPDType == EPDType.Socket)
|
|
{
|
|
{
|
|
-
|
|
|
|
EPDCfgList = (List<string>)QueryDataClient.Instance.Service.GetData($"{ModuleName}.EPDCfgList");
|
|
EPDCfgList = (List<string>)QueryDataClient.Instance.Service.GetData($"{ModuleName}.EPDCfgList");
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
if (EPDCfgList != null)
|
|
if (EPDCfgList != null)
|
|
{
|
|
{
|
|
@@ -330,7 +315,12 @@ namespace Venus_MainPages.ViewModels
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- RecipeNameInputDlg dlg = new RecipeNameInputDlg(Application.Current.Resources["GlobalLableMsgInputRecipeName"].ToString())
|
|
|
|
|
|
+ bool hasHV=false;
|
|
|
|
+ if (currentChamber == JetChamber.Venus)
|
|
|
|
+ {
|
|
|
|
+ hasHV = true;
|
|
|
|
+ }
|
|
|
|
+ RecipeNameInputDlg dlg = new RecipeNameInputDlg(Application.Current.Resources["GlobalLableMsgInputRecipeName"].ToString(),hasHV)
|
|
{
|
|
{
|
|
Owner = Application.Current.MainWindow
|
|
Owner = Application.Current.MainWindow
|
|
};
|
|
};
|
|
@@ -464,9 +454,17 @@ namespace Venus_MainPages.ViewModels
|
|
switch (propertyInfo.Name)
|
|
switch (propertyInfo.Name)
|
|
{
|
|
{
|
|
case "ChuckRecipe":
|
|
case "ChuckRecipe":
|
|
|
|
+ if (currentChamber != JetChamber.Venus)
|
|
|
|
+ {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
textBlock.Text = "Chuck:";
|
|
textBlock.Text = "Chuck:";
|
|
break;
|
|
break;
|
|
case "DechuckRecipe":
|
|
case "DechuckRecipe":
|
|
|
|
+ if (currentChamber != JetChamber.Venus)
|
|
|
|
+ {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
textBlock.Text = "DeChuck:";
|
|
textBlock.Text = "DeChuck:";
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
@@ -501,10 +499,16 @@ namespace Venus_MainPages.ViewModels
|
|
cb.SelectionChanged += ChangeUI;
|
|
cb.SelectionChanged += ChangeUI;
|
|
control = cb;
|
|
control = cb;
|
|
control.Height = 23;
|
|
control.Height = 23;
|
|
- control.SetBinding(ComboBox.SelectedItemProperty, binding);
|
|
|
|
ItemsControlHelper.SetEnumValuesToItemsSource(control, true);
|
|
ItemsControlHelper.SetEnumValuesToItemsSource(control, true);
|
|
|
|
+
|
|
|
|
+ control.SetBinding(ComboBox.SelectedItemProperty, binding);
|
|
|
|
+
|
|
break;
|
|
break;
|
|
case "ChuckRecipe":
|
|
case "ChuckRecipe":
|
|
|
|
+ if (currentChamber != JetChamber.Venus)
|
|
|
|
+ {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
string[] chucklist = new string[] { "" };
|
|
string[] chucklist = new string[] { "" };
|
|
ArrayList arrayList = new ArrayList(chucklist.ToList());
|
|
ArrayList arrayList = new ArrayList(chucklist.ToList());
|
|
IEnumerable<string> chlist= GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList().Where(item => item.ToLower().Contains("chuck") && (item.ToLower().Contains("dechuck") == false));
|
|
IEnumerable<string> chlist= GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList().Where(item => item.ToLower().Contains("chuck") && (item.ToLower().Contains("dechuck") == false));
|
|
@@ -530,6 +534,10 @@ namespace Venus_MainPages.ViewModels
|
|
control.SetBinding(ComboBox.SelectedItemProperty, binding);
|
|
control.SetBinding(ComboBox.SelectedItemProperty, binding);
|
|
break;
|
|
break;
|
|
case "DechuckRecipe":
|
|
case "DechuckRecipe":
|
|
|
|
+ if (currentChamber != JetChamber.Venus)
|
|
|
|
+ {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
string[] dechucklist = new string[] { "" };
|
|
string[] dechucklist = new string[] { "" };
|
|
ArrayList dearrayList = new ArrayList(dechucklist.ToList());
|
|
ArrayList dearrayList = new ArrayList(dechucklist.ToList());
|
|
IEnumerable<string> delist = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList().Where(item => item.ToLower().Contains("dechuck"));
|
|
IEnumerable<string> delist = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList().Where(item => item.ToLower().Contains("dechuck"));
|
|
@@ -609,11 +617,10 @@ namespace Venus_MainPages.ViewModels
|
|
HeadWrapPanel.Children.Add(control);
|
|
HeadWrapPanel.Children.Add(control);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
private void ChangeUI(object sender, SelectionChangedEventArgs e)
|
|
private void ChangeUI(object sender, SelectionChangedEventArgs e)
|
|
{
|
|
{
|
|
var t = sender as ComboBox;
|
|
var t = sender as ComboBox;
|
|
- if (t.SelectedValue.ToString() == "Chuck" || t.SelectedValue.ToString() == "DeChuck")
|
|
|
|
|
|
+ if (t.SelectedValue.ToString() != "Process")
|
|
{
|
|
{
|
|
headWrapPanel.Children[8].Visibility = Visibility.Collapsed;
|
|
headWrapPanel.Children[8].Visibility = Visibility.Collapsed;
|
|
headWrapPanel.Children[9].Visibility = Visibility.Collapsed;
|
|
headWrapPanel.Children[9].Visibility = Visibility.Collapsed;
|
|
@@ -628,8 +635,6 @@ namespace Venus_MainPages.ViewModels
|
|
headWrapPanel.Children[11].Visibility = Visibility.Visible;
|
|
headWrapPanel.Children[11].Visibility = Visibility.Visible;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
private void MenuItemLeftInsert_Click(object sender, RoutedEventArgs e)
|
|
private void MenuItemLeftInsert_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
{
|
|
var t = ((sender as MenuItem).Parent as ContextMenu).PlacementTarget as TextBox;
|
|
var t = ((sender as MenuItem).Parent as ContextMenu).PlacementTarget as TextBox;
|
|
@@ -638,31 +643,31 @@ namespace Venus_MainPages.ViewModels
|
|
if (copyIndex == -1)
|
|
if (copyIndex == -1)
|
|
{
|
|
{
|
|
var recipeStep = new RecipeStep();
|
|
var recipeStep = new RecipeStep();
|
|
- switch (currentChamber)
|
|
|
|
- {
|
|
|
|
- case JetChamber.Venus:
|
|
|
|
- case JetChamber.Kepler2300:
|
|
|
|
- recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- break;
|
|
|
|
|
|
+ //switch (currentChamber)
|
|
|
|
+ //{
|
|
|
|
+ // case JetChamber.Venus:
|
|
|
|
+ // case JetChamber.Kepler2300:
|
|
|
|
+ // recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
+ // break;
|
|
|
|
|
|
- case JetChamber.Kepler2200A:
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
|
|
+ // case JetChamber.Kepler2200A:
|
|
|
|
+ // recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
|
|
- recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
|
|
+ // recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ // break;
|
|
|
|
+ //}
|
|
|
|
+ recipeStep.LstUnit = RecipeUnity.GetAllUnits(currentChamber, CurrentRecipe.Header.Type);
|
|
CurrentRecipe.Steps.Insert(insertIndex - 1, recipeStep);
|
|
CurrentRecipe.Steps.Insert(insertIndex - 1, recipeStep);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -681,74 +686,38 @@ namespace Venus_MainPages.ViewModels
|
|
LoadRecipe(CurrentRecipe);
|
|
LoadRecipe(CurrentRecipe);
|
|
}
|
|
}
|
|
private void MenuItemRightInsert_Click(object sender, RoutedEventArgs e)
|
|
private void MenuItemRightInsert_Click(object sender, RoutedEventArgs e)
|
|
- {
|
|
|
|
- //var t = ((sender as MenuItem).Parent as ContextMenu).PlacementTarget as TextBox;
|
|
|
|
- //int insertIndex = Convert.ToInt32(t.Text);
|
|
|
|
- ////OnAddStep(insertIndex + 1);
|
|
|
|
- //var recipeStep = new RecipeStep();
|
|
|
|
- //switch (currentChamber)
|
|
|
|
- //{
|
|
|
|
- // case JetChamber.Venus:
|
|
|
|
- // case JetChamber.Kepler2300:
|
|
|
|
- // recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- // recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- // recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- // recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- // recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
- // recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- // break;
|
|
|
|
-
|
|
|
|
- // case JetChamber.Kepler2200A:
|
|
|
|
- // recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
-
|
|
|
|
- // recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
- // recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // break;
|
|
|
|
- //}
|
|
|
|
- //CurrentRecipe.Steps.Insert(insertIndex, recipeStep);
|
|
|
|
- //for (int i=0;i< CurrentRecipe.Steps.Count;i++)
|
|
|
|
- //{
|
|
|
|
- // CurrentRecipe.Steps[i].StepNo = i + 1;
|
|
|
|
- //}
|
|
|
|
- //LoadRecipe(CurrentRecipe);
|
|
|
|
|
|
+ {
|
|
var t = ((sender as MenuItem).Parent as ContextMenu).PlacementTarget as TextBox;
|
|
var t = ((sender as MenuItem).Parent as ContextMenu).PlacementTarget as TextBox;
|
|
int insertIndex = Convert.ToInt32(t.Text);
|
|
int insertIndex = Convert.ToInt32(t.Text);
|
|
|
|
|
|
if (copyIndex == -1)
|
|
if (copyIndex == -1)
|
|
{
|
|
{
|
|
var recipeStep = new RecipeStep();
|
|
var recipeStep = new RecipeStep();
|
|
- switch (currentChamber)
|
|
|
|
- {
|
|
|
|
- case JetChamber.Venus:
|
|
|
|
- recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- break;
|
|
|
|
- case JetChamber.Kepler2300:
|
|
|
|
- recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
- case JetChamber.Kepler2200A:
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
-
|
|
|
|
- recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
-
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ //switch (currentChamber)
|
|
|
|
+ //{
|
|
|
|
+ // case JetChamber.Venus:
|
|
|
|
+ // recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
+ // break;
|
|
|
|
+ // case JetChamber.Kepler2300:
|
|
|
|
+ // recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
+ // break;
|
|
|
|
|
|
|
|
+ // case JetChamber.Kepler2200A:
|
|
|
|
+ // recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
+ // recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
+ // break;
|
|
|
|
+ //}
|
|
|
|
+ recipeStep.LstUnit=RecipeUnity.GetAllUnits(currentChamber, CurrentRecipe.Header.Type);
|
|
CurrentRecipe.Steps.Insert(insertIndex, recipeStep);
|
|
CurrentRecipe.Steps.Insert(insertIndex, recipeStep);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -1002,49 +971,50 @@ namespace Venus_MainPages.ViewModels
|
|
{
|
|
{
|
|
Type unitType = x.GetType();
|
|
Type unitType = x.GetType();
|
|
bool isIgnore = false;
|
|
bool isIgnore = false;
|
|
- switch (currentChamber)
|
|
|
|
- {
|
|
|
|
-
|
|
|
|
- case JetChamber.Venus:
|
|
|
|
- var VenusUnitsValues = Enum.GetValues(typeof(VenusUnits));
|
|
|
|
- foreach (var item in VenusUnitsValues)
|
|
|
|
- {
|
|
|
|
- if (item.ToString() == unitType.Name)
|
|
|
|
- {
|
|
|
|
- isIgnore = true;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case JetChamber.Kepler2300:
|
|
|
|
- var Kepler2300UintsValues = Enum.GetValues(typeof(Kepler2300Uints));
|
|
|
|
- foreach (var item in Kepler2300UintsValues)
|
|
|
|
- {
|
|
|
|
- if (item.ToString() == unitType.Name)
|
|
|
|
- {
|
|
|
|
- isIgnore = true;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case JetChamber.Kepler2200A:
|
|
|
|
- var Kepler2200AUintsValues = Enum.GetValues(typeof(Kepler2200AUnits));
|
|
|
|
- foreach (var item in Kepler2200AUintsValues)
|
|
|
|
- {
|
|
|
|
- if (item.ToString() == unitType.Name)
|
|
|
|
- {
|
|
|
|
- isIgnore = true;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case JetChamber.Kepler2200B:
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- if (!isIgnore)
|
|
|
|
- {
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ //switch (currentChamber)
|
|
|
|
+ //{
|
|
|
|
+
|
|
|
|
+ // case JetChamber.Venus:
|
|
|
|
+ // var VenusUnitsValues = Enum.GetValues(typeof(VenusUnits));
|
|
|
|
+ // foreach (var item in VenusUnitsValues)
|
|
|
|
+ // {
|
|
|
|
+ // if (item.ToString() == unitType.Name)
|
|
|
|
+ // {
|
|
|
|
+ // isIgnore = true;
|
|
|
|
+ // break;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // break;
|
|
|
|
+ // case JetChamber.Kepler2300:
|
|
|
|
+ // var Kepler2300UintsValues = Enum.GetValues(typeof(Kepler2300Uints));
|
|
|
|
+ // foreach (var item in Kepler2300UintsValues)
|
|
|
|
+ // {
|
|
|
|
+ // if (item.ToString() == unitType.Name)
|
|
|
|
+ // {
|
|
|
|
+ // isIgnore = true;
|
|
|
|
+ // break;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // break;
|
|
|
|
+ // case JetChamber.Kepler2200A:
|
|
|
|
+ // var Kepler2200AUintsValues = Enum.GetValues(typeof(Kepler2200AUnits));
|
|
|
|
+ // foreach (var item in Kepler2200AUintsValues)
|
|
|
|
+ // {
|
|
|
|
+ // if (item.ToString() == unitType.Name)
|
|
|
|
+ // {
|
|
|
|
+ // isIgnore = true;
|
|
|
|
+ // break;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // break;
|
|
|
|
+ // case JetChamber.Kepler2200B:
|
|
|
|
+ // break;
|
|
|
|
+ //}
|
|
|
|
+ //if (!isIgnore)
|
|
|
|
+ //{
|
|
|
|
+ // continue;
|
|
|
|
+ //}
|
|
Binding checkbinding = null;
|
|
Binding checkbinding = null;
|
|
foreach (PropertyInfo propertyInfo in unitType.GetProperties())
|
|
foreach (PropertyInfo propertyInfo in unitType.GetProperties())
|
|
{
|
|
{
|
|
@@ -1276,21 +1246,11 @@ namespace Venus_MainPages.ViewModels
|
|
}
|
|
}
|
|
k++;
|
|
k++;
|
|
}
|
|
}
|
|
- //recipeStep.LstUnit.ToList().ForEach(x =>
|
|
|
|
- //{
|
|
|
|
-
|
|
|
|
- //});
|
|
|
|
- //index++;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
- //private void EPDcomboBox_DropDownOpened(object sender, EventArgs e)
|
|
|
|
- //{
|
|
|
|
-
|
|
|
|
- //}
|
|
|
|
-
|
|
|
|
private void EPDButton_Click(object sender, RoutedEventArgs e)
|
|
private void EPDButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
{
|
|
Button button = sender as Button;
|
|
Button button = sender as Button;
|
|
@@ -1304,7 +1264,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
(new EndPointDlg(para, endpointconfigitem,CurrentRecipe)).ShowDialog();
|
|
(new EndPointDlg(para, endpointconfigitem,CurrentRecipe)).ShowDialog();
|
|
}
|
|
}
|
|
-
|
|
|
|
private void UpdateRecipeFileList()
|
|
private void UpdateRecipeFileList()
|
|
{
|
|
{
|
|
XmlDocument doc = new XmlDocument();
|
|
XmlDocument doc = new XmlDocument();
|
|
@@ -1366,59 +1325,59 @@ namespace Venus_MainPages.ViewModels
|
|
bodyStackPanel.Children.Add(deChuckGrid);
|
|
bodyStackPanel.Children.Add(deChuckGrid);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- private void OnAddStep(int index)
|
|
|
|
- {
|
|
|
|
- if (CurrentRecipe != null)
|
|
|
|
- {
|
|
|
|
- RecipeStep recipeStep;
|
|
|
|
- if (copyIndex == -1)
|
|
|
|
- {
|
|
|
|
- recipeStep = new RecipeStep();
|
|
|
|
- switch (currentChamber)
|
|
|
|
- {
|
|
|
|
- case JetChamber.Venus:
|
|
|
|
- recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- break;
|
|
|
|
- case JetChamber.Kepler2300:
|
|
|
|
- recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
- case JetChamber.Kepler2200A:
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
- recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
-
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- CurrentRecipe.Steps.Insert(index - 1, recipeStep);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- var t = JsonConvert.SerializeObject(CurrentRecipe);
|
|
|
|
- recipeStep = Recipe.Load(t).Steps[copyIndex - 1];
|
|
|
|
-
|
|
|
|
- CurrentRecipe.Steps.Insert(index - 1, recipeStep);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- RecipeStepToGridColumn(recipeStep, currentRecipeGrid, index, true);
|
|
|
|
-
|
|
|
|
- for (int i = 1; i <= CurrentRecipe.Steps.Count; i++)
|
|
|
|
- {
|
|
|
|
- CurrentRecipe.Steps[i - 1].StepNo = i;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ ////private void OnAddStep(int index)
|
|
|
|
+ ////{
|
|
|
|
+ //// if (CurrentRecipe != null)
|
|
|
|
+ //// {
|
|
|
|
+ //// RecipeStep recipeStep;
|
|
|
|
+ //// if (copyIndex == -1)
|
|
|
|
+ //// {
|
|
|
|
+ //// recipeStep = new RecipeStep();
|
|
|
|
+ //// switch (currentChamber)
|
|
|
|
+ //// {
|
|
|
|
+ //// case JetChamber.Venus:
|
|
|
|
+ //// recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new ESCHVUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
+ //// break;
|
|
|
|
+ //// case JetChamber.Kepler2300:
|
|
|
|
+ //// recipeStep.LstUnit.Add(new PressureByPressureModeUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new TCPUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new BiasUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new GasControlUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new ProcessKitUnit());
|
|
|
|
+ //// break;
|
|
|
|
+
|
|
|
|
+ //// case JetChamber.Kepler2200A:
|
|
|
|
+ //// recipeStep.LstUnit.Add(new Kepler2200GasControlUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new HeaterUnit());
|
|
|
|
+ //// recipeStep.LstUnit.Add(new Kepler2200RFUnit());
|
|
|
|
+
|
|
|
|
+ //// break;
|
|
|
|
+ //// }
|
|
|
|
+ //// CurrentRecipe.Steps.Insert(index - 1, recipeStep);
|
|
|
|
+
|
|
|
|
+ //// }
|
|
|
|
+ //// else
|
|
|
|
+ //// {
|
|
|
|
+ //// var t = JsonConvert.SerializeObject(CurrentRecipe);
|
|
|
|
+ //// recipeStep = Recipe.Load(t).Steps[copyIndex - 1];
|
|
|
|
+
|
|
|
|
+ //// CurrentRecipe.Steps.Insert(index - 1, recipeStep);
|
|
|
|
+ //// }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //// RecipeStepToGridColumn(recipeStep, currentRecipeGrid, index, true);
|
|
|
|
+
|
|
|
|
+ //// for (int i = 1; i <= CurrentRecipe.Steps.Count; i++)
|
|
|
|
+ //// {
|
|
|
|
+ //// CurrentRecipe.Steps[i - 1].StepNo = i;
|
|
|
|
+ //// }
|
|
|
|
+ //// }
|
|
|
|
+ ////}
|
|
private void OnDeleteStep(int index)
|
|
private void OnDeleteStep(int index)
|
|
{
|
|
{
|
|
if (CurrentRecipe != null && CurrentRecipe.Steps.Count > 1)
|
|
if (CurrentRecipe != null && CurrentRecipe.Steps.Count > 1)
|
|
@@ -1433,7 +1392,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
private void OnRefresh()
|
|
private void OnRefresh()
|
|
{
|
|
{
|
|
if (CurrentRecipeName != "")
|
|
if (CurrentRecipeName != "")
|
|
@@ -1441,8 +1399,7 @@ namespace Venus_MainPages.ViewModels
|
|
string xmlRecipeData = m_uiRecipeManager.LoadRecipe(ModuleName, CurrentRecipeName);
|
|
string xmlRecipeData = m_uiRecipeManager.LoadRecipe(ModuleName, CurrentRecipeName);
|
|
CurrentRecipe = Recipe.Load(xmlRecipeData);
|
|
CurrentRecipe = Recipe.Load(xmlRecipeData);
|
|
LoadRecipe(CurrentRecipe);
|
|
LoadRecipe(CurrentRecipe);
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
}
|
|
}
|