/// <summary> /// 查询公司分页列表 /// </summary> /// <returns></returns> public ActionResult GetList() { int PageIndex = WebUtil.GetFormValue <int>("PageIndex"); int PageSize = WebUtil.GetFormValue <int>("PageSize"); CompanyProvider provider = new CompanyProvider(); PageInfo pageInfo = new PageInfo() { PageIndex = PageIndex, PageSize = PageSize }; CompanyEntity entity = new CompanyEntity(); List <CompanyEntity> listResult = provider.GetList(entity, ref pageInfo); DataListResult <CompanyEntity> dataResult = new DataListResult <CompanyEntity>(); dataResult.Code = (int)EResponseCode.Success; dataResult.Message = "响应成功"; dataResult.Result = listResult; dataResult.PageInfo = pageInfo; return(Content(JsonHelper.SerializeObject(dataResult))); }