фильтр для планирования встреч с использованием DateTime в Genexus
Я начал программировать некоторое время назад и начал проект на Genexus, чтобы планировать встречи для компании, которой нужны правила, чтобы не назначать встречи в одно и то же время. Я создал правила, используя дату, и они работали, но когда я переключился на дату и время, они больше не работают. Я не знаю синтаксиса Genexus для этого, если кто-нибудь может помочь с этим, я был бы признателен.
do case
case (LocacaoInicio <= &DTInicio and LocacaoFinal >= &DTInicio)
or (LocacaoInicio <= &DTFinal and LocacaoFinal >= &DTFinal)
&MensagemValidacao2 = 'Error'
case (LocacaoInicio >= &DTInicio and LocacaoFinal <= &DTInicio)
or (LocacaoInicio >= &DTInicio and LocacaoFinal <= &DTFinal)
&MensagemValidacao2 = 'Error'
case (LocacaoInicio < &DTFinal and LocacaoFinal < &DTFinal)
or (LocacaoInicio > &DTInicio and LocacaoFinal > &DTInicio)
&MensagemValidacao2 = 'ERROR'
case (LocacaoInicio > &DTFinal and LocacaoFinal > &DTFinal)
or (LocacaoInicio < &DTInicio and LocacaoFinal < &DTInicio)
&MensagemValidacao2 = 'Error '
endcase
translation of attributes and variables
locacaoinicio = InicialDate
locacaofinal = FinalDate
&mensagemvalidacao2 = &validationMassege
&DTFinal = &DateTimeFinal
&DTInicio = &DateTimeInicio