public DataTable GetJournalVoucherListByDateRangeAndAll(string SalesCenter,string fromDate, string toDate, string search)
        {
            JournalVoucherDAL journalVoucher = new JournalVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = journalVoucher.GetJournalVoucherListByDateRangeAndAll(SalesCenter,fromDate, toDate, search, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                journalVoucher = null;
            }
        }
        public DataTable SaveJournalVoucher(string SalesCenter,DataTable dtJournalList)
        {
            JournalVoucherDAL journalVoucher = new JournalVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                DataTable dt = journalVoucher.SaveJournalVoucher(SalesCenter,dtJournalList, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                journalVoucher = null;
            }
        }
        public void UpdateJournalVoucherEntryByJournalAndTransactionNumber()
        {
            JournalVoucherDAL journalVoucher = new JournalVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                journalVoucher.UpdateJournalVoucherEntryByJournalAndTransactionNumber(this, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                journalVoucher = null;
            }
        }
        public void ApproveJournalVoucherByJournal(string journalNumber)
        {
            JournalVoucherDAL journalVoucher = new JournalVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                journalVoucher.ApproveJournalVoucherByJournal(journalNumber, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                journalVoucher = null;
            }
        }
        public DataTable GetJournalVoucherEntryByJournalAndTransactionNumber(string journalNumber, string transactionNumber)
        {
            JournalVoucherDAL journalVoucher = new JournalVoucherDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = journalVoucher.GetJournalVoucherEntryByJournalAndTransactionNumber(journalNumber, transactionNumber, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                journalVoucher = null;
            }
        }