public string GeneratePO(LP_GenerateTransNumber_Property objtransno) { string TransactionNumber = ""; _objPurchaseDAL = new LP_Quotation_DAL(); DataTable dt = _objPurchaseDAL.GeneratePONo(objtransno); if (dt.Rows.Count > 0) { foreach (DataRow dr in dt.Rows) { TransactionNumber = dr["TransNumber"].ToString(); TransactionNumber = "QS-00" + (int.Parse(TransactionNumber) + 1) + "-" + objtransno.userid; } return(TransactionNumber); } else { TransactionNumber = "QS-001-" + objtransno.userid; return(TransactionNumber); } }
public DataTable SelectAll() { _objPurchaseDAL = new LP_Quotation_DAL(); return(_objPurchaseDAL.SelectAll()); }
public DataTable SelectTax() { _objPurchaseDAL = new LP_Quotation_DAL(_objPOMasterProperty); return(_objPurchaseDAL.SelectTaxOnQS()); }
public bool Insert() { _objPurchaseDAL = new LP_Quotation_DAL(_objPOMasterProperty); return(_objPurchaseDAL.Insert()); }