修改系统提示信息

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);
@@ -38,7 +38,7 @@ namespace IRaCIS.Core.Application
if (signRawText == null)
{
return ResponseOutput.NotOk("未在系统中找到该签名场景的数据");
return ResponseOutput.NotOk("该操作需要电子签名确认,但未在系统中找到该场景的签名模板。");
}
return ResponseOutput.Ok(new
@@ -56,7 +56,7 @@ namespace IRaCIS.Core.Application
{
if (!await _trialRepository.AnyAsync(t => t.Id == trialId && (t.TrialStatusStr == StaticData.TrialInitializing || t.TrialStatusStr == StaticData.TrialOngoing)))
{
throw new BusinessValidationFailedException("项目不在Initializing/Ongoing,不允许确认配置");
throw new BusinessValidationFailedException("项目已结束或停止,不允许修改配置");
}
}
@@ -104,23 +104,23 @@ namespace IRaCIS.Core.Application
{
if (showOrderList.Count == 0)
{
throw new BusinessValidationFailedException("请先添加影像质控审核问题,再确认");
throw new BusinessValidationFailedException("当前未添加影像质控审核问题。请先添加影像质控审核问题,再进行确认");
}
}
if (showOrderList.Count() != showOrderList.Select(t => t.ShowOrder).Distinct().Count())
{
throw new BusinessValidationFailedException("QC问题显示序号不允许重复");
throw new BusinessValidationFailedException("影像质控审核问题显示序号不重复");
}
if (showOrderList.Where(t => t.ParentShowOrder != null).Any(t => t.ParentShowOrder > t.ShowOrder))
{
throw new BusinessValidationFailedException("父问题的序号要比子问题序号小,请确认");
throw new BusinessValidationFailedException("父问题的显示序号要比子问题的显示序号小,请确认");
}
if (await _trialRepository.AnyAsync(t => t.Id == signConfirmDTO.TrialId && t.QCQuestionConfirmedUserId != null && t.QCQuestionConfirmedUserId != _userInfo.Id))
{
throw new BusinessValidationFailedException("QC审核问题已被其他QC确认,不允许再次确认");
throw new BusinessValidationFailedException("影像质控审核问题已被其他人员确认,不允许再次确认");
}
await _trialQCQuestionRepository.UpdatePartialFromQueryAsync(t => t.TrialId == signConfirmDTO.TrialId, x => new TrialQCQuestion
@@ -163,7 +163,7 @@ namespace IRaCIS.Core.Application
var canOPt = await _trialRepository.AnyAsync(trial =>
trial.Id == trialId && trial.IsTrialBasicLogicConfirmed && trial.IsTrialProcessConfirmed &&
trial.IsTrialUrgentConfirmed && trial.VisitPlanConfirmed);
return ResponseOutput.Ok(canOPt, msg: canOPt ? "" : "项目 基础配置、流程配置、加急配置 、访视计划,有未确认项");
return ResponseOutput.Ok(canOPt, msg: canOPt ? "" : "该项目的项目配置(基础配置、流程配置、加急配置 、访视管理,有配置未确认,不能设置项目状态为启动。");
}
/// <summary>
@@ -188,7 +188,7 @@ namespace IRaCIS.Core.Application
}
else
{
return ResponseOutput.NotOk("项目 基础配置、流程配置、加急配置 、访视计划,有未确认");
return ResponseOutput.NotOk("项目的项目配置(基础配置、流程配置、加急配置 、访视管理,有配置未确认");
}
}
@@ -286,7 +286,7 @@ namespace IRaCIS.Core.Application
{
if (!await _trialRepository.Where(t => t.Id == trialConfig.TrialId).IgnoreQueryFilters().AnyAsync(t => t.TrialStatusStr == StaticData.TrialInitializing))
{
return ResponseOutput.NotOk(" only in Initializing State can operate ");
return ResponseOutput.NotOk("该项目当前状态不是初始化,不允许进行该操作。");
}
var trialInfo = await _trialRepository.Where(t => t.Id == trialConfig.TrialId, true).Include(t => t.TrialDicList.Where(u => u.KeyName == StaticData.Criterion)).FirstOrDefaultAsync();
@@ -384,11 +384,11 @@ namespace IRaCIS.Core.Application
var user = await _repository.FirstOrDefaultAsync<User>(u => u.UserName == signDTO.UserName && u.Password == signDTO.PassWord);
if (user == null)
{
return ResponseOutput.NotOk("password error");
return ResponseOutput.NotOk("密码错误。");
}
else if (user.Status == UserStateEnum.Disable)
{
return ResponseOutput.NotOk("The user has been disabled!");
return ResponseOutput.NotOk("该用户已被禁止使用。");
}
//if (signDTO.IsAddSignData)
@@ -75,7 +75,7 @@ namespace IRaCIS.Core.Application.Service
{
if (existSysUser.LastName != addOrEditTrialExternalUser.LastName || existSysUser.FirstName != addOrEditTrialExternalUser.FirstName)
{
return ResponseOutput.NotOk($"该用户在系统中户名为:{existSysUser.LastName + " / " + existSysUser.FirstName} 电话:{existSysUser.Phone},与填写信息存在不一致项, 将界面信息修改为与系统一致,进行保存", new { existSysUser.LastName, existSysUser.FirstName, existSysUser.Phone }, ApiResponseCodeEnum.NeedTips);
return ResponseOutput.NotOk($"该用户在系统中的用户名为:{existSysUser.LastName + " / " + existSysUser.FirstName} 电话:{existSysUser.Phone},与填写信息存在不一致项, 将界面信息修改为与系统一致,进行保存", new { existSysUser.LastName, existSysUser.FirstName, existSysUser.Phone }, ApiResponseCodeEnum.NeedTips);
}
}
@@ -86,7 +86,7 @@ namespace IRaCIS.Core.Application.Service
t.Email == addOrEditTrialExternalUser.Email &&
t.UserTypeId == addOrEditTrialExternalUser.UserTypeId && t.TrialId == addOrEditTrialExternalUser.TrialId))
{
return ResponseOutput.NotOk("该外部用户表已存在 相同邮箱用户类型的账户");
return ResponseOutput.NotOk("系统已经存在与列表中填写的邮箱用户类型相同的账户,请确认。");
}
@@ -160,7 +160,7 @@ namespace IRaCIS.Core.Application.Service
}
else
{
return ResponseOutput.NotOk("这里不允许编辑,删除后添加");
return ResponseOutput.NotOk("人员信息不支持编辑,删除后重新添加");
//if (await _trialExternalUseRepository.AnyAsync(t =>