<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="informePasajeroServico" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="sql" class="java.lang.String"/>
	<parameter name="dataFinal" class="java.util.Date"/>
	<parameter name="dataInicio" class="java.util.Date"/>
	<parameter name="empresa" class="java.lang.String"/>
	<queryString>
		<![CDATA[$P!{sql}]]>
	</queryString>
	<field name="nombpasajero" class="java.lang.String"/>
	<field name="feccorrida" class="java.util.Date"/>
	<field name="corrida_id" class="java.lang.Integer"/>
	<field name="descclase" class="java.lang.String"/>
	<field name="origen" class="java.lang.String"/>
	<field name="destino" class="java.lang.String"/>
	<field name="preciopagado" class="java.math.BigDecimal"/>
	<field name="fechorventa" class="java.util.Date"/>
	<field name="nombpuntoventa" class="java.lang.String"/>
	<field name="descmarca" class="java.lang.String"/>
	<field name="usuario_id" class="java.lang.String"/>
	<variable name="preciopagado_1" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{preciopagado}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="51" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="0" width="802" height="20"/>
				<textElement textAlignment="Center">
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[INFORME PASAJERO POR SERVICIO]]></text>
			</staticText>
			<staticText>
				<reportElement x="605" y="30" width="53" height="20"/>
				<textElement/>
				<text><![CDATA[EMISIÓN:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="658" y="30" width="100" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="13" y="31" width="64" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[EMPRESA:]]></text>
			</staticText>
			<textField>
				<reportElement x="77" y="31" width="206" height="20"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{empresa}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="30" splitType="Stretch">
			<staticText>
				<reportElement x="283" y="0" width="51" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[PERÍODO:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="334" y="0" width="88" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$P{dataInicio}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="422" y="0" width="10" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[-]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="433" y="0" width="100" height="20"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$P{dataFinal}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="24" splitType="Stretch">
			<line>
				<reportElement x="0" y="0" width="802" height="2"/>
			</line>
			<staticText>
				<reportElement x="0" y="2" width="113" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[NOMBRE]]></text>
			</staticText>
			<staticText>
				<reportElement x="113" y="2" width="72" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[FECHA VIAJE]]></text>
			</staticText>
			<staticText>
				<reportElement x="185" y="2" width="54" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[SERVICIO]]></text>
			</staticText>
			<staticText>
				<reportElement x="239" y="2" width="77" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[ORIGEN]]></text>
			</staticText>
			<staticText>
				<reportElement x="316" y="2" width="76" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[DESTINO]]></text>
			</staticText>
			<staticText>
				<reportElement x="392" y="2" width="76" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[TARIFA]]></text>
			</staticText>
			<staticText>
				<reportElement x="468" y="2" width="93" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[COMPRA]]></text>
			</staticText>
			<staticText>
				<reportElement x="561" y="2" width="100" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[PUNTO VENTA]]></text>
			</staticText>
			<line>
				<reportElement x="0" y="22" width="802" height="2"/>
			</line>
			<staticText>
				<reportElement x="661" y="2" width="76" height="20"/>
				<textElement/>
				<text><![CDATA[MARCA]]></text>
			</staticText>
			<staticText>
				<reportElement x="737" y="2" width="65" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[BILHETERO]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="24" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="0" y="0" width="113" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{nombpasajero}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="113" y="0" width="72" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{feccorrida}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="185" y="0" width="54" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.Integer"><![CDATA[$F{corrida_id}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="239" y="0" width="77" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{origen}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="392" y="0" width="76" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{preciopagado}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH.mm.ss">
				<reportElement x="468" y="0" width="93" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{fechorventa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="561" y="0" width="100" height="20"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="661" y="0" width="76" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{descmarca}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="316" y="0" width="76" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{destino}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="737" y="0" width="65" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{usuario_id}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="22" splitType="Stretch">
			<staticText>
				<reportElement x="320" y="2" width="72" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL:]]></text>
			</staticText>
			<textField pattern="¤ #,##0.00">
				<reportElement x="392" y="2" width="76" height="20"/>
				<textElement/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{preciopagado_1}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
