IRC_NewDev
			
			
		
		
							parent
							
								
									668e1019f0
								
							
						
					
					
						commit
						c718ec8446
					
				| 
						 | 
					@ -14,10 +14,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public Guid? SubjectId { get; set; }
 | 
					        public Guid? SubjectId { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
							public CompleteClinicalDataEnum? CompleteClinicalData { get; set; }
 | 
				
			||||||
        /// 项目中心Code
 | 
					
 | 
				
			||||||
        /// </summary>
 | 
							/// <summary>
 | 
				
			||||||
        public string? TrialSiteCode { get; set; }
 | 
							/// 项目中心Code
 | 
				
			||||||
 | 
							/// </summary>
 | 
				
			||||||
 | 
							public string? TrialSiteCode { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// 受试者Code
 | 
					        /// 受试者Code
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -157,7 +157,10 @@ namespace IRaCIS.Application.Services
 | 
				
			||||||
             .WhereIf(dto.TrialSiteCode != null && dto.TrialSiteCode != string.Empty, x => x.TrialSiteCode.Contains(dto.TrialSiteCode))
 | 
					             .WhereIf(dto.TrialSiteCode != null && dto.TrialSiteCode != string.Empty, x => x.TrialSiteCode.Contains(dto.TrialSiteCode))
 | 
				
			||||||
             .WhereIf(dto.SubjectCode != null && dto.SubjectCode != string.Empty, x => x.SubjectCode.Contains(dto.SubjectCode))
 | 
					             .WhereIf(dto.SubjectCode != null && dto.SubjectCode != string.Empty, x => x.SubjectCode.Contains(dto.SubjectCode))
 | 
				
			||||||
             .WhereIf(dto.ModuleType != null, x => x.ModuleType == dto.ModuleType)
 | 
					             .WhereIf(dto.ModuleType != null, x => x.ModuleType == dto.ModuleType)
 | 
				
			||||||
             .WhereIf(dto.ReadingStatus != null, x => x.ReadingStatus == dto.ReadingStatus)
 | 
					             .WhereIf(dto.CompleteClinicalData==CompleteClinicalDataEnum.NA,x=>x.NeedSignClinicalDataCount==0)
 | 
				
			||||||
 | 
								  .WhereIf(dto.CompleteClinicalData == CompleteClinicalDataEnum.NotComplete, x => x.NeedSignClinicalDataCount != x.SignClinicalDataCount)
 | 
				
			||||||
 | 
								   .WhereIf(dto.CompleteClinicalData == CompleteClinicalDataEnum.Complete, x => x.NeedSignClinicalDataCount != 0 && x.NeedSignClinicalDataCount == x.SignClinicalDataCount)
 | 
				
			||||||
 | 
								 .WhereIf(dto.ReadingStatus != null, x => x.ReadingStatus == dto.ReadingStatus)
 | 
				
			||||||
             .WhereIf(dto.Name != null, x => x.Name.Contains(dto.Name!)).OrderBy(x => x.SiteCode);
 | 
					             .WhereIf(dto.Name != null, x => x.Name.Contains(dto.Name!)).OrderBy(x => x.SiteCode);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var subjectIds = await subjectQuery.OrderBy(dto.SortField).Select(x => x.SubjectId).Distinct().Skip((dto.PageIndex - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync();
 | 
					            var subjectIds = await subjectQuery.OrderBy(dto.SortField).Select(x => x.SubjectId).Distinct().Skip((dto.PageIndex - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue