Beispiel #1
0
        private string CheckMainProcessID(string factoryID, string shopID, string productID, string stepID, Wip wip, string where, ref bool hasError)
        {
            var proc = BopHelper.FindProcess2(productID, stepID);

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

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

                return(null);
            }

            return(proc.ProcessID);
        }