From 04e02386890ffc77909c10b4e330f241bf28cb0a Mon Sep 17 00:00:00 2001 From: rrene Date: Tue, 22 Oct 2024 18:39:21 -0700 Subject: [PATCH] -validacion de fecha incial menor a fecha final --- Transportes/RepContratos.aspx.vb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Transportes/RepContratos.aspx.vb b/Transportes/RepContratos.aspx.vb index b745538a5..3fecb240d 100644 --- a/Transportes/RepContratos.aspx.vb +++ b/Transportes/RepContratos.aspx.vb @@ -122,6 +122,11 @@ Partial Class ListadoContratos Exit Sub End If + If TxtFechaSalida.Text.ToDateTime > TxtFechaRegreso.Text.ToDateTime Then + Alert("La fecha inicial no puede ser mayor al final.", TipoMensaje.MsgAdvertencia) + Exit Sub + End If + 'Agregamos Contrato Dim ObjContratos As New ClsContratos