This commit is contained in:
@@ -377,7 +377,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
public string SubjectCode { get; set; }
|
||||
}
|
||||
|
||||
public class CRCUploadTaskStudyQuery: SortInput
|
||||
public class CRCUploadTaskStudyQuery : SortInput
|
||||
{
|
||||
|
||||
[NotDefault]
|
||||
@@ -415,7 +415,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
public int UploadedFileCount { get; set; }
|
||||
}
|
||||
|
||||
public class TaskDicomStudyDTO: DicomStudyBasicInfo
|
||||
public class TaskDicomStudyDTO : DicomStudyBasicInfo
|
||||
{
|
||||
public Guid SubjectId { get; set; }
|
||||
|
||||
@@ -438,12 +438,28 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
}
|
||||
|
||||
public class NoneDicomFileInfo
|
||||
{
|
||||
[JsonIgnore]
|
||||
public Guid? OriginNoneDicomStudyId { get; set; }
|
||||
|
||||
public string FileType { get; set; }
|
||||
|
||||
public long? FileSize { get; set; }
|
||||
public string FileName { get; set; }
|
||||
|
||||
public string Path { get; set; }
|
||||
}
|
||||
|
||||
public class TaskNoneDicomStudyDTO : NoneDicomStudyBasicInfo
|
||||
{
|
||||
|
||||
|
||||
public int UploadedFileCount { get; set; }
|
||||
|
||||
public List<NoneDicomFileInfo> UploadedFileList { get; set; }
|
||||
|
||||
public List<NoneDicomFileInfo> FileList { get; set; }
|
||||
|
||||
public Guid SubjectId { get; set; }
|
||||
|
||||
@@ -468,7 +484,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
public List<Guid> NoneDicomStudyIdList { get; set; }
|
||||
}
|
||||
|
||||
public class IRReadingDownloadQuery:SortInput
|
||||
public class IRReadingDownloadQuery : SortInput
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid SubjectId { get; set; }
|
||||
|
||||
@@ -1025,6 +1025,14 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
||||
Modality = ns.Modality,
|
||||
StudyCode = ns.StudyCode,
|
||||
|
||||
FileList = ns.NoneDicomFileList.Select(t => new NoneDicomFileInfo()
|
||||
{
|
||||
FileType=t.FileType,
|
||||
FileName = t.FileName,
|
||||
FileSize = t.FileSize,
|
||||
Path = t.Path
|
||||
}).ToList()
|
||||
|
||||
};
|
||||
|
||||
var list = await query.Where(t => t.SubjectCode == inQuery.SubjectCode).SortToListAsync(inQuery);
|
||||
@@ -1034,15 +1042,21 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
||||
|
||||
var taskNoneDicomStudyList = _visitTaskRepository.Where(t => noneDicomStudyIdList.Contains(t.Id))
|
||||
.SelectMany(t => t.TaskNoneDicomStudyFileList).Where(t => noneDicomStudyIdList.Contains((Guid)t.VisitTaskId))
|
||||
.Select(u => new
|
||||
.Select(u => new NoneDicomFileInfo
|
||||
{
|
||||
u.OriginNoneDicomStudyId,
|
||||
OriginNoneDicomStudyId = u.OriginNoneDicomStudyId,
|
||||
|
||||
FileType=u.FileType
|
||||
FileName = u.FileName,
|
||||
FileSize = u.FileSize,
|
||||
Path = u.Path
|
||||
})
|
||||
.ToList();
|
||||
|
||||
foreach (var item in list)
|
||||
{
|
||||
item.UploadedFileCount = taskNoneDicomStudyList.Where(t => t.OriginNoneDicomStudyId == item.Id).Count();
|
||||
item.UploadedFileList = taskNoneDicomStudyList.Where(t => t.OriginNoneDicomStudyId == item.Id).ToList();
|
||||
}
|
||||
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user