Compare commits
No commits in common. "2654f85c324f2b0ec608507b423a20af02ab4573" and "98ea3d1a92c706f5d1489f375017efc7dbcf5d72" have entirely different histories.
2654f85c32
...
98ea3d1a92
|
@ -121,23 +121,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
var questions = await _systemClinicalQuestionRepository.Where(x => x.SystemClinicalId == inDto.SystemClinicalId)
|
||||
.ProjectTo<ClinicalQuestionPreviewDto>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
if (_userInfo.IsEn_Us)
|
||||
{
|
||||
questions.ForEach(x => {
|
||||
x.GroupName = x.GroupEnName;
|
||||
x.QuestionName = x.QuestionEnName;
|
||||
});
|
||||
}
|
||||
var tableQuestions= await _systemClinicalTableQuestionRepository.Where(x => x.SystemClinicalId == inDto.SystemClinicalId)
|
||||
.ProjectTo<ClinicalTablePreviewDto>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
|
||||
if (_userInfo.IsEn_Us)
|
||||
{
|
||||
tableQuestions.ForEach(x => {
|
||||
x.QuestionName = x.QuestionEnName;
|
||||
});
|
||||
}
|
||||
questions.ForEach(x => x.CreateTime = null);
|
||||
var result = questions.Where(x => x.ClinicalQuestionType == ReadingQestionType.Group).ToList();
|
||||
|
||||
|
@ -160,26 +146,10 @@ namespace IRaCIS.Core.Application.Service
|
|||
{
|
||||
var questions = await _trialClinicalQuestionRepository.Where(x => x.TrialClinicalId == inDto.TrialClinicalId)
|
||||
.ProjectTo<ClinicalQuestionPreviewDto>(_mapper.ConfigurationProvider).OrderBy(x=>x.ShowOrder).ToListAsync();
|
||||
|
||||
if (_userInfo.IsEn_Us)
|
||||
{
|
||||
questions.ForEach(x => {
|
||||
x.GroupName = x.GroupEnName;
|
||||
x.QuestionName = x.QuestionEnName;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
var tableQuestions = await _trialClinicalTableQuestionRepository.Where(x => x.TrialClinicalId == inDto.TrialClinicalId)
|
||||
.ProjectTo<ClinicalTablePreviewDto>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
if (_userInfo.IsEn_Us)
|
||||
{
|
||||
tableQuestions.ForEach(x => {
|
||||
x.QuestionName = x.QuestionEnName;
|
||||
});
|
||||
}
|
||||
|
||||
questions.ForEach(x => x.CreateTime = null);
|
||||
var result = questions.Where(x => x.ClinicalQuestionType == ReadingQestionType.Group).OrderBy(x => x.ShowOrder).ToList();
|
||||
|
||||
|
|
|
@ -50,9 +50,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
// 预览
|
||||
CreateMap<TrialClinicalQuestion, ClinicalQuestionPreviewDto>();
|
||||
|
||||
CreateMap<SystemClinicalQuestion, ClinicalQuestionPreviewDto>();
|
||||
|
||||
CreateMap<SystemClinicalTableQuestion, ClinicalTablePreviewDto>();
|
||||
CreateMap<TrialClinicalTableQuestion, ClinicalTablePreviewDto>();
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue