Beispiel #1
0
        private FabProduct CheckProduct(string factoryID, string shopID, string productID, string productVer, string where, ref bool hasError)
        {
            FabProduct prod = BopHelper.FindProduct(shopID, productID);

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

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

            return(prod);
        }