代码修改 国际化

This commit is contained in:
he
2023-03-28 15:40:12 +08:00
parent c8ee8a6081
commit e8f2dfc5d6
6 changed files with 23 additions and 12 deletions
@@ -72,7 +72,8 @@ namespace IRaCIS.Core.Application.Service
if (enrollId == Guid.Empty)
{
return ResponseOutput.NotOk("错误,未在入组表中找到该医生得账号Id");
//"错误,未在入组表中找到该医生得账号Id"
return ResponseOutput.NotOk(_localizer["TaskAllocation_DoctorIdNotFound"]);
}
addOrEditTaskAllocationRule.EnrollId = enrollId;
@@ -80,7 +81,8 @@ namespace IRaCIS.Core.Application.Service
var verifyExp1 = new EntityVerifyExp<TaskAllocationRule>()
{
VerifyExp = t => t.DoctorUserId == addOrEditTaskAllocationRule.DoctorUserId && t.TrialId == addOrEditTaskAllocationRule.TrialId,
VerifyMsg = "已有该医生配置,不允许继续增加"
// "已有该医生配置,不允许继续增加"
VerifyMsg = _localizer["TaskAllocation_DoctorConfigExists"]
};
var entity = await _taskAllocationRuleRepository.InsertOrUpdateAsync(addOrEditTaskAllocationRule, true, verifyExp1);
@@ -96,7 +98,8 @@ namespace IRaCIS.Core.Application.Service
{
if (await _taskAllocationRuleRepository.Where(t => t.Id == taskAllocationRuleId).AnyAsync(t => t.DoctorUser.VisitTaskList.Where(u => u.TrialId == t.TrialId).Any()))
{
return ResponseOutput.NotOk("已分配任务给该医生,不允许删除");
//"已分配任务给该医生,不允许删除"
return ResponseOutput.NotOk(_localizer["TaskAllocation_TaskAssigned"]);
}
var success = await _taskAllocationRuleRepository.DeleteFromQueryAsync(t => t.Id == taskAllocationRuleId, true);