|
@@ -27,6 +27,7 @@ using Venus_MainPages.PMs;
|
|
|
using Venus_MainPages.Unity;
|
|
|
using Venus_MainPages.Views;
|
|
|
using Venus_Themes.UserControls;
|
|
|
+using Venus_Unity;
|
|
|
using WPF.Themes.UserControls;
|
|
|
using RecipeStep = Venus_Core.RecipeStep;
|
|
|
|
|
@@ -72,6 +73,8 @@ namespace Venus_MainPages.ViewModels
|
|
|
private bool m_PMDIsInstalled;
|
|
|
|
|
|
private List<string> moduleList = new List<string> ();
|
|
|
+ TreeViewFileItem selectedItem;
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
#region 属性
|
|
@@ -150,14 +153,15 @@ namespace Venus_MainPages.ViewModels
|
|
|
private DelegateCommand _RefreshCommand;
|
|
|
public DelegateCommand RefreshCommand =>
|
|
|
_RefreshCommand ?? (_RefreshCommand = new DelegateCommand(OnRefresh));
|
|
|
- TreeViewFileItem selectedItem;
|
|
|
-
|
|
|
+ private DelegateCommand _ToleranceCommand;
|
|
|
+ public DelegateCommand ToleranceCommand =>
|
|
|
+ _ToleranceCommand ?? (_ToleranceCommand = new DelegateCommand(OnTolerance));
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#region 命令方法
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
private void OnAddStep()
|
|
|
{
|
|
|
if (CurrentRecipe != null)
|
|
@@ -274,7 +278,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
if (newName != "")
|
|
|
{
|
|
|
var targetChamber = (JetChamber)Enum.Parse(typeof(JetChamber), QueryDataClient.Instance.Service.GetConfig($"{x}.ChamberType").ToString());
|
|
|
- if (currentChamber != targetChamber)
|
|
|
+ if (currentChamber != targetChamber || x== ModuleName)
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
@@ -541,6 +545,10 @@ namespace Venus_MainPages.ViewModels
|
|
|
{
|
|
|
return m_uiRecipeManager.SaveAsRecipe(ModuleName, recipeName, recipeContent);
|
|
|
}
|
|
|
+ public bool SaveAsRecipe2(string recipeName,string type, string recipeContent)
|
|
|
+ {
|
|
|
+ return m_uiRecipeManager.SaveAsRecipe2(ModuleName,type, recipeName, recipeContent);
|
|
|
+ }
|
|
|
public string GetXmlRecipeList()
|
|
|
{
|
|
|
return m_uiRecipeManager.GetXmlRecipeList(ModuleName, true) ?? "";
|
|
@@ -1380,9 +1388,6 @@ namespace Venus_MainPages.ViewModels
|
|
|
k++;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
private void EPDButton_Click(object sender, RoutedEventArgs e)
|
|
|
{
|
|
@@ -1534,6 +1539,13 @@ namespace Venus_MainPages.ViewModels
|
|
|
LoadRecipe(CurrentRecipe);
|
|
|
}
|
|
|
}
|
|
|
+ private void OnTolerance()
|
|
|
+ {
|
|
|
+ List<Kepler2300Tolerance> kepler2300Tolerances = new List<Kepler2300Tolerance>();
|
|
|
+ kepler2300Tolerances.Add(new Kepler2300Tolerance());
|
|
|
+ kepler2300Tolerances.Add(new Kepler2300Tolerance());
|
|
|
+ var str= SerializeHelper.Instance.ObjectToJsonString<List<Kepler2300Tolerance>>(kepler2300Tolerances);
|
|
|
+ }
|
|
|
#endregion
|
|
|
}
|
|
|
}
|