This commit is contained in:
AbrahamCastilloV
2024-01-11 13:32:42 -07:00
parent 93780eaefa
commit a1ffb9f566
3 changed files with 91 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
<%@ Page Language="VB" Title="Transportes V&A - Boletos" AutoEventWireup="false"
MasterPageFile="~/Site.master" CodeFile="RepBoletos.aspx.vb"
Inherits="ListadoBoletos" EnableEventValidation="true" %>
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
Listado de Boletos
</asp:Content>

View File

@@ -89,22 +89,22 @@ Partial Class ListadoBoletos
Dim dtResult As New DataTable()
Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
Dim params As New List(Of ReportParameter)
Dim params As New List(Of ReportParameter) From {
New ReportParameter("Ruta", Ruta),
New ReportParameter("Origen", GvRow.DataKey("Partida")),
New ReportParameter("Destino", GvRow.DataKey("Destino")),
New ReportParameter("FechaSalida", "2024-01-03"),
New ReportParameter("HoraSalida", "17:00"),
New ReportParameter("Nombre", GvRow.DataKey("Nombre")),
New ReportParameter("Visa", GvRow.DataKey("Visa")),
New ReportParameter("Celular", GvRow.DataKey("Celular")),
New ReportParameter("Importe", GvRow.DataKey("Importe")),
New ReportParameter("TipoBoleto", "Tipo Boleto"),
New ReportParameter("Agencia", "Agencia"),
New ReportParameter("TelefonoAgencia", "Telefono Agencia")
}
params.Add(New ReportParameter("Ruta", Ruta))
params.Add(New ReportParameter("Origen", GvRow.DataKey("Partida")))
params.Add(New ReportParameter("Destino", GvRow.DataKey("Destino")))
params.Add(New ReportParameter("FechaSalida", "2024-01-03"))
params.Add(New ReportParameter("HoraSalida", "17:00"))
params.Add(New ReportParameter("Nombre", GvRow.DataKey("Nombre")))
params.Add(New ReportParameter("Visa", GvRow.DataKey("Visa")))
params.Add(New ReportParameter("Celular", GvRow.DataKey("Celular")))
params.Add(New ReportParameter("Importe", GvRow.DataKey("Importe")))
params.Add(New ReportParameter("TipoBoleto", "Tipo Boleto"))
params.Add(New ReportParameter("Agencia", "Agencia"))
params.Add(New ReportParameter("TelefonoAgencia", "Telefono Agencia"))
ImprimirPDFStimul("Empresas/188/Formatos/Boleto.mrt", dtResult, params, NombreArchivo:="Boleto")
ImprimirPDFStimul($"{UsuarioActual.Empresa.Ruta}Formatos/Boleto.mrt", dtResult, params, NombreArchivo:="Boleto")
'Empresas/Grales/Formatos/EntradaSalida.mrt
'Empresas/188/Formatos/Boleto.mrt