处理字典
This commit is contained in:
+22
-1
@@ -228,7 +228,7 @@ namespace IRaCIS.Application.Services
|
||||
VisitNum = x.SourceSubjectVisit.VisitNum,
|
||||
IsBaseLine=x.SourceSubjectVisit.IsBaseLine,
|
||||
VisitId = x.SourceSubjectVisitId.Value,
|
||||
|
||||
CrterionDictionaryGroup= x.CrterionDictionaryGroup,
|
||||
BeforeQuestionList = x.ReadingTaskQuestionAnswerList.Where(y => y.ReadingQuestionTrial.GlobalReadingShowType!=GlobalReadingShowType.NotShow).OrderBy(y => y.ReadingQuestionTrial.ShowOrder)
|
||||
.Select(y => new GlobalQuestionInfo()
|
||||
{
|
||||
@@ -449,6 +449,27 @@ namespace IRaCIS.Application.Services
|
||||
ValueCN = x.Dictionary.ValueCN
|
||||
}).OrderBy(x => x.ParentCode).ThenBy(x => x.ShowOrder).ToListAsync();
|
||||
result.AssessTypeList = assessTypeList;
|
||||
|
||||
|
||||
// 返回之前处理字典
|
||||
result.TaskList.ForEach(x =>
|
||||
{
|
||||
x.AfterQuestionList.ForEach(y =>
|
||||
{
|
||||
y.CrterionDictionaryGroup = x.CrterionDictionaryGroup;
|
||||
});
|
||||
|
||||
x.BeforeQuestionList.ForEach(y =>
|
||||
{
|
||||
y.CrterionDictionaryGroup = x.CrterionDictionaryGroup;
|
||||
});
|
||||
|
||||
x.AgreeOrNot.ForEach(y =>
|
||||
{
|
||||
y.CrterionDictionaryGroup = x.CrterionDictionaryGroup;
|
||||
});
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user