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