Uat_Study
he 2023-07-18 13:46:46 +08:00
parent 11ad8f8d5f
commit bcdd8b7e2b
2 changed files with 4 additions and 2 deletions

View File

@ -256,6 +256,8 @@ namespace IRaCIS.Core.Application.Contracts
public int? UrgentCount { get; set; }
public int? ToBeDealedCount { get; set; }
public int? ReadModuleCount { get; set; }
}
public class TrialToBeDoneQuery : PageInput

View File

@ -441,8 +441,8 @@ namespace IRaCIS.Core.Application
TrialCode = t.TrialCode,
UrgentCount = t.SubjectVisitList.Where(u => u.IsBaseLine && u.SubmitState != SubmitStateEnum.Submitted && u.IsUrgent).Count(),
ToBeDealedCount = t.ReadingClinicalDataList.Where(x=>!x.IsSign&& x.ClinicalDataTrialSet.UploadRole == UploadRole.CRC && x.ClinicalDataTrialSet.ClinicalDataLevel != ClinicalLevel.SubjectVisit).Count(),
}).Where(x=>x.ToBeDealedCount>0);
ReadModuleCount=t.ReadModuleList.Count(),
}).Where(x=>x.ToBeDealedCount>0).Where(x => x.ReadModuleCount > 0);
var result = await query.ToPagedListAsync(inQuery.PageIndex, inQuery.PageSize, string.IsNullOrEmpty(inQuery.SortField) ? nameof(ImageClinicalDataToBeDoneDto.TrialId) : inQuery.SortField, inQuery.Asc);