コード例 #1
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }
コード例 #2
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }
コード例 #3
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }
コード例 #4
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }
コード例 #5
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }
コード例 #6
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }
コード例 #7
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }
コード例 #8
0
ファイル: CustomerBLL.cs プロジェクト: atiburrahman09/Signbd
        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;
            }
        }