Exemplo n.º 1
0
        public DataTable GetDeletedUserListByDateRangeAll(string fromDate, string toDate, string search)
        {
            UserDAL user = new UserDAL();

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

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 2
0
        public DataTable SaveUser()
        {
            UserDAL user = new UserDAL();

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

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 3
0
        public DataTable GetUserList()
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = user.GetUserList(db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 4
0
        public bool ValidateUser()
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                Boolean isValid = UserDAL.ValidateUser(this, db);
                db.Stop();

                return isValid;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 5
0
        public void UpdateUser()
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                user.UpdateUser(this, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 6
0
        public void DeleteUser(string userId)
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                user.DeleteUser(userId, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 7
0
        public void UpdateUserPassword(string userId, string password)
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                user.UpdateUserPassword(userId, password, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 8
0
        public void UpdateUserActivation(string userId, string activationStatus)
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                user.UpdateUserActivation(userId, activationStatus, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 9
0
        public DataTable GetTransactionBranchesByUser(string userId)
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = user.GetTransactionBranchesByUser(userId, db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }
Exemplo n.º 10
0
        public bool CheckDuplicateSalesCenter(string userId)
        {
            UserDAL user = new UserDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                bool status = user.CheckDuplicateUser(userId, db);
                db.Stop();
                return status;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                user = null;
            }
        }