diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs index 700f0b7c..df347960 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs @@ -69,7 +69,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public string BlindName { get; set; } = string.Empty; - + public Guid RowId { get; set; } public string SplitOrMergeLesionName { get; set; } diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs index df2c62e1..c07f1cdb 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs @@ -196,6 +196,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate IsCanEditPosition = x.IsCanEditPosition, RowIndex = x.RowIndex, BlindName = x.BlindName, + RowId =x.Id, ReportLayType = ReportLayType.Lesions, FristAddTaskNum= x.FristAddTaskNum, }).ToList(); @@ -218,6 +219,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate RowIndex = row.RowIndex, ShowOrder = x.ShowOrder, ValueType = x.ValueType, + RowId=row.RowId, Unit = x.Unit, ReportLayType = ReportLayType.TableQuestion, FristAddTaskNum= row.FristAddTaskNum, @@ -231,7 +233,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate tableQuestion.Answer.Add(new TaskQuestionAnswer() { - Answer = tableAnswers.Where(x => x.VisitTaskId == task.VisitTaskId && x.QuestionId == tableQuestion.QuestionId && x.RowIndex == tableQuestion.RowIndex && x.TableQuestionId == tableQuestion.TableQuestionId).Select(x => x.Answer).FirstIsNullReturnEmpty(), + Answer = tableAnswers.Where(x => x.VisitTaskId == task.VisitTaskId && x.QuestionId == tableQuestion.QuestionId && x.RowId == tableQuestion.RowId && x.TableQuestionId == tableQuestion.TableQuestionId).Select(x => x.Answer).FirstIsNullReturnEmpty(), TaskName = task.TaskName, VisitTaskId = task.VisitTaskId, });