From 108261dadce3f40696e344b6b8b53b3d265de720 Mon Sep 17 00:00:00 2001 From: rrene Date: Tue, 26 Dec 2023 19:22:16 -0700 Subject: [PATCH] -- cambios visuales --- Transportes/Boletos.aspx | 240 +++++++++--------- Transportes/Boletos.aspx.vb | 18 +- Transportes/ListadoBoletos.aspx | 19 +- Transportes/ListadoContratos.aspx | 6 +- Transportes/ListadoViajes.aspx | 409 +++++++++++++++--------------- 5 files changed, 343 insertions(+), 349 deletions(-) diff --git a/Transportes/Boletos.aspx b/Transportes/Boletos.aspx index dd12a91c2..d4348a7bb 100644 --- a/Transportes/Boletos.aspx +++ b/Transportes/Boletos.aspx @@ -64,11 +64,7 @@ - -
  • - Contratos -
  • +
  • Viajes @@ -79,129 +75,125 @@
    -
    +
    +
    - - Datos del Cliente + + Datos del Cliente
    - -
    - -
    - - - - -
    -
    - -
    - -
    - - - - -
    -
    - -
    - -
    - - - - -
    -
    - -
    - - - - -
    - - -
    - -
    - +
    +
    +
    + +
    + + + + +
    + +
    +
    +
    + + +
    +
    + +
    +
    +
    +
    + + + + + + +
    +
    +
    +
    + + + +
    +
    +
    + +
    + + + +
    + +
    +
    -
    - - Datos del Viaje -
    - -
    - -
    - +
    +
    + + Datos del Viaje
    -
    - -
    - -
    - +
    + +
    + + +
    +
    +
    + + +
    -
    +
    +
    - - -
    -
    - - - - - - + + + +
    - -
    -
    - - - - - - -
    +
    +
    +
    +
    + +
    +
    +
    +
    + + + + +
    +
    + +
    + + +

    @@ -209,22 +201,20 @@ Text="Comprar Boleto" ValidationGroup="GrpGuardar">
    +
    -
    - -
    - - +
    +
    -
    +
    - - + + @@ -474,7 +464,11 @@
    -
    + + + + +
    diff --git a/Transportes/Boletos.aspx.vb b/Transportes/Boletos.aspx.vb index 3b878b195..be6acd722 100644 --- a/Transportes/Boletos.aspx.vb +++ b/Transportes/Boletos.aspx.vb @@ -47,10 +47,10 @@ Partial Class Boletos AsientoSeleccionado = "" CveRuta = 0 CveViaje = Request.QueryString("CveViaje").ToEntero - - DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True - CargaDatos() - InicializaCombos() + If CveViaje > 0 Then + InicializaCombos() + CargaDatos() + End If End If End Sub @@ -126,10 +126,17 @@ Partial Class Boletos End Sub Protected Sub OnLinkButtonClick(sender As Object, e As EventArgs) + 'quitamos la selección anterior, en caso de existir. + If AsientoSeleccionado <> "" Then + Dim cph As ContentPlaceHolder = CType(Me.Master.FindControl("C"), ContentPlaceHolder) + Dim lnk As LinkButton = CType(cph.FindControl(AsientoSeleccionado), LinkButton) + lnk.CssClass = "disponible" + End If + Dim linkButton As LinkButton = DirectCast(sender, LinkButton) Dim buttonID As String = linkButton.ID linkButton.CssClass += " activo" - ViewState("AsientoSeleccionado") = buttonID + AsientoSeleccionado = buttonID End Sub Protected Sub AddBoleto(sender As Object, e As EventArgs) @@ -148,6 +155,7 @@ Partial Class Boletos If retorno > 1 Then ObjTransporte.Commit() + Alert("El Boleto se ha registrado. ", TipoMensaje.MsgInformacion) End If Catch ex As Exception Alert($"No se pudo generar el boleto {ex}", TipoMensaje.MsgError) diff --git a/Transportes/ListadoBoletos.aspx b/Transportes/ListadoBoletos.aspx index 56f94003e..a429e8630 100644 --- a/Transportes/ListadoBoletos.aspx +++ b/Transportes/ListadoBoletos.aspx @@ -15,25 +15,14 @@ - - -
  • - Contratos -
  • -
  • - Viajes -
  • -
    - +
    -
    +
    " - style="display: inline-block; margin-right: -20px; width: 150px;" /> + style="display: inline-block; margin-right: -10px; width: 150px;" /> " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> @@ -41,7 +30,7 @@
    diff --git a/Transportes/ListadoContratos.aspx b/Transportes/ListadoContratos.aspx index aa844b029..b1a371334 100644 --- a/Transportes/ListadoContratos.aspx +++ b/Transportes/ListadoContratos.aspx @@ -52,9 +52,9 @@ -
    +
    " - style="display: inline-block; margin-right: -20px; width: 150px;" /> + style="display: inline-block; margin-right: -10px; width: 150px;" /> " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> @@ -62,7 +62,7 @@ diff --git a/Transportes/ListadoViajes.aspx b/Transportes/ListadoViajes.aspx index 67bcd60c0..15e9c8174 100644 --- a/Transportes/ListadoViajes.aspx +++ b/Transportes/ListadoViajes.aspx @@ -39,247 +39,250 @@ - -
    + + +
    " - style="display: inline-block; margin-right: -20px; width: 150px;" /> + style="display: inline-block; margin-right: -10px; width: 150px;" /> " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info">
    - - + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - > - - + + + > + + - - - - - - + + + + + + - - - - + + + + -