修改提示语言

Uat_Study
helongjun 2022-05-23 15:27:01 +08:00
parent a9dbf4a33d
commit d98675a45e
2 changed files with 6 additions and 6 deletions

View File

@ -114,7 +114,7 @@ namespace IRaCIS.Core.Application.Services
if (await _repository.Where<SystemDocument>(t => t.Id == systemDocumentId).AnyAsync(u => u.SystemDocConfirmedUserList.Any()))
{
return ResponseOutput.NotOk("已有用户阅读该文档,并签名。");
return ResponseOutput.NotOk("已有用户阅读该文档,并签名,不允许删除。");
}
var success = await _systemDocumentRepository.DeleteFromQueryAsync(t => t.Id == systemDocumentId,true,true);

View File

@ -406,7 +406,7 @@ namespace IRaCIS.Core.Application.Services
if (await _trialDocumentRepository.AnyAsync(t => t.FileTypeId == addOrEditTrialDocument.FileTypeId && t.Name == addOrEditTrialDocument.Name && t.TrialId == addOrEditTrialDocument.TrialId, true))
{
return ResponseOutput.NotOk("同类型已存在该文件名");
return ResponseOutput.NotOk("该项目中已经存在同类型的同名文件。");
}
//entity.Id = NewId.NextGuid();
@ -417,7 +417,7 @@ namespace IRaCIS.Core.Application.Services
{
if (await _trialDocumentRepository.AnyAsync(t => t.FileTypeId == addOrEditTrialDocument.FileTypeId && t.Name == addOrEditTrialDocument.Name && t.Id != addOrEditTrialDocument.Id && t.TrialId == addOrEditTrialDocument.TrialId, true))
{
return ResponseOutput.NotOk("同类型已存在该文件名");
return ResponseOutput.NotOk("该项目中已经存在同类型的同名文件。");
}
var document = (await _trialDocumentRepository.Where(t => t.Id == addOrEditTrialDocument.Id, true).Include(t => t.NeedConfirmedUserTypeList).FirstOrDefaultAsync()).IfNullThrowException();
@ -468,7 +468,7 @@ namespace IRaCIS.Core.Application.Services
{
if (await _trialDocumentRepository.AsQueryable(true).Where(t => t.Id == trialDocumentId).AnyAsync(t => t.TrialDocConfirmedUserList.Any()))
{
return ResponseOutput.NotOk("该文档,已有用户签名 不允许删除");
return ResponseOutput.NotOk("已有用户阅读该文档,并签名,不允许删除。");
}
var success = await _trialDocumentRepository.BatchDeleteNoTrackingAsync(t => t.Id == trialDocumentId);
@ -534,7 +534,7 @@ namespace IRaCIS.Core.Application.Services
{
if (await _repository.AnyAsync<SystemDocConfirmedUser>(t => t.SystemDocumentId == userConfirmCommand.DocumentId && t.ConfirmUserId == _userInfo.Id))
{
return ResponseOutput.NotOk("该文已经签名");
return ResponseOutput.NotOk("该文已经签名");
}
if (!await _systemDocumentRepository.AnyAsync(t => t.Id == userConfirmCommand.DocumentId) || await _trialDocumentRepository.AnyAsync(t => t.Id == userConfirmCommand.DocumentId && t.IsDeleted, true))
{
@ -547,7 +547,7 @@ namespace IRaCIS.Core.Application.Services
{
if (await _repository.AnyAsync<TrialDocUserTypeConfirmedUser>(t => t.TrialDocumentId == userConfirmCommand.DocumentId && t.ConfirmUserId == _userInfo.Id))
{
return ResponseOutput.NotOk("该文已经签名");
return ResponseOutput.NotOk("该文已经签名");
}
if (!await _trialDocumentRepository.AnyAsync(t => t.Id == userConfirmCommand.DocumentId) || await _repository.AnyAsync<TrialDocument>(t => t.Id == userConfirmCommand.DocumentId && t.IsDeleted, true))