//获取数据 public ActionResult GetAllActionInfos() { int pageSize = int.Parse(Request["rows"] ?? "10"); int pageIndex = int.Parse(Request["page"] ?? "1"); int total = 0; string schName = Request["schName"]; string schRemark = Request["schRemark"]; var queryParam = new ActionQueryParam() { PageIndex = pageIndex, PageSize = pageSize, Total = 0, SchName = schName, SchRemark = schRemark }; var pageData = ActionInfoService.LoagPageData(queryParam); var temp = pageData.Select( a => new { ID = a.ID, a.IsMenu, a.Url, a.Remark, a.Sort, a.SubTime, a.ModfiedOn, a.HttpMethd, a.MenuIcon, a.ActionName }); var data = new { total = queryParam.Total, rows = temp.ToList() }; return(Json(data, JsonRequestBehavior.AllowGet)); }