|
@@ -145,7 +145,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
if(WaferManager.Instance.CheckHasWafer(module,0))
|
|
|
{
|
|
|
WaferInfo info = WaferManager.Instance.GetWafer(module, 0);
|
|
|
- moduleMaterial.SideAWaferStatus = WaferStatusConverter(info);
|
|
|
+ moduleMaterial.SideAWaferStatus =WaferManager.Instance.WaferStatusConverter(info);
|
|
|
moduleMaterial.SideAWaferId = waferHolderInfo.WaferAId;
|
|
|
WaferType waferType = (WaferType)waferHolderInfo.WaferAType;
|
|
|
moduleMaterial.SideAWaferType = waferType.ToString();
|
|
@@ -159,7 +159,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
if (WaferManager.Instance.CheckHasWafer(module, 1))
|
|
|
{
|
|
|
WaferInfo info = WaferManager.Instance.GetWafer(module, 1);
|
|
|
- moduleMaterial.SideBWaferStatus = WaferStatusConverter(info);
|
|
|
+ moduleMaterial.SideBWaferStatus =WaferManager.Instance.WaferStatusConverter(info);
|
|
|
moduleMaterial.SideBWaferId = waferHolderInfo.WaferBId;
|
|
|
WaferType waferType = (WaferType)waferHolderInfo.WaferBType;
|
|
|
moduleMaterial.SideBWaferType = waferType.ToString();
|
|
@@ -189,7 +189,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
if (WaferManager.Instance.CheckHasWafer(module, 0))
|
|
|
{
|
|
|
WaferInfo waferAInfo = WaferManager.Instance.GetWafer(module, 0);
|
|
|
- moduleMaterial.SideAWaferStatus = WaferStatusConverter(waferAInfo);
|
|
|
+ moduleMaterial.SideAWaferStatus =WaferManager.Instance.WaferStatusConverter(waferAInfo);
|
|
|
moduleMaterial.SideAWaferId = waferAInfo.WaferID;
|
|
|
moduleMaterial.SideAWaferType = waferAInfo.WaferType.ToString();
|
|
|
}
|
|
@@ -202,7 +202,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
if (WaferManager.Instance.CheckHasWafer(module, 1))
|
|
|
{
|
|
|
WaferInfo waferBInfo = WaferManager.Instance.GetWafer(module, 1);
|
|
|
- moduleMaterial.SideBWaferStatus = WaferStatusConverter(waferBInfo);
|
|
|
+ moduleMaterial.SideBWaferStatus =WaferManager.Instance.WaferStatusConverter(waferBInfo);
|
|
|
moduleMaterial.SideBWaferId = waferBInfo.WaferID;
|
|
|
moduleMaterial.SideBWaferType = waferBInfo.WaferType.ToString();
|
|
|
}
|
|
@@ -216,67 +216,5 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// WaferStatus color converter
|
|
|
- ///
|
|
|
- /// </summary>
|
|
|
- /// <param name="awafer"></param>
|
|
|
- /// <returns></returns>
|
|
|
- private int WaferStatusConverter(WaferInfo awafer)
|
|
|
- {
|
|
|
- //if (awafer.Status == WaferStatus.Empty)
|
|
|
- // return 0;
|
|
|
-
|
|
|
- //if (awafer.Status == WaferStatus.Normal)
|
|
|
- //{
|
|
|
- // switch (awafer.ProcessState)
|
|
|
- // {
|
|
|
- // case EnumWaferProcessStatus.InProcess: return 3;
|
|
|
- // case EnumWaferProcessStatus.Completed: return 4;
|
|
|
- // case EnumWaferProcessStatus.Failed: return 5;
|
|
|
- // case EnumWaferProcessStatus.Idle: return awafer.ProcessJob == null ? 1 : 2;
|
|
|
- // }
|
|
|
- //}
|
|
|
-
|
|
|
- //if (awafer.Status == WaferStatus.Dummy)
|
|
|
- //{
|
|
|
- // return 1;
|
|
|
- //}
|
|
|
-
|
|
|
- //return 5;
|
|
|
- if (awafer.Status == WaferStatus.Empty)
|
|
|
- return 0;
|
|
|
- if (awafer.Status == WaferStatus.Normal)
|
|
|
- {
|
|
|
- if (awafer.WaferType == WaferType.Assit)
|
|
|
- {
|
|
|
- return 6;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- switch (awafer.ProcessState)
|
|
|
- {
|
|
|
- case EnumWaferProcessStatus.InProcess: return 3;
|
|
|
- case EnumWaferProcessStatus.Completed: return 4;
|
|
|
- case EnumWaferProcessStatus.Failed: return 5;
|
|
|
- case EnumWaferProcessStatus.Idle:
|
|
|
- return awafer.ProcessJob == null ? 1 : 2;
|
|
|
- case EnumWaferProcessStatus.Canceled:
|
|
|
- return 7;
|
|
|
- case EnumWaferProcessStatus.MisProcessed:
|
|
|
- return 8;
|
|
|
- case EnumWaferProcessStatus.MisSrdProcess:
|
|
|
- return 9;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (awafer.Status == WaferStatus.Dummy)
|
|
|
- {
|
|
|
- return 6;
|
|
|
- }
|
|
|
- return 1;
|
|
|
- }
|
|
|
}
|
|
|
}
|