/// <summary> /// 注册命令信息 /// </summary> private void RegisterCommand() { // 切换检验结果明细信息 this.ShowResultDetailCommon = new RelayCommand <object>(par => { MED_LAB_TEST_MASTER tempMaster = par as MED_LAB_TEST_MASTER; if (null != tempMaster) { this.RefreshMedLabResult(tempMaster.TEST_NO); } }); }
/// <summary> /// 检验结果主信息 /// </summary> private void RefreshMedLabTestMaster() { lock (this.locker) { if (null != this.medPatInfo) { // 获取检验信息主项 this.MedLabTestMaster = CommonService.ClientInstance.GetMedLabTestMaster(this.medPatInfo.PATIENT_ID, this.medPatInfo.VISIT_ID); // 根据患者ID一次性获取所有检验结果明细,在切换数据时直接从内存中获取而不是每次读取数据 this.curPatAllResult = CommonService.ClientInstance.GetMedLabResult(this.medPatInfo.PATIENT_ID, this.medPatInfo.VISIT_ID); MED_LAB_TEST_MASTER firstItem = this.MedLabTestMaster.FirstOrDefault(); if (null != firstItem) { this.RefreshMedLabResult(firstItem.TEST_NO); } } } }