提示语言修改

Uat_Study
he 2023-07-28 13:32:43 +08:00
parent 3a649cfcfc
commit d8ea93dcd6
1 changed files with 8 additions and 4 deletions

View File

@ -1659,8 +1659,9 @@ namespace IRaCIS.Application.Services
throw new BusinessValidationFailedException(_localizer["ReadingImage_Idnotcorrespond"]);
}
}
var taskinfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Include(x => x.TrialReadingCriterion).FirstNotNullAsync();
var taskinfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Include(x => x.TrialReadingCriterion).FirstNotNullAsync();
var criterionName = taskinfo.TrialReadingCriterion.CriterionName;
switch (taskinfo.TrialReadingCriterion.CriterionType)
{
// 对于非靶病灶,如果状态选择为显著增大,请验证:
@ -1816,7 +1817,9 @@ namespace IRaCIS.Application.Services
&& x.QuestionId == inDto.QuestionId
).CountAsync()) + 1))
{
throw new BusinessValidationFailedException(_localizer["ReadingImage_MaxQuestion", questionInfo.MaxQuestionCount]);
var errormsg = _localizer["ReadingImage_MaxQuestion", questionInfo.MaxQuestionCount].Value;
errormsg = errormsg.Replace("《独立影像评估章程》", criterionName + "评估标准");
throw new BusinessValidationFailedException(errormsg);
}
}
@ -1841,8 +1844,7 @@ namespace IRaCIS.Application.Services
Dictionary<CriterionType, string> errorMsgDic = new Dictionary<CriterionType, string>()
{
{CriterionType.RECIST1Point1, _localizer["ReadingImage_Maxlesion", item.MaxRowCount.Value]},
{CriterionType.PCWG3, _localizer["ReadingImage_PCWGMaximum", item.MaxRowCount.Value]},
{CriterionType.PCWG3, _localizer["ReadingImage_PCWGMaximum", item.MaxRowCount.Value]},
};
var rowCount = 0;
if ((item.QuestionMark == QuestionMark.Part || item.QuestionMark == QuestionMark.Organ) && inDto.OrganInfoId != null)
@ -1883,6 +1885,7 @@ namespace IRaCIS.Application.Services
{
msg = _localizer["ReadingImage_Maximum", item.QuestionName.LanguageName(item.QuestionEnName, _userInfo.IsEn_Us), item.MaxRowCount.Value, item.MaxRowCount.Value];
msg = msg.Replace("《独立影像评估章程》", criterionName + "评估标准");
}
throw new BusinessValidationFailedException(msg);
@ -1907,6 +1910,7 @@ namespace IRaCIS.Application.Services
{
msg = _localizer["ReadingImage_Maximum", item.QuestionName.LanguageName(item.QuestionEnName, _userInfo.IsEn_Us), item.MaxRowCount.Value, rowCount];
msg = msg.Replace("《独立影像评估章程》", criterionName + "评估标准");
}
throw new BusinessValidationFailedException(msg);