/// <summary> /// 分页获取机构注册表 /// </summary> /// <param name="pagination"></param> /// <param name="queryJson"></param> /// <returns></returns> public ActionResult GetPageListJson(Pagination pagination, string queryJson) { var watch = CommonHelper.TimerStart(); IEnumerable <PMR009UserEntity> data = null; var sexcodes = codeCache.GetStandardCodeList("性别代码"); var postcodes = codeCache.GetStandardCodeList("医院人员岗位代码"); if (!string.IsNullOrEmpty(queryJson)) { data = sysBLL.GetPMR009UserList(pagination, queryJson); if (data != null && data.Count() > 0) { foreach (var d in data) { d.SEXNAME = sexcodes.Where(x => x.CODE == d.SEX).Select(x => x.NAME).FirstOrDefault(); d.POSTNAME = postcodes.Where(x => x.CODE == d.POST).Select(x => x.NAME).FirstOrDefault(); } } } var JsonData = new { rows = data, pagination.total, pagination.page, pagination.records, costtime = CommonHelper.TimerEnd(watch) }; return(Content(JsonData.ToJson())); }