Test_IRC_Net8
parent
64bd6a5604
commit
a1657f5827
|
|
@ -696,6 +696,19 @@ namespace IRaCIS.Core.Application.Service
|
||||||
SiteIds = inDto.SiteIds,
|
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> isChooseVisitIds = new List<Guid>();
|
||||||
List<Guid> IsGenerateVisitIds = new List<Guid>();
|
List<Guid> IsGenerateVisitIds = new List<Guid>();
|
||||||
List<ReadingPeriodPlan> chooseVisitVisitList = new List<ReadingPeriodPlan>();
|
List<ReadingPeriodPlan> chooseVisitVisitList = new List<ReadingPeriodPlan>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue