Esempio n. 1
0
        public DataTable GetCustomerListByActivationStatus(string isActive)
        {
            CustomerDAL customer = new CustomerDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = customer.GetCustomerListByActivationStatus(isActive, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                customer = null;
            }
        }
Esempio n. 2
0
        public DataTable SaveCustomer()
        {
            CustomerDAL customer = new CustomerDAL();

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

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                customer = null;
            }
        }
Esempio n. 3
0
        public DataTable GetCustomerList()
        {
            CustomerDAL customer = new CustomerDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = customer.GetCustomerList(db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                customer = null;
            }
        }
Esempio n. 4
0
        public DataTable GetCustomerWisePaymentList(string customerId, string fromDate, string toDate, string status)
        {
            CustomerDAL customer = new CustomerDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = customer.GetCustomerWisePaymentList(customerId, fromDate, toDate, status, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                customer = null;
            }
        }
Esempio n. 5
0
        public void UpdateCustomer()
        {
            CustomerDAL customer = new CustomerDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                customer.UpdateCustomer(this, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                customer = null;
            }
        }
Esempio n. 6
0
        public void DeleteCustomer(string customerId)
        {
            CustomerDAL customer = new CustomerDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                customer.DeleteCustomer(customerId, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                customer = null;
            }
        }
Esempio n. 7
0
        public void UpdateCustomerActivation(string customerId, string activationStatus)
        {
            CustomerDAL customer = new CustomerDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                customer.UpdateCustomerActivation(customerId, activationStatus, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                customer = null;
            }
        }
Esempio n. 8
0
        public DataTable GetDeletedCustomerListByDateRangeAll(string fromDate, string toDate, string search)
        {
            CustomerDAL customer = new CustomerDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = customer.GetDeletedCustomerListByDateRangeAll(fromDate, toDate, search, db);
                db.Stop();

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