修改系统提示信息
parent
97744b76d0
commit
7b8f86d832
|
@ -13,7 +13,7 @@ public static class ExcelExportHelper
|
||||||
|
|
||||||
if (doc == null)
|
if (doc == null)
|
||||||
{
|
{
|
||||||
throw new Exception("当前code 没找到对应的导出模板文件,请核对是否修改了配置数据");
|
throw new Exception("程序没有找到对应的数据模板文件,请联系系统运维人员。");
|
||||||
}
|
}
|
||||||
|
|
||||||
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\'))?.FullName;
|
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\'))?.FullName;
|
||||||
|
@ -22,7 +22,7 @@ public static class ExcelExportHelper
|
||||||
|
|
||||||
if (!System.IO.File.Exists(filePath))
|
if (!System.IO.File.Exists(filePath))
|
||||||
{
|
{
|
||||||
throw new Exception("服务器本地不存在该路径文件");
|
throw new Exception("数据模板文件存储路径上未找对应文件,请联系系统运维人员。");
|
||||||
}
|
}
|
||||||
|
|
||||||
//模板路径
|
//模板路径
|
||||||
|
|
|
@ -111,7 +111,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
{
|
{
|
||||||
if (!await _repository.AnyAsync<Trial>(t => t.Id == trialId && t.QCQuestionConfirmedUserId == null))
|
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))
|
if (await _trialQcQuestionRepository.AnyAsync(t => t.ParentId == trialQCQuestionConfigureId))
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("请先清除子问题 再删除父问题");
|
return ResponseOutput.NotOk("请在删除父问题前,请先删除引用该父问题的子问题。");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (await _repository.AnyAsync<TrialQCQuestionAnswer>(t => t.TrialQCQuestionConfigureId == trialQCQuestionConfigureId))
|
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);
|
var success = await _trialQcQuestionRepository.DeleteFromQueryAsync(t => t.Id == trialQCQuestionConfigureId, true);
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace IRaCIS.Core.Application
|
||||||
|
|
||||||
if (signRawText == null)
|
if (signRawText == null)
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("未在系统中找到该签名场景的数据");
|
return ResponseOutput.NotOk("该操作需要电子签名确认,但未在系统中找到该场景的签名模板。");
|
||||||
}
|
}
|
||||||
|
|
||||||
return ResponseOutput.Ok(new
|
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)))
|
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)
|
if (showOrderList.Count == 0)
|
||||||
{
|
{
|
||||||
throw new BusinessValidationFailedException("请先添加影像质控审核问题,再确认");
|
throw new BusinessValidationFailedException("当前未添加影像质控审核问题。请先添加影像质控审核问题,再进行确认。");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showOrderList.Count() != showOrderList.Select(t => t.ShowOrder).Distinct().Count())
|
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))
|
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))
|
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
|
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 =>
|
var canOPt = await _trialRepository.AnyAsync(trial =>
|
||||||
trial.Id == trialId && trial.IsTrialBasicLogicConfirmed && trial.IsTrialProcessConfirmed &&
|
trial.Id == trialId && trial.IsTrialBasicLogicConfirmed && trial.IsTrialProcessConfirmed &&
|
||||||
trial.IsTrialUrgentConfirmed && trial.VisitPlanConfirmed);
|
trial.IsTrialUrgentConfirmed && trial.VisitPlanConfirmed);
|
||||||
return ResponseOutput.Ok(canOPt, msg: canOPt ? "" : "项目 基础配置、流程配置、加急配置 、访视计划,有未确认项");
|
return ResponseOutput.Ok(canOPt, msg: canOPt ? "" : "该项目的项目配置(基础配置、流程配置、加急配置) 、访视管理,有配置未确认,不能设置项目状态为启动。");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -188,7 +188,7 @@ namespace IRaCIS.Core.Application
|
||||||
}
|
}
|
||||||
else
|
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))
|
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();
|
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);
|
var user = await _repository.FirstOrDefaultAsync<User>(u => u.UserName == signDTO.UserName && u.Password == signDTO.PassWord);
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("password error");
|
return ResponseOutput.NotOk("密码错误。");
|
||||||
}
|
}
|
||||||
else if (user.Status == UserStateEnum.Disable)
|
else if (user.Status == UserStateEnum.Disable)
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("The user has been disabled!");
|
return ResponseOutput.NotOk("该用户已被禁止使用。");
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (signDTO.IsAddSignData)
|
//if (signDTO.IsAddSignData)
|
||||||
|
|
|
@ -75,7 +75,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
{
|
{
|
||||||
if (existSysUser.LastName != addOrEditTrialExternalUser.LastName || existSysUser.FirstName != addOrEditTrialExternalUser.FirstName)
|
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.Email == addOrEditTrialExternalUser.Email &&
|
||||||
t.UserTypeId == addOrEditTrialExternalUser.UserTypeId && t.TrialId == addOrEditTrialExternalUser.TrialId))
|
t.UserTypeId == addOrEditTrialExternalUser.UserTypeId && t.TrialId == addOrEditTrialExternalUser.TrialId))
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("该外部用户表已存在 相同邮箱用户类型的账户");
|
return ResponseOutput.NotOk("系统已经存在与列表中填写的邮箱和用户类型相同的账户,请确认。");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("这里不允许编辑,删除后再添加");
|
return ResponseOutput.NotOk("人员信息不支持编辑,请删除后重新添加。");
|
||||||
|
|
||||||
|
|
||||||
//if (await _trialExternalUseRepository.AnyAsync(t =>
|
//if (await _trialExternalUseRepository.AnyAsync(t =>
|
||||||
|
|
Loading…
Reference in New Issue