修改提示语言

Uat_Study
helongjun 2022-05-23 16:17:57 +08:00
parent 231ff41f93
commit ad5816e56e
1 changed files with 3 additions and 3 deletions

View File

@ -32,13 +32,13 @@ namespace IRaCIS.Application.Services
var svlist = new List<SubjectVisit>(); var svlist = new List<SubjectVisit>();
if (await _repository.AnyAsync<Trial>(t => t.Id == subjectCommand.TrialId && !t.VisitPlanConfirmed)) if (await _repository.AnyAsync<Trial>(t => t.Id == subjectCommand.TrialId && !t.VisitPlanConfirmed))
{ {
return ResponseOutput.NotOk("The trial visit plan has not been confirmed yet.Please contact the project manager to confirm the visit plan before adding subject."); return ResponseOutput.NotOk("项目访视计划没有确认。请联系项目经理确认项目访视计划后,再添加受试者。");
} }
var verifyExp1 = new EntityVerifyExp<Subject>() var verifyExp1 = new EntityVerifyExp<Subject>()
{ {
VerifyExp = u => u.Code == subjectCommand.Code && u.TrialId == subjectCommand.TrialId, VerifyExp = u => u.Code == subjectCommand.Code && u.TrialId == subjectCommand.TrialId,
VerifyMsg = "A subjects with the same subject ID already existed in this trial." VerifyMsg = "已存在具有相关受试者编号的受试者。"
}; };
@ -104,7 +104,7 @@ namespace IRaCIS.Application.Services
if (await _subjectVisitRepository.AnyAsync(u => u.SubjectId == id && u.VisitExecuted == VisitExecutedEnum.Executed)) if (await _subjectVisitRepository.AnyAsync(u => u.SubjectId == id && u.VisitExecuted == VisitExecutedEnum.Executed))
{ {
return ResponseOutput.NotOk("This subject has executed a visit with uploading study images,and couldn't be deleted."); return ResponseOutput.NotOk("该受试者已经有访视已经上传影像,不允许删除。");
} }
await _subjectRepository.UpdatePartialFromQueryAsync(id, x => new Subject await _subjectRepository.UpdatePartialFromQueryAsync(id, x => new Subject