国际化修改
This commit is contained in:
@@ -272,7 +272,8 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
if (await _readModuleRepository.AnyAsync(x => x.SubjectVisitId == visit.Id&&x.ModuleType== moduleType && x.TrialReadingCriterionId == dto.TrialReadingCriterionId))
|
||||
{
|
||||
throw new BusinessValidationFailedException($"当前访视已经添加过阅片期");
|
||||
//---当前访视已经添加过阅片期
|
||||
throw new BusinessValidationFailedException(_localizer["ReadModule_AlreadyAdded"]);
|
||||
}
|
||||
var readModuleData = new ReadModule()
|
||||
{
|
||||
@@ -383,7 +384,8 @@ namespace IRaCIS.Application.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
return ResponseOutput.NotOk("请先添加全局阅片");
|
||||
//---请先添加全局阅片
|
||||
return ResponseOutput.NotOk(_localizer["ReadModule_AddGlobalFirst"]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -392,7 +394,8 @@ namespace IRaCIS.Application.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
return ResponseOutput.NotOk("未找到符合要求的访视");
|
||||
//---未找到符合要求的访视
|
||||
return ResponseOutput.NotOk(_localizer["ReadModule_VisitNotFound"]);
|
||||
}
|
||||
|
||||
|
||||
@@ -416,18 +419,21 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
if(await _repository.Where<ReadingClinicalData>(t => t.ReadingId == readModuleId).AnyAsync(t => t.ReadingClinicalDataState == ReadingClinicalDataStatus.HaveSigned))
|
||||
{
|
||||
return ResponseOutput.NotOk("临床资料已签名,不允许删除");
|
||||
//---临床资料已签名,不允许删除
|
||||
return ResponseOutput.NotOk(_localizer["ReadModule_SignedDataCannotDelete"]);
|
||||
}
|
||||
|
||||
//增加标准
|
||||
if (readModule.ModuleType==ModuleTypeEnum.Global&&(await _readModuleRepository.AnyAsync(x=>x.ModuleType==ModuleTypeEnum.Oncology&&x.SubjectVisitId== readModule.SubjectVisitId && x.TrialReadingCriterionId==readModule.TrialReadingCriterionId)))
|
||||
{
|
||||
throw new BusinessValidationFailedException("当前访视存在肿瘤学阅片,请先删除肿瘤学阅片");
|
||||
//---当前访视存在肿瘤学阅片,请先删除肿瘤学阅片
|
||||
throw new BusinessValidationFailedException(_localizer["ReadModule_TumorExists"]);
|
||||
}
|
||||
|
||||
if (await _visitTaskRepository.AnyAsync(x => readModuleId==x.SouceReadModuleId))
|
||||
{
|
||||
throw new BusinessValidationFailedException("当前阅片已生成任务,操作失败。");
|
||||
//---当前阅片已生成任务,操作失败。
|
||||
throw new BusinessValidationFailedException(_localizer["ReadModule_TaskGenerated"]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace IRaCIS.Application.Services
|
||||
var repeatVisitNames = _readModuleRepository.Where(x => x.TrialReadingCriterionId == readingPeriodSet.TrialReadingCriterionId && x.ReadingSetType == readingPeriodSet.ReadingSetType && needAddVisitIds.Contains(x.SubjectVisitId)).Select(x => x.Subject.Code + "的" + x.SubjectVisit.VisitName).ToList();
|
||||
if (repeatVisitNames.Count != 0)
|
||||
{
|
||||
return ResponseOutput.NotOk($"{string.Join(",", repeatVisitNames)}已经添加过阅片期,无法设置生效");
|
||||
return ResponseOutput.NotOk(_localizer["ReadingPeriodSet_AlreadyAdded", string.Join(",", repeatVisitNames)]);
|
||||
}
|
||||
List<ReadModule> readModules = new List<ReadModule>();
|
||||
foreach (var item in plans)
|
||||
@@ -307,7 +307,8 @@ namespace IRaCIS.Application.Services
|
||||
&& x.TrialReadingCriterionId == readingPeriodSet.TrialReadingCriterionId
|
||||
&& x.ReadingTaskState == ReadingTaskState.HaveSigned && x.TaskState == TaskState.Effect))
|
||||
{
|
||||
throw new BusinessValidationFailedException("当前标准阅片已生成任务并且阅片完成,撤销失败。");
|
||||
//---当前标准阅片已生成任务并且阅片完成,撤销失败。
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingPeriodSet_TaskCompletedCannotRevoke"]);
|
||||
}
|
||||
|
||||
|
||||
@@ -422,7 +423,8 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
pageList.CurrentPageData.ForEach(x =>
|
||||
{
|
||||
x.SubjectVisitName = x.IsGlobal ? "末次访视" : x.SubjectVisitName;
|
||||
//---末次访视
|
||||
x.SubjectVisitName = x.IsGlobal ? _localizer["ReadingPeriodSet_LastVisit"] : x.SubjectVisitName;
|
||||
});
|
||||
return pageList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user