diff --git a/IRaCIS.Core.Application/Service/Institution/CROService.cs b/IRaCIS.Core.Application/Service/Institution/CROService.cs index 4c588c5fd..8f636e16f 100644 --- a/IRaCIS.Core.Application/Service/Institution/CROService.cs +++ b/IRaCIS.Core.Application/Service/Institution/CROService.cs @@ -46,7 +46,7 @@ namespace IRaCIS.Application.Services var exp = new EntityVerifyExp() { VerifyExp = cro => cro.CROName.Equals(addCroCompanyCommand.CROName) , - VerifyMsg = "A CRO with the same name already existed in the table. Please confirm." + VerifyMsg = "已经存在同名的CRO,请确认。" }; var cro = await _croRepository.InsertOrUpdateAsync(addCroCompanyCommand, true, exp); @@ -64,7 +64,7 @@ namespace IRaCIS.Application.Services { if (await _trialRepository.AnyAsync(t => t.CROId == cROCompanyId)) { - return ResponseOutput.NotOk("This CRO has participated in the trial and couldn't be deleted."); + return ResponseOutput.NotOk("该CRO已经参与项目,不能被删除。"); } //if (_userRepository.Find().Any(t => t.OrganizationId == cROCompanyId)) //{ diff --git a/IRaCIS.Core.Application/Service/Institution/HospitalService.cs b/IRaCIS.Core.Application/Service/Institution/HospitalService.cs index e200970e1..c05d5c156 100644 --- a/IRaCIS.Core.Application/Service/Institution/HospitalService.cs +++ b/IRaCIS.Core.Application/Service/Institution/HospitalService.cs @@ -30,7 +30,7 @@ namespace IRaCIS.Application.Services var exp = new EntityVerifyExp() { VerifyExp = h => h.HospitalName.Equals(hospitalCommand.HospitalName), - VerifyMsg = "A hospital with the same name already existed in the table. Please confirm." + VerifyMsg = "已经存在同名的医院,请确认。" }; var hospital = await _hospitalRepository.InsertOrUpdateAsync(hospitalCommand, true, exp); @@ -47,7 +47,7 @@ namespace IRaCIS.Application.Services { if (await _doctorRepository.AnyAsync(t => t.Id == hospitalId)) { - return ResponseOutput.NotOk("There are already doctors registered in this hospital,and it couldn't be deleted"); + return ResponseOutput.NotOk("该医院下已经注册有医生,不可以删除。"); } //if (_userRepository.Find().Any(t => t.OrganizationId == hospitalId)) //{ diff --git a/IRaCIS.Core.Application/Service/Institution/SiteService.cs b/IRaCIS.Core.Application/Service/Institution/SiteService.cs index 3d068996f..22470bc55 100644 --- a/IRaCIS.Core.Application/Service/Institution/SiteService.cs +++ b/IRaCIS.Core.Application/Service/Institution/SiteService.cs @@ -46,7 +46,7 @@ namespace IRaCIS.Application.Services var exp = new EntityVerifyExp() { VerifyExp = h => h.SiteName.Equals(siteCommand.SiteName)|| h.SiteCode.Equals(siteCommand.SiteCode), - VerifyMsg = "A site with the same name or code already existed in the table. Please confirm." + VerifyMsg = "已经存在同名的中心,请确认。" }; var site = await _siteRepository.InsertOrUpdateAsync(siteCommand, true, exp); @@ -66,7 +66,7 @@ namespace IRaCIS.Application.Services if (await _trialSiteUserRepository.AnyAsync(t => t.SiteId == siteId)) { - return ResponseOutput.NotOk("This site has participated in the trial and couldn't be deleted."); + return ResponseOutput.NotOk("该中心已经加入项目,不可以被删除。"); } var success = await _siteRepository.BatchDeleteNoTrackingAsync(x => x.Id == siteId); diff --git a/IRaCIS.Core.Application/Service/Institution/SponsorService.cs b/IRaCIS.Core.Application/Service/Institution/SponsorService.cs index 1c5e9ab44..0811c6675 100644 --- a/IRaCIS.Core.Application/Service/Institution/SponsorService.cs +++ b/IRaCIS.Core.Application/Service/Institution/SponsorService.cs @@ -49,7 +49,7 @@ namespace IRaCIS.Application.Services var exp = new EntityVerifyExp() { VerifyExp = h => h.SponsorName.Equals(sponsorCommand.SponsorName), - VerifyMsg = "A sponsor with the same name already existed in the table. Please confirm." + VerifyMsg = "已经存在同名的申办方,请确认。" }; var sponsor = await _sponsorRepository.InsertOrUpdateAsync(sponsorCommand, true, exp); @@ -67,7 +67,7 @@ namespace IRaCIS.Application.Services { if (await _trialRepository.AnyAsync(t => t.CROId == sponsorId)) { - return ResponseOutput.NotOk("This sponsor has participated in the trial and couldn't be deleted."); + return ResponseOutput.NotOk("该申办方已经加入项目,不允许删除。"); } //if (_userRepository.Find().Any(t => t.OrganizationId == sponsorId)) //{