private FabEqp CheckEqp(string factoryID, string shopID, string eqpID, string where, ref bool hasError) { FabEqp eqp = ResHelper.FindEqp(eqpID); if (eqp == null) { hasError = true; ErrHist.WriteIf(where + eqpID, ErrCategory.PERSIST, ErrLevel.WARNING, factoryID, shopID, Constants.NULL_ID, Constants.NULL_ID, Constants.NULL_ID, Constants.NULL_ID, eqpID, Constants.NULL_ID, "NOT FOUND EQP", string.Format("Table:{0}", where) ); } return(eqp); }
private FabStep GetNextStep(FabStep step, FabProduct product, FabPlanInfo plan, ref FabProduct nextProduct) { string eqpID = plan.ResID; var targEqp = ResHelper.FindEqp(eqpID); string eqpGroup = targEqp == null ? null : targEqp.EqpGroup; string runMode = plan.EqpLoadInfo == null ? null : plan.EqpLoadInfo.RunMode; string productID = plan.ProductID; var branchStep = BranchStepMaster.GetBranchStep(eqpGroup, runMode, productID); if (branchStep != null) { var currProd = product; var currStep = step.GetNextStep(currProd, ref currProd); bool existStep = false; while (currStep != null) { if (currStep.StepID == branchStep.NextStepID) { existStep = true; break; } currStep = currStep.GetNextStep(currProd, ref currProd); } if (existStep) { nextProduct = currProd; return(currStep); } } return(step.GetNextStep(product, ref nextProduct)); }