Exemplo n.º 1
0
        public void DeleteUserGroup(string userId)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                userGroup.DeleteUserGroup(userId, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Exemplo n.º 2
0
        public bool CheckDuplicateUserGroup(string userGroupName)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                bool status = userGroup.CheckDuplicateUserGroup(userGroupName, db);
                db.Stop();
                return status;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Exemplo n.º 3
0
        public DataTable GetActiveUserGroupList()
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = userGroup.GetActiveUserGroupList(db);
                db.Stop();

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Exemplo n.º 4
0
        public DataTable GetDeletedUserGroupListByDateRangeAll(string fromDate, string toDate, string search)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

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

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Exemplo n.º 5
0
        public void UpdateUserGroupActivation(string userId, string activationStatus)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                userGroup.UpdateUserGroupActivation(userId, activationStatus, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Exemplo n.º 6
0
        public void UpdateUserGroup()
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                userGroup.UpdateUserGroup(this, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Exemplo n.º 7
0
        public DataTable SaveUserGroup()
        {
            UserGroupDAL userGroup = new UserGroupDAL();

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

                return dt;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Exemplo n.º 8
0
        public DataTable GetUserGroupById(string userId)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start();
                DataTable dt = userGroup.GetUserGroupById(userId, db);
                db.Stop();

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