国际化问题名称
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ namespace IRaCIS.Application.Services
|
||||
.Select(y => new GlobalQuestionInfo()
|
||||
{
|
||||
QuestionId = y.ReadingQuestionTrialId,
|
||||
QuestionName = y.ReadingQuestionTrial.QuestionName,
|
||||
QuestionName = y.ReadingQuestionTrial.QuestionName.LanguageName(y.ReadingQuestionTrial.QuestionEnName, _userInfo.IsEn_Us),
|
||||
AnswerGroup = y.ReadingQuestionTrial.AnswerGroup,
|
||||
QuestionType = y.ReadingQuestionTrial.QuestionType,
|
||||
QuestionGenre = y.ReadingQuestionTrial.QuestionGenre,
|
||||
|
||||
+13
-6
@@ -388,7 +388,10 @@ namespace IRaCIS.Application.Services
|
||||
.WhereIf(criterionIdInfo.IseCRFShowInDicomReading, x => x.ReadingQuestionCriterionTrialId == trialReadingCriterionId && x.Type != ReadingQestionType.Table)
|
||||
.WhereIf(!criterionIdInfo.IseCRFShowInDicomReading, x => x.IsShowInDicom && x.ReadingQuestionCriterionTrialId == trialReadingCriterionId && x.Type != ReadingQestionType.Table)
|
||||
|
||||
.ProjectTo<DicomReadingQuestionAnswer>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
.ProjectTo<DicomReadingQuestionAnswer>(_mapper.ConfigurationProvider,new{
|
||||
isEn_Us=_userInfo.IsEn_Us
|
||||
|
||||
}).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
|
||||
var answers = new List<ReadingTaskQuestionAnswer>();
|
||||
@@ -569,7 +572,11 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).FirstNotNullAsync();
|
||||
|
||||
var qusetionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId).ProjectTo<TrialReadQuestionData>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
var qusetionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId).ProjectTo<TrialReadQuestionData>(_mapper.ConfigurationProvider,new {
|
||||
|
||||
isEn_Us=_userInfo.IsEn_Us
|
||||
|
||||
}).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
|
||||
//是否是预览
|
||||
@@ -697,7 +704,7 @@ namespace IRaCIS.Application.Services
|
||||
ParentId = item.Id,
|
||||
DataTableColumn = x.DataTableColumn,
|
||||
LesionType = item.LesionType,
|
||||
QuestionName = x.QuestionName,
|
||||
QuestionName = x.QuestionName.LanguageName(x.QuestionEnName, _userInfo.IsEn_Us),
|
||||
RelationQuestions = new List<GetTrialReadingQuestionOutDto>(),
|
||||
Remark = x.Remark,
|
||||
ValueType = x.ValueType,
|
||||
@@ -1133,7 +1140,7 @@ namespace IRaCIS.Application.Services
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
msg = _localizer["ReadingImage_Maximum", item.QuestionName, item.MaxRowCount.Value, rowCount] ;
|
||||
msg = _localizer["ReadingImage_Maximum", item.QuestionName.LanguageName(item.QuestionEnName, _userInfo.IsEn_Us), item.MaxRowCount.Value, rowCount] ;
|
||||
}
|
||||
|
||||
throw new BusinessValidationFailedException(msg);
|
||||
@@ -1354,7 +1361,7 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
if (readingQuestionList.Count() > 0)
|
||||
{
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_RequiredQuestion", string.Join(',', readingQuestionList.Select(x => x.QuestionName))]);
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_RequiredQuestion", string.Join(',', readingQuestionList.Select(x => x.QuestionName.LanguageName(x.QuestionEnName, _userInfo.IsEn_Us)))]);
|
||||
}
|
||||
return ResponseOutput.Ok(true);
|
||||
}
|
||||
@@ -1381,7 +1388,7 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
if (readingQuestionList.Count() > 0)
|
||||
{
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_RequiredQuestion", string.Join(',', readingQuestionList.Select(x => x.QuestionName))]);
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_RequiredQuestion", string.Join(',', readingQuestionList.Select(x => x.QuestionName.LanguageName(x.QuestionEnName, _userInfo.IsEn_Us)))]);
|
||||
}
|
||||
|
||||
await _readingCalculateService.VerifyVisitTaskQuestions(inDto);
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
AnswerGroup = JsonConvert.DeserializeObject<List<string>>(x.AnswerGroup.IsNullOrEmpty() ? "[]" : x.AnswerGroup),
|
||||
AnswerCombination = JsonConvert.DeserializeObject<List<AnswerCombinationDto>>(x.AnswerCombination.IsNullOrEmpty() ? "[]" : x.AnswerCombination),
|
||||
QuestionName = x.QuestionName,
|
||||
QuestionName = x.QuestionName.LanguageName(x.QuestionEnName, _userInfo.IsEn_Us),
|
||||
PageName = x.ReadingCriterionPage.PageName,
|
||||
TypeValue = x.TypeValue,
|
||||
QuestionGenre=x.QuestionGenre,
|
||||
@@ -147,7 +147,7 @@ namespace IRaCIS.Application.Services
|
||||
ShowOrder = x.ReadingQuestionTrial.ShowOrder,
|
||||
VisitTaskId = x.VisitTaskId,
|
||||
QuestionId = x.ReadingQuestionTrial.Id,
|
||||
QuestionName = x.ReadingQuestionTrial.QuestionName,
|
||||
QuestionName = x.ReadingQuestionTrial.QuestionName.LanguageName(x.ReadingQuestionTrial.QuestionEnName, _userInfo.IsEn_Us),
|
||||
QuestionGenre = x.ReadingQuestionTrial.QuestionGenre,
|
||||
DictionaryCode = x.ReadingQuestionTrial.DictionaryCode,
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
Answer = x.Answer,
|
||||
QuestionId = x.ReadingQuestionTrial.Id,
|
||||
QuestionName = x.ReadingQuestionTrial.QuestionName,
|
||||
QuestionName = x.ReadingQuestionTrial.QuestionName.LanguageName(x.ReadingQuestionTrial.QuestionEnName, _userInfo.IsEn_Us),
|
||||
QuestionGenre = x.ReadingQuestionTrial.QuestionGenre,
|
||||
DictionaryCode = x.ReadingQuestionTrial.DictionaryCode,
|
||||
|
||||
|
||||
+9
-3
@@ -65,7 +65,11 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
var qusetionIds = qusetionList.Select(x => x.Id).ToList();
|
||||
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => qusetionIds.Contains(x.ReadingQuestionId))
|
||||
.ProjectTo<TableQuestionDataInfo>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
.ProjectTo<TableQuestionDataInfo>(_mapper.ConfigurationProvider,x=>new {
|
||||
|
||||
isEn_Us=_userInfo.IsEn_Us
|
||||
|
||||
}).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
if (inDto.FormType != null)
|
||||
{
|
||||
formType = inDto.FormType.Value;
|
||||
@@ -149,7 +153,7 @@ namespace IRaCIS.Application.Services
|
||||
Type = data.Type,
|
||||
ParentTriggerValue = data.ParentTriggerValue,
|
||||
GroupName = data.GroupName,
|
||||
QuestionName = data.QuestionName,
|
||||
QuestionName = data.QuestionName.LanguageName(data.QuestionEnName, _userInfo.IsEn_Us),
|
||||
IsRequired = data.IsRequired,
|
||||
ShowQuestion = data.ShowQuestion,
|
||||
LesionType = data.LesionType,
|
||||
@@ -273,7 +277,9 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
var questionIds = qusetionList.Select(x => x.Id).ToList();
|
||||
var tableQuestionList = await _readingTableQuestionSystemRepository.Where(x => questionIds.Contains(x.ReadingQuestionId))
|
||||
.ProjectTo<TableQuestionDataInfo>(_mapper.ConfigurationProvider).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
.ProjectTo<TableQuestionDataInfo>(_mapper.ConfigurationProvider,new {
|
||||
isEn_Us=_userInfo.IsEn_Us,
|
||||
}).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
|
||||
var groupList = new List<GetSystemReadingQuestionOutDto>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user