|
@@ -27,6 +27,7 @@ namespace Venus_MainPages.Views
|
|
|
private FileNode process_currentFileNode;
|
|
|
private FileNode wtw_currentFileNode;
|
|
|
private FileNode post_currentFileNode;
|
|
|
+ private FileNode clean_currentFileNode;
|
|
|
|
|
|
SerializableDictionary<string, string> recipeDictionary = new SerializableDictionary<string, string>();
|
|
|
|
|
@@ -81,6 +82,19 @@ namespace Venus_MainPages.Views
|
|
|
recipeDictionary.Add("PostLotClean", "");
|
|
|
}
|
|
|
|
|
|
+ if (clean_currentFileNode != null && clean_currentFileNode.Parent.Name == "Clean")
|
|
|
+ {
|
|
|
+ recipeDictionary.Add("IdleClean", clean_currentFileNode.Name);
|
|
|
+ recipeDictionary.Add("IdleTime", IdleTime.Text);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ recipeDictionary.Add("IdleClean", "");
|
|
|
+ recipeDictionary.Add("IdleTime", "");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
this.FullPath = SerializeHelper.Instance.DictionaryToString(recipeDictionary);
|
|
|
}
|
|
|
private void PreClean_PART_TREE_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
|
|
@@ -135,6 +149,19 @@ namespace Venus_MainPages.Views
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void IdleClean_PART_TREE_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
|
|
|
+ {
|
|
|
+ clean_currentFileNode = (FileNode)(sender as TreeView).SelectedItem;
|
|
|
+ if (clean_currentFileNode.Parent.Name == "Clean")
|
|
|
+ {
|
|
|
+ idleLotSelectedRecipeTextBlock.Text = clean_currentFileNode.Name;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ idleLotSelectedRecipeTextBlock.Text = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
|
|
{
|
|
|
|
|
@@ -182,6 +209,21 @@ namespace Venus_MainPages.Views
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (dictionary.Keys.Contains("IdleClean"))
|
|
|
+ {
|
|
|
+ idleLotSelectedRecipeTextBlock.Text = dictionary["IdleClean"];
|
|
|
+ foreach (var item in LongIdleCleanTreeView.Items)
|
|
|
+ {
|
|
|
+ var tvi = (TreeViewItem)LongIdleCleanTreeView.ItemContainerGenerator.ContainerFromItem(item);
|
|
|
+ SetSelect(tvi, dictionary["IdleClean"]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (dictionary.Keys.Contains("IdleTime"))
|
|
|
+ {
|
|
|
+ IdleTime.Text = dictionary["IdleTime"];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
void SetSelect(TreeViewItem tvi, string value)
|
|
@@ -239,5 +281,14 @@ namespace Venus_MainPages.Views
|
|
|
SetSelect(tvi, "");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private void IdleBorder_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
|
|
|
+ {
|
|
|
+ foreach (var item in LongIdleCleanTreeView.Items)
|
|
|
+ {
|
|
|
+ var tvi = (TreeViewItem)LongIdleCleanTreeView.ItemContainerGenerator.ContainerFromItem(item);
|
|
|
+ SetSelect(tvi, "");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|