修改系统提示信息

This commit is contained in:
helongjun
2022-05-23 13:57:33 +08:00
parent 97744b76d0
commit 7b8f86d832
4 changed files with 19 additions and 19 deletions
@@ -111,7 +111,7 @@ namespace IRaCIS.Core.Application.Contracts
{
if (!await _repository.AnyAsync<Trial>(t => t.Id == trialId && t.QCQuestionConfirmedUserId == null))
{
throw new BusinessValidationFailedException("QC已确认,不允许操作");
throw new BusinessValidationFailedException("影像质控审核问题模板已经确认,不允许操作");
}
}
@@ -155,12 +155,12 @@ namespace IRaCIS.Core.Application.Contracts
if (await _trialQcQuestionRepository.AnyAsync(t => t.ParentId == trialQCQuestionConfigureId))
{
return ResponseOutput.NotOk("请先清除子问题 再删除父问题");
return ResponseOutput.NotOk("请在删除父问题前,请先删除引用该父问题的子问题。");
}
if (await _repository.AnyAsync<TrialQCQuestionAnswer>(t => t.TrialQCQuestionConfigureId == trialQCQuestionConfigureId))
{
return ResponseOutput.NotOk("已有QC审核记录,不允许删除该问题项");
return ResponseOutput.NotOk("该审核问题已被影像质控过程引用,不允许删除");
}
var success = await _trialQcQuestionRepository.DeleteFromQueryAsync(t => t.Id == trialQCQuestionConfigureId, true);