Esempio n. 1
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;
            }
        }
Esempio n. 2
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;
            }
        }
Esempio n. 3
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;
            }
        }
Esempio n. 4
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;
            }
        }
Esempio n. 5
0
        public string DeleteUserGroup(string userGroupId, string forceToDelete)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                string status = userGroup.DeleteUserGroup(userGroupId, forceToDelete, db);
                db.Stop();

                return status;
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Esempio n. 6
0
        public void UpdateUserGroupActivation(string userGroupId, string activationStatus)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

            try
            {
                LumexDBPlayer db = LumexDBPlayer.Start(true);
                userGroup.UpdateUserGroupActivation(userGroupId, activationStatus, db);
                db.Stop();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                userGroup = null;
            }
        }
Esempio n. 7
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;
            }
        }
Esempio n. 8
0
        public DataTable GetUserGroupById(string userGroupId)
        {
            UserGroupDAL userGroup = new UserGroupDAL();

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

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