private static bool IsFilterRunMode(this JobFilterInfo info, FabAoEquipment eqp, List <JobFilterInfo> jobList) { WeightFactor wf = WeightHelper.GetWeightFactor(eqp.Target.Preset, Constants.WF_RUN_MODE_FILTER); if (wf == null || wf.Factor == 0) { return(false); } //연속진행인 경우 if (info.IsRunning) { return(false); } string eqpGroup = eqp.TargetEqp.EqpGroup; string runMode = eqp.GetCurrentRunMode(); var branchStep = BranchStepMaster.GetBranchStep(eqpGroup, runMode); if (branchStep == null) { return(false); } if (branchStep.IsAllProduct) { return(false); } var productList = branchStep.ProductList; if (productList == null || productList.Count == 0) { return(false); } string productID = info.ProductID; string ownerType = info.OwnerType; bool isFilter = true; if (branchStep.IsLoadable(productID, ownerType)) { isFilter = false; } if (isFilter) { string defaultOwnerType = SiteConfigHelper.GetDefaultOwnerType(); if (ExistRemainWip(jobList, productList, defaultOwnerType) == false) { isFilter = false; } } return(isFilter); }
internal static bool IsLoadable(this BranchStepInfo info, string productID, string ownerType) { string defaultOwnerType = SiteConfigHelper.GetDefaultOwnerType(); if (ownerType != defaultOwnerType) { return(false); } if (info.IsAllProduct || info.IsMatched(productID)) { return(true); } return(false); }