Compare commits
No commits in common. "23ba634a42ba4443aaf7a895b4820f1748e225b8" and "7885cd151a84adb5c522918427a7ecd73682515e" have entirely different histories.
23ba634a42
...
7885cd151a
|
@ -1896,9 +1896,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public List<ExportResult> ExportResult { get; set; }
|
public List<ExportResult> ExportResult { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public Guid? GroupId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 导出的CDISCName
|
/// 导出的CDISCName
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -127,25 +127,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
List<string> notShowType=new List<string>() { ReadingQestionType.Group, ReadingQestionType.Screenshot, ReadingQestionType.Summary, ReadingQestionType.Upload };
|
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 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)
|
var questionList = await _readingQuestionTrialRepository.Where(x => !notShowType.Contains(x.Type) && x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
|
||||||
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
.OrderBy(x => x.ShowOrder).Select(x => new TrialQuestionExport()
|
||||||
{
|
{
|
||||||
QuestionId = x.Id,
|
QuestionId = x.Id,
|
||||||
GroupId=x.GroupId,
|
|
||||||
QuestionName = _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName,
|
QuestionName = _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName,
|
||||||
ExportResult = x.ExportResult,
|
ExportResult = x.ExportResult,
|
||||||
ShowOrder = x.ShowOrder,
|
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();
|
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" };
|
List<string> dicCode = new List<string>() { "1","2","8" };
|
||||||
var dicList = await _dictionaryRepository.Where(x => x.Parent.Code == "ExportResult")
|
var dicList = await _dictionaryRepository.Where(x => x.Parent.Code == "ExportResult")
|
||||||
.Where(x=> dicCode.Contains(x.Code))
|
.Where(x=> dicCode.Contains(x.Code))
|
||||||
|
@ -195,7 +175,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
CriterionType = criterionInfo.CriterionType,
|
CriterionType = criterionInfo.CriterionType,
|
||||||
CriterionGroup = criterionInfo.CriterionGroup,
|
CriterionGroup = criterionInfo.CriterionGroup,
|
||||||
DicList = dicList,
|
DicList = dicList,
|
||||||
QuestionList = groupList
|
QuestionList = questionList
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue