From 482cf60bffad0596994e18e452dbb98765d61267 Mon Sep 17 00:00:00 2001 From: AbrahamCastilloV Date: Wed, 31 Jan 2024 13:46:05 -0700 Subject: [PATCH] =?UTF-8?q?--=20Se=20removieron=20partes=20de=20Css=20sin?= =?UTF-8?q?=20usar=20y=20se=20ampli=C3=B3=20el=20rango=20del=20updatePanel?= =?UTF-8?q?=20para=20que=20reiniciara=20los=20valores=20del=20asiento=20an?= =?UTF-8?q?terior=20y=20pusiera=20el=20nuevo=20en=20no=20disponible.=20=20?= =?UTF-8?q?Se=20simplific=C3=B3=20la=20respuesta=20al=20m=C3=A9todo=20de?= =?UTF-8?q?=20AddViajesPasajeros=20y=20se=20agreg=C3=B3=20un=20Update=20al?= =?UTF-8?q?=20finalizar=20el=20try,=20para=20recargar=20los=20boletos=20y?= =?UTF-8?q?=20los=20inputs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Transportes/Boletos.aspx | 26 ++++++++------------------ Transportes/Boletos.aspx.vb | 12 ++++-------- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/Transportes/Boletos.aspx b/Transportes/Boletos.aspx index 254e8184c..011e520a4 100644 --- a/Transportes/Boletos.aspx +++ b/Transportes/Boletos.aspx @@ -33,11 +33,6 @@ color: #fff; } - { - background-color: #45b6af; - color: #fff; - } - .nodisponible { display: inline-block; width: 45px; @@ -74,8 +69,9 @@ - + + <%-- Datos de cliente y su viaje --%>
@@ -158,6 +154,7 @@
+
@@ -174,6 +171,7 @@
+
@@ -181,8 +179,8 @@
-
+
Destino:
-
-

@@ -209,14 +205,10 @@ ValidationGroup="GrpGuardar">
-
-
- - + - - + <%-- Asientos --%>
@@ -468,10 +460,8 @@
-
-
- +
diff --git a/Transportes/Boletos.aspx.vb b/Transportes/Boletos.aspx.vb index 330e2cc09..379392af6 100644 --- a/Transportes/Boletos.aspx.vb +++ b/Transportes/Boletos.aspx.vb @@ -1,7 +1,4 @@ -Imports System.Data -Imports Extensiones - -Partial Class Boletos +Partial Class Boletos Inherits ClsPaginas #Region "Propiedades" Private Property AsientoSeleccionado As String @@ -156,9 +153,7 @@ Partial Class Boletos Try AsientoSeleccionado = AsientoSeleccionado.Replace("A", "") - Dim retorno As Integer = ObjTransporte.AddViajesPasajeros(CveViaje, DdlPartida.SelectedValue.ToEntero, DdlDestino.SelectedValue.ToEntero, Importe, AsientoSeleccionado.ToEntero, TxtNombre.Text, TxtVisa.Text, TxtCelular.Text, CBool(RblSexo.SelectedValue), TxtObservaciones.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) - - If retorno > 1 Then + If ObjTransporte.AddViajesPasajeros(CveViaje, DdlPartida.SelectedValue.ToEntero, DdlDestino.SelectedValue.ToEntero, Importe, AsientoSeleccionado.ToEntero, TxtNombre.Text, TxtVisa.Text, TxtCelular.Text, CBool(RblSexo.SelectedValue), TxtObservaciones.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) > 1 Then Alert("Boleto generado correctamente") ObjTransporte.Commit() DdlPartida.SelectedValue = "" @@ -168,13 +163,14 @@ Partial Class Boletos TxtCelular.Text = "" TxtObservaciones.Text = "" AsientoSeleccionado = "" - upPanel.Update() End If Catch ex As Exception ObjTransporte.RollBack() Alert($"No se pudo generar el boleto {ex}", TipoMensaje.MsgError) Finally ObjTransporte.Dispose() + CargaDatos() + UpPanel.Update() End Try End Sub