Example #1
0
        public static decimal GetSellingPrice(string code)
        {
            decimal dec = decimal.Zero;

            if (M_ProductDL.ExistingM_Product(code))
            {
                M_Products pro = new M_Products();
                pro.IDX = code;
                pro     = new M_ProductDL().Selectm_Product(pro);
                dec     = decimal.Round(pro.SellingPrice.Value, 2);
            }
            return(dec);
        }
Example #2
0
        public static decimal GetProductSellingPrice(string ProductID)
        {
            decimal stock = decimal.Zero;

            try
            {
                M_Products stk = new M_Products();
                stk.IDX = ProductID;

                stk   = new M_ProductDL().Selectm_Product(stk);
                stock = stk.SellingPrice.Value;
            }
            catch (Exception ex)
            {
            }
            return(stock);
        }
Example #3
0
        public static string FindExisitingProduct(string locacode)
        {
            string str = "";

            if (M_ProductDL.ExistingM_Product(locacode.Trim()))
            {
                M_Products cat = new M_Products();
                cat.IDX = locacode.Trim();
                M_ProductDL dl = new M_ProductDL();
                cat = dl.Selectm_Product(cat);
                str = cat.Namex;
            }
            else
            {
                str = "<Error!!!>";
            }
            return(str);
        }