修改一版
parent
f5cef1fa7a
commit
7ca2c70108
|
@ -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>
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue