Compare commits

..

No commits in common. "23ba634a42ba4443aaf7a895b4820f1748e225b8" and "7885cd151a84adb5c522918427a7ecd73682515e" have entirely different histories.

2 changed files with 1 additions and 24 deletions

View File

@ -1896,9 +1896,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public List<ExportResult> ExportResult { get; set; }
public Guid? GroupId { get; set; }
/// <summary>
/// 导出的CDISCName
/// </summary>

View File

@ -127,25 +127,10 @@ namespace IRaCIS.Core.Application.Service
List<string> notShowType=new List<string>() { ReadingQestionType.Group, ReadingQestionType.Screenshot, ReadingQestionType.Summary, ReadingQestionType.Upload };
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).FirstNotNullAsync();
var groupList = await _readingQuestionTrialRepository.Where(x => x.Type== ReadingQestionType.Group && x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
{
QuestionId = x.Id,
QuestionName = _userInfo.IsEn_Us ? x.GroupEnName : x.GroupName,
ExportResult = x.ExportResult,
GroupId= x.GroupId,
ShowOrder = x.ShowOrder,
IsTableQuestion = false,
CDISCCode = x.CDISCCode,
}).ToListAsync();
var questionList = await _readingQuestionTrialRepository.Where(x => !notShowType.Contains(x.Type) && x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
{
QuestionId = x.Id,
GroupId=x.GroupId,
QuestionName = _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName,
ExportResult = x.ExportResult,
ShowOrder = x.ShowOrder,
@ -173,11 +158,6 @@ namespace IRaCIS.Core.Application.Service
x.Children = tableQuestionList.Where(y => y.QuestionId == x.QuestionId).OrderBy(y => y.ShowOrder).ToList();
});
groupList.ForEach(x =>
{
x.Children = questionList.Where(y => y.GroupId == x.QuestionId).OrderBy(y => y.ShowOrder).ToList();
});
List<string> dicCode = new List<string>() { "1","2","8" };
var dicList = await _dictionaryRepository.Where(x => x.Parent.Code == "ExportResult")
.Where(x=> dicCode.Contains(x.Code))
@ -195,7 +175,7 @@ namespace IRaCIS.Core.Application.Service
CriterionType = criterionInfo.CriterionType,
CriterionGroup = criterionInfo.CriterionGroup,
DicList = dicList,
QuestionList = groupList
QuestionList = questionList
};
}