refactor: 将Framework库和RT、UI放在同一个解决方案中。
This commit is contained in:
+69
@@ -0,0 +1,69 @@
|
||||
<UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation.SequenceDialogView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
mc:Ignorable="d"
|
||||
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:micro="clr-namespace:Caliburn.Micro"
|
||||
Width="350"
|
||||
Height="500">
|
||||
|
||||
<UserControl.Resources>
|
||||
<HierarchicalDataTemplate x:Key="FileTemplate" ItemsSource="{Binding Files}">
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding Name}" />
|
||||
</StackPanel>
|
||||
</HierarchicalDataTemplate>
|
||||
</UserControl.Resources>
|
||||
<Border BorderBrush="Gray" BorderThickness="0,1,0,0" Background="{DynamicResource Tab_BG}">
|
||||
<Grid Margin="20,30">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Content_Highlight}">
|
||||
<TreeView x:Name="PART_TREE" Margin="5" ItemsSource="{Binding Files[0].Files}" ItemTemplate="{StaticResource FileTemplate}"
|
||||
VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling"
|
||||
Height="{Binding Path=ActualHeight,ElementName=PART_BORDER, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}">
|
||||
<!--Height should add for VirtualizingPanel, otherwise the App will be slow-->
|
||||
<TreeView.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource ResourceKey={x:Type TreeViewItem}}">
|
||||
<Setter Property="IsExpanded" Value="True"></Setter>
|
||||
</Style>
|
||||
</TreeView.ItemContainerStyle>
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SelectedItemChanged">
|
||||
<micro:ActionMessage MethodName="TreeSelectChanged">
|
||||
<micro:Parameter Value="{Binding SelectedItem, ElementName=PART_TREE}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
<i:EventTrigger EventName="MouseDoubleClick">
|
||||
<micro:ActionMessage MethodName="TreeMouseDoubleClick">
|
||||
<micro:Parameter Value="{Binding SelectedItem, ElementName=PART_TREE}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</TreeView>
|
||||
</Border>
|
||||
<StackPanel Grid.Row="1" Margin="0,10,0,0" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button Content="OK" Width="90" Height="30">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="OK">
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button Content="Cancel" Margin="10,0,0,0" Width="90" Height="30">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="Cancel">
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SequenceDialogView.xaml
|
||||
/// </summary>
|
||||
public partial class SequenceDialogView : UserControl
|
||||
{
|
||||
public SequenceDialogView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using MECF.Framework.UI.Client.CenterViews.Editors.Sequence;
|
||||
using OpenSEMI.ClientBase;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation
|
||||
{
|
||||
public class SequenceDialogViewModel : DialogViewModel<string>
|
||||
{
|
||||
public void TreeSelectChanged(FileNode file)
|
||||
{
|
||||
this.currentFileNode = file;
|
||||
}
|
||||
|
||||
public void TreeMouseDoubleClick(FileNode file)
|
||||
{
|
||||
this.currentFileNode = file;
|
||||
OK();
|
||||
}
|
||||
|
||||
public void OK()
|
||||
{
|
||||
if (this.currentFileNode != null)
|
||||
{
|
||||
if (this.currentFileNode.IsFile)
|
||||
{
|
||||
this.DialogResult = this.currentFileNode.FullPath;
|
||||
IsCancel = false;
|
||||
TryClose(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Cancel()
|
||||
{
|
||||
IsCancel = true;
|
||||
TryClose(false);
|
||||
}
|
||||
|
||||
public ObservableCollection<FileNode> Files { get; set; }
|
||||
private FileNode currentFileNode;
|
||||
}
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
using Caliburn.Micro.Core;
|
||||
using MECF.Framework.UI.Client.ClientBase;
|
||||
using OpenSEMI.ClientBase;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation
|
||||
{
|
||||
public class WaferAssociationInfo : PropertyChangedBase
|
||||
{
|
||||
private int _slotFrom = 1;
|
||||
public int SlotFrom
|
||||
{
|
||||
get { return _slotFrom; }
|
||||
set { _slotFrom = value; NotifyOfPropertyChange("SlotFrom"); }
|
||||
}
|
||||
|
||||
private int _slotTo = 25;
|
||||
public int SlotTo
|
||||
{
|
||||
get { return _slotTo; }
|
||||
set { _slotTo = value; NotifyOfPropertyChange("SlotTo"); }
|
||||
}
|
||||
|
||||
private string _sequenceName = string.Empty;
|
||||
public string SequenceName
|
||||
{
|
||||
get { return _sequenceName; }
|
||||
set { _sequenceName = value; NotifyOfPropertyChange("SequenceName"); }
|
||||
}
|
||||
|
||||
private string _lotId = string.Empty;
|
||||
public string LotId
|
||||
{
|
||||
get { return _lotId; }
|
||||
set { _lotId = value; NotifyOfPropertyChange("LotId"); }
|
||||
}
|
||||
|
||||
private bool _LotIdSaved = true;
|
||||
public bool LotIdSaved
|
||||
{
|
||||
get { return _LotIdSaved; }
|
||||
set { _LotIdSaved = value; NotifyOfPropertyChange("LotIdSaved"); }
|
||||
}
|
||||
|
||||
private string _JobID = string.Empty;
|
||||
public string JobID
|
||||
{
|
||||
get { return _JobID; }
|
||||
set { _JobID = value; NotifyOfPropertyChange("JobID"); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private ModuleInfo _ModuleData;
|
||||
public ModuleInfo ModuleData
|
||||
{
|
||||
get { return _ModuleData; }
|
||||
set { _ModuleData = value; NotifyOfPropertyChange("ModuleData"); }
|
||||
}
|
||||
|
||||
private string _JobStatus = string.Empty;
|
||||
public string JobStatus
|
||||
{
|
||||
get { return _JobStatus; }
|
||||
set { _JobStatus = value;
|
||||
NotifyOfPropertyChange("JobStatus");
|
||||
NotifyOfPropertyChange("IsEnableSelect");
|
||||
NotifyOfPropertyChange("IsEnableCreate");
|
||||
NotifyOfPropertyChange("IsEnableAbort");
|
||||
NotifyOfPropertyChange("IsEnableStart");
|
||||
NotifyOfPropertyChange("IsEnablePause");
|
||||
NotifyOfPropertyChange("IsEnableResume");
|
||||
NotifyOfPropertyChange("IsEnableStop");
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsEnableSelect
|
||||
{
|
||||
//get { return !IsCreated; }
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
public bool IsEnableCreate
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
public bool IsEnableAbort
|
||||
{
|
||||
get { return IsCreated; }
|
||||
}
|
||||
public bool IsEnableStart
|
||||
{
|
||||
get { return IsCreated /*&& IsWaitingForStart*/; }
|
||||
}
|
||||
public bool IsEnablePause
|
||||
{
|
||||
get { return IsExecuting; }
|
||||
}
|
||||
public bool IsEnableResume
|
||||
{
|
||||
get { return IsPaused; }
|
||||
}
|
||||
public bool IsEnableStop
|
||||
{
|
||||
get { return IsExecuting || IsPaused; }
|
||||
}
|
||||
|
||||
private bool IsCreated
|
||||
{
|
||||
get { return !string.IsNullOrEmpty(JobStatus); }
|
||||
}
|
||||
private bool IsExecuting
|
||||
{
|
||||
get { return JobStatus== "Executing"; }
|
||||
}
|
||||
private bool IsWaitingForStart
|
||||
{
|
||||
get { return JobStatus == "WaitingForStart"; }
|
||||
}
|
||||
private bool IsPaused
|
||||
{
|
||||
get { return JobStatus == "Paused"; }
|
||||
}
|
||||
private bool IsCompleted
|
||||
{
|
||||
get { return JobStatus == "Completed"; }
|
||||
}
|
||||
|
||||
//Queued,Selected,WaitingForStart,Executing,Paused,Completed,
|
||||
|
||||
}
|
||||
}
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
using System.Collections.Generic;
|
||||
using MECF.Framework.Common.OperationCenter;
|
||||
using OpenSEMI.ClientBase.ServiceProvider;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation
|
||||
{
|
||||
public class WaferAssociationProvider : IProvider
|
||||
{
|
||||
private static WaferAssociationProvider _Instance = null;
|
||||
public static WaferAssociationProvider Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_Instance == null)
|
||||
_Instance = new WaferAssociationProvider();
|
||||
|
||||
return _Instance;
|
||||
}
|
||||
}
|
||||
|
||||
public void Create()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void CreateJob(string jobId, string module, List<string> slotSequence, bool autoStart, bool isCycleMode, int waferCount)
|
||||
{
|
||||
Dictionary<string, object> param = new Dictionary<string, object>()
|
||||
{
|
||||
{"JobId", jobId},
|
||||
{"Module", module},
|
||||
{"SlotSequence", slotSequence.ToArray()},
|
||||
{"AutoStart", autoStart},
|
||||
{"IsCycleMode", isCycleMode},
|
||||
{"WaferCount", waferCount},
|
||||
};
|
||||
InvokeClient.Instance.Service.DoOperation("System.CreateJob", param);
|
||||
}
|
||||
|
||||
public void CreateJob(string jobId, string module, List<string> slotSequence, string lotId, bool autoStart )
|
||||
{
|
||||
Dictionary<string, object> param = new Dictionary<string, object>()
|
||||
{
|
||||
{"JobId", jobId},
|
||||
{"Module", module},
|
||||
{"SlotSequence", slotSequence.ToArray()},
|
||||
{"LotId", lotId},
|
||||
{"AutoStart", autoStart},
|
||||
};
|
||||
InvokeClient.Instance.Service.DoOperation("System.CreateJob", param);
|
||||
}
|
||||
|
||||
public void AbortJob(string jobID)
|
||||
{
|
||||
var param = new object[] { jobID };
|
||||
InvokeClient.Instance.Service.DoOperation("System.AbortJob", param);
|
||||
}
|
||||
|
||||
public void AbortSingleJob(string jobName, string waferID)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("System.AbortSingleJob", jobName, waferID);
|
||||
}
|
||||
|
||||
public void Start(string jobID)
|
||||
{
|
||||
var param = new object[] { jobID };
|
||||
InvokeClient.Instance.Service.DoOperation("System.StartJob", param);
|
||||
}
|
||||
|
||||
public void Pause(string jobID)
|
||||
{
|
||||
var param = new object[] { jobID };
|
||||
InvokeClient.Instance.Service.DoOperation("System.PauseJob", param);
|
||||
}
|
||||
|
||||
public void Resume(string jobID)
|
||||
{
|
||||
var param = new object[] { jobID };
|
||||
InvokeClient.Instance.Service.DoOperation("System.ResumeJob", param);
|
||||
}
|
||||
|
||||
public void Stop(string jobID)
|
||||
{
|
||||
var param = new object[] { jobID };
|
||||
InvokeClient.Instance.Service.DoOperation("System.StopJob", param);
|
||||
}
|
||||
}
|
||||
}
|
||||
+439
@@ -0,0 +1,439 @@
|
||||
<UserControl
|
||||
x:Class="MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation.WaferAssociationUnit"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:micro="clr-namespace:Caliburn.Micro"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:lex="http://wpflocalizeextension.codeplex.com"
|
||||
lex:LocalizeDictionary.DesignCulture="zh"
|
||||
lex:ResxLocalizationProvider.DefaultAssembly="Sicentury.Localization"
|
||||
lex:ResxLocalizationProvider.DefaultDictionary="lang_overview"
|
||||
mc:Ignorable="d"
|
||||
d:Background="White">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="ToolTip">
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Content" Value="{x:Static sys:String.Empty}">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
<Grid VerticalAlignment="Top">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="24" />
|
||||
<RowDefinition Height="24" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="24" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
||||
<Border
|
||||
Width="90"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Title}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="1">
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{lex:Loc ID_TXT_JobAssign_LotID}"
|
||||
TextWrapping="Wrap" />
|
||||
</Border>
|
||||
<Border
|
||||
Width="235"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Content}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="0,1,1,1">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<controls:TextBoxEx
|
||||
Width="138"
|
||||
Text="{Binding WAInfo.LotId, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"
|
||||
TextSaved="{Binding WAInfo.LotIdSaved, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Mode=TwoWay}" />
|
||||
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
||||
<Border
|
||||
Width="90"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Title}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="1,0,1,1">
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{lex:Loc ID_TXT_JobAssign_Sequence}"
|
||||
TextWrapping="Wrap" />
|
||||
</Border>
|
||||
<Border
|
||||
Width="235"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Content}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="0,0,1,1">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBox
|
||||
Width="138"
|
||||
IsReadOnly="True"
|
||||
Text="{Binding WAInfo.SequenceName, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_SelectSequence"
|
||||
Width="80"
|
||||
Margin="5,0,0,0"
|
||||
Padding="0"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableSelect, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="SelectSequence">
|
||||
<micro:Parameter Value="{Binding WAInfo, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel
|
||||
Grid.Row="2"
|
||||
Margin="0,2"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_SetAll"
|
||||
Width="160"
|
||||
Height="25"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableSelect, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="SetAll">
|
||||
<micro:Parameter Value="{Binding WAInfo, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_ResetAll"
|
||||
Width="160"
|
||||
Height="25"
|
||||
Margin="5,0,0,0"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableSelect, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="DeselectAll">
|
||||
<micro:Parameter Value="{Binding WAInfo, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="3" Orientation="Horizontal">
|
||||
<Border
|
||||
Width="60"
|
||||
Background="{DynamicResource Table_BG_Title}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="1">
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
TextAlignment="Center"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{lex:Loc ID_TXT_JobAssign_Name}"
|
||||
d:Text="Job Name"
|
||||
TextWrapping="Wrap" />
|
||||
</Border>
|
||||
<Border
|
||||
Width="103"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Content}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="0,1,1,1">
|
||||
<TextBlock
|
||||
x:Name="txtJobID"
|
||||
Width="Auto"
|
||||
Height="20"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{Binding WAInfo.JobID, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
</Border>
|
||||
<Border
|
||||
Width="60"
|
||||
Background="{DynamicResource Table_BG_Title}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="0,1,1,1">
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
TextAlignment="Center"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{lex:Loc ID_TXT_JobAssign_Status}"
|
||||
d:Text="Job Status"
|
||||
TextWrapping="Wrap" />
|
||||
</Border>
|
||||
<Border
|
||||
Width="102"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Content}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="0,1,1,1">
|
||||
<TextBlock
|
||||
Width="Auto"
|
||||
Height="20"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{Binding WAInfo.JobStatus, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="4"
|
||||
Margin="0,2"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_Create"
|
||||
Width="160"
|
||||
Height="25"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableCreate, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="CreateJob">
|
||||
<micro:Parameter Value="{Binding WAInfo, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_Abort"
|
||||
Width="160"
|
||||
Height="25"
|
||||
Margin="5,0,0,0"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableAbort, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="AbortJob">
|
||||
<micro:Parameter Value="{Binding ElementName=txtJobID, Path=Text}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="5"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_Start"
|
||||
Width="78"
|
||||
Height="25"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableStart, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="Start">
|
||||
<micro:Parameter Value="{Binding ElementName=txtJobID, Path=Text}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_Pause"
|
||||
Width="78"
|
||||
Height="25"
|
||||
Margin="5,0,0,0"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnablePause, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="Pause">
|
||||
<micro:Parameter Value="{Binding ElementName=txtJobID, Path=Text}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_Resume"
|
||||
Width="78"
|
||||
Height="25"
|
||||
Margin="5,0,0,0"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableResume, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="Resume">
|
||||
<micro:Parameter Value="{Binding ElementName=txtJobID, Path=Text}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button
|
||||
Name="ID_BTN_JobAssign_Stop"
|
||||
Width="77"
|
||||
Height="25"
|
||||
Margin="5,0,0,0"
|
||||
Content="{lex:Loc}"
|
||||
IsEnabled="{Binding WAInfo.IsEnableStop, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="Stop">
|
||||
<micro:Parameter Value="{Binding ElementName=txtJobID, Path=Text}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<ListBox
|
||||
Grid.Row="1"
|
||||
Margin="0,0"
|
||||
Focusable="False"
|
||||
ItemsSource="{Binding WAInfo.ModuleData.WaferManager.Wafers, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<ListBox.Resources>
|
||||
<Style BasedOn="{StaticResource ResourceKey={x:Type ListBoxItem}}" TargetType="ListBoxItem">
|
||||
<Setter Property="Rectangle.StrokeThickness" Value="0" />
|
||||
</Style>
|
||||
</ListBox.Resources>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Height="22"
|
||||
lex:LocalizeDictionary.DesignCulture="zh"
|
||||
lex:ResxLocalizationProvider.DefaultAssembly="Sicentury.Localization"
|
||||
lex:ResxLocalizationProvider.DefaultDictionary="lang_overview">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<!--<ColumnDefinition Width="Auto"></ColumnDefinition>-->
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border
|
||||
Width="40"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Content_Highlight}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="1">
|
||||
<TextBlock
|
||||
Name="txtSlotIndex"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{Binding SlotIndex}" />
|
||||
</Border>
|
||||
<!--<Border Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Width="50" Padding="5,1">
|
||||
<TextBlock Text="{Binding WaferID}" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"></TextBlock>
|
||||
</Border>-->
|
||||
<Border
|
||||
Grid.Column="1"
|
||||
Width="190"
|
||||
Padding="5,1"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="0,1,1,1">
|
||||
<Border.Style>
|
||||
<Style>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding WaferStatus}" Value="0">
|
||||
<Setter Property="Border.Background" Value="{DynamicResource Table_BG_Content_Highlight}" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding WaferStatus}" Value="1">
|
||||
<Setter Property="Border.Background" Value="SkyBlue" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
<TextBlock
|
||||
Name="txtSeqName"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="{Binding SequenceName}"
|
||||
ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
|
||||
</Border>
|
||||
<Border
|
||||
Grid.Column="2"
|
||||
Width="95"
|
||||
Padding="5,1"
|
||||
Background="{DynamicResource Table_BG_Content_Highlight}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="0,1,1,1">
|
||||
<Button
|
||||
Width="80"
|
||||
Margin="0,-2"
|
||||
FontSize="11"
|
||||
IsEnabled="{Binding WAInfo.IsEnableCreate, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<micro:ActionMessage MethodName="SetSequence">
|
||||
<micro:Parameter Value="{Binding WAInfo, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
|
||||
<micro:Parameter Value="{Binding SlotIndex}" />
|
||||
<micro:Parameter Value="{Binding SequenceName}" />
|
||||
</micro:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<Button.Style>
|
||||
<Style BasedOn="{StaticResource ResourceKey={x:Type Button}}" TargetType="{x:Type Button}">
|
||||
<Setter Property="Content" Value="{lex:Loc ID_BTN_JobAssign_Remove_Content}" />
|
||||
<Setter Property="ToolTip" Value="{lex:Loc ID_BTN_JobAssign_Remove_ToolTip}" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ElementName=txtSeqName, Path=Text}" Value="{x:Static sys:String.Empty}">
|
||||
<Setter Property="Content" Value="{lex:Loc ID_BTN_JobAssign_Set_Content}" />
|
||||
<Setter Property="ToolTip" Value="{lex:Loc ID_BTN_JobAssign_Set_ToolTip}" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding WaferStatus}" Value="0">
|
||||
<Setter Property="IsEnabled" Value="False" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Button.Style>
|
||||
</Button>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
|
||||
<Grid>
|
||||
<Grid.Style>
|
||||
<Style>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding WAInfo.ModuleData.IsInstalled, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="false">
|
||||
<Setter Property="Grid.Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Grid.Style>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for WaferAssociationUnit.xaml
|
||||
/// </summary>
|
||||
public partial class WaferAssociationUnit : UserControl
|
||||
{
|
||||
public WaferAssociationUnit()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public WaferAssociationInfo WAInfo
|
||||
{
|
||||
get { return (WaferAssociationInfo)GetValue(WAInfoProperty); }
|
||||
set { SetValue(WAInfoProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty WAInfoProperty = DependencyProperty.Register("WAInfo", typeof(WaferAssociationInfo), typeof(WaferAssociationUnit), new UIPropertyMetadata(null));
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
<UserControl x:Class="StripUI.Client.Models.Operate.WaferAssociationView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:wa="clr-namespace:StripUI.Client.Models.Operate"
|
||||
xmlns:waferAssociation="clr-namespace:MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation">
|
||||
<Grid HorizontalAlignment="Left" VerticalAlignment="Top">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TabControl>
|
||||
<TabItem Header="{Binding LP1.ModuleData.ModuleID}">
|
||||
<waferAssociation:WaferAssociationUnit x:Name="LP1" WAInfo="{Binding LP1}"></waferAssociation:WaferAssociationUnit>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
<TabControl Grid.Column="1" Margin="10,0,0,0">
|
||||
<TabItem Header="{Binding LP2.ModuleData.ModuleID}">
|
||||
<waferAssociation:WaferAssociationUnit x:Name="LP2" Margin="10,0,0,0" WAInfo="{Binding LP2}" ></waferAssociation:WaferAssociationUnit>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
<TabControl Grid.Column="2" Margin="10,0,0,0">
|
||||
<TabItem Header="{Binding LP2.ModuleData.ModuleID}">
|
||||
<waferAssociation:WaferAssociationUnit x:Name="LP3" Margin="10,0,0,0" WAInfo="{Binding LP3}" ></waferAssociation:WaferAssociationUnit>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace StripUI.Client.Models.Operate
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for WaferAssociationView.xaml
|
||||
/// </summary>
|
||||
public partial class WaferAssociationView : UserControl
|
||||
{
|
||||
public WaferAssociationView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
+210
@@ -0,0 +1,210 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Caliburn.Micro;
|
||||
using MECF.Framework.Common.RecipeCenter;
|
||||
using MECF.Framework.UI.Client.CenterViews.Editors.Sequence;
|
||||
using MECF.Framework.UI.Client.ClientBase;
|
||||
using OpenSEMI.ClientBase;
|
||||
|
||||
namespace MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation
|
||||
{
|
||||
public class WaferAssociationViewModel : BaseModel
|
||||
{
|
||||
private WaferAssociationInfo _LP1;
|
||||
public WaferAssociationInfo LP1
|
||||
{
|
||||
get { return _LP1; }
|
||||
set { _LP1 = value; }
|
||||
}
|
||||
|
||||
private WaferAssociationInfo _LP2;
|
||||
public WaferAssociationInfo LP2
|
||||
{
|
||||
get { return _LP2; }
|
||||
set { _LP2 = value; }
|
||||
}
|
||||
|
||||
private WaferAssociationInfo _LP3;
|
||||
public WaferAssociationInfo LP3
|
||||
{
|
||||
get { return _LP3; }
|
||||
set { _LP3 = value; }
|
||||
}
|
||||
|
||||
protected override void OnInitialize()
|
||||
{
|
||||
base.OnInitialize();
|
||||
|
||||
#region test data
|
||||
LP1 = new WaferAssociationInfo();
|
||||
LP1.ModuleData = ModuleManager.ModuleInfos["LP1"];
|
||||
|
||||
LP2 = new WaferAssociationInfo();
|
||||
LP2.ModuleData = ModuleManager.ModuleInfos["LP2"];
|
||||
|
||||
LP3 = new WaferAssociationInfo();
|
||||
LP3.ModuleData = ModuleManager.ModuleInfos["LP3"];
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region functions
|
||||
#region Sequence operation
|
||||
public void SelectSequence(WaferAssociationInfo info)
|
||||
{
|
||||
SequenceDialogViewModel dialog = new SequenceDialogViewModel();
|
||||
dialog.DisplayName = "Select Sequence";
|
||||
|
||||
dialog.Files = new ObservableCollection<FileNode>(RecipeSequenceTreeBuilder.GetFiles("",
|
||||
RecipeClient.Instance.Service.GetSequenceNameList()
|
||||
));
|
||||
|
||||
WindowManager wm = new WindowManager();
|
||||
bool? bret = wm.ShowDialog(dialog);
|
||||
if ((bool)bret)
|
||||
{
|
||||
info.SequenceName = dialog.DialogResult;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void SetSlot(WaferAssociationInfo info)
|
||||
{
|
||||
if (InputSlotCheck(info.SlotFrom, info.SlotTo))
|
||||
AssociateSequence(info, true);
|
||||
}
|
||||
|
||||
public void SkipSlot(WaferAssociationInfo info)
|
||||
{
|
||||
if (InputSlotCheck(info.SlotFrom, info.SlotTo))
|
||||
AssociateSequence(info, false);
|
||||
}
|
||||
|
||||
public void SetAll(WaferAssociationInfo info)
|
||||
{
|
||||
info.SlotFrom = 1;
|
||||
info.SlotTo = 25;
|
||||
AssociateSequence(info, true);
|
||||
}
|
||||
|
||||
public void DeselectAll(WaferAssociationInfo info)
|
||||
{
|
||||
info.SlotFrom = 1;
|
||||
info.SlotTo = 25;
|
||||
AssociateSequence(info, false);
|
||||
}
|
||||
|
||||
public void SetSequence(WaferAssociationInfo info, int slotIndex, string seqName)
|
||||
{
|
||||
bool flag = string.IsNullOrEmpty(seqName);
|
||||
AssociateSequence(info, flag, slotIndex - 1);
|
||||
}
|
||||
|
||||
private bool InputSlotCheck(int from, int to)
|
||||
{
|
||||
if (from > to)
|
||||
{
|
||||
DialogBox.ShowInfo("This index of from slot should be large than the index of to slot.");
|
||||
return false;
|
||||
}
|
||||
if (from < 1 || to > 25)
|
||||
{
|
||||
DialogBox.ShowInfo("This input value for from should be between 1 and 25.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private void AssociateSequence(WaferAssociationInfo info, bool flag, int slot = -1)
|
||||
{
|
||||
ObservableCollection<WaferInfo> wafers = info.ModuleData.WaferManager.Wafers;
|
||||
if (slot >= 0) //by wafer
|
||||
{
|
||||
int index = wafers.Count - slot - 1;
|
||||
if (index < wafers.Count)
|
||||
{
|
||||
if (flag && HasWaferOnSlot(wafers.ToList(), index))
|
||||
wafers[index].SequenceName = info.SequenceName;
|
||||
else
|
||||
wafers[index].SequenceName = string.Empty;
|
||||
}
|
||||
}
|
||||
else //by from-to
|
||||
{
|
||||
for (int i = info.SlotFrom - 1; i < info.SlotTo; i++)
|
||||
{
|
||||
int index = wafers.Count - i - 1;
|
||||
if (index < wafers.Count)
|
||||
{
|
||||
if (flag && HasWaferOnSlot(wafers.ToList(), index))
|
||||
wafers[index].SequenceName = info.SequenceName;
|
||||
else
|
||||
wafers[index].SequenceName = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool HasWaferOnSlot(List<WaferInfo> wafers, int index)
|
||||
{
|
||||
if (wafers[index].WaferStatus == 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Job operation
|
||||
private bool JobCheck(string jobID)
|
||||
{
|
||||
if (jobID.Length == 0)
|
||||
{
|
||||
DialogBox.ShowWarning("Please create job first.");
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
public void CreateJob(WaferAssociationInfo info)
|
||||
{
|
||||
List<object> param = new List<object>();
|
||||
param.Add(info.ModuleData.ModuleID);
|
||||
foreach (var wafer in info.ModuleData.WaferManager.Wafers)
|
||||
{
|
||||
param.Add(wafer.SequenceName);
|
||||
}
|
||||
|
||||
param.Add(false); //auto start
|
||||
|
||||
//WaferAssociationProvider.Instance.CreateJob(param.ToArray());
|
||||
}
|
||||
public void AbortJob(string jobID)
|
||||
{
|
||||
if (JobCheck(jobID))
|
||||
WaferAssociationProvider.Instance.AbortJob(jobID);
|
||||
}
|
||||
public void Start(string jobID)
|
||||
{
|
||||
if (JobCheck(jobID))
|
||||
WaferAssociationProvider.Instance.Start(jobID);
|
||||
}
|
||||
public void Pause(string jobID)
|
||||
{
|
||||
if (JobCheck(jobID))
|
||||
WaferAssociationProvider.Instance.Pause(jobID);
|
||||
}
|
||||
public void Resume(string jobID)
|
||||
{
|
||||
if (JobCheck(jobID))
|
||||
WaferAssociationProvider.Instance.Resume(jobID);
|
||||
}
|
||||
public void Stop(string jobID)
|
||||
{
|
||||
if (JobCheck(jobID))
|
||||
WaferAssociationProvider.Instance.Stop(jobID);
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user