修复部分BUG,完成为角色分配菜单的界面

This commit is contained in:
yubaolee
2015-12-06 23:40:34 +08:00
parent 9e419296c2
commit d29eb36833
10 changed files with 327 additions and 56 deletions

View File

@@ -13,10 +13,12 @@
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Data.Entity.Validation;
using System.Web.Mvc;
using Infrastructure;
using OpenAuth.App;
using OpenAuth.App.ViewModel;
using OpenAuth.Domain;
using OpenAuth.Mvc.Models;
@@ -68,5 +70,19 @@ namespace OpenAuth.Mvc.Controllers
}
return JsonHelper.Instance.Serialize(_bjuiResponse);
}
#region
public ActionResult AssignForRole(int roleId)
{
ViewBag.RoleId = roleId;
return View();
}
public string Load(int roleId, int orgId)
{
return JsonHelper.Instance.Serialize(_app.LoadWithAccess("RoleElement", roleId, orgId));
}
#endregion
}
}