修改
This commit is contained in:
@@ -125,7 +125,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
TableQuestionId = x.TableQuestionId,
|
||||
TrialId = x.TrialId,
|
||||
VisitTaskId = visitTaskId,
|
||||
});
|
||||
}).ToList();
|
||||
|
||||
|
||||
try
|
||||
@@ -148,18 +148,20 @@ 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++;
|
||||
item.QuestionId = alwaysNewLesionsQuestion.Id;
|
||||
item.RowIndex = maxNewLesionsRowIndex;
|
||||
|
||||
foreach (var tableAnswer in tableAnswers.Where(y=>y.RowId== item.Id))
|
||||
foreach (var tableAnswer in tableAnswers.Where(y => y.RowId == item.Id))
|
||||
{
|
||||
tableAnswer.QuestionId= alwaysNewLesionsQuestion.Id;
|
||||
tableAnswer.QuestionId = alwaysNewLesionsQuestion.Id;
|
||||
tableAnswer.TableQuestionId = alwaysTableQuestionIdDic[tableAnswer.TableQuestionId];
|
||||
tableAnswer.RowIndex = maxNewLesionsRowIndex;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user