Test_IRC_Net8
he 2025-12-03 10:19:33 +08:00
parent ecfadcb5a3
commit 137ed07b2b
2 changed files with 35 additions and 0 deletions

View File

@ -170,6 +170,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public string Answer { get; set; }
public bool IsHighlight { get; set; } = false;
public bool IsGlobalChange { get; set; } = false;
/// <summary>

View File

@ -435,6 +435,39 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
SetCrterionDictionaryGroup(y, dictionaryGroup);
});
// 处理标红 高亮
#region 当第N个 存在被评估为NE的单个靶病灶 评估为 为是 之后 N+1 之后的最低点访视 都标红
var index = result.TaskQuestions.SelectMany(x => x.Childrens).Where(x => x.QuestionType == QuestionType.NETarget).SelectMany(x => x.Answer).ToList().FindIndex(x => x.Answer == ExistOrNA.Exist.GetEnumInt());
if (index >= 0)
{
result.TaskQuestions.ForEach(x =>
{
x.Childrens.ForEach(y =>
{
if (y.QuestionType == QuestionType.LowVisit)
{
int idx = 0;
y.Answer.ForEach(z =>
{
if (idx > index)
{
z.IsHighlight = true;
}
idx++;
});
}
});
});
}
#endregion
return result;
}