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); }
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); }