예제 #1
0
 /// <summary>
 /// 获取权限对应的用户
 /// </summary>
 /// <param name="role"></param>
 /// <param name="user"></param>
 /// <returns></returns>
 public IList <SsbUser> GetRoleUserList(SspRole role, SsbUser user)
 {
     Dictionary <string, object> where = new Dictionary <string, object>();
     where.Add("ObjId", role.ObjId.ToString());
     where.Add("UserName", user.UserName);
     where.Add("RealName", user.RealName);
     where.Add("RoleName", role.RoleName);
     return(this.GetEntityByStatement <SsbUser>("GetRoleUserList", where));
 }
예제 #2
0
    public object GridPanelBindUserData(string action, Dictionary <string, object> extraParams)
    {
        string roleid = hiddenRoleID.Text;

        IniDeptNode(roleid, TreePanel2);
        if (string.IsNullOrWhiteSpace(roleid))
        {
            return(null);
        }
        SspRole role = new SspRole();

        role.ObjId = int.Parse(roleid);
        SsbUser         user  = new SsbUser();
        IList <SsbUser> lst   = basUserManager.GetRoleUserList(role, user);
        int             total = lst.Count;

        return(new { data = lst, total });
    }
예제 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack || X.IsAjaxRequest)
        {
            return;
        }
        SspRole role = sysRoleManager.GetEntityList(new SspRole()
        {
            ObjId = Convert.ToInt32(GetRequest("RoleID"))
        })[0];

        TreePanel1.Title = "部门信息[" + role.RoleName + "]";
        IList <SspDeptRole> lst = sysDeptRoleManager.GetEntityList(new SspDeptRole()
        {
            RoleId = Convert.ToInt32(GetRequest("RoleID"))
        });
        StringBuilder sb = new StringBuilder(",");

        foreach (SspDeptRole m in lst)
        {
            sb.Append(m.DeptId).Append(",");
        }
        hiddenHaveRole.Text = sb.ToString();
    }
예제 #4
0
 /// <summary>
 /// 获取权限对应的用户
 /// </summary>
 /// <param name="role"></param>
 /// <param name="user"></param>
 /// <returns></returns>
 public IList <SsbUser> GetRoleUserList(SspRole role, SsbUser user)
 {
     return(this.businessService.GetRoleUserList(role, user));
 }
예제 #5
0
 public IList <SspRole> GetEntityList(SspRole entity, string orderby)
 {
     return(this.basicService.GetEntityList(entity, orderby));
 }
예제 #6
0
 public IList <SspRole> GetEntityList(SspRole entity)
 {
     return(this.basicService.GetEntityList(entity));
 }