Browse Source

修复JobFinish Wafer count的问题

chenkui 4 months ago
parent
commit
5445a76d4d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Mars/EfemDualSchedulerLib/Schedulers/SchedulerFACallback.cs

+ 3 - 3
Mars/EfemDualSchedulerLib/Schedulers/SchedulerFACallback.cs

@@ -304,7 +304,7 @@ namespace EfemDualSchedulerLib.Schedulers
             {
                 ModuleName module = ModuleHelper.Converter(casseteModule);
 
-                int count = pj.SlotWafers.Count;
+                int count = CalculateModuleWaferCount(module);
                 EV.Notify(PortJobFinished, new SerializableDictionary<string, string>()
                 {
                     {DataVariables.LotID,  pj.LotName},
@@ -317,10 +317,10 @@ namespace EfemDualSchedulerLib.Schedulers
             OP.DoOperation(E94ControlJobStateChanged, cj.Name, cj.State);
         }
 
-        private int CalculateProcessJobWaferCount(ProcessJobInfo pj)
+        private int CalculateModuleWaferCount(ModuleName module)
         {
             int count = 0;
-           WaferInfo[] wafers= WaferManager.Instance.GetWaferByProcessJob(pj.Name);
+           WaferInfo[] wafers= WaferManager.Instance.GetWafers(module);
             if(wafers!=null)
             {
                 for(int i=0;i<wafers.Length;i++)