Uat_Study
parent
98e2bc75b1
commit
d0148a27cc
|
@ -125,7 +125,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
TableQuestionId = x.TableQuestionId,
|
||||
TrialId = x.TrialId,
|
||||
VisitTaskId = visitTaskId,
|
||||
});
|
||||
}).ToList();
|
||||
|
||||
|
||||
try
|
||||
|
@ -148,6 +148,8 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
var maxNewLesionsRowIndex = tableRowAnswers.Where(x => x.QuestionId == newLesionQuestion.Id).OrderByDescending(x => x.RowIndex).Select(x => x.RowIndex).FirstOrDefault();
|
||||
maxNewLesionsRowIndex = Math.Floor(maxNewLesionsRowIndex);
|
||||
|
||||
|
||||
foreach (var item in tableRowAnswers.Where(x => x.QuestionId == newLesionQuestion.Id).OrderBy(x=>x.RowIndex))
|
||||
{
|
||||
maxNewLesionsRowIndex++;
|
||||
|
@ -158,8 +160,8 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
{
|
||||
tableAnswer.QuestionId = alwaysNewLesionsQuestion.Id;
|
||||
tableAnswer.TableQuestionId = alwaysTableQuestionIdDic[tableAnswer.TableQuestionId];
|
||||
tableAnswer.RowIndex = maxNewLesionsRowIndex;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue