/// <summary> /// 获取菜单权限根据帐号 /// </summary> /// <returns></returns> public JsonResult GetMenuAuthByIdentity(string id) { var retModel = new JsonReturnModel(); try { List <string> list = new List <string>(); MenuAuthManageModel model = new MenuAuthManageModel(); Item Identity = IdentityDA.GetIdentityById(inn, id); if (Identity.getItemCount() > 0) { model.Id = Identity.getProperty("id"); model.Is_Alias = Identity.getProperty("is_alias"); model.KEYED_NAME = Identity.getProperty("keyed_name"); Item result = ItemTypeDA.GetMenuAuthByIdentity(inn, id); if (result.getItemCount() > 0) { for (int index = 0; index < result.getItemCount(); index++) { Item item = result.getItemByIndex(index); string keyed_name = item.getProperty("keyed_name"); list.Add(keyed_name); } } model.AuthList = list; } retModel.data = model; } catch (Exception ex) { retModel.AddError("errorMessage", ex.Message); } return(Json(retModel, JsonRequestBehavior.AllowGet)); }