コード例 #1
0
        private void GetModelPermission()
        {
            string str = base.Request.Form["ModelPurview"];

            RolePermissions.DeletePermissionFromRoles(this.m_RoleId);
            if (!string.IsNullOrEmpty(str))
            {
                RolePermissions.AddModelPermissionToRoles(this.m_RoleId, str.Trim());
            }
        }
コード例 #2
0
        private void GetModelPermission()
        {
            string str = base.Request.Form["ModelPurview"];

            RolePermissions.DeletePermissionFromRoles(this.m_RoleId);
            if (!string.IsNullOrEmpty(str))
            {
                RolePermissions.AddModelPermissionToRoles(this.m_RoleId, str.Trim());
            }
            if (BasePage.RequestString("Action") != "Add")
            {
                AdminPage.WriteSuccessMsg("<li>角色" + this.m_RoleName + "权限设置成功!</li>", "RoleManage.aspx");
            }
            else
            {
                BasePage.ResponseRedirect("RoleMember.aspx?RoleID=" + this.m_RoleId.ToString());
            }
        }