修改提示语言
parent
4106470df9
commit
0001e29c84
|
@ -46,7 +46,7 @@ namespace IRaCIS.Application.Services
|
||||||
var exp = new EntityVerifyExp<CRO>()
|
var exp = new EntityVerifyExp<CRO>()
|
||||||
{
|
{
|
||||||
VerifyExp = cro => cro.CROName.Equals(addCroCompanyCommand.CROName) ,
|
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);
|
var cro = await _croRepository.InsertOrUpdateAsync(addCroCompanyCommand, true, exp);
|
||||||
|
@ -64,7 +64,7 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
if (await _trialRepository.AnyAsync(t => t.CROId == cROCompanyId))
|
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))
|
//if (_userRepository.Find().Any(t => t.OrganizationId == cROCompanyId))
|
||||||
//{
|
//{
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace IRaCIS.Application.Services
|
||||||
var exp = new EntityVerifyExp<Hospital>()
|
var exp = new EntityVerifyExp<Hospital>()
|
||||||
{
|
{
|
||||||
VerifyExp = h => h.HospitalName.Equals(hospitalCommand.HospitalName),
|
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);
|
var hospital = await _hospitalRepository.InsertOrUpdateAsync(hospitalCommand, true, exp);
|
||||||
|
@ -47,7 +47,7 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
if (await _doctorRepository.AnyAsync(t => t.Id == hospitalId))
|
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))
|
//if (_userRepository.Find().Any(t => t.OrganizationId == hospitalId))
|
||||||
//{
|
//{
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace IRaCIS.Application.Services
|
||||||
var exp = new EntityVerifyExp<Site>()
|
var exp = new EntityVerifyExp<Site>()
|
||||||
{
|
{
|
||||||
VerifyExp = h => h.SiteName.Equals(siteCommand.SiteName)|| h.SiteCode.Equals(siteCommand.SiteCode),
|
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);
|
var site = await _siteRepository.InsertOrUpdateAsync(siteCommand, true, exp);
|
||||||
|
@ -66,7 +66,7 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
if (await _trialSiteUserRepository.AnyAsync(t => t.SiteId == siteId))
|
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);
|
var success = await _siteRepository.BatchDeleteNoTrackingAsync(x => x.Id == siteId);
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace IRaCIS.Application.Services
|
||||||
var exp = new EntityVerifyExp<Sponsor>()
|
var exp = new EntityVerifyExp<Sponsor>()
|
||||||
{
|
{
|
||||||
VerifyExp = h => h.SponsorName.Equals(sponsorCommand.SponsorName),
|
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);
|
var sponsor = await _sponsorRepository.InsertOrUpdateAsync(sponsorCommand, true, exp);
|
||||||
|
@ -67,7 +67,7 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
if (await _trialRepository.AnyAsync(t => t.CROId == sponsorId))
|
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))
|
//if (_userRepository.Find().Any(t => t.OrganizationId == sponsorId))
|
||||||
//{
|
//{
|
||||||
|
|
Loading…
Reference in New Issue