Beispiel #1
0
        private FabStep CheckStep(string factoryID, string shopID, string processID, string stepID, string where, ref bool hasError)
        {
            FabStep step = BopHelper.FindStep(shopID, processID, stepID);

            if (step == null)
            {
                hasError = true;

                ErrHist.WriteIf(where + processID + stepID,
                                ErrCategory.PERSIST,
                                ErrLevel.WARNING,
                                factoryID,
                                shopID,
                                Constants.NULL_ID,
                                Constants.NULL_ID,
                                Constants.NULL_ID,
                                processID,
                                Constants.NULL_ID,
                                stepID,
                                "NOT FOUND STEP",
                                string.Format("Table:{0}", where)
                                );
            }

            return(step);
        }