Uat_Study
parent
265b92a689
commit
9e65c7b44d
|
@ -104,8 +104,11 @@ namespace IRaCIS.Core.Application.Triggers
|
|||
|
||||
var trial = await _repository.Where<Trial>(x => x.Id == trialId).FirstNotNullAsync();
|
||||
|
||||
var criterionList = await _repository.Where<ReadingQuestionCriterionTrial>(x => x.TrialId == trialId && x.IsConfirm && x.IsGlobalReading && x.IsReadingTaskViewInOrder).ToListAsync();
|
||||
|
||||
|
||||
if (!subjectVisit.IsBaseLine)
|
||||
{
|
||||
var criterionList = await _repository.Where<ReadingQuestionCriterionTrial>(x => x.TrialId == trialId && x.IsConfirm && x.IsGlobalReading && x.IsReadingTaskViewInOrder).ToListAsync();
|
||||
foreach (var item in criterionList)
|
||||
{
|
||||
ReadingPeriodSet? readingPeriodSet = await _readingPeriodSetRepository.FirstOrDefaultNoTrackingAsync(x => x.TrialId == trialId && x.IsGlobal && x.TrialReadingCriterionId == item.Id);
|
||||
|
@ -157,6 +160,8 @@ namespace IRaCIS.Core.Application.Triggers
|
|||
|
||||
}
|
||||
await _readModuleRepository.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue