修改提示语言
							parent
							
								
									a9dbf4a33d
								
							
						
					
					
						commit
						d98675a45e
					
				| 
						 | 
					@ -114,7 +114,7 @@ namespace IRaCIS.Core.Application.Services
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (await _repository.Where<SystemDocument>(t => t.Id == systemDocumentId).AnyAsync(u => u.SystemDocConfirmedUserList.Any()))
 | 
					            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);
 | 
					            var success = await _systemDocumentRepository.DeleteFromQueryAsync(t => t.Id == systemDocumentId,true,true);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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))
 | 
					                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();
 | 
					                //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))
 | 
					                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();
 | 
					                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()))
 | 
					            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);
 | 
					            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))
 | 
					                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))
 | 
					                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))
 | 
					                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))
 | 
					                if (!await _trialDocumentRepository.AnyAsync(t => t.Id == userConfirmCommand.DocumentId) || await _repository.AnyAsync<TrialDocument>(t => t.Id == userConfirmCommand.DocumentId && t.IsDeleted, true))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue