修改一版

Uat_Study
he 2022-07-15 10:01:08 +08:00
parent f5cef1fa7a
commit 7ca2c70108
2 changed files with 8 additions and 0 deletions

View File

@ -217,6 +217,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public Guid ReadingQuestionCriterionTrialId { get; set; } public Guid ReadingQuestionCriterionTrialId { get; set; }
public Guid? VisitTaskId { get; set; } public Guid? VisitTaskId { get; set; }
public FormType? FormType { get; set; }
} }
/// <summary> /// <summary>

View File

@ -351,6 +351,11 @@ namespace IRaCIS.Application.Services
var formType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.ReadingQuestionCriterionTrialId).Select(x => x.FormType).FirstOrDefaultAsync(); var formType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.ReadingQuestionCriterionTrialId).Select(x => x.FormType).FirstOrDefaultAsync();
var groupList = new List<GetTrialReadingQuestionOutDto>(); var groupList = new List<GetTrialReadingQuestionOutDto>();
if (inDto.FormType != null)
{
formType = inDto.FormType.Value;
}
if (formType == FormType.MultiplePage) if (formType == FormType.MultiplePage)
{ {
qusetionList = qusetionList.Where(x => x.ReadingCriterionPageId != null).ToList(); qusetionList = qusetionList.Where(x => x.ReadingCriterionPageId != null).ToList();