Exemplo n.º 1
0
        public ActionResult SetRoleInfo(string deptSelectItems)
        {
            ViewData["SetRoleInfoId"]   = Request["SetRoleInfoId"];
            ViewData["deptSelectItems"] = GetdeptSelectItems();
            string RoleCode = Request["deptSelectItems"];

            Business.Sys_Role Sys_Role      = new Business.Sys_Role();
            Model.RoleInfo    RoleInfo      = Sys_Role.GetRoleInfoByRoleCode(RoleCode);
            string            SetRoleInfoId = Request["SetRoleInfoId"];

            Business.Sys_UserAdmin Sys_UserAdmin = new Business.Sys_UserAdmin();
            if (Sys_UserAdmin.SetUserAdminRole(SetRoleInfoId, RoleInfo.RoleCode, RoleInfo.RoleName))
            {
            }
            Response.Write("<script>parent.layer.closeAll();</script>");
            return(View());
        }