修改提示语言。
parent
d0b617b5d6
commit
1aac09e3da
|
@ -55,7 +55,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
|
||||
if (!studyIds.Any())
|
||||
{
|
||||
return ResponseOutput.NotOk("There is no image in the current study and cannot be shared! ");
|
||||
return ResponseOutput.NotOk("当前检查没有影像可以分享。 ");
|
||||
}
|
||||
|
||||
imageShareCommand.StudyId = studyIds.First();
|
||||
|
@ -91,17 +91,17 @@ namespace IRaCIS.Core.Application.Services
|
|||
|
||||
if (imageShare == null)
|
||||
{
|
||||
return ResponseOutput.NotOk("The resource does not exist! ");
|
||||
return ResponseOutput.NotOk("资源不存在。");
|
||||
}
|
||||
|
||||
if (pWord != imageShare.Password.Trim())
|
||||
{
|
||||
return ResponseOutput.NotOk("Shared password error!");
|
||||
return ResponseOutput.NotOk("分享密码错误。");
|
||||
}
|
||||
|
||||
if (DateTime.Now > imageShare.ExpireTime)
|
||||
{
|
||||
return ResponseOutput.NotOk("Resource sharing has expired!");
|
||||
return ResponseOutput.NotOk("资源分享过期。");
|
||||
}
|
||||
|
||||
var resource = new ResourceInfo()
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
//检查手机或者邮箱是否有效
|
||||
if (!Regex.IsMatch(userInfo.Email, @"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$"))
|
||||
{
|
||||
throw new BusinessValidationFailedException("Please input a legal email");
|
||||
throw new BusinessValidationFailedException("请输入正确的邮箱地址。");
|
||||
}
|
||||
|
||||
//邮箱
|
||||
|
@ -92,13 +92,13 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
if (userInfo.IsUpdate && isReplaceUser && !await _trialSiteSurveyRepository.AnyAsync(t => (t.Email == userInfo.ReplaceUserEmailOrPhone || t.Phone == userInfo.ReplaceUserEmailOrPhone) && t.SiteId == userInfo.SiteId && t.TrialId == userInfo.TrialId))
|
||||
{
|
||||
return ResponseOutput.NotOk("该项目Site不存在该交接人的调研记录,不允许选择更新");
|
||||
return ResponseOutput.NotOk("该中心不存在该交接人的中心调研记录表,不允许选择更新。");
|
||||
}
|
||||
|
||||
|
||||
if (userInfo.IsUpdate && await _trialSiteSurveyRepository.AnyAsync(t => (t.Email == userInfo.EmailOrPhone || t.Phone == userInfo.EmailOrPhone) && t.SiteId == userInfo.SiteId && t.TrialId == userInfo.TrialId && t.State != TrialSiteSurveyEnum.PMCreatedAndLock))
|
||||
{
|
||||
return ResponseOutput.NotOk("您的记录未锁定,不允许选择更新,若已经提交,可被驳回后进行操作");
|
||||
return ResponseOutput.NotOk("您的中心调研记录正在审核中,不允许进行更新操作。若需要更新,请在驳回后进行操作。");
|
||||
}
|
||||
|
||||
|
||||
|
@ -106,7 +106,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
if (userInfo.IsUpdate && userInfo.ReplaceUserEmailOrPhone != userInfo.EmailOrPhone && await _trialSiteSurveyRepository.AnyAsync(t => (t.Email == userInfo.EmailOrPhone || t.Phone == userInfo.EmailOrPhone) && t.SiteId == userInfo.SiteId && t.TrialId == userInfo.TrialId && t.State == TrialSiteSurveyEnum.PMCreatedAndLock))
|
||||
{
|
||||
//自己的锁了 想更新别人的
|
||||
return ResponseOutput.NotOk("当前Site 您的调研记录已锁定,不允许更新其他人邮箱调研记录");
|
||||
return ResponseOutput.NotOk("当前中心中,您提交调研记录表已锁定,不允许更新其他人邮箱调研记录。");
|
||||
}
|
||||
|
||||
//自己的锁定了 如果有其他未锁定的,也不能更新自己的
|
||||
|
@ -115,7 +115,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
&& await _trialSiteSurveyRepository.AnyAsync(t => (t.Email != userInfo.EmailOrPhone && t.Phone != userInfo.EmailOrPhone) && t.SiteId == userInfo.SiteId && t.TrialId == userInfo.TrialId && t.State != TrialSiteSurveyEnum.PMCreatedAndLock))
|
||||
{
|
||||
|
||||
return ResponseOutput.NotOk("当前Site 您的调研记录已锁定,也存在其他未锁定的记录,不允许更新自己的调研记录");
|
||||
return ResponseOutput.NotOk("当前中心,您提交的调研记录表已锁定。当前存在其他人员提交的调研记录表未锁定,不允许更新您之前提交的调研记录。");
|
||||
}
|
||||
|
||||
|
||||
|
@ -125,7 +125,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
&& !await _trialSiteSurveyRepository.AnyAsync(t => (t.Email == userInfo.ReplaceUserEmailOrPhone || t.Phone == userInfo.ReplaceUserEmailOrPhone) && t.SiteId == userInfo.SiteId && t.TrialId == userInfo.TrialId && t.State != TrialSiteSurveyEnum.PMCreatedAndLock)
|
||||
)
|
||||
{
|
||||
return ResponseOutput.NotOk("当前Site 存在未锁定的调研记录,不允许更新已锁定邮箱的调研记录");
|
||||
return ResponseOutput.NotOk("当前中心存在未锁定的调研记录,不允许更新已锁定的调研记录。");
|
||||
}
|
||||
|
||||
|
||||
|
@ -136,14 +136,14 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
//检查数据库是否存在该验证码
|
||||
if (verificationRecord == null)
|
||||
{
|
||||
return ResponseOutput.NotOk("Verification code error");
|
||||
return ResponseOutput.NotOk("验证码错误。");
|
||||
}
|
||||
else
|
||||
{
|
||||
//检查验证码是否失效
|
||||
if (verificationRecord.ExpirationTime < DateTime.Now)
|
||||
{
|
||||
return ResponseOutput.NotOk("The verification code has expired");
|
||||
return ResponseOutput.NotOk("验证码已经过期。");
|
||||
}
|
||||
else //验证码正确 并且 没有超时
|
||||
{
|
||||
|
@ -245,7 +245,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
//该site 下不存在该邮箱的记录
|
||||
if (!dbEntityList.Any(t => t.Email == userInfo.EmailOrPhone || t.Phone == userInfo.EmailOrPhone))
|
||||
{
|
||||
return ResponseOutput.NotOk("该Site下已经有其他用户已填写的调研表,您不被允许继续填写");
|
||||
return ResponseOutput.NotOk("该中心下已经有其他用户已填写的调研表,您不被允许继续填写");
|
||||
}
|
||||
|
||||
|
||||
|
@ -327,7 +327,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
{
|
||||
if (await _trialSiteSurveyRepository.AnyAsync(t => t.Id == addOrEditTrialSiteSurvey.Id && t.State == TrialSiteSurveyEnum.PMCreatedAndLock))
|
||||
{
|
||||
return ResponseOutput.NotOk("已锁定,不允许操作");
|
||||
return ResponseOutput.NotOk("中心调研已锁定,不允许操作。");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -361,7 +361,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
if (await _trialSiteSurveyRepository.AnyAsync(t => t.Id == trialSiteSurveyId && t.State == TrialSiteSurveyEnum.PMCreatedAndLock))
|
||||
{
|
||||
return ResponseOutput.NotOk("已锁定,不允许操作");
|
||||
return ResponseOutput.NotOk("中心调研表已锁定,不允许操作");
|
||||
}
|
||||
|
||||
var success = await _trialSiteSurveyRepository.BatchDeleteNoTrackingAsync(t => t.Id == trialSiteSurveyId);
|
||||
|
@ -480,7 +480,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
if (await _repository.AnyAsync<TrialSiteSurvey>(t => t.State == TrialSiteSurveyEnum.PMCreatedAndLock && t.Id == trialSiteSurveyId))
|
||||
{
|
||||
return ResponseOutput.NotOk("已锁定,不允许操作");
|
||||
return ResponseOutput.NotOk("中心调研表已锁定,不允许操作。");
|
||||
}
|
||||
|
||||
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM)
|
||||
|
@ -584,7 +584,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
{
|
||||
if (await _repository.AnyAsync<TrialSiteSurvey>(t => t.State == TrialSiteSurveyEnum.PMCreatedAndLock && t.Id == trialSiteSurveyId))
|
||||
{
|
||||
return ResponseOutput.NotOk("已锁定,不允许操作");
|
||||
return ResponseOutput.NotOk("中心调研表已锁定,不允许操作。");
|
||||
}
|
||||
|
||||
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM)
|
||||
|
@ -617,7 +617,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
if (survey.State != TrialSiteSurveyEnum.ToSubmit)
|
||||
{
|
||||
return ResponseOutput.NotOk("只允许废除未提交的记录");
|
||||
return ResponseOutput.NotOk("只允许废除未提交的记录。");
|
||||
}
|
||||
|
||||
survey.IsDeleted = true;
|
||||
|
@ -645,7 +645,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
if (_userInfo.IsAdmin)
|
||||
{
|
||||
return ResponseOutput.NotOk("不允许Admin操作");
|
||||
return ResponseOutput.NotOk("不允许管理员操作。");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue