标记的排序修改
parent
b143ffbcfc
commit
04422cd795
|
@ -68,6 +68,10 @@ namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
|
||||||
public int? NumberOfFrames { get; set; }
|
public int? NumberOfFrames { get; set; }
|
||||||
|
|
||||||
public DateTime CreateTime { get; set; }
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
|
public int? QuestionSort { get; set; }
|
||||||
|
|
||||||
|
public int? RowSort { get; set; }
|
||||||
}
|
}
|
||||||
public class InstanceBasicInfo
|
public class InstanceBasicInfo
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
IRepository<VisitTask> _visitTaskRepository,
|
IRepository<VisitTask> _visitTaskRepository,
|
||||||
IRepository<ReadingTableAnswerRowInfo> _readingTableAnswerRowInfoRepository,
|
IRepository<ReadingTableAnswerRowInfo> _readingTableAnswerRowInfoRepository,
|
||||||
IRepository<ReadingCustomTag> _readingCustomTagRepository,
|
IRepository<ReadingCustomTag> _readingCustomTagRepository,
|
||||||
|
IRepository<ReadingTaskQuestionMark> _readingTaskQuestionMark,
|
||||||
IRepository<NoneDicomStudyFile> _noneDicomStudyFileRepository,
|
IRepository<NoneDicomStudyFile> _noneDicomStudyFileRepository,
|
||||||
IRepository<Subject> _subjectRepository,
|
IRepository<Subject> _subjectRepository,
|
||||||
IRepository<DicomInstance> _dicomInstanceRepository,
|
IRepository<DicomInstance> _dicomInstanceRepository,
|
||||||
|
@ -570,6 +571,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
InstanceId = x.InstanceId,
|
InstanceId = x.InstanceId,
|
||||||
NumberOfFrames = x.NumberOfFrames,
|
NumberOfFrames = x.NumberOfFrames,
|
||||||
CreateTime=x.CreateTime,
|
CreateTime=x.CreateTime,
|
||||||
|
|
||||||
}).ToListAsync();
|
}).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
@ -584,9 +586,20 @@ namespace IRaCIS.Core.Application.Services
|
||||||
NumberOfFrames = x.NumberOfFrames,
|
NumberOfFrames = x.NumberOfFrames,
|
||||||
CreateTime = x.CreateTime,
|
CreateTime = x.CreateTime,
|
||||||
}).ToListAsync();
|
}).ToListAsync();
|
||||||
|
|
||||||
rowInfoList.AddRange(customoList);
|
rowInfoList.AddRange(customoList);
|
||||||
|
|
||||||
|
var questionMarkList = await _readingTaskQuestionMark.Where(x => x.VisitTaskId == indto.VisitTaskId && x.StudyId != null).Select(x => new StudyInstanceInfo()
|
||||||
|
{
|
||||||
|
ShowOrder = x.ReadingQuestionTrial==null?0: x.ReadingQuestionTrial.ShowOrder,
|
||||||
|
RowIndex = 0m,
|
||||||
|
SeriesId = x.SeriesId,
|
||||||
|
StudyId = x.StudyId,
|
||||||
|
InstanceId = x.InstanceId,
|
||||||
|
NumberOfFrames = x.NumberOfFrames,
|
||||||
|
CreateTime = x.CreateTime,
|
||||||
|
}).ToListAsync();
|
||||||
|
rowInfoList.AddRange(questionMarkList);
|
||||||
|
|
||||||
var thisStudyIds = rowInfoList.OrderBy(x => x.ShowOrder).ThenBy(x => x.RowIndex).Select(x => x.StudyId).Distinct().ToList();
|
var thisStudyIds = rowInfoList.OrderBy(x => x.ShowOrder).ThenBy(x => x.RowIndex).Select(x => x.StudyId).Distinct().ToList();
|
||||||
var thisSeriesIdIds = rowInfoList.Where(x => x.SeriesId != null).OrderBy(x => x.ShowOrder).ThenBy(x => x.RowIndex).Select(x => x.SeriesId).Distinct().ToList();
|
var thisSeriesIdIds = rowInfoList.Where(x => x.SeriesId != null).OrderBy(x => x.ShowOrder).ThenBy(x => x.RowIndex).Select(x => x.SeriesId).Distinct().ToList();
|
||||||
if (rowInfoList.Count > 0)
|
if (rowInfoList.Count > 0)
|
||||||
|
@ -646,7 +659,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
item.InstanceInfoList = item.InstanceInfoList.OrderBy(x => x.RowDate).ToList();
|
item.InstanceInfoList = item.InstanceInfoList.OrderBy(x => x.ShowOrder).ThenBy(x=>x.RowIndex).ThenBy(x=>x.RowDate).ToList();
|
||||||
|
|
||||||
|
|
||||||
item.InstanceCount = item.InstanceInfoList.Count;
|
item.InstanceCount = item.InstanceInfoList.Count;
|
||||||
|
|
|
@ -8,7 +8,7 @@ public class ReadingTaskQuestionMark : BaseAddAuditEntity
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("QuestionId")]
|
[ForeignKey("QuestionId")]
|
||||||
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
|
public ReadingQuestionTrial? ReadingQuestionTrial { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("VisitTaskId")]
|
[ForeignKey("VisitTaskId")]
|
||||||
|
@ -16,7 +16,7 @@ public class ReadingTaskQuestionMark : BaseAddAuditEntity
|
||||||
#endregion
|
#endregion
|
||||||
public Guid VisitTaskId { get; set; }
|
public Guid VisitTaskId { get; set; }
|
||||||
|
|
||||||
public Guid QuestionId { get; set; }
|
public Guid? QuestionId { get; set; }
|
||||||
|
|
||||||
public Guid? InstanceId { get; set; }
|
public Guid? InstanceId { get; set; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue