修改提示语言

Uat_Study
helongjun 2022-05-23 17:07:13 +08:00
parent 4106470df9
commit 0001e29c84
4 changed files with 8 additions and 8 deletions

View File

@ -46,7 +46,7 @@ namespace IRaCIS.Application.Services
var exp = new EntityVerifyExp<CRO>()
{
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))
//{

View File

@ -30,7 +30,7 @@ namespace IRaCIS.Application.Services
var exp = new EntityVerifyExp<Hospital>()
{
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))
//{

View File

@ -46,7 +46,7 @@ namespace IRaCIS.Application.Services
var exp = new EntityVerifyExp<Site>()
{
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);

View File

@ -49,7 +49,7 @@ namespace IRaCIS.Application.Services
var exp = new EntityVerifyExp<Sponsor>()
{
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))
//{