Uat_Study
parent
2e9a252910
commit
0adf7a5c84
|
@ -1131,7 +1131,7 @@ namespace IRaCIS.Application.Services
|
|||
});
|
||||
|
||||
var thisAnswer = tableAnswers.Where(x => x.QuestionId == item.Id).ToList();
|
||||
var orders = thisAnswer.Select(x => x.RowIndex).Distinct().OrderBy(x => x).ToList();
|
||||
var orders = thisAnswer.OrderBy(x => x.RowIndex).Select(x=>x.RowId).ToList();
|
||||
item.TableQuestions.Answers = new List<Dictionary<string, string>>();
|
||||
|
||||
|
||||
|
@ -1144,7 +1144,7 @@ namespace IRaCIS.Application.Services
|
|||
foreach (var x in orders)
|
||||
{
|
||||
Dictionary<string, string> answers = new Dictionary<string, string>();
|
||||
var rowInfo = tableAnsweRowInfos.Where(y => y.RowIndex == x && y.QuestionId == item.Id).FirstOrDefault();
|
||||
var rowInfo = tableAnsweRowInfos.Where(y => y.Id==x).FirstOrDefault();
|
||||
if (rowInfo == null)
|
||||
{
|
||||
continue;
|
||||
|
|
|
@ -266,6 +266,14 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
{
|
||||
if (needRowIds.Contains(x.RowId))
|
||||
{
|
||||
|
||||
var row = addrowInfo.Where(y => y.Id == x.RowId).FirstOrDefault();
|
||||
if (row != null)
|
||||
{
|
||||
x.RowIndex = row.RowIndex;
|
||||
}
|
||||
|
||||
|
||||
x.QuestionId = otherLesionQuestion.Id;
|
||||
|
||||
var newLesionTableQuestion = newLesionTableQuestionList.Where(y => y.Id == x.TableQuestionId).FirstOrDefault();
|
||||
|
|
Loading…
Reference in New Issue