Ejemplo n.º 1
0
        public DataTable GetCreditVoucherApprovalListByDateRangeAndAll(string SalesCenter,string fromDate, string toDate, string cashCheque, string search)
        {
            DebitCreditVoucherDAL debitCreditVoucher = new DebitCreditVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = debitCreditVoucher.GetCreditVoucherApprovalListByDateRangeAndAll(SalesCenter,fromDate, toDate, cashCheque, search, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                debitCreditVoucher = null;
            }
        }
Ejemplo n.º 2
0
        public DataTable SaveCreditVoucherCash()
        {
            DebitCreditVoucherDAL debitCreditVoucher = new DebitCreditVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                DataTable dt = debitCreditVoucher.SaveCreditVoucherCash(this, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                debitCreditVoucher = null;
            }
        }
Ejemplo n.º 3
0
        public void ApproveDebitVoucherByJournal(string journalNumber, string cashCheque)
        {
            DebitCreditVoucherDAL debitCreditVoucher = new DebitCreditVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                debitCreditVoucher.ApproveDebitVoucherByJournal(journalNumber, cashCheque, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                debitCreditVoucher = null;
            }
        }
Ejemplo n.º 4
0
        public void UpdateDebitVoucherCash()
        {
            DebitCreditVoucherDAL debitCreditVoucher = new DebitCreditVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                debitCreditVoucher.UpdateDebitVoucherCash(this, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                debitCreditVoucher = null;
            }
        }
Ejemplo n.º 5
0
        public DataTable GetDebitVoucherApprovalByJournal(string cashCheque, string journalNumber)
        {
            DebitCreditVoucherDAL debitCreditVoucher = new DebitCreditVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = debitCreditVoucher.GetDebitVoucherApprovalByJournal(cashCheque, journalNumber, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                debitCreditVoucher = null;
            }
        }
Ejemplo n.º 6
0
        /////////////////////////////////////////////////////////////////////////////////////////////

        public void RejectDebitCreditJournalVoucherByJournal(string journalNumber)
        {
            DebitCreditVoucherDAL debitCreditVoucher = new DebitCreditVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                debitCreditVoucher.RejectDebitCreditJournalVoucherByJournal(journalNumber, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                debitCreditVoucher = null;
            }
        }