fabio 2018-01-25 20:14:21 +00:00
parent 6765412815
commit 4338fd05f9
3 changed files with 35 additions and 12 deletions

View File

@ -1,21 +1,20 @@
<?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="RelatorioGratuidadeANTT" pageWidth="900" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="880" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" resourceBundle="RelatorioEmpresaCorrida" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
<property name="ireport.zoom" value="1.36602691073015"/>
<property name="ireport.x" value="173"/>
<property name="ireport.y" value="9"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<style name="Crosstab Data Text" hAlign="Center"/>
<parameter name="NOMBEMPRESA" class="java.lang.String"/>
<parameter name="USUARIO_ID" class="java.lang.String"/>
<parameter name="LINHA_FILTRO" class="java.lang.String"/>
<parameter name="SERVICO_FILTRO" class="java.lang.String"/>
<parameter name="linhas" class="java.lang.String"/>
<parameter name="TITULO" class="java.lang.String"/>
<parameter name="fecInicioVenda" class="java.lang.String"/>
<parameter name="fecFinalVenda" class="java.lang.String"/>
<parameter name="nomb_empresa" class="java.lang.String"/>
<parameter name="tipGratu" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
@ -30,7 +29,7 @@
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="63">
<band height="117">
<textField>
<reportElement x="0" y="0" width="633" height="37" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
<textElement>
@ -43,12 +42,12 @@
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="811" y="37" width="30" height="23" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
<reportElement x="811" y="37" width="30" height="20" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="739" y="37" width="39" height="23" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
<reportElement x="739" y="37" width="39" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
@ -57,18 +56,42 @@
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="778" y="37" width="33" height="23" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
<reportElement x="778" y="37" width="33" height="20" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="37" width="82" height="21" uuid="a79c03e0-bbe4-4b1c-8297-533a0d137b27"/>
<reportElement x="0" y="37" width="82" height="20" uuid="a79c03e0-bbe4-4b1c-8297-533a0d137b27"/>
<textFieldExpression><![CDATA[$R{header.periodo.venda}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="82" y="37" width="232" height="21" uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335"/>
<reportElement x="82" y="37" width="657" height="20" uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335"/>
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression>
</textField>
<textField>
<reportElement x="82" y="57" width="657" height="20" isRemoveLineWhenBlank="true" uuid="31b4831f-a97b-44a1-a30f-ba93c667fa81"/>
<textFieldExpression><![CDATA[$P{nomb_empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="57" width="82" height="20" isRemoveLineWhenBlank="true" uuid="2226c319-6b38-446a-ba1f-22821d110257"/>
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="82" y="77" width="657" height="20" isRemoveLineWhenBlank="true" uuid="c9e03941-ee3e-48a7-89b1-8d54a16967b8"/>
<textFieldExpression><![CDATA[$P{linhas}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="77" width="82" height="20" isRemoveLineWhenBlank="true" uuid="3ba8d3a4-fbf1-463f-adf1-84be528e61e1"/>
<textFieldExpression><![CDATA[$R{header.filtro.linha}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="82" y="97" width="657" height="20" isRemoveLineWhenBlank="true" uuid="0c888f33-c387-443c-a975-c1b99e3a615e"/>
<textFieldExpression><![CDATA[$P{tipGratu}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="97" width="82" height="20" isRemoveLineWhenBlank="true" uuid="fcf5c596-7687-4796-ba34-5d0d394733de"/>
<textFieldExpression><![CDATA[$R{detail.tipopassagem}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>

View File

@ -188,7 +188,7 @@ public class RelatorioGratuidadeANTTController extends MyGenericForwardComposer
parametros.put("nomb_empresa", ((Empresa) cmbEmpresa.getSelectedItem().getValue()).getNombempresa());
}else{
parametros.put("nomb_empresa", "TODAS" );
parametros.put("nomb_empresa", "Todas" );
}
parametros.put("TITULO", Labels.getLabel("relatorioGratuidadeANTTController.window.title"));