fixes bug#23436

qua:
dev:

Inserido o filtro de estado no relatorio

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@109160 d1611594-4594-4d17-8e1d-87c2c4800839
master
walace 2021-10-15 17:13:08 +00:00
parent f7a9416f2a
commit 256580db71
7 changed files with 144 additions and 58 deletions

View File

@ -48,8 +48,9 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
String linhaIds = parametros.get("linhaIds").toString(); String linhaIds = parametros.get("linhaIds").toString();
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : ""; String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
String codOrgaoConcedente = parametros.get("CodOrgaoConcedente").toString(); String codOrgaoConcedente = parametros.get("CodOrgaoConcedente").toString();
String estados = (String) parametros.get("ESTADOS_ID");
String sql = getSql(fecInicioVenda, fecFinalVenda, linhaIds, tipGratuIds, empresa, codOrgaoConcedente); String sql = getSql(fecInicioVenda, fecFinalVenda, linhaIds, tipGratuIds, empresa, codOrgaoConcedente, estados);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
@ -129,7 +130,7 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
bean.setEndereco(retornarPrimeiroEndereco(rset.getString("endereco"))); bean.setEndereco(retornarPrimeiroEndereco(rset.getString("endereco")));
bean.setDesistencia(rset.getBoolean("desistencia")); bean.setDesistencia(rset.getBoolean("desistencia"));
bean.setVlrGratuidade(rset.getBigDecimal("vlrGratuidade")); bean.setVlrGratuidade(rset.getBigDecimal("vlrGratuidade"));
bean.setChaveBPE(rset.getString("chaveBPE"));
lsDadosRelatorio.add(bean); lsDadosRelatorio.add(bean);
} }
@ -169,7 +170,7 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
protected void processaParametros() throws Exception { protected void processaParametros() throws Exception {
} }
private String getSql(String fecInicioVenda, String fecFinalVenda, String linha, String tipoGratu, String empresa, String codOrgaoConcedente) { private String getSql(String fecInicioVenda, String fecFinalVenda, String linha, String tipoGratu, String empresa, String codOrgaoConcedente, String estados) {
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
@ -207,7 +208,8 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append("THEN 1 ELSE 0 "); sql.append("THEN 1 ELSE 0 ");
sql.append("END AS DESISTENCIA, "); sql.append("END AS DESISTENCIA, ");
sql.append(" (COALESCE(T.PRECIO, 0) + COALESCE(T.IMPORTEPEDAGIO,0)) "); sql.append(" (COALESCE(T.PRECIO, 0) + COALESCE(T.IMPORTEPEDAGIO,0)) ");
sql.append("-(COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTEPEDAGIO,0)) AS vlrGratuidade "); sql.append("-(COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTEPEDAGIO,0)) AS vlrGratuidade, ");
sql.append(" bpe.chbpe as chaveBPE ");
sql.append("FROM BOLETO b "); sql.append("FROM BOLETO b ");
sql.append(" LEFT JOIN CAJA ON B.BOLETO_ID = CAJA.TRANSACAO_ID "); sql.append(" LEFT JOIN CAJA ON B.BOLETO_ID = CAJA.TRANSACAO_ID ");
sql.append("JOIN categoria ca ON b.categoria_id = ca.categoria_id "); sql.append("JOIN categoria ca ON b.categoria_id = ca.categoria_id ");
@ -224,6 +226,8 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append("JOIN ORGAO_EMP_PARAM O ON e.empresa_id = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID AND O.ACTIVO = 1 "); sql.append("JOIN ORGAO_EMP_PARAM O ON e.empresa_id = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID AND O.ACTIVO = 1 ");
sql.append("JOIN TARIFA T ON r.RUTA_ID = T.RUTA_ID AND b.ORIGEN_ID = T.ORIGEN_ID AND b.DESTINO_ID = T.DESTINO_ID AND b.CLASESERVICIO_ID = T.CLASESERVICIO_ID AND m.MARCA_ID = T.MARCA_ID AND oc.ORGAOCONCEDENTE_ID = T.ORGAOCONCEDENTE_ID AND T.TRAMO_ID=tr.TRAMO_ID and T.ACTIVO=1 "); sql.append("JOIN TARIFA T ON r.RUTA_ID = T.RUTA_ID AND b.ORIGEN_ID = T.ORIGEN_ID AND b.DESTINO_ID = T.DESTINO_ID AND b.CLASESERVICIO_ID = T.CLASESERVICIO_ID AND m.MARCA_ID = T.MARCA_ID AND oc.ORGAOCONCEDENTE_ID = T.ORGAOCONCEDENTE_ID AND T.TRAMO_ID=tr.TRAMO_ID and T.ACTIVO=1 ");
sql.append("JOIN VIGENCIA_TARIFA vt ON vt.VIGENCIATARIFA_ID = t.VIGENCIATARIFA_ID AND b.FECHORVIAJE BETWEEN vt.FECINICIOVIGENCIA AND vt.FECFINVIGENCIA "); sql.append("JOIN VIGENCIA_TARIFA vt ON vt.VIGENCIATARIFA_ID = t.VIGENCIATARIFA_ID AND b.FECHORVIAJE BETWEEN vt.FECINICIOVIGENCIA AND vt.FECFINVIGENCIA ");
sql.append(" left JOIN BPE bpe ON bpe.BOLETO_ID = b.BOLETO_ID and bpe.activo = 1 ");
sql.append(" LEFT JOIN estado e ON e.CODIBGE = bpe.UF ");
sql.append("WHERE b.fechorviaje BETWEEN to_date(:fecInicioVenda,'dd/mm/yyyy hh24:mi') AND to_date(:fecFinalVenda,'dd/mm/yyyy hh24:mi') "); sql.append("WHERE b.fechorviaje BETWEEN to_date(:fecInicioVenda,'dd/mm/yyyy hh24:mi') AND to_date(:fecFinalVenda,'dd/mm/yyyy hh24:mi') ");
sql.append("AND (b.MOTIVOCANCELACION_ID not in (4) or b.MOTIVOCANCELACION_ID is null) "); sql.append("AND (b.MOTIVOCANCELACION_ID not in (4) or b.MOTIVOCANCELACION_ID is null) ");
@ -242,6 +246,9 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
if(codOrgaoConcedente != null && Integer.valueOf(codOrgaoConcedente) > -1) { if(codOrgaoConcedente != null && Integer.valueOf(codOrgaoConcedente) > -1) {
sql.append(" AND OC.ORGAOCONCEDENTE_ID = :codOrgaoConcedente"); sql.append(" AND OC.ORGAOCONCEDENTE_ID = :codOrgaoConcedente");
} }
if (estados != null) {
sql.append(" AND e.ESTADO_ID IN ( " + estados + " )");
}
sql.append(" group by OC.DESCORGAO, O.CODEMPRESAPORORGAO, B.FECHORVIAJE, ca.desccategoria, "); sql.append(" group by OC.DESCORGAO, O.CODEMPRESAPORORGAO, B.FECHORVIAJE, ca.desccategoria, ");
sql.append(" ori.cveparada, ori.descparada, des.cveparada, B.NUMASIENTO, des.descparada, "); sql.append(" ori.cveparada, ori.descparada, des.cveparada, B.NUMASIENTO, des.descparada, ");
@ -249,7 +256,7 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append(" b.FECCORRIDA, COALESCE(c.numtelefono, CAJA.DESCTELEFONO), c.DESCCORREO, CASE WHEN b.DESCNUMDOC IS NOT NULL THEN b.DESCNUMDOC ELSE c.NUMIDENTIFICAUNO END, "); sql.append(" b.FECCORRIDA, COALESCE(c.numtelefono, CAJA.DESCTELEFONO), c.DESCCORREO, CASE WHEN b.DESCNUMDOC IS NOT NULL THEN b.DESCNUMDOC ELSE c.NUMIDENTIFICAUNO END, ");
sql.append(" b.NUMFOLIOSISTEMA, CASE WHEN b.DESCNUMDOC2 IS NOT NULL THEN b.DESCNUMDOC2 ELSE c.NUMIDENTIFICADOS END, b.NOMBPASAJERO, b.NUMIDENTIFICACION, T.PRECIO, b.PRECIOPAGADO, b.descorgaodoc, r.PREFIXO, B.MOTIVOCANCELACION_ID, "); sql.append(" b.NUMFOLIOSISTEMA, CASE WHEN b.DESCNUMDOC2 IS NOT NULL THEN b.DESCNUMDOC2 ELSE c.NUMIDENTIFICADOS END, b.NOMBPASAJERO, b.NUMIDENTIFICACION, T.PRECIO, b.PRECIOPAGADO, b.descorgaodoc, r.PREFIXO, B.MOTIVOCANCELACION_ID, ");
sql.append(" T.IMPORTEOUTROS, T.IMPORTEPEDAGIO, T.IMPORTESEGURO, T.IMPORTETAXAEMBARQUE, T.IMPORTETPP, b.descorgaodoc, "); sql.append(" T.IMPORTEOUTROS, T.IMPORTEPEDAGIO, T.IMPORTESEGURO, T.IMPORTETAXAEMBARQUE, T.IMPORTETPP, b.descorgaodoc, ");
sql.append(" b.IMPORTECATEGORIA, b.IMPORTEOUTROS, b.IMPORTEPEDAGIO, b.IMPORTESEGURO, b.IMPORTETAXAEMBARQUE, b.IMPORTETPP "); sql.append(" b.IMPORTECATEGORIA, b.IMPORTEOUTROS, b.IMPORTEPEDAGIO, b.IMPORTESEGURO, b.IMPORTETAXAEMBARQUE, b.IMPORTETPP, bpe.chbpe ");
sql.append(" ORDER BY OC.DESCORGAO, O.CODEMPRESAPORORGAO, b.FECHORVIAJE, descorigem, descdestino "); sql.append(" ORDER BY OC.DESCORGAO, O.CODEMPRESAPORORGAO, b.FECHORVIAJE, descorigem, descdestino ");
return sql.toString(); return sql.toString();

View File

@ -35,4 +35,5 @@ detail.telEmail=Tel/\nE-mail
detail.desistencia=Houve Desistência? detail.desistencia=Houve Desistência?
detail.gratuidade=Valor Gratuidade concedida detail.gratuidade=Valor Gratuidade concedida
detail.total=Total detail.total=Total
detail.chaveBPE=Chave BPE

View File

@ -1,8 +1,8 @@
<?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="RelatorioGratuidadeARTESP" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="822" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" uuid="3ee05e26-199e-4ad2-a96b-dd421627aceb"> <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="RelatorioGratuidadeARTESP" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="822" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" uuid="3ee05e26-199e-4ad2-a96b-dd421627aceb">
<property name="ireport.zoom" value="1.2396694214876045"/> <property name="ireport.zoom" value="5.696247503748627"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="3538"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="834"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/> <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.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/> <property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
@ -33,70 +33,82 @@
<field name="desistencia" class="java.lang.Boolean"/> <field name="desistencia" class="java.lang.Boolean"/>
<field name="vlrGratuidade" class="java.math.BigDecimal"/> <field name="vlrGratuidade" class="java.math.BigDecimal"/>
<field name="ufOrgaoDoc" class="java.lang.String"/> <field name="ufOrgaoDoc" class="java.lang.String"/>
<field name="chaveBPE" class="java.lang.String"/>
<title> <title>
<band height="136"> <band height="136">
<textField> <textField>
<reportElement x="0" y="0" width="614" height="37" uuid="8c77b68e-7c9d-4b71-8cc1-fbb6aaf36f9c"/> <reportElement uuid="8c77b68e-7c9d-4b71-8cc1-fbb6aaf36f9c" x="0" y="0" width="614" height="37"/>
<textElement markup="styled"> <textElement markup="styled">
<font size="22" isBold="true"/> <font size="22" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm"> <textField pattern="dd/MM/yyyy HH:mm">
<reportElement x="720" y="0" width="102" height="37" uuid="32538cdd-7697-4a03-8035-f9474e869395"/> <reportElement uuid="32538cdd-7697-4a03-8035-f9474e869395" x="720" y="0" width="102" height="37"/>
<textElement textAlignment="Left"/> <textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="614" y="0" width="106" height="37" uuid="abc399f3-d012-46aa-b4e9-678ab812bee4"/> <reportElement uuid="abc399f3-d012-46aa-b4e9-678ab812bee4" x="614" y="0" width="106" height="37"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="129" y="37" width="591" height="20" uuid="f25e6675-4dcb-4d37-8586-e50abe4013af"/> <reportElement uuid="f25e6675-4dcb-4d37-8586-e50abe4013af" x="129" y="37" width="591" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression> <textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="1" y="37" width="127" height="20" uuid="e15cecc4-995a-4cbc-934e-44970c809849"/> <reportElement uuid="e15cecc4-995a-4cbc-934e-44970c809849" x="1" y="37" width="127" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.periodo.viagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{header.periodo.viagem}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="2" y="96" width="127" height="20" isRemoveLineWhenBlank="true" uuid="234e6e88-b5a2-4793-a029-85f64b4cad85"/> <reportElement uuid="234e6e88-b5a2-4793-a029-85f64b4cad85" x="2" y="96" width="127" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.tipopassagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{header.tipopassagem}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="2" y="56" width="127" height="20" isRemoveLineWhenBlank="true" uuid="d3d41ddb-2dbb-4b0e-bf82-02af7f81b63f"/> <reportElement uuid="d3d41ddb-2dbb-4b0e-bf82-02af7f81b63f" x="2" y="56" width="127" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="129" y="116" width="591" height="20" isRemoveLineWhenBlank="true" uuid="c61794c6-537b-4cab-9a5c-41c3101cdaac"/> <reportElement uuid="c61794c6-537b-4cab-9a5c-41c3101cdaac" x="129" y="116" width="591" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$P{orgaoConcedente}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{orgaoConcedente}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="129" y="96" width="591" height="20" isRemoveLineWhenBlank="true" uuid="6b435ede-b8f2-46ee-8098-50d36c0d5e23"/> <reportElement uuid="6b435ede-b8f2-46ee-8098-50d36c0d5e23" x="129" y="96" width="591" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$P{tipGratu}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{tipGratu}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="2" y="116" width="127" height="20" isRemoveLineWhenBlank="true" uuid="7a4f4ad0-6b74-4194-b089-2bf61e0b7ce4"/> <reportElement uuid="7a4f4ad0-6b74-4194-b089-2bf61e0b7ce4" x="2" y="116" width="127" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.orgaoConcedente}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{header.orgaoConcedente}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="129" y="76" width="591" height="20" isRemoveLineWhenBlank="true" uuid="7bc881ef-b270-4178-8416-54ad2602eaab"/> <reportElement uuid="7bc881ef-b270-4178-8416-54ad2602eaab" x="129" y="76" width="591" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$P{linhas}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{linhas}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="129" y="56" width="591" height="20" isRemoveLineWhenBlank="true" uuid="33bc773a-8bd3-4bc0-946c-664d78a19f5c"/> <reportElement uuid="33bc773a-8bd3-4bc0-946c-664d78a19f5c" x="129" y="56" width="591" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$P{nomb_empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{nomb_empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="2" y="76" width="127" height="20" isRemoveLineWhenBlank="true" uuid="c3b8e525-e015-4aaa-a505-1a92f3d6b0fb"/> <reportElement uuid="c3b8e525-e015-4aaa-a505-1a92f3d6b0fb" x="2" y="76" width="127" height="20" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.filtro.linha}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{header.filtro.linha}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</title> </title>
<columnHeader> <columnHeader>
<band height="20"> <band height="26">
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="89" y="0" width="38" height="20" uuid="f1fb4c10-0b23-48a3-ab44-ec9423860a3a"/> <reportElement uuid="f1fb4c10-0b23-48a3-ab44-ec9423860a3a" stretchType="RelativeToBandHeight" x="89" y="0" width="38" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -108,7 +120,7 @@
<textFieldExpression><![CDATA[$R{detail.horaViagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.horaViagem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="42" height="20" uuid="aa6e1262-d10a-466f-9b10-736d01b43c08"/> <reportElement uuid="aa6e1262-d10a-466f-9b10-736d01b43c08" stretchType="RelativeToBandHeight" x="0" y="0" width="42" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -120,7 +132,7 @@
<textFieldExpression><![CDATA[$R{detail.empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.empresa}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="580" y="0" width="47" height="20" uuid="7cc48455-63db-458c-9a56-b479040b4d58"/> <reportElement uuid="7cc48455-63db-458c-9a56-b479040b4d58" stretchType="RelativeToBandHeight" x="580" y="0" width="47" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -132,7 +144,7 @@
<textFieldExpression><![CDATA[$R{detail.cpf}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.cpf}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="775" y="0" width="47" height="20" uuid="9156a7f6-7830-4dd0-aa56-8f98130e1fae"/> <reportElement uuid="9156a7f6-7830-4dd0-aa56-8f98130e1fae" stretchType="RelativeToBandHeight" x="775" y="0" width="47" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -145,7 +157,7 @@
<textFieldExpression><![CDATA[$R{detail.gratuidade}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.gratuidade}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="730" y="0" width="45" height="20" uuid="c95ac716-8516-4063-9409-d58b908e3deb"/> <reportElement uuid="c95ac716-8516-4063-9409-d58b908e3deb" stretchType="RelativeToBandHeight" x="730" y="0" width="45" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -157,7 +169,7 @@
<textFieldExpression><![CDATA[$R{detail.desistencia}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.desistencia}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="42" y="0" width="47" height="20" uuid="9ef59886-6218-4cf5-8926-f7f2e1e95cc6"/> <reportElement uuid="9ef59886-6218-4cf5-8926-f7f2e1e95cc6" stretchType="RelativeToBandHeight" x="42" y="0" width="47" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -169,7 +181,7 @@
<textFieldExpression><![CDATA[$R{detail.dataViagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.dataViagem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="397" y="0" width="98" height="20" uuid="d36987f3-20aa-4e3d-8bb6-5cacf23aa933"/> <reportElement uuid="d36987f3-20aa-4e3d-8bb6-5cacf23aa933" stretchType="RelativeToBandHeight" x="431" y="0" width="64" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -181,7 +193,7 @@
<textFieldExpression><![CDATA[$R{detail.nome}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.nome}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="324" y="0" width="37" height="20" uuid="86f8576e-d934-4f0d-9b87-4a40bef953ab"/> <reportElement uuid="86f8576e-d934-4f0d-9b87-4a40bef953ab" stretchType="RelativeToBandHeight" x="324" y="0" width="37" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -193,7 +205,7 @@
<textFieldExpression><![CDATA[$R{detail.linha}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.linha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="127" y="0" width="82" height="20" uuid="a1aab05d-496e-4fe5-9c2e-760b7592a7fd"/> <reportElement uuid="a1aab05d-496e-4fe5-9c2e-760b7592a7fd" stretchType="RelativeToBandHeight" x="127" y="0" width="82" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -205,7 +217,7 @@
<textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="209" y="0" width="82" height="20" uuid="7778d2ac-5f98-4955-9bbf-e474a1f16dad"/> <reportElement uuid="7778d2ac-5f98-4955-9bbf-e474a1f16dad" stretchType="RelativeToBandHeight" x="209" y="0" width="82" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -217,7 +229,7 @@
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="361" y="0" width="36" height="20" uuid="3eb6f2e7-2aad-4354-8cff-3938c90800ee"/> <reportElement uuid="3eb6f2e7-2aad-4354-8cff-3938c90800ee" stretchType="RelativeToBandHeight" x="361" y="0" width="36" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -229,7 +241,7 @@
<textFieldExpression><![CDATA[$R{detail.numBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.numBilhete}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="689" y="0" width="41" height="20" uuid="cc34f975-2571-4e38-b4ba-fa5ecbde208b"/> <reportElement uuid="cc34f975-2571-4e38-b4ba-fa5ecbde208b" stretchType="RelativeToBandHeight" x="689" y="0" width="41" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -241,7 +253,7 @@
<textFieldExpression><![CDATA[$R{detail.telEmail}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.telEmail}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="291" y="0" width="33" height="20" uuid="8aea1354-22f0-45a4-9382-21623ef9a45d"/> <reportElement uuid="8aea1354-22f0-45a4-9382-21623ef9a45d" stretchType="RelativeToBandHeight" x="291" y="0" width="33" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -253,7 +265,7 @@
<textFieldExpression><![CDATA[$R{detail.poltrona}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.poltrona}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="627" y="0" width="62" height="20" uuid="163e03ed-32b8-4b99-b62f-ad886ac2a8fa"/> <reportElement uuid="163e03ed-32b8-4b99-b62f-ad886ac2a8fa" stretchType="RelativeToBandHeight" x="627" y="0" width="62" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -265,7 +277,7 @@
<textFieldExpression><![CDATA[$R{detail.endereco}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.endereco}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="495" y="0" width="46" height="20" uuid="16db37b0-e079-4427-88f8-9b429db26ce3"/> <reportElement uuid="16db37b0-e079-4427-88f8-9b429db26ce3" stretchType="RelativeToBandHeight" x="495" y="0" width="46" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -277,7 +289,7 @@
<textFieldExpression><![CDATA[$R{detail.rg}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.rg}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="541" y="0" width="37" height="20" uuid="be434e4c-9dbc-435b-8177-f81919d62cd3"/> <reportElement uuid="be434e4c-9dbc-435b-8177-f81919d62cd3" stretchType="RelativeToBandHeight" x="541" y="0" width="37" height="26"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -288,12 +300,24 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{detail.ufOrgaoEmissor}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{detail.ufOrgaoEmissor}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="5927a461-f2bb-419b-a95c-33ba2cedd27e" stretchType="RelativeToBandHeight" x="397" y="0" width="34" height="26"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.chaveBPE}]]></textFieldExpression>
</textField>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="20" splitType="Prevent"> <band height="35" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="127" y="0" width="82" height="20" uuid="e91ddf3d-5ee2-42d3-b8d4-01c92a2f462a"/> <reportElement uuid="e91ddf3d-5ee2-42d3-b8d4-01c92a2f462a" stretchType="RelativeToTallestObject" x="127" y="0" width="82" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -305,7 +329,7 @@
<textFieldExpression><![CDATA[$F{descOrigem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descOrigem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="209" y="0" width="82" height="20" uuid="d9ec1d06-efc7-4a65-96a2-e88e89f4ca91"/> <reportElement uuid="d9ec1d06-efc7-4a65-96a2-e88e89f4ca91" stretchType="RelativeToTallestObject" x="209" y="0" width="82" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -317,7 +341,7 @@
<textFieldExpression><![CDATA[$F{descDestino}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descDestino}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="42" height="20" uuid="aeca5093-6645-4f7d-814f-48abec2773bc"/> <reportElement uuid="aeca5093-6645-4f7d-814f-48abec2773bc" stretchType="RelativeToTallestObject" x="0" y="0" width="42" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -329,7 +353,7 @@
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="42" y="0" width="47" height="20" uuid="6a5746f1-e112-4ea2-ac52-f3c4bf6f7c96"/> <reportElement uuid="6a5746f1-e112-4ea2-ac52-f3c4bf6f7c96" stretchType="RelativeToTallestObject" x="42" y="0" width="47" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -341,7 +365,7 @@
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="89" y="0" width="38" height="20" uuid="1ae38af7-3815-4fc0-ba8c-a87f6a26914a"/> <reportElement uuid="1ae38af7-3815-4fc0-ba8c-a87f6a26914a" stretchType="RelativeToTallestObject" x="89" y="0" width="38" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -353,7 +377,7 @@
<textFieldExpression><![CDATA[$F{horaViagem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{horaViagem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="324" y="0" width="37" height="20" uuid="bde0e80b-872a-4b26-b882-83efc01c25b7"/> <reportElement uuid="bde0e80b-872a-4b26-b882-83efc01c25b7" stretchType="RelativeToTallestObject" x="324" y="0" width="37" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -365,7 +389,7 @@
<textFieldExpression><![CDATA[$F{linha}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{linha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="291" y="0" width="33" height="20" uuid="7e10a3dc-7e63-49cf-ab5a-87bd2e7aa213"/> <reportElement uuid="7e10a3dc-7e63-49cf-ab5a-87bd2e7aa213" stretchType="RelativeToTallestObject" x="291" y="0" width="33" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -377,7 +401,7 @@
<textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="397" y="0" width="98" height="20" uuid="0803ee7f-f5d1-4cfb-8fe5-a6109922ab26"/> <reportElement uuid="0803ee7f-f5d1-4cfb-8fe5-a6109922ab26" stretchType="RelativeToTallestObject" x="431" y="0" width="64" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -389,7 +413,7 @@
<textFieldExpression><![CDATA[$F{nomeIdoso}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{nomeIdoso}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="495" y="0" width="46" height="20" uuid="0aeeb871-0a94-4ce7-97b6-892a7d138ed0"/> <reportElement uuid="0aeeb871-0a94-4ce7-97b6-892a7d138ed0" stretchType="RelativeToTallestObject" x="495" y="0" width="46" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -401,7 +425,7 @@
<textFieldExpression><![CDATA[$F{RG}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{RG}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="580" y="0" width="47" height="20" uuid="91a52282-d145-4f43-9d74-76d287e8969e"/> <reportElement uuid="91a52282-d145-4f43-9d74-76d287e8969e" stretchType="RelativeToTallestObject" x="580" y="0" width="47" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -413,7 +437,7 @@
<textFieldExpression><![CDATA[$F{CPF}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{CPF}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="627" y="0" width="62" height="20" uuid="483d506e-f7db-4e85-a83e-c63b75b19d1c"/> <reportElement uuid="483d506e-f7db-4e85-a83e-c63b75b19d1c" stretchType="RelativeToTallestObject" x="627" y="0" width="62" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -425,7 +449,7 @@
<textFieldExpression><![CDATA[$F{endereco}.equals(", -/") ? "" : $F{endereco}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{endereco}.equals(", -/") ? "" : $F{endereco}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="730" y="0" width="45" height="20" uuid="b95ba55d-899d-4143-bff4-25bdaa95ae12"/> <reportElement uuid="b95ba55d-899d-4143-bff4-25bdaa95ae12" stretchType="RelativeToTallestObject" x="730" y="0" width="45" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -437,7 +461,7 @@
<textFieldExpression><![CDATA[$F{desistencia} == true ? "SIM" : "NÃO"]]></textFieldExpression> <textFieldExpression><![CDATA[$F{desistencia} == true ? "SIM" : "NÃO"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="775" y="0" width="47" height="20" uuid="1d3977c6-190b-4465-a062-40bed4826c84"/> <reportElement uuid="1d3977c6-190b-4465-a062-40bed4826c84" stretchType="RelativeToTallestObject" x="775" y="0" width="47" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -450,7 +474,7 @@
<textFieldExpression><![CDATA[$F{vlrGratuidade}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{vlrGratuidade}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="361" y="0" width="36" height="20" uuid="e4dc6a7f-049d-45e1-9c6d-231303fb288c"/> <reportElement uuid="e4dc6a7f-049d-45e1-9c6d-231303fb288c" stretchType="RelativeToTallestObject" x="361" y="0" width="36" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -462,7 +486,7 @@
<textFieldExpression><![CDATA[$F{numBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numBilhete}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="689" y="0" width="41" height="20" uuid="55fcebd5-d720-4f93-8295-964b2d79a213"/> <reportElement uuid="55fcebd5-d720-4f93-8295-964b2d79a213" stretchType="RelativeToTallestObject" x="689" y="0" width="41" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -477,7 +501,7 @@
? $F{email} : $F{tel}]]></textFieldExpression> ? $F{email} : $F{tel}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="541" y="0" width="37" height="20" uuid="02c27999-1a75-4530-bb30-75c2fb08e297"/> <reportElement uuid="02c27999-1a75-4530-bb30-75c2fb08e297" stretchType="RelativeToTallestObject" x="541" y="0" width="37" height="35"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/>
@ -488,12 +512,25 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{ufOrgaoDoc}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{ufOrgaoDoc}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="70436f30-bb72-41ae-bf1d-fd6b8d57d35d" stretchType="RelativeToTallestObject" x="397" y="0" width="34" height="35"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{chaveBPE}]]></textFieldExpression>
</textField>
</band> </band>
</detail> </detail>
<noData> <noData>
<band height="22"> <band height="22">
<textField> <textField>
<reportElement x="1" y="2" width="821" height="20" uuid="254c9278-71b2-4ffa-926c-5b0055e02cda"/> <reportElement uuid="254c9278-71b2-4ffa-926c-5b0055e02cda" x="1" y="2" width="821" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField> </textField>
</band> </band>

View File

@ -24,6 +24,7 @@ public class RelatorioGratuidadeARTESPBean {
private String email; private String email;
private Boolean desistencia; private Boolean desistencia;
private BigDecimal vlrGratuidade; private BigDecimal vlrGratuidade;
private String chaveBPE;
public String getEmpresa() { public String getEmpresa() {
@ -185,4 +186,13 @@ public class RelatorioGratuidadeARTESPBean {
public void setOrgao(String orgao) { public void setOrgao(String orgao) {
this.orgao = orgao; this.orgao = orgao;
} }
public String getChaveBPE() {
return chaveBPE;
}
public void setChaveBPE(String chaveBPE) {
this.chaveBPE = chaveBPE;
}
} }

View File

@ -21,17 +21,20 @@ import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Categoria; import com.rjconsultores.ventaboletos.entidad.Categoria;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente; import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import com.rjconsultores.ventaboletos.entidad.Ruta; import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioGratuidadeARTESP; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioGratuidadeARTESP;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.CategoriaService; import com.rjconsultores.ventaboletos.service.CategoriaService;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService; import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEstadoUf;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioLinhaHorario; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioLinhaHorario;
@Controller("relatorioGratuidadeARTESPController") @Controller("relatorioGratuidadeARTESPController")
@ -64,9 +67,12 @@ public class RelatorioGratuidadeARTESPController extends MyGenericForwardCompose
private MyListbox linhaList; private MyListbox linhaList;
private MyListbox linhaListSelList; private MyListbox linhaListSelList;
private MyListbox selectedTipoGratuidadeList; private MyListbox selectedTipoGratuidadeList;
private MyListbox estadoList;
private List<Categoria> listSelectedTipoGratuidade; private List<Categoria> listSelectedTipoGratuidade;
private static Logger log = Logger.getLogger(RelatorioGratuidadeARTESPController.class); private static Logger log = Logger.getLogger(RelatorioGratuidadeARTESPController.class);
@Autowired
private EstadoService estadoService;
public void onClick$btnRemoveTipoGratuidade(Event ev) throws InterruptedException { public void onClick$btnRemoveTipoGratuidade(Event ev) throws InterruptedException {
Categoria categoria = (Categoria) selectedTipoGratuidadeList.getSelectedItem().getValue(); Categoria categoria = (Categoria) selectedTipoGratuidadeList.getSelectedItem().getValue();
@ -213,6 +219,22 @@ public class RelatorioGratuidadeARTESPController extends MyGenericForwardCompose
parametros.put("TITULO", Labels.getLabel("relatorioGratuidadeARTESPController.window.title")); parametros.put("TITULO", Labels.getLabel("relatorioGratuidadeARTESPController.window.title"));
String estadosIds = "";
String UFs = "";
List<Object> lsEstadosSelecionados = estadoList.getItensSelecionados();
if (!lsEstadosSelecionados.isEmpty()) {
for (int i = 0; i < lsEstadosSelecionados.size(); i++) {
Estado estado = (Estado) lsEstadosSelecionados.get(i);
UFs = UFs + estado.getCveestado() + ",";
estadosIds = estadosIds + estado.getEstadoId() + ",";
}
estadosIds = estadosIds.substring(0, estadosIds.length() - 1);
UFs = UFs.substring(0, UFs.length() - 1);
parametros.put("ESTADOS_ID", estadosIds);
}
Relatorio relatorio = new RelatorioGratuidadeARTESP(parametros, dataSourceRead.getConnection()); Relatorio relatorio = new RelatorioGratuidadeARTESP(parametros, dataSourceRead.getConnection());
log.info("RELATORIO == NULL ? = " + relatorio == null); log.info("RELATORIO == NULL ? = " + relatorio == null);
@ -240,6 +262,8 @@ public class RelatorioGratuidadeARTESPController extends MyGenericForwardCompose
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario()); linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario()); linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
estadoList.setItemRenderer(new RenderEstadoUf());
estadoList.setData(estadoService.obtenerTodos());
} }
public List<Categoria> getLsCategorias() { public List<Categoria> getLsCategorias() {

View File

@ -7,7 +7,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul"> <zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioGratuidadeARTESP" <window id="winFiltroRelatorioGratuidadeARTESP"
apply="${relatorioGratuidadeARTESPController}" apply="${relatorioGratuidadeARTESPController}"
contentStyle="overflow:auto" height="435px" width="550px" contentStyle="overflow:auto" height="600px" width="550px"
border="normal"> border="normal">
<grid fixedLayout="true"> <grid fixedLayout="true">
@ -47,7 +47,14 @@
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioGratuidadeARTESP$composer.lsEmpresas}" /> model="@{winFiltroRelatorioGratuidadeARTESP$composer.lsEmpresas}" />
</row> </row>
<row spans="1, 3">
<label
value="${c:l('relatorioBPeController.lbUF.value')}" />
<listbox id="estadoList" rows="10" vflex="false"
width="90%" multiple="true" checkmark="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
</listbox>
</row>
<row> <row>
<label <label
value="${c:l('relatorioGratuidadeARTESPController.lbLinha.value')}" /> value="${c:l('relatorioGratuidadeARTESPController.lbLinha.value')}" />