减少赋值字段
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
c2350f1418
commit
f14525ea95
|
@ -46,8 +46,8 @@ namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
|
|||
|
||||
|
||||
//存放在instance 上面
|
||||
public string WindowCenter { get; set; } = string.Empty;
|
||||
public string WindowWidth { get; set; } = string.Empty;
|
||||
public string? WindowCenter => InstanceInfoList.FirstOrDefault()?.WindowCenter;
|
||||
public string? WindowWidth => InstanceInfoList.FirstOrDefault()?.WindowWidth;
|
||||
|
||||
public string ImageResizePath { get; set; }
|
||||
}
|
||||
|
|
|
@ -486,7 +486,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
|
||||
var taskInfo = await _visitTaskRepository.Where(x => x.Id == indto.VisitTaskId).Select(t => new {t.TrialReadingCriterionId,t.TrialReadingCriterion.IsImageFilter,t.TrialReadingCriterion.CriterionModalitys, t.ReadingTaskState ,TaskStudyCount=t.TaskStudyList.Count }).FirstNotNullAsync();
|
||||
|
||||
//影响后处理 上传了新的影像
|
||||
//影像后处理 上传了新的影像
|
||||
if (taskInfo.TaskStudyCount > 0)
|
||||
{
|
||||
|
||||
|
@ -496,11 +496,11 @@ namespace IRaCIS.Core.Application.Services
|
|||
{
|
||||
study.SeriesList = study.SeriesList.OrderBy(s => s.SeriesNumber).ThenBy(s => s.SeriesTime).ToList();
|
||||
|
||||
foreach (var series in study.SeriesList)
|
||||
{
|
||||
series.WindowCenter = series.InstanceInfoList.FirstOrDefault()!.WindowCenter;
|
||||
series.WindowWidth = series.InstanceInfoList.FirstOrDefault()!.WindowWidth;
|
||||
}
|
||||
//foreach (var series in study.SeriesList)
|
||||
//{
|
||||
// series.WindowCenter = series.InstanceInfoList.FirstOrDefault()!.WindowCenter;
|
||||
// series.WindowWidth = series.InstanceInfoList.FirstOrDefault()!.WindowWidth;
|
||||
//}
|
||||
//study.SeriesCount = study.SeriesList.Count;
|
||||
|
||||
study.InstanceCount = study.SeriesList.SelectMany(t => t.InstanceInfoList).Count();
|
||||
|
@ -556,8 +556,8 @@ namespace IRaCIS.Core.Application.Services
|
|||
|
||||
}).ToList();
|
||||
|
||||
series.WindowWidth = instanceList.FirstOrDefault()!.WindowWidth;
|
||||
series.WindowCenter = instanceList.FirstOrDefault()!.WindowCenter;
|
||||
//series.WindowWidth = instanceList.FirstOrDefault()!.WindowWidth;
|
||||
//series.WindowCenter = instanceList.FirstOrDefault()!.WindowCenter;
|
||||
});
|
||||
|
||||
//设置为阅片与否 不更改数据库检查 的instance数量 和 SeriesCount 所以这里要实时统计
|
||||
|
|
Loading…
Reference in New Issue