Compare commits

...

2 Commits

Author SHA1 Message Date
he 5eafcc9c8c Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2025-11-07 11:47:59 +08:00
he a1657f5827 修改 2025-11-07 11:47:57 +08:00
1 changed files with 13 additions and 0 deletions

View File

@ -696,6 +696,19 @@ namespace IRaCIS.Core.Application.Service
SiteIds = inDto.SiteIds,
});
if (await _readingPeriodSetRepository.AnyAsync(x => x.Id != inDto.TrialReadingCriterionId && x.IsTakeEffect != ReadingPeriodStatus.Revocation
&& x.TrialId == inDto.TrialId && x.ReadingPeriodName == inDto.ReadingPeriodName && x.TrialReadingCriterionId == inDto.TrialReadingCriterionId))
{
throw new BusinessValidationFailedException(_localizer["ReadingPeriodSet_NameDup"]);
}
if (inDto.ReadingPeriodName == "Global")
{
throw new BusinessValidationFailedException(_localizer["ReadingPeriodSet_Global"]);
}
List<Guid> isChooseVisitIds = new List<Guid>();
List<Guid> IsGenerateVisitIds = new List<Guid>();
List<ReadingPeriodPlan> chooseVisitVisitList = new List<ReadingPeriodPlan>();