public string LoadForRole(int roleId)
        {
            var orgs = _orgApp.LoadForRole(roleId);

            //添加根节点
            orgs.Add(new Org
            {
                Id        = 0,
                ParentId  = -1,
                Name      = "已为角色分配的可访问部门",
                CascadeId = "0"
            });
            return(JsonHelper.Instance.Serialize(orgs));
        }
Beispiel #2
0
        public string LoadForRole(string firstId)
        {
            var orgs = _orgApp.LoadForRole(firstId);

            return(JsonHelper.Instance.Serialize(orgs));
        }