public DataTable GetGroupUser(int groupID)
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return userDao.FindUser(groupID.ToString());
     }
 }
 public DataSet GetUserList(int pageIndex, int pageSize, string filter)
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return userDao.FindAll((pageIndex - 1) * pageSize, pageSize, filter);
     }
 }
 public DataTable GetAll()
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return userDao.FindAll();
     }
 }
 public DataTable GetUser(string userName)
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return userDao.FindUserByName(userName);
         
     }
 }
 public bool ChangePassword(string userName, string password)
 {
     bool flag = false;
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         userDao.UpdateEntity(userName, password);
         flag = true;
     }
     return flag;
 }
 public bool AddUserToGroup(int groupID, string users)
 {
     bool flag = false;
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         userDao.UpdateEntity(groupID, users);
         flag = true;
     }
     return flag;
 }
 public bool DeleteUserFromGroup(int userID)
 {
     
     bool flag = false;
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         userDao.UpdateEntity(userID);
         flag = true;
     }
     return flag;
 }
 public bool Update(DataSet dataSet)
 {
     bool flag = false;
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao UserDao = new SysUserDao();
         UserDao.UpdateEntity(dataSet);
         flag = true;
     }
     return flag;
 }
 public void InsertUserQuickDesktop(string userID, string moduleID)
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         userDao.InsertUserQuickDesktop(userID, moduleID);
     }
 }
 public void DeleteUserQuickDesktop(string userID)
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         userDao.DeleteUserQuickDesktop(userID);
     }
 }
 public DataSet GetUserQuickDesktop(int userID)
 {
     
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return userDao.FindUserQuickDesktop(userID);
     }
 }
 public DataSet GetUserOperateSubModule(string userName)
 {
     
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return userDao.FindUserOperateSubModule(userName);
     }
 }
 public int GetRowCount(string filter)
 {
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysUserDao userDao = new SysUserDao();
         return userDao.GetRowCount(filter);
     }
 }