void View_OnQueryCheckReportResult(object sender, Views.CheckReportPageEventArgs e) { List <Data.CheckApply> ApplyList = Model.QueryLocalCheckApply(e.InhosID); List <Data.CheckResult> ResultList = Model.QueryLocalCheckResult(e.InhosID); View.ExeShowCheckReportResult(ApplyList, ResultList); }
async void View_OnQueryCheckReportResult(object sender, Views.CheckReportPageEventArgs e) { //List<Data.CheckApply> ApplyList = Model.QueryLocalCheckApply(e.InhosID); //List<Data.CheckResult> ResultList = Model.QueryLocalCheckResult(e.InhosID); //View.ExeShowCheckReportResult(ApplyList, ResultList); CJia.iSmartMedical.MobileMedicDoctorService.QueryCheckApplyResponse checkApply = await service.QueryCheckApplyAsync(e.InhosID); List <Dictionary <string, string> > applyDicList = Entity.XmlToListDic(checkApply.Body.QueryCheckApplyResult); List <Data.CheckApply> ApplyList = Entity.GetEntity <Data.CheckApply>(applyDicList); CJia.iSmartMedical.MobileMedicDoctorService.QueryCheckResultResponse checkResult = await service.QueryCheckResultAsync(e.InhosID); List <Dictionary <string, string> > resultDicList = Entity.XmlToListDic(checkResult.Body.QueryCheckResultResult); List <Data.CheckResult> resultList = Entity.GetEntity <Data.CheckResult>(resultDicList); View.ExeShowCheckReportResult(ApplyList, resultList); }