private static bool IsUsableMask(List <EqpArrangeInfo> ealist, MaskArrange item) { if (ealist == null || ealist.Count == 0) { return(true); } bool isArrayShop = BopHelper.IsArrayShop(item.ShopID); bool isUasble = false; foreach (var info in ealist) { if (isArrayShop && info.HasLimitType(LimitType.B)) { if (info.ProductVer != item.ProductVersion) { continue; } } if (info.HasLimitType(LimitType.M)) { if (info.MaskID != item.ToolID) { continue; } } isUasble = true; break; } return(isUasble); }
public static bool AvailableChangeProductVer(FabStdStep stdStep, string productVer) { string shopID = stdStep.ShopID; string stepID = stdStep.StepID; //1300 이전 공정 이면서 Ver에 X가 없는 Version은 변경 투입 가능함. if (BopHelper.IsArrayShop(shopID)) { if (IsProductVer_X(productVer) == false) { if (LcdHelper.Equals(Constants.GATE_PHOTO_STEP, stepID)) { return(true); } //1300 이전 공정은 ProductVersion 변경가능 함. var fromStep = BopHelper.FindStdStep(Constants.ArrayShop, Constants.GATE_PHOTO_STEP); if (fromStep != null) { if (stdStep.StepSeq <= fromStep.StepSeq) { return(true); } } } } return(false); }
public static bool IsFixedProductVer(FabStdStep stdStep, string productVer) { string shopID = stdStep.ShopID; //Ver는 Array Shop에서만 유효 if (BopHelper.IsArrayShop(shopID) == false) { return(false); } //1300 ~ 5300 공정까지만 ProductVersion 유효(2020.01.13 - by.liujian(유건)) //5300 이후 ProductVersion 무시 var toStep = BopHelper.FindStdStep(Constants.ArrayShop, Constants.ITO_PHOTO_STEP); if (toStep != null) { if (stdStep.StepSeq > toStep.StepSeq) { return(false); } } //1300 이전 공정 이면서 Ver에 X가 없는 Version은 변경 투입 가능함. if (AvailableChangeProductVer(stdStep, productVer)) { return(false); } if (LcdHelper.IsEmptyID(productVer)) { return(false); } return(true); }
private static void AddOutInfos(this CellInProfile profile, string shopID, List <ProfileItem> outInfos) { if (outInfos == null || outInfos.Count == 0) { return; } var list = BopHelper.IsArrayShop(shopID) ? profile.ArrayInfos : profile.CFInfos; foreach (var info in outInfos) { AddInfo(list, info); } }
private static string GetShopStep(string shopID) { if (BopHelper.IsArrayShop(shopID)) { return(ARRAY_STEP); } if (BopHelper.IsCfShop(shopID)) { return(CF_STEP); } if (BopHelper.IsCellShop(shopID)) { return(CELL_STEP); } return(Constants.NULL_ID); }
internal static string GetArrayCode(string cellCode) { var list = GetCellBomByCellCode(cellCode, CellActionType.Ship); if (list == null || list.Count == 0) { return(null); } foreach (var item in list) { if (BopHelper.IsArrayShop(item.FromShopID)) { return(item.FromProductID); } } return(null); }