|
@@ -88,7 +88,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
private float m_TMPressure;
|
|
|
|
|
|
-
|
|
|
+ private string m_RouteState;
|
|
|
|
|
|
#endregion
|
|
|
|
|
@@ -387,6 +387,11 @@ namespace Venus_MainPages.ViewModels
|
|
|
get { return m_TMPressure; }
|
|
|
set { SetProperty(ref m_TMPressure, value); }
|
|
|
}
|
|
|
+ public string RouteState
|
|
|
+ {
|
|
|
+ get { return m_RouteState; }
|
|
|
+ set { SetProperty(ref m_RouteState, value); }
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
#region 命令
|
|
@@ -427,9 +432,10 @@ namespace Venus_MainPages.ViewModels
|
|
|
public DelegateCommand HomeAllCommand =>
|
|
|
_HomeAllCommand ?? (_HomeAllCommand = new DelegateCommand(OnHomeAll));
|
|
|
|
|
|
- private DelegateCommand _PauseAllJobCommand;
|
|
|
- public DelegateCommand PauseAllJobCommand =>
|
|
|
- _PauseAllJobCommand ?? (_PauseAllJobCommand = new DelegateCommand(OnPauseAllJob));
|
|
|
+
|
|
|
+ private DelegateCommand _ResumeAllJobCommand;
|
|
|
+ public DelegateCommand ResumeAllJobCommand =>
|
|
|
+ _ResumeAllJobCommand ?? (_ResumeAllJobCommand = new DelegateCommand(OnResumeAllJob));
|
|
|
|
|
|
private DelegateCommand _AbortAllCommand;
|
|
|
public DelegateCommand AbortAllCommand =>
|
|
@@ -550,9 +556,23 @@ namespace Venus_MainPages.ViewModels
|
|
|
}
|
|
|
private void OnPauseAllJob()
|
|
|
{
|
|
|
- InvokeClient.Instance.Service.DoOperation("System.PauseJob", LP1WaferAssociation.JobID);
|
|
|
- InvokeClient.Instance.Service.DoOperation("System.PauseJob", LP2WaferAssociation.JobID);
|
|
|
- InvokeClient.Instance.Service.DoOperation("System.PauseJob", LP3WaferAssociation.JobID);
|
|
|
+
|
|
|
+ }
|
|
|
+ private void OnResumeAllJob()
|
|
|
+ {
|
|
|
+ if (CommonFunction.GetValue<int>(RtDataValues, "EquipmentStatus") == 4)
|
|
|
+ {
|
|
|
+ InvokeClient.Instance.Service.DoOperation("System.ResumeJob", LP1WaferAssociation.JobID);
|
|
|
+ //InvokeClient.Instance.Service.DoOperation("System.ResumeJob", LP2WaferAssociation.JobID);
|
|
|
+ //InvokeClient.Instance.Service.DoOperation("System.ResumeJob", LP3WaferAssociation.JobID);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ InvokeClient.Instance.Service.DoOperation("System.PauseJob", LP1WaferAssociation.JobID);
|
|
|
+ //InvokeClient.Instance.Service.DoOperation("System.PauseJob", LP2WaferAssociation.JobID);
|
|
|
+ //InvokeClient.Instance.Service.DoOperation("System.PauseJob", LP3WaferAssociation.JobID);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
private void OnAbortAll()
|
|
@@ -708,6 +728,14 @@ namespace Venus_MainPages.ViewModels
|
|
|
LP1WaferCount = LP1ModuleInfo.WaferManager.Wafers.Where(x => x.WaferStatus != 0).Count();
|
|
|
LP2WaferCount = LP2ModuleInfo.WaferManager.Wafers.Where(x => x.WaferStatus != 0).Count();
|
|
|
LP3WaferCount = LP3ModuleInfo.WaferManager.Wafers.Where(x => x.WaferStatus != 0).Count();
|
|
|
+ if (CommonFunction.GetValue<int>(RtDataValues, "EquipmentStatus") == 4)
|
|
|
+ {
|
|
|
+ RouteState = "Resume";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ RouteState = "Pause";
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
private async void RobotMoveInfoChanged(RobotMoveInfo oldValue, RobotMoveInfo newValue)
|
|
@@ -1143,6 +1171,8 @@ namespace Venus_MainPages.ViewModels
|
|
|
m_RtDataKeys.Add("Scheduler.CycledWafer");
|
|
|
m_RtDataKeys.Add("Scheduler.CycleSetPoint");
|
|
|
m_RtDataKeys.Add("Scheduler.Throughput");
|
|
|
+ m_RtDataKeys.Add("EquipmentStatus");
|
|
|
+
|
|
|
}
|
|
|
private void AssociateSequence(WaferAssociationInfo info, bool flag, int slot = -1)
|
|
|
{
|