Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/Site.master" CodeFile="Boletos.aspx.vb"
|
<%@ Page Language="VB" Title="Transportes V&A - Comprar Boleto" AutoEventWireup="false" MasterPageFile="~/Site.master" CodeFile="Boletos.aspx.vb"
|
||||||
Inherits="Boletos" EnableEventValidation="true" %>
|
Inherits="Boletos" EnableEventValidation="true" %>
|
||||||
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
|||||||
@@ -47,10 +47,10 @@ Partial Class Boletos
|
|||||||
AsientoSeleccionado = ""
|
AsientoSeleccionado = ""
|
||||||
CveRuta = 0
|
CveRuta = 0
|
||||||
CveViaje = Request.QueryString("CveViaje").ToEntero
|
CveViaje = Request.QueryString("CveViaje").ToEntero
|
||||||
|
If CveViaje > 0 Then
|
||||||
DirectCast(Master.FindControl("TSM"), ScriptManager).EnablePageMethods = True
|
CargaDatos()
|
||||||
CargaDatos()
|
InicializaCombos()
|
||||||
InicializaCombos()
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -126,14 +126,16 @@ Partial Class Boletos
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub OnLinkButtonClick(sender As Object, e As EventArgs)
|
Protected Sub OnLinkButtonClick(sender As Object, e As EventArgs)
|
||||||
Dim linkButton As LinkButton = DirectCast(sender, LinkButton)
|
'quitamos la selección anterior, en caso de existir.
|
||||||
Dim buttonID As String = linkButton.ID
|
|
||||||
linkButton.CssClass += " activo"
|
|
||||||
If AsientoSeleccionado <> "" Then
|
If AsientoSeleccionado <> "" Then
|
||||||
Dim cph As ContentPlaceHolder = CType(Me.Master.FindControl("C"), ContentPlaceHolder)
|
Dim cph As ContentPlaceHolder = CType(Me.Master.FindControl("C"), ContentPlaceHolder)
|
||||||
Dim lnk As LinkButton = CType(cph.FindControl(AsientoSeleccionado), LinkButton)
|
Dim lnk As LinkButton = CType(cph.FindControl(AsientoSeleccionado), LinkButton)
|
||||||
lnk.CssClass = "disponible"
|
lnk.CssClass = "disponible"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim linkButton As LinkButton = DirectCast(sender, LinkButton)
|
||||||
|
Dim buttonID As String = linkButton.ID
|
||||||
|
linkButton.CssClass += " activo"
|
||||||
AsientoSeleccionado = buttonID
|
AsientoSeleccionado = buttonID
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub AddBoleto(sender As Object, e As EventArgs)
|
Protected Sub AddBoleto(sender As Object, e As EventArgs)
|
||||||
@@ -152,7 +154,6 @@ Partial Class Boletos
|
|||||||
|
|
||||||
If retorno > 1 Then
|
If retorno > 1 Then
|
||||||
ObjTransporte.Commit()
|
ObjTransporte.Commit()
|
||||||
Alert("Boleto creado correctamente.")
|
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Alert($"No se pudo generar el boleto {ex}", TipoMensaje.MsgError)
|
Alert($"No se pudo generar el boleto {ex}", TipoMensaje.MsgError)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/Site.master" CodeFile="ListadoBoletos.aspx.vb"
|
<%@ Page Language="VB" Title="Transportes V&A - Boletos" AutoEventWireup="false"
|
||||||
|
MasterPageFile="~/Site.master" CodeFile="ListadoBoletos.aspx.vb"
|
||||||
Inherits="ListadoBoletos" EnableEventValidation="true" %>
|
Inherits="ListadoBoletos" EnableEventValidation="true" %>
|
||||||
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/Site.master" CodeFile="ListadoContratos.aspx.vb"
|
<%@ Page Language="VB" AutoEventWireup="false" Title="Transportes V&A - Contratos" MasterPageFile="~/Site.master"
|
||||||
|
CodeFile="ListadoContratos.aspx.vb"
|
||||||
Inherits="ListadoContratos" %>
|
Inherits="ListadoContratos" %>
|
||||||
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/Site.master" CodeFile="ListadoViajes.aspx.vb"
|
<%@ Page Language="VB" Title="Transportes V&A - Viajes" AutoEventWireup="false" MasterPageFile="~/Site.master"
|
||||||
|
CodeFile="ListadoViajes.aspx.vb"
|
||||||
Inherits="ListadoViajes" %>
|
Inherits="ListadoViajes" %>
|
||||||
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
|
|||||||
Reference in New Issue
Block a user