diff --git a/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs b/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs index 6941b73a5..fff4c84d0 100644 --- a/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs +++ b/IRaCIS.Core.Application/Helper/ExcelExportHelper.cs @@ -13,7 +13,7 @@ public static class ExcelExportHelper if (doc == null) { - throw new Exception("当前code 没找到对应的导出模板文件,请核对是否修改了配置数据"); + throw new Exception("程序没有找到对应的数据模板文件,请联系系统运维人员。"); } var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\'))?.FullName; @@ -22,7 +22,7 @@ public static class ExcelExportHelper if (!System.IO.File.Exists(filePath)) { - throw new Exception("服务器本地不存在该路径文件"); + throw new Exception("数据模板文件存储路径上未找对应文件,请联系系统运维人员。"); } //模板路径 diff --git a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs index 360577f5b..dca0fe96b 100644 --- a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs +++ b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs @@ -111,7 +111,7 @@ namespace IRaCIS.Core.Application.Contracts { if (!await _repository.AnyAsync(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(t => t.TrialQCQuestionConfigureId == trialQCQuestionConfigureId)) { - return ResponseOutput.NotOk("已有QC审核记录,不允许删除该问题项"); + return ResponseOutput.NotOk("该审核问题已被影像质控过程引用,不允许删除。"); } var success = await _trialQcQuestionRepository.DeleteFromQueryAsync(t => t.Id == trialQCQuestionConfigureId, true); diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs index c7183eb14..cc7856ed0 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs @@ -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 ? "" : "该项目的项目配置(基础配置、流程配置、加急配置) 、访视管理,有配置未确认,不能设置项目状态为启动。"); } /// @@ -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(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) diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs index e53d3474b..b3d0f4d83 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialExternalUserService.cs @@ -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 =>