public ActionResult GetAllActionInfo() { int TotalCount = 0; int PageSize = int.Parse(Request["rows"] ?? "8"); int PageIndex = int.Parse(Request["page"] ?? "1"); short IsDel = (short)XS.OA.Model.Enum.DelflagEnum.Normal; TotalCount = bll.GetList(r => true).Count(); var actioninfo = bll.GerPageList(PageSize, PageIndex, out TotalCount, r => r.DelFalg == IsDel, r => r.ID) .Select(r => new { ID = r.ID, ActionName = r.ActionName, Url = r.Url, IsMenu = r.IsMenu, HttpMethod = r.HttpMethod, Remark = r.Remark }); var data = new { total = TotalCount, rows = actioninfo.ToList() }; return(Json(data, JsonRequestBehavior.AllowGet)); }
public ActionResult SetEspeciallyRoleName(int id) { var user = bll.GetList(u => u.ID == id).FirstOrDefault(); ViewBag.User = user; short IsDel = (short)XS.OA.Model.Enum.DelflagEnum.Normal; ViewData.Model = actioninfobll.GetList(a => a.DelFalg == IsDel).ToList(); return(View()); }