/// <summary> /// 查看权利事项详情 /// add by lpl /// 2019-1-3 /// </summary> /// <param name="Id"></param> /// <returns></returns> public ActionResult PowerItemDetial(string Id) { PowerItemEntity powerItemEntity = new PowerItemEntity(); if (!string.IsNullOrEmpty(Id)) { powerItemEntity = new PowerItemBll().Single(Id); ViewBag.Edit = "1"; } return(View(powerItemEntity)); }
/// <summary> /// add by lpl /// 2019-1-3 /// 加载权利事项 /// </summary> /// <param name="limit"></param> /// <param name="page"></param> /// <returns></returns> public ActionResult LoadItem(string limit, string page, string Item, string LX) { PowerItemEntity powerItemEntity = new PowerItemEntity() { LX = LX, Item = Item }; var data = new PowerItemBll().QueryList(powerItemEntity); var pagecount = data.Count; data = data.Skip((Convert.ToInt32(page) - 1) * Convert.ToInt32(limit)).Take(Convert.ToInt32(limit)).ToList(); var result = new LayTableModel <PowerItemEntity> { code = 0, msg = "成功", count = pagecount, data = data }; return(Json(result, JsonRequestBehavior.AllowGet)); }