国际化修改
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||
// 生成时间 2022-03-28 16:46:23
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
@@ -1287,12 +1287,14 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
if (await _frontAuditConfigRepository.AnyAsync(x => x.Identification != string.Empty && x.Identification == addOrEditFrontAuditConfig.Identification && x.Id != addOrEditFrontAuditConfig.Id && x.ConfigType == "M" && addOrEditFrontAuditConfig.ConfigType == "M"))
|
||||
{
|
||||
return ResponseOutput.NotOk("标识重复");
|
||||
//---标识重复
|
||||
return ResponseOutput.NotOk(_localizer["FrontAudit_IdDup"]);
|
||||
}
|
||||
|
||||
if (await _frontAuditConfigRepository.AnyAsync(x => x.Description == addOrEditFrontAuditConfig.Description && x.Id != addOrEditFrontAuditConfig.Id && x.ConfigType == "M" && addOrEditFrontAuditConfig.ConfigType == "M"))
|
||||
{
|
||||
return ResponseOutput.NotOk("名称重复");
|
||||
//---名称重复
|
||||
return ResponseOutput.NotOk(_localizer["FrontAudit_NameDup"]);
|
||||
}
|
||||
|
||||
if (addOrEditFrontAuditConfig.ConfigType == "C")
|
||||
@@ -1319,7 +1321,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
if (await _frontAuditConfigRepository.AnyAsync(x => x.ParentId == frontAuditConfigId))
|
||||
{
|
||||
return ResponseOutput.NotOk("存在子类 不能删除");
|
||||
//---存在子类 不能删除
|
||||
return ResponseOutput.NotOk(_localizer["FrontAudit_CannotDelSub"]);
|
||||
}
|
||||
var success = await _repository.BatchDeleteAsync<FrontAuditConfig>(t => t.Id == frontAuditConfigId);
|
||||
return ResponseOutput.Result(success);
|
||||
|
||||
@@ -252,7 +252,8 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||
}
|
||||
else if (user.Status == UserStateEnum.Disable)
|
||||
{
|
||||
throw new BusinessValidationFailedException("当前用户已被禁用。");
|
||||
//---当前用户已被禁用。
|
||||
throw new BusinessValidationFailedException(_localizer["Inspection_UserDisabled"]);
|
||||
}
|
||||
return ResponseOutput.Ok();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user