IRC_NewDev
he 2023-09-27 09:50:56 +08:00
parent 61f95bf59b
commit 70f1faa312
1 changed files with 6 additions and 5 deletions

View File

@ -884,11 +884,12 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
}); });
List<QuestionMark?> notNeedCopyMarks = new List<QuestionMark?>() List<QuestionMark?> needCopyMarks = new List<QuestionMark?>()
{ {
QuestionMark.MajorAxis, QuestionMark.LowPPDLDi,
QuestionMark.ShortAxis, QuestionMark.LowPPDSDi,
QuestionMark.State, QuestionMark.NadirPPD,
QuestionMark.LowPPDVisit,
}; };
@ -935,7 +936,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var tableAnswers = copyTableAnswers.Select(x => new ReadingTableQuestionAnswer var tableAnswers = copyTableAnswers.Select(x => new ReadingTableQuestionAnswer
{ {
Id = NewId.NextGuid(), Id = NewId.NextGuid(),
Answer = notNeedCopyMarks.Contains(x.QuestionMark) ? string.Empty : x.Answer, Answer = needCopyMarks.Contains(x.QuestionMark) ? x.Answer : string.Empty,
QuestionId = x.QuestionId, QuestionId = x.QuestionId,
RowIndex = x.RowIndex, RowIndex = x.RowIndex,
RowId = tableRowAnswers.Where(y => y.OriginalId == x.RowId).Select(x => x.Id).FirstOrDefault(), RowId = tableRowAnswers.Where(y => y.OriginalId == x.RowId).Select(x => x.Id).FirstOrDefault(),