Uat_Study
parent
c161afcb29
commit
2f7ba345d9
|
@ -129,6 +129,7 @@ namespace IRaCIS.Application.Services
|
|||
rowAnswer.Id = NewId.NextGuid();
|
||||
rowAnswer.InstanceId = null;
|
||||
rowAnswer.SeriesId = null;
|
||||
rowAnswer.IsCurrentTaskAdd = true;
|
||||
rowAnswer.MeasureData = string.Empty;
|
||||
|
||||
List<QuestionMark?> needRemoveMark = new List<QuestionMark?>()
|
||||
|
@ -2197,24 +2198,22 @@ namespace IRaCIS.Application.Services
|
|||
}
|
||||
|
||||
|
||||
ReadingTableAnswerRowInfo rowInfo = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.TrialId == inDto.TrialId && x.RowIndex == inDto.RowIndex).AsNoTracking().FirstOrDefaultAsync();
|
||||
|
||||
rowInfo = rowInfo == null ? new ReadingTableAnswerRowInfo() : rowInfo;
|
||||
|
||||
await _readingTableQuestionAnswerRepository.BatchDeleteNoTrackingAsync(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.TrialId == inDto.TrialId && x.RowIndex == inDto.RowIndex);
|
||||
await _readingTableAnswerRowInfoRepository.BatchDeleteNoTrackingAsync(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.TrialId == inDto.TrialId && x.RowIndex == inDto.RowIndex);
|
||||
|
||||
ReadingTableAnswerRowInfo rowInfo = new ReadingTableAnswerRowInfo()
|
||||
{
|
||||
Id = NewId.NextGuid(),
|
||||
TrialId = inDto.TrialId,
|
||||
QuestionId = inDto.QuestionId,
|
||||
MeasureData = inDto.MeasureData,
|
||||
IsCurrentTaskAdd = isCurrentTaskAdd,
|
||||
RowIndex = inDto.RowIndex,
|
||||
InstanceId = inDto.InstanceId,
|
||||
SeriesId = inDto.SeriesId,
|
||||
VisitTaskId = inDto.VisitTaskId,
|
||||
|
||||
|
||||
};
|
||||
|
||||
rowInfo.Id = NewId.NextGuid();
|
||||
rowInfo.TrialId = inDto.TrialId;
|
||||
rowInfo.QuestionId = inDto.QuestionId;
|
||||
rowInfo.MeasureData = inDto.MeasureData;
|
||||
rowInfo.IsCurrentTaskAdd = isCurrentTaskAdd;
|
||||
rowInfo.RowIndex = inDto.RowIndex;
|
||||
rowInfo.InstanceId = inDto.InstanceId;
|
||||
rowInfo.SeriesId = inDto.SeriesId;
|
||||
rowInfo.VisitTaskId = inDto.VisitTaskId;
|
||||
|
||||
List<ReadingTableQuestionAnswer> answerList = inDto.AnswerList.Select(x => new ReadingTableQuestionAnswer()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue