Test_IRC_Net8
he 2025-11-07 11:47:57 +08:00
parent 64bd6a5604
commit a1657f5827
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>();