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