/// <summary> /// 根据用户组的ID,获取到当个用户组的 /// </summary> /// <param name="groupid"></param> /// <returns></returns> private DataTable getRolesSig(string groupid) { DataTable coutw = new DataTable(); try { groupid = common.RequestSafeString(groupid, 50); mugroups = bugroups.GetModel(groupid); if (mugroups != null) { //根据找到的用户组,找出所有的权限点 string rolelist = mugroups.ROLE.ToString(); string sqlin = ""; string sql = ""; if (rolelist.Contains(",")) { sqlin = common.makeSqlIn(rolelist, ','); sql = "select ID,Roles,Types,upRoles from vUSER_Role where DELFLAG='0' AND ID in " + sqlin; coutw = pageControl.doSql(sql).Tables[0]; } else { if (rolelist.Length > 0) { sql = "select ID,Roles,Types,upRoles from vUSER_Role where DELFLAG='0' AND ID='" + rolelist + "'"; coutw = pageControl.doSql(sql).Tables[0]; } } } } catch { } return(coutw); }