| 
					
					
						
							
						
					
					
				 | 
				@ -305,17 +305,9 @@ namespace Shentun.Peis.PrintReports | 
			
		
		
	
		
			
				 | 
				 | 
				            #endregion
 | 
				 | 
				 | 
				            #endregion
 | 
			
		
		
	
		
			
				 | 
				 | 
				            var resultStatusList = (await _resultStatusRepository.GetListAsync()); | 
				 | 
				 | 
				            var resultStatusList = (await _resultStatusRepository.GetListAsync()); | 
			
		
		
	
		
			
				 | 
				 | 
				            //获取体检报告类别
 | 
				 | 
				 | 
				            //获取体检报告类别
 | 
			
		
		
	
		
			
				 | 
				 | 
				            var medicalReportTypes = (await _medicalReportTypeRepository.GetListAsync()).OrderBy(o=>o.DisplayOrder); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            var MedicalReportMedicalReportTypeDtos = new List<MedicalReportMedicalReportTypeDto>(); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            foreach (var medicalReportType in medicalReportTypes) | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                MedicalReportMedicalReportTypeDtos.Add(new MedicalReportMedicalReportTypeDto() | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                    MedicalReportTypeId = medicalReportType.Id, | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                    MedicalReportTypeName = medicalReportType.DisplayName, | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                    DisplayOrder = medicalReportType.DisplayOrder, | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                }); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				            } | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            medicalReportDto.MedicalReportTypes = await GetMedicalReportTypeList(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            //获取项目类别
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            medicalReportDto.ItemTypes = await GetItemTypeList(); | 
			
		
		
	
		
			
				 | 
				 | 
				            #region 综述
 | 
				 | 
				 | 
				            #region 综述
 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				            var sumSummarylist = (await _sumSummaryHeaderRepository.GetDbSetAsync()) | 
				 | 
				 | 
				            var sumSummarylist = (await _sumSummaryHeaderRepository.GetDbSetAsync()) | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -480,5 +472,41 @@ namespace Shentun.Peis.PrintReports | 
			
		
		
	
		
			
				 | 
				 | 
				            return await _chargeReportRepository.GetChargeReportAsync(ChargeId); | 
				 | 
				 | 
				            return await _chargeReportRepository.GetChargeReportAsync(ChargeId); | 
			
		
		
	
		
			
				 | 
				 | 
				        } | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        private async Task<List<MedicalReportItemTypeDto>> GetItemTypeList() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            var itemTypes = await _itemTypeRepository.GetListAsync(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            var medicalReportItemTypeDtos = new List<MedicalReportItemTypeDto>(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            foreach (var itemType in itemTypes) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                var medicalReportItemTypeDto = new MedicalReportItemTypeDto() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    ItemTypeId = itemType.Id, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    ItemTypeName = itemType.DisplayName, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    PathCode = itemType.PathCode, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    DisplayOrder = itemType.DisplayOrder, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    IsTop = 'N' | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                }; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                if(itemType.PathCode.Length <= 5) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    medicalReportItemTypeDto.IsTop = 'Y'; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            return medicalReportItemTypeDtos; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        private async Task<List<MedicalReportMedicalReportTypeDto>> GetMedicalReportTypeList() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            var medicalReportTypes = (await _medicalReportTypeRepository.GetListAsync()).OrderBy(o => o.DisplayOrder); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            var MedicalReportMedicalReportTypeDtos = new List<MedicalReportMedicalReportTypeDto>(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            foreach (var medicalReportType in medicalReportTypes) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                MedicalReportMedicalReportTypeDtos.Add(new MedicalReportMedicalReportTypeDto() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    MedicalReportTypeId = medicalReportType.Id, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    MedicalReportTypeName = medicalReportType.DisplayName, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    DisplayOrder = medicalReportType.DisplayOrder, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                }); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            return MedicalReportMedicalReportTypeDtos; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				    } | 
				 | 
				 | 
				    } | 
			
		
		
	
		
			
				 | 
				 | 
				} | 
				 | 
				 | 
				} |