Uat_IRC_Net8
parent
e022eb058b
commit
f8fea6561d
|
@ -1877,6 +1877,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public class GetTrialQuestionExportResultOutDto
|
||||
{
|
||||
public CriterionType CriterionType { get; set; }
|
||||
public CriterionGroup CriterionGroup { get; set; }
|
||||
|
||||
public List<TrialQuestionExport> QuestionList = new List<TrialQuestionExport>();
|
||||
|
||||
public List<TrialQuestionExportDic> DicList = new List<TrialQuestionExportDic>();
|
||||
|
@ -1900,6 +1903,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public int ShowOrder { get; set; }
|
||||
|
||||
public bool IsTableQuestion { get; set; }
|
||||
|
||||
public bool HasChildren => Children.Count() > 0;
|
||||
|
||||
public List<TrialQuestionExport> Children { get; set; } = new List<TrialQuestionExport>();
|
||||
|
|
|
@ -117,6 +117,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
[HttpPost]
|
||||
public async Task<GetTrialQuestionExportResultOutDto> GetTrialQuestionExportResult(GetTrialQuestionExportResultInDto inDto)
|
||||
{
|
||||
|
||||
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).FirstNotNullAsync();
|
||||
var questionList = await _readingQuestionTrialRepository.Where(x => x.Type != ReadingQestionType.Group && x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
|
||||
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
||||
{
|
||||
|
@ -124,6 +126,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
QuestionName = _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName,
|
||||
ExportResult = x.ExportResult,
|
||||
ShowOrder = x.ShowOrder,
|
||||
IsTableQuestion=false,
|
||||
CDISCCode = x.CDISCCode,
|
||||
}).ToListAsync();
|
||||
|
||||
|
@ -137,6 +140,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
QuestionName = _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName,
|
||||
ExportResult = x.ExportResult,
|
||||
ShowOrder = x.ShowOrder,
|
||||
IsTableQuestion=true,
|
||||
CDISCCode = x.CDISCCode,
|
||||
}).ToListAsync();
|
||||
|
||||
|
@ -159,6 +163,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
return new GetTrialQuestionExportResultOutDto()
|
||||
{
|
||||
CriterionType = criterionInfo.CriterionType,
|
||||
CriterionGroup = criterionInfo.CriterionGroup,
|
||||
DicList = dicList,
|
||||
QuestionList = questionList
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue