1.去除WaferManager未调用的函数
This commit is contained in:
parent
a5063fca8d
commit
342f2f68bb
|
@ -1323,403 +1323,16 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|||
}
|
||||
}
|
||||
|
||||
#region 未使用
|
||||
public bool CheckWaferSize(ModuleName module, int slot, WaferSize size)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferProcessStatus, invalid parameter, {module}, {slot + 1}");
|
||||
return false;
|
||||
}
|
||||
WaferSize size2;
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
size2 = AllLocationWafers[module][slot].Size;
|
||||
if (size2 == WaferSize.WS0)
|
||||
{
|
||||
AllLocationWafers[module][slot].Size = size;
|
||||
}
|
||||
}
|
||||
if (size2 == WaferSize.WS0)
|
||||
{
|
||||
_needSerialize = true;
|
||||
return true;
|
||||
}
|
||||
return size2 == size;
|
||||
}
|
||||
|
||||
public void UpdateWaferHostLM1(ModuleName module, int slot, string lasermark1)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferHostLM1, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].HostLaserMark1 = lasermark1;
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferHostLM2(ModuleName module, int slot, string lasermark2)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferHostLM2, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].HostLaserMark2 = lasermark2;
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferE90State(ModuleName module, int slot, EnumE90Status E90state)
|
||||
{
|
||||
var wafer = GetWafer(module, slot);
|
||||
if (wafer.IsWaferEmpty)
|
||||
{
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
wafer.SubstE90Status = E90state;
|
||||
var value = "";
|
||||
if (ModuleHelper.IsLoadPort((ModuleName)wafer.Station))
|
||||
{
|
||||
value = Singleton<CarrierManager>.Instance.GetCarrier(((ModuleName)wafer.Station).ToString()).CarrierId;
|
||||
}
|
||||
var dvid = new SerializableDictionary<string, object>
|
||||
{
|
||||
{ "SubstID", wafer.WaferID },
|
||||
{ "LotID", wafer.LotId },
|
||||
{
|
||||
"SubstMtrlStatus",
|
||||
(int)wafer.ProcessState
|
||||
},
|
||||
{
|
||||
"SubstDestination",
|
||||
((ModuleName)wafer.DestinationStation).ToString()
|
||||
},
|
||||
{ "SubstHistory", wafer.SubstHists },
|
||||
{
|
||||
"SubstLocID",
|
||||
((ModuleName)wafer.Station).ToString()
|
||||
},
|
||||
{
|
||||
"SubstProcState",
|
||||
(int)wafer.SubstE90Status
|
||||
},
|
||||
{
|
||||
"SubstState",
|
||||
(int)wafer.SubstTransStatus
|
||||
},
|
||||
{
|
||||
"SubstSource",
|
||||
((ModuleName)wafer.WaferOriginStation).ToString()
|
||||
},
|
||||
{ "SourceCarrier", wafer.OriginCarrierID },
|
||||
{
|
||||
"SourceSlot",
|
||||
wafer.WaferOriginSlot + 1
|
||||
},
|
||||
{
|
||||
"Slot",
|
||||
wafer.Slot + 1
|
||||
},
|
||||
{ "LASERMARK", wafer.LaserMarker },
|
||||
{ "OCRScore", wafer.LaserMarkerScore },
|
||||
{ "CarrierID", value }
|
||||
};
|
||||
if (E90state == EnumE90Status.InProcess)
|
||||
{
|
||||
EV.Notify("STS_INPROCESSING", dvid);
|
||||
}
|
||||
if (E90state == EnumE90Status.NeedProcessing)
|
||||
{
|
||||
EV.Notify("STS_NEEDPROCESSING", dvid);
|
||||
}
|
||||
if (E90state == EnumE90Status.Processed)
|
||||
{
|
||||
EV.Notify("STS_PROCESSED", dvid);
|
||||
}
|
||||
if (E90state == EnumE90Status.Aborted)
|
||||
{
|
||||
EV.Notify("STS_ABORTED", dvid);
|
||||
}
|
||||
if (E90state == EnumE90Status.Lost)
|
||||
{
|
||||
EV.Notify("STS_LOST", dvid);
|
||||
}
|
||||
if (E90state == EnumE90Status.Rejected)
|
||||
{
|
||||
EV.Notify("STS_REJECTED", dvid);
|
||||
}
|
||||
if (E90state == EnumE90Status.Skipped)
|
||||
{
|
||||
EV.Notify("STS_SKIPPED", dvid);
|
||||
}
|
||||
if (E90state == EnumE90Status.Stopped)
|
||||
{
|
||||
EV.Notify("STS_STOPPED", dvid);
|
||||
}
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void SlotMapVerifyOK(ModuleName module)
|
||||
{
|
||||
var wafers = GetWafers(module);
|
||||
var array = wafers;
|
||||
foreach (var waferInfo in array)
|
||||
{
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
if (!waferInfo.IsWaferEmpty)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferLaser(ModuleName module, int slot, string laserMarker)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferLaser, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].LaserMarker = laserMarker;
|
||||
WaferDataRecorder.SetWaferMarker(AllLocationWafers[module][slot].WaferInnerID.ToString(), laserMarker);
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferDestination(ModuleName module, int slot, string destCarrierID, int destslot)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferLaser, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].DestinationCarrierID = destCarrierID;
|
||||
AllLocationWafers[module][slot].DestinationSlot = destslot;
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferDestination(ModuleName module, int slot, ModuleName destmodule, int destslot)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferLaser, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].DestinationStation = (int)destmodule;
|
||||
AllLocationWafers[module][slot].DestinationSlot = destslot;
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferLaserWithScoreAndFileName(ModuleName module, int slot, string laserMarker, string laserMarkerScore, string fileName, string filePath)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferLaser, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].LaserMarker = laserMarker;
|
||||
AllLocationWafers[module][slot].LaserMarkerScore = laserMarkerScore;
|
||||
AllLocationWafers[module][slot].ImageFileName = fileName;
|
||||
AllLocationWafers[module][slot].ImageFilePath = filePath;
|
||||
WaferDataRecorder.SetWaferMarkerWithScoreAndFileName(AllLocationWafers[module][slot].WaferInnerID.ToString(), laserMarker, laserMarkerScore, fileName, filePath);
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferT7Code(ModuleName module, int slot, string T7Code)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferT7Code, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].T7Code = T7Code;
|
||||
WaferDataRecorder.SetWaferT7Code(AllLocationWafers[module][slot].WaferInnerID.ToString(), T7Code);
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdataWaferPPID(ModuleName module, int slot, string PPID)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferPPID, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].PPID = PPID;
|
||||
WaferDataRecorder.SetWaferSequence(AllLocationWafers[module][slot].WaferInnerID.ToString(), PPID);
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferT7CodeWithScoreAndFileName(ModuleName module, int slot, string t7Code, string t7CodeScore, string fileName, string filePath)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferT7Code, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].T7Code = t7Code;
|
||||
AllLocationWafers[module][slot].T7CodeScore = t7CodeScore;
|
||||
AllLocationWafers[module][slot].ImageFileName = fileName;
|
||||
AllLocationWafers[module][slot].ImageFilePath = filePath;
|
||||
WaferDataRecorder.SetWaferT7CodeWithScoreAndFileName(AllLocationWafers[module][slot].WaferInnerID.ToString(), t7Code, t7CodeScore, fileName, filePath);
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferTransFlag(ModuleName module, int slot, string flag)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferTransFlag, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].TransFlag = flag;
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferNotch(ModuleName module, int slot, int angle)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferNotch, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].Notch = angle;
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void ManualDeleteWafer(ModuleName module, int slotFrom, int count = 1)
|
||||
{
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
var num = slotFrom + i;
|
||||
if (!IsWaferSlotLocationValid(module, num))
|
||||
{
|
||||
LOG.Write($"Invalid wafer delete, invalid parameter, {module}, {num + 1}");
|
||||
continue;
|
||||
}
|
||||
UpdateWaferE90State(AllLocationWafers[module][num].WaferID, EnumE90Status.Lost);
|
||||
UpdateWaferTransportState(AllLocationWafers[module][num].WaferID, SubstrateTransportStatus.None);
|
||||
UpdateWaferTrayStatus(AllLocationWafers[module][num].WaferID, TrayStatus.Empty);
|
||||
UpdateWaferHistory(module, slotFrom, SubstAccessType.Delete);
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
WaferDataRecorder.DeleteWafer(AllLocationWafers[module][num].WaferInnerID.ToString());
|
||||
AllLocationWafers[module][num].SetWaferTrayEmpty();
|
||||
_dictWaferInfo.Remove(AllLocationWafers[module][num].WaferID);
|
||||
|
||||
}
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool CheckWaferExistFlag(string moduleNo, string[] flagStrings, out string reason)
|
||||
{
|
||||
var num = 0;
|
||||
reason = string.Empty;
|
||||
if (!Enum.TryParse<ModuleName>("LP" + moduleNo, out var result))
|
||||
{
|
||||
reason = "Port Number Error";
|
||||
return false;
|
||||
}
|
||||
foreach (var text in flagStrings)
|
||||
{
|
||||
if (text == "1")
|
||||
{
|
||||
if (IsWaferSlotLocationValid(result, num) && AllLocationWafers[result][num].IsWaferEmpty)
|
||||
{
|
||||
reason = "Flag Mis-Match";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (IsWaferSlotLocationValid(result, num) && !AllLocationWafers[result][num].IsWaferEmpty)
|
||||
{
|
||||
reason = "Flag Mis-Match";
|
||||
return false;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void DelectGuid(ModuleName module, int slotFrom)
|
||||
{
|
||||
AllLocationWafers[module][0].WaferInnerID = Guid.Empty;
|
||||
}
|
||||
|
||||
public void UpdateWaferJodID(ModuleName module, int slot, string pjID, string cjID)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferId, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].ProcessJobID = pjID;
|
||||
AllLocationWafers[module][slot].ControlJobID = cjID;
|
||||
}
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
public void UpdateWaferId(ModuleName module, int slot, string waferId)
|
||||
{
|
||||
if (!IsWaferSlotLocationValid(module, slot))
|
||||
{
|
||||
LOG.Write($"Failed UpdateWaferId, invalid parameter, {module}, {slot + 1}");
|
||||
return;
|
||||
}
|
||||
lock (_lockerWaferList)
|
||||
{
|
||||
AllLocationWafers[module][slot].WaferID = waferId;
|
||||
}
|
||||
UpdateWaferHistory(module, slot, SubstAccessType.UpdateWaferID);
|
||||
_needSerialize = true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue