wilian 2016-03-14 20:36:56 +00:00
parent b0dcf15aa2
commit 68993af98b
5 changed files with 95 additions and 164 deletions

View File

@ -65,89 +65,37 @@ public class RelatorioCancelamentoTransacao extends Relatorio {
private String getSql() { private String getSql() {
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append("WITH OCD_TEMP AS( "); sql.append("SELECT B.BOLETO_ID, OCD.FECINC AS DATASOLICITACAOCLIENTE, E.NOMBEMPRESA AS EMPRESA, B.NOMBPASAJERO AS NOMEPASSAGEIRO, B.FECHORVENTA AS DATACOMPRA, ")
sql.append("SELECT ocd.FECINC as dataSolicitacaoCliente, "); .append("B.NUMFOLIOSISTEMA AS NUMEROPASSAGEM, B.NUMOPERACION AS LOCALIZADOR, B.FECHORVIAJE AS DATAVIAGEM, B.CORRIDA_ID AS SERVICO, B.NUMASIENTO AS ASSENTO, ")
sql.append(" VALOR_TARJETA as valorASerRestituido, "); .append("(COALESCE(B.PRECIOPAGADO,0) + COALESCE(B.IMPORTEOUTROS,0) + COALESCE(B.IMPORTEPEDAGIO,0) + COALESCE(B.IMPORTESEGURO,0) + COALESCE(B.IMPORTETAXAEMBARQUE,0)) AS VALORCOMPRA, ")
sql.append(" e.NOMBEMPRESA as empresa, "); .append("( ")
sql.append(" b.NOMBPASAJERO as nomePassageiro, "); .append(" SELECT SUM(COALESCE(B1.PRECIOPAGADO,0) + COALESCE(B1.IMPORTEOUTROS,0) + COALESCE(B1.IMPORTEPEDAGIO,0) + COALESCE(B1.IMPORTESEGURO,0) + COALESCE(B1.IMPORTETAXAEMBARQUE,0)) ")
sql.append(" c.fechorventa as dataCompra, "); .append(" FROM BOLETO B1 ")
sql.append("b.numfoliosistema as numeroPassagem, "); .append(" WHERE B1.NUMOPERACION = B.NUMOPERACION ")
sql.append(" b.numoperacion as localizador, "); .append(") AS VALORTOTALCOMPRA, ")
sql.append(" b.FECHORVIAJE as dataViagem, "); .append("VALOR_TARJETA AS VALORASERRESTITUIDO ")
sql.append(" b.CORRIDA_ID as servico, "); .append("FROM BOLETO B ")
sql.append(" b.NUMASIENTO as assento, "); .append("INNER JOIN OCD OCD ON OCD.BOLETO_ID = B.BOLETO_ID ")
sql.append(" c.CAJA_ID as caja_id, "); .append("INNER JOIN MARCA M ON M.MARCA_ID = B.MARCA_ID ")
sql.append(" b.boletooriginal_id, "); .append("INNER JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID ")
sql.append(" b.boleto_id, "); .append("WHERE OCD.FECINC BETWEEN :dataInicial AND :dataFinal ")
sql.append("(COALESCE(c.preciopagado,0) + COALESCE(c.importeoutros,0) + COALESCE(c.importepedagio,0) + COALESCE(c.importeseguro,0) + COALESCE(c.importetaxaembarque,0)) AS valorCompra "); .append("AND B.PTOVTAVENTA_ID = ");
sql.append("FROM CAJA c ");
sql.append("INNER JOIN BOLETO b ON c.numoperacion = b.numoperacion ");
sql.append(" AND c.feccorrida = b.feccorrida ");
sql.append(" AND c.corrida_id = b.corrida_id ");
sql.append("INNER JOIN OCD ocd ON ocd.BOLETO_ID = b.BOLETO_ID ");
sql.append("INNER JOIN MARCA m ON m.marca_id = b.marca_id ");
sql.append("INNER JOIN EMPRESA e ON e.empresa_id = m.empresa_id ");
sql.append("WHERE ocd.FECINC BETWEEN :dataInicial AND :dataFinal ");
sql.append("AND b.puntoventa_id = ");
Constante constante = constanteService.buscarPorNomeConstante("PUNTO_VENTA_J3"); Constante constante = constanteService.buscarPorNomeConstante("PUNTO_VENTA_J3");
if(constante != null if(constante != null
&& constante.getActivo() && constante.getActivo()
&& constante.getValorconstante() != null && constante.getValorconstante() != null
&& !constante.getValorconstante().isEmpty()){ && !constante.getValorconstante().isEmpty()){
sql.append(constante.getValorconstante() + " "); sql.append(constante.getValorconstante())
.append(" ");
}else{ }else{
sql.append("99999 "); sql.append("99999 ");
} }
if (parametros.get("EMPRESA_ID") != null) { if (parametros.get("EMPRESA_ID") != null) {
sql.append(" AND e.empresa_id = " + parametros.get("EMPRESA_ID")); sql.append(" AND E.EMPRESA_ID = " + parametros.get("EMPRESA_ID"));
} }
sql.append("),");
sql.append("ocds_total_compra AS ");
sql.append("(SELECT c.numoperacion AS numoperacion_cc, ");
sql.append("(SUM(COALESCE(c.preciopagado,0) ");
sql.append("+ COALESCE(c.importeoutros,0) ");
sql.append("+ COALESCE(c.importepedagio,0) ");
sql.append("+ COALESCE(c.importeseguro,0) ");
sql.append("+ COALESCE(c.importetaxaembarque,0) ");
sql.append("+ COALESCE(e.impingreso,0))) ");
sql.append("+ ");
sql.append("COALESCE((SELECT ");
sql.append("SUM(COALESCE(c2.preciopagado,0) ");
sql.append("+ COALESCE(c2.importeoutros,0) ");
sql.append("+ COALESCE(c2.importepedagio,0) ");
sql.append("+ COALESCE(c2.importeseguro,0) ");
sql.append("+ COALESCE(c2.importetaxaembarque,0) ");
sql.append("+ COALESCE(e2.impingreso,0)) ");
sql.append("FROM CAJA c2 ");
sql.append("INNER JOIN BOLETO b ON c2.numoperacion = b.numoperacion ");
sql.append(" AND c2.feccorrida = b.feccorrida ");
sql.append(" AND c2.corrida_id = b.corrida_id ");
sql.append("LEFT JOIN evento_extra e2 ON e2.boleto_id = b.boleto_id ");
sql.append(" AND e2.impingreso > 0 ");
sql.append("LEFT JOIN OCD ocd ON ocd.BOLETO_ID = b.BOLETO_ID ");
sql.append(" WHERE c2.numoperacion = c.numoperacion ");
sql.append(" AND ocd.OCD_ID is null),0) ");
sql.append("AS valorTotalCompra ");
sql.append("FROM CAJA c ");
sql.append("INNER JOIN OCD_TEMP o ON c.caja_id = o.caja_id ");
sql.append("LEFT JOIN evento_extra e ON e.boleto_id = ");
sql.append("( ");
sql.append("CASE ");
sql.append("WHEN o.boletooriginal_id IS NULL ");
sql.append("THEN o.boleto_id ");
sql.append("ELSE o.boletooriginal_id ");
sql.append(" END) ");
sql.append("AND e.impingreso > 0 ");
sql.append("GROUP BY c.numoperacion ");
sql.append(") ");
sql.append("SELECT * FROM OCD_TEMP ocd_temp ");
sql.append("INNER JOIN ocds_total_compra ocdst ");
sql.append("ON ocd_temp.localizador = ocdst.numoperacion_cc ");
return sql.toString(); return sql.toString();
} }

View File

@ -13,15 +13,15 @@ cabecalho.filtros=Filtros:
#Labels header #Labels header
label.empresa=Empresa label.empresa=Empresa
label.dataSolicitacaoCliente=Data Solcitação Cliente label.dataSolicitacaoCliente=Dt Soli. Cliente
label.nomePassageiro=Nome do Passageiro label.nomePassageiro=Passageiro
label.dataCompra=Data da Compra label.dataCompra=Dt Compra
label.numeroPassagem=Nº Passagem label.numeroPassagem=Nº Passagem
label.localizador=Localizador label.localizador=Localizador
label.dataViagem=Data da Viagem label.dataViagem=Dt/Hr Viagem
label.horarioViagem=Horário da Viagem label.horarioViagem=Hr Viagem
label.servico=Serviço label.servico=Serviço
label.assento=Assento label.assento=Pol.
label.valorCompra = Valor da Compra label.valorCompra = Valor da Compra
label.valorTotalCompra=Valor Total da Compra label.valorTotalCompra=Vlr Compra
label.valorASerRestituido=Valor a ser Restituído label.valorASerRestituido=Vlr Restituição

View File

@ -13,15 +13,15 @@ cabecalho.filtros=Filtros:
#Labels header #Labels header
label.empresa=Empresa label.empresa=Empresa
label.dataSolicitacaoCliente=Data Solcitação Cliente label.dataSolicitacaoCliente=Dt Soli. Cliente
label.nomePassageiro=Nome do Passageiro label.nomePassageiro=Passageiro
label.dataCompra=Data da Compra label.dataCompra=Dt Compra
label.numeroPassagem=Nº Passagem label.numeroPassagem=Nº Passagem
label.localizador=Localizador label.localizador=Localizador
label.dataViagem=Data da Viagem label.dataViagem=Dt/Hr Viagem
label.horarioViagem=Horário da Viagem label.horarioViagem=Hr Viagem
label.servico=Serviço label.servico=Serviço
label.assento=Assento label.assento=Pol.
label.valorCompra = Valor da Compra label.valorCompra = Valor da Compra
label.valorTotalCompra=Valor Total da Compra label.valorTotalCompra=Vlr Compra
label.valorASerRestituido=Valor a ser Restituído label.valorASerRestituido=Vlr Restituição

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?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="RelatorioCancelamentoTransacao" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021"> <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="RelatorioCancelamentoTransacao" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="1.2100000000000046"/> <property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="47"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
@ -31,7 +31,7 @@
<pageHeader> <pageHeader>
<band height="76" splitType="Stretch"> <band height="76" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="0" y="0" width="457" height="35" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="0" y="0" width="457" height="35" forecolor="#000000" backcolor="#FFFFFF" uuid="136a5066-d141-4362-af36-0780f0d16542"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -39,7 +39,7 @@
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="3dca1764-758d-4e1c-80c0-85cc02e47813" mode="Transparent" x="0" y="42" width="46" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="0" y="42" width="46" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="3dca1764-758d-4e1c-80c0-85cc02e47813"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -47,7 +47,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="8948c0fc-e878-45e2-8505-7934add98ab9" mode="Transparent" x="116" y="42" width="10" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="116" y="42" width="10" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="8948c0fc-e878-45e2-8505-7934add98ab9"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -55,7 +55,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587" mode="Transparent" x="46" y="42" width="62" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="46" y="42" width="62" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -63,7 +63,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="64632058-9466-479c-ae28-0a11c9ed2c7f" mode="Transparent" x="132" y="42" width="62" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="132" y="42" width="62" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="64632058-9466-479c-ae28-0a11c9ed2c7f"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -71,14 +71,14 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="615" y="0" width="100" height="25"/> <reportElement x="615" y="0" width="100" height="25" uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9" mode="Transparent" x="715" y="0" width="86" height="25" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="715" y="0" width="86" height="25" forecolor="#000000" backcolor="#FFFFFF" uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -86,7 +86,7 @@
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="668" y="26" width="112" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="668" y="26" width="112" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -94,7 +94,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField> </textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false"> <textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="781" y="26" width="20" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="781" y="26" width="20" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="314e312c-8f24-42de-8354-3c1f7241a985"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -102,7 +102,7 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="701" y="42" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="701" y="42" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4e030613-9cee-443e-9eaa-b19fa3090976"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -110,7 +110,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="59" width="801" height="14"/> <reportElement x="0" y="59" width="801" height="14" uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda"/>
<box> <box>
<topPen lineWidth="1.0"/> <topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/>
@ -127,7 +127,7 @@
<columnHeader> <columnHeader>
<band height="21" splitType="Stretch"> <band height="21" splitType="Stretch">
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement uuid="337f441e-ca7f-402c-8407-f3406ec2b4b0" x="2" y="0" width="66" height="18" isPrintWhenDetailOverflows="true"/> <reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="66" height="18" isPrintWhenDetailOverflows="true" uuid="337f441e-ca7f-402c-8407-f3406ec2b4b0"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -136,8 +136,8 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="0ddedacd-7ebc-4aa7-9535-2f5695ee9c8c" x="523" y="0" width="34" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="521" y="0" width="52" height="18" isPrintWhenDetailOverflows="true" uuid="0ddedacd-7ebc-4aa7-9535-2f5695ee9c8c"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -146,18 +146,8 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.servico}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.servico}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="8506ac47-d72f-4ef5-b53a-da3970fb7edc" x="453" y="0" width="70" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="438" y="0" width="83" height="18" isPrintWhenDetailOverflows="true" uuid="859d4892-377e-4313-8a88-6454a88ce936"/>
<box>
<bottomPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.horarioViagem}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="859d4892-377e-4313-8a88-6454a88ce936" x="392" y="0" width="61" height="18"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -166,8 +156,8 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="d9a2225c-8883-4a35-9c16-8af9bcfe6577" x="233" y="0" width="61" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="241" y="0" width="68" height="18" isPrintWhenDetailOverflows="true" uuid="d9a2225c-8883-4a35-9c16-8af9bcfe6577"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -176,8 +166,8 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.dataCompra}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataCompra}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
<reportElement uuid="0583701e-920a-473b-b1e4-6137f8d022df" mode="Transparent" x="126" y="0" width="107" height="18" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="126" y="0" width="115" height="18" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0583701e-920a-473b-b1e4-6137f8d022df"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -187,8 +177,8 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.nomePassageiro}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.nomePassageiro}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="82e75550-fae7-4cea-acf9-f9f56f083400" x="557" y="0" width="33" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="573" y="0" width="33" height="18" isPrintWhenDetailOverflows="true" uuid="82e75550-fae7-4cea-acf9-f9f56f083400"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -197,8 +187,8 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.assento}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.assento}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
<reportElement uuid="f9ea7239-48e1-4207-b957-dc4aadcaa590" mode="Transparent" x="68" y="0" width="58" height="18" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="68" y="0" width="58" height="18" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="f9ea7239-48e1-4207-b957-dc4aadcaa590"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -208,28 +198,28 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.dataSolicitacaoCliente}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataSolicitacaoCliente}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="80e816ef-5cd3-40f5-a4a3-889987dd4809" x="635" y="0" width="86" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="662" y="0" width="70" height="18" isPrintWhenDetailOverflows="true" uuid="80e816ef-5cd3-40f5-a4a3-889987dd4809"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
<textElement textAlignment="Center" verticalAlignment="Top"> <textElement textAlignment="Right" verticalAlignment="Top">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.valorTotalCompra}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.valorTotalCompra}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="c6bbe161-315b-43a3-bc6d-bd1ebad05d0a" x="721" y="0" width="81" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="732" y="0" width="70" height="18" isPrintWhenDetailOverflows="true" uuid="c6bbe161-315b-43a3-bc6d-bd1ebad05d0a"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
<textElement textAlignment="Center" verticalAlignment="Top"> <textElement textAlignment="Right" verticalAlignment="Top">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.valorASerRestituido}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.valorASerRestituido}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="876fa163-5ff5-4eef-b32c-0f5b6b40672c" x="294" y="0" width="50" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="309" y="0" width="62" height="18" isPrintWhenDetailOverflows="true" uuid="876fa163-5ff5-4eef-b32c-0f5b6b40672c"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -238,8 +228,8 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.numeroPassagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.numeroPassagem}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="77a2f088-9771-472c-bffe-cd1345050e51" x="344" y="0" width="48" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="371" y="0" width="67" height="18" isPrintWhenDetailOverflows="true" uuid="77a2f088-9771-472c-bffe-cd1345050e51"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
@ -248,12 +238,12 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.localizador}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.localizador}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true">
<reportElement uuid="2daa8450-9151-4464-abd8-29d744df1e26" x="590" y="0" width="45" height="18"/> <reportElement stretchType="RelativeToTallestObject" x="606" y="0" width="56" height="18" isPrintWhenDetailOverflows="true" uuid="2daa8450-9151-4464-abd8-29d744df1e26"/>
<box> <box>
<bottomPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/>
</box> </box>
<textElement textAlignment="Center" verticalAlignment="Top"> <textElement textAlignment="Right" verticalAlignment="Top">
<font size="6"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.valorCompra}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.valorCompra}]]></textFieldExpression>
@ -263,92 +253,85 @@
<detail> <detail>
<band height="10" splitType="Stretch"> <band height="10" splitType="Stretch">
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa" x="2" y="0" width="66" height="10" isPrintWhenDetailOverflows="true"/> <reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="66" height="10" isPrintWhenDetailOverflows="true" uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa"/>
<textElement textAlignment="Center" verticalAlignment="Top"> <textElement verticalAlignment="Top">
<font size="7" isBold="false" isItalic="false"/> <font size="7" isBold="false" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="df235806-d3f2-4ff7-bd90-9876dea444d7" x="68" y="0" width="58" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="68" y="0" width="58" height="10" isPrintWhenDetailOverflows="true" uuid="df235806-d3f2-4ff7-bd90-9876dea444d7"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{dataSolicitacaoCliente}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataSolicitacaoCliente}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="7f877f7d-2ddb-4f0d-81ef-80d86ae5bdad" x="126" y="0" width="107" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="126" y="0" width="115" height="10" isPrintWhenDetailOverflows="true" uuid="7f877f7d-2ddb-4f0d-81ef-80d86ae5bdad"/>
<textElement textAlignment="Center"> <textElement>
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{nomePassageiro}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{nomePassageiro}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="e09a8ac7-2a94-4703-9149-b1f867ebbbc8" x="233" y="0" width="61" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="241" y="0" width="68" height="10" isPrintWhenDetailOverflows="true" uuid="e09a8ac7-2a94-4703-9149-b1f867ebbbc8"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{dataCompra}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataCompra}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="303a18c8-a019-4a40-bbf0-8c96967ed2d3" x="294" y="0" width="50" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="309" y="0" width="62" height="10" isPrintWhenDetailOverflows="true" uuid="303a18c8-a019-4a40-bbf0-8c96967ed2d3"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numeroPassagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numeroPassagem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="4fba79a9-5f29-44d3-a018-26e006559f84" x="344" y="0" width="48" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="371" y="0" width="67" height="10" isPrintWhenDetailOverflows="true" uuid="4fba79a9-5f29-44d3-a018-26e006559f84"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{localizador}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{localizador}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
<reportElement uuid="62488c65-3c3b-4e4a-a1d1-f695670378fe" x="392" y="0" width="61" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="438" y="0" width="83" height="10" isPrintWhenDetailOverflows="true" uuid="62488c65-3c3b-4e4a-a1d1-f695670378fe"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="HH:mm" isBlankWhenNull="true">
<reportElement uuid="5d727711-4ac3-48c0-8bba-ad89e805819a" x="453" y="0" width="70" height="10"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="783c8dd9-8948-410a-ac5a-838c00414a49" x="523" y="0" width="34" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="521" y="0" width="52" height="10" isPrintWhenDetailOverflows="true" uuid="783c8dd9-8948-410a-ac5a-838c00414a49"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="53a504d9-ee88-4c3f-8046-4263a85f9698" x="557" y="0" width="33" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="573" y="0" width="33" height="10" isPrintWhenDetailOverflows="true" uuid="53a504d9-ee88-4c3f-8046-4263a85f9698"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{assento}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{assento}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="d66fd8fb-02b5-4dca-8d9b-bd1bd4f6eb60" x="635" y="0" width="86" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="662" y="0" width="70" height="10" isPrintWhenDetailOverflows="true" uuid="d66fd8fb-02b5-4dca-8d9b-bd1bd4f6eb60"/>
<textElement textAlignment="Center"> <textElement textAlignment="Right">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{valorTotalCompra}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{valorTotalCompra}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="771ee060-8d92-4c58-9a46-20d65fe7a1ea" x="721" y="0" width="81" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="732" y="0" width="70" height="10" isPrintWhenDetailOverflows="true" uuid="771ee060-8d92-4c58-9a46-20d65fe7a1ea"/>
<textElement textAlignment="Center"> <textElement textAlignment="Right">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{valorASerRestituido}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{valorASerRestituido}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="a6c5fd31-a6fa-4c8a-98de-27ab2c6014be" x="590" y="0" width="45" height="10"/> <reportElement stretchType="RelativeToTallestObject" x="606" y="0" width="56" height="10" isPrintWhenDetailOverflows="true" uuid="a6c5fd31-a6fa-4c8a-98de-27ab2c6014be"/>
<textElement> <textElement textAlignment="Right">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{valorCompra}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{valorCompra}]]></textFieldExpression>
@ -361,7 +344,7 @@
<noData> <noData>
<band height="26"> <band height="26">
<textField> <textField>
<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="0" y="0" width="802" height="26"/> <reportElement x="0" y="0" width="802" height="26" uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83"/>
<textElement textAlignment="Center" markup="none"> <textElement textAlignment="Center" markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>