| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -56,13 +56,13 @@ namespace Shentun.Peis.PrintReports | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var ApiUrl = _configuration.GetValue<string>("HostUrl:ApiUrl") + "/"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Guid OrOrganizationUnitId = (await GetAsync(f => f.Id == PatientRegisterIds.First())).MedicalCenterId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Guid medicalCenterId = (await GetAsync(f => f.Id == PatientRegisterIds.First())).MedicalCenterId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            #region 系统参数配置
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var MedicalCenterAddress = await _sysParmValueManager.GetSysParmValueAsync(OrOrganizationUnitId, "medical_center_address"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var MedicalCenterFax = await _sysParmValueManager.GetSysParmValueAsync(OrOrganizationUnitId, "medical_center_fax"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var MedicalCenterTelphone = await _sysParmValueManager.GetSysParmValueAsync(OrOrganizationUnitId, "medical_center_telphone"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var MedicalCenterAddress = await _sysParmValueManager.GetSysParmValueAsync(medicalCenterId, "medical_center_address"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var MedicalCenterFax = await _sysParmValueManager.GetSysParmValueAsync(medicalCenterId, "medical_center_fax"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var MedicalCenterTelphone = await _sysParmValueManager.GetSysParmValueAsync(medicalCenterId, "medical_center_telphone"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            #endregion
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -110,7 +110,7 @@ namespace Shentun.Peis.PrintReports | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            MedicalStartDate = Convert.ToDateTime(a.MedicalStartDate.ToString()).ToString("yyyy-MM-dd"), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            OrganizationUnitId = a.MedicalCenterId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            OrganizationUnitName = ag.DisplayName, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            Detail = PatientRegisterGuideAsbitem(a.Id, OrOrganizationUnitId, a.SexId) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            Detail = PatientRegisterGuideAsbitem(a.Id, medicalCenterId, a.SexId) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return query.ToList(); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -184,10 +184,10 @@ namespace Shentun.Peis.PrintReports | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /// 获取登记的组合项目  按指引类别分组  排序
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /// </summary>
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /// <param name="PatientRegisterId">登记ID</param>
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /// <param name="OrOrganizationUnitId">体检中心</param>
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /// <param name="medicalCenterId">体检中心</param>
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /// <param name="ForSexId">适用性别ID</param>
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /// <returns></returns>
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        private static List<PatientRegisterGuideReport_Detail> PatientRegisterGuideAsbitem(Guid PatientRegisterId, Guid OrOrganizationUnitId, char SexId) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        private static List<PatientRegisterGuideReport_Detail> PatientRegisterGuideAsbitem(Guid PatientRegisterId, Guid medicalCenterId, char SexId) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var entlist = _registerAsbitemRepository.GetDbSetAsync().Result | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            .Include(x => x.Asbitem) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -198,7 +198,7 @@ namespace Shentun.Peis.PrintReports | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            .Select(s => new PatientRegisterGuideReport_Asbitem_Temp | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AsbitemName = s.Asbitem.DisplayName, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AsbitemGuide = _asbitemGuideManager.GetAsbitemGuideConvertSexId(OrOrganizationUnitId, s.AsbitemId, SexId), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AsbitemGuide = _asbitemGuideManager.GetAsbitemGuideConvertSexId(medicalCenterId, s.AsbitemId, SexId), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                AsbitemDisplayOrder = s.Asbitem.DisplayOrder, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                GuideDisplayOrder = s.Asbitem.ItemType.GuidType.DisplayOrder, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                GuideName = s.Asbitem.ItemType.GuidType.DisplayName | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |