Novo layout relatorio forma pagamento feat bug #AL-3565
parent
8e7b2b930f
commit
ee00563bc9
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.48.6</version>
|
||||
<version>1.49.0</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -0,0 +1,116 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
public class RelatorioFormaPagamentoAgenciaNovo extends RelatorioDemandas {
|
||||
public RelatorioFormaPagamentoAgenciaNovo(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
Date dataInicial = (Date) parametros.get("DATA_INICIAL");
|
||||
Date dataFinal = (Date) parametros.get("DATA_FINAL");
|
||||
Integer empresa = (Integer) parametros.get("EMPRESA");
|
||||
Integer agencia = (Integer) parametros.get("AGENCIA");
|
||||
Short formaPagoId = (Short) parametros.get("FORMA_PAGO");
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append(" SELECT " );
|
||||
sql.append(" c.fechorventa AS data, " );
|
||||
sql.append(" c.numfoliosistema AS bilhete, " );
|
||||
sql.append(" pv.nombpuntoventa AS agencia, " );
|
||||
sql.append(" p_origen.CVEPARADA AS origem , " );
|
||||
sql.append(" p_destino.CVEPARADA AS destino, " );
|
||||
sql.append(" fp.descpago AS forma_pagamento, " );
|
||||
sql.append(" coalesce(c.preciopagado, 0) AS tarifa, " );
|
||||
sql.append(" coalesce(c.importepedagio, 0) AS pedagio, " );
|
||||
sql.append(" coalesce(c.importeseguro, 0) AS seguro, " );
|
||||
sql.append(" coalesce(c.importetaxaembarque, 0) AS taxa, " );
|
||||
sql.append(" coalesce(cfp.importe, 0) AS valor, " );
|
||||
sql.append(" coalesce(seg.valor, 0) AS seg_opcional " );
|
||||
sql.append(" FROM " );
|
||||
sql.append(" caja c " );
|
||||
sql.append(" JOIN caja_formapago cfp ON c.caja_id = cfp.caja_id " );
|
||||
sql.append(" JOIN forma_pago fp ON cfp.formapago_id = fp.formapago_id " );
|
||||
sql.append(" JOIN punto_venta pv ON pv.puntoventa_id = c.puntoventa_id " );
|
||||
sql.append(" JOIN marca m ON m.marca_id = c.marca_id AND m.activo = 1 " );
|
||||
sql.append(" JOIN parada p_origen ON p_origen.parada_id = c.origen_id " );
|
||||
sql.append(" JOIN parada p_destino ON p_destino.parada_id = c.destino_id " );
|
||||
sql.append(" LEFT JOIN segpolv seg ON c.transacao_id = seg.boleto_id " );
|
||||
sql.append(" WHERE " );
|
||||
sql.append(" c.activo = 1 " );
|
||||
sql.append(" AND c.indreimpresion = 0 " );
|
||||
sql.append(" AND c.fechorventa >= :dataInicial " );
|
||||
sql.append(" AND c.fechorventa <= :dataFinal " );
|
||||
|
||||
if (empresa != null) {
|
||||
sql.append(" AND c.empresa_id = :empresaId ");
|
||||
}
|
||||
|
||||
if (agencia != null) {
|
||||
sql.append(" AND c.puntoventa_id = :agenciaId ");
|
||||
}
|
||||
|
||||
if (formaPagoId != null) {
|
||||
sql.append(" AND cfp.FORMAPAGO_ID = :formaPagoId ");
|
||||
}
|
||||
|
||||
sql.append(" ORDER BY data, agencia, bilhete " );
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
stmt.setDate("dataInicial", new java.sql.Date(dataInicial.getTime()));
|
||||
stmt.setDate("dataFinal", new java.sql.Date(dataFinal.getTime()));
|
||||
|
||||
if (empresa != null) {
|
||||
stmt.setInt("empresaId", empresa);
|
||||
}
|
||||
|
||||
if (agencia != null) {
|
||||
stmt.setInt("agenciaId", agencia);
|
||||
}
|
||||
|
||||
if (formaPagoId != null ) {
|
||||
stmt.setInt("formapagoId", formaPagoId);
|
||||
}
|
||||
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("DATA", rset.getDate("data"));
|
||||
dataResult.put("BILHETE", rset.getString("bilhete"));
|
||||
dataResult.put("ORIGEM", rset.getString("ORIGEM"));
|
||||
dataResult.put("DESTINO", rset.getString("DESTINO"));
|
||||
dataResult.put("AGENCIA", rset.getString("agencia"));
|
||||
dataResult.put("FORMA_PAGAMENTO", rset.getString("forma_pagamento"));
|
||||
dataResult.put("TARIFA", rset.getBigDecimal("tarifa"));
|
||||
dataResult.put("PEDAGIO", rset.getBigDecimal("PEDAGIO"));
|
||||
dataResult.put("SEGURO", rset.getBigDecimal("SEGURO"));
|
||||
dataResult.put("SEG_OPCIONAL", rset.getBigDecimal("seg_opcional"));
|
||||
dataResult.put("TAXA", rset.getBigDecimal("taxa"));
|
||||
dataResult.put("VALOR", rset.getBigDecimal("valor"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
TITULO = Relatório de Forma de Pagamento por Agência
|
||||
PERIODO = PERÍODO
|
||||
header.data.hora=Data/Hora\:
|
||||
cabecalho.impressorPor=Impresso por
|
||||
|
||||
DATA = DATA
|
||||
AGENCIA = AGÊNCIA:
|
||||
FORMA_PAG = FORMA DE PAG.
|
||||
VALOR = TARIFA
|
||||
PEDAGIO = PEDÁGIO
|
||||
SEGURO = SEGURO
|
||||
SEGURO_OPCIONAL = SEG. OPCI.
|
||||
TAXAS = TAXAS
|
||||
TOTAL = TOTAL
|
||||
BILHETE = BILHETE
|
||||
ORIGEM = ORIGEM
|
||||
DESTINO = DESTINO
|
||||
TOTAL_GERAL = Total Geral:
|
||||
TOTAL_PV = Total Agência:
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impresso por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
|
@ -0,0 +1,31 @@
|
|||
TITULO = Relatório de Forma de Pagamento por Agência
|
||||
PERIODO = PERÍODO
|
||||
header.data.hora=Data/Hora\:
|
||||
cabecalho.impressorPor=Impresso por
|
||||
|
||||
DATA = DATA
|
||||
AGENCIA = AGÊNCIA:
|
||||
FORMA_PAG = FORMA DE PAG.
|
||||
VALOR = TARIFA
|
||||
PEDAGIO = PEDÁGIO
|
||||
SEGURO = SEGURO
|
||||
SEGURO_OPCIONAL = SEG. OPCI.
|
||||
TAXAS = TAXAS
|
||||
TOTAL = TOTAL
|
||||
BILHETE = BILHETE
|
||||
ORIGEM = ORIGEM
|
||||
DESTINO = DESTINO
|
||||
TOTAL_GERAL = Total Geral:
|
||||
TOTAL_PV = Total Agência:
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impresso por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
|
@ -9,7 +9,7 @@ FORMA_PAG = FORMA DE PAG.
|
|||
VALOR = TARIFA
|
||||
PEDAGIO = PEDÁGIO
|
||||
SEGURO = SEGURO
|
||||
SEGURO_OPCIONAL = SEGURO OPCIONAL
|
||||
SEGURO_OPCIONAL = SEG. OPCIO.
|
||||
TAXAS = TAXAS
|
||||
TOTAL = TOTAL
|
||||
QTDE = QTDE
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,582 @@
|
|||
<?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="RelatorioFormaPagamentoAgenciaNovo" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="832cc8a2-6330-4063-9b36-f96514ae8283">
|
||||
<property name="ireport.zoom" value="1.3310000000000064"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" 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="USUARIO" class="java.lang.String"/>
|
||||
<parameter name="USUARIO_ID" class="java.lang.String"/>
|
||||
<parameter name="FILTROS" class="java.lang.String"/>
|
||||
<queryString language="SQL">
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="DATA" class="java.util.Date"/>
|
||||
<field name="BILHETE" class="java.lang.String"/>
|
||||
<field name="ORIGEM" class="java.lang.String"/>
|
||||
<field name="DESTINO" class="java.lang.String"/>
|
||||
<field name="FORMA_PAGAMENTO" class="java.lang.String"/>
|
||||
<field name="AGENCIA" class="java.lang.String"/>
|
||||
<field name="TARIFA" class="java.math.BigDecimal"/>
|
||||
<field name="PEDAGIO" class="java.math.BigDecimal"/>
|
||||
<field name="SEGURO" class="java.math.BigDecimal"/>
|
||||
<field name="TAXA" class="java.math.BigDecimal"/>
|
||||
<field name="VALOR" class="java.math.BigDecimal"/>
|
||||
<field name="SEG_OPCIONAL" class="java.math.BigDecimal"/>
|
||||
<variable name="TOTAL_PEDAGIO" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{PEDAGIO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_SEGURO" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{SEGURO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_TAXA" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TAXA}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_VALOR" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{VALOR}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_TARIFA" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TARIFA}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_SEG_OPCIONAL" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{SEG_OPCIONAL}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="PV_PEDAGIO" class="java.math.BigDecimal" resetType="Group" resetGroup="agenciaGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{PEDAGIO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="PV_SEGURO" class="java.math.BigDecimal" resetType="Group" resetGroup="agenciaGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{SEGURO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="PV_TAXA" class="java.math.BigDecimal" resetType="Group" resetGroup="agenciaGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TAXA}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="PV_VALOR" class="java.math.BigDecimal" resetType="Group" resetGroup="agenciaGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{VALOR}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="PV_TARIFA" class="java.math.BigDecimal" resetType="Group" resetGroup="agenciaGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TARIFA}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="PV_SEG_OPCIONAL" class="java.math.BigDecimal" resetType="Group" resetGroup="agenciaGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{SEG_OPCIONAL}]]></variableExpression>
|
||||
</variable>
|
||||
<group name="agenciaGroup">
|
||||
<groupExpression><![CDATA[$F{AGENCIA}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="30">
|
||||
<textField>
|
||||
<reportElement uuid="29bb0167-21cd-401c-94d9-f94bb1e9b9e4" x="0" y="0" width="90" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<topPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab" stretchType="RelativeToTallestObject" x="90" y="0" width="711" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<topPen lineWidth="0.5"/>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="333a50a8-5d67-42b5-b3c6-2d70ceabfe25" x="0" y="15" width="100" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box leftPadding="4"/>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{DATA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="9457e696-5c75-4983-98c3-9dc4fc54e976" x="100" y="15" width="139" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{FORMA_PAG}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="ab54d7e9-29fd-42da-9721-07fe99bb8874" x="440" y="15" width="60" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{VALOR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="fafe4849-b6d5-4a20-ab2c-bb3551337bbd" x="500" y="15" width="60" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{PEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="52cf4306-6208-414e-8892-3085a69fa84a" x="560" y="15" width="60" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="be9f28a6-e16c-49af-a1ae-a806a4a835d8" x="680" y="15" width="60" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TAXAS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="218e15c9-18bd-4ec5-9ff1-36b5e016569e" x="740" y="15" width="60" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TOTAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="fd782db0-7497-4596-8ace-8adbd28b895a" x="620" y="15" width="60" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{SEGURO_OPCIONAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b079540d-5716-4af8-b64f-243e44fa6f93" x="239" y="15" width="67" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{BILHETE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="3240b389-a2bf-41c1-81c2-fcf8eb27104e" x="306" y="15" width="67" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{ORIGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="f9446aba-43e2-49cd-8321-4ccdde3d0c67" x="373" y="15" width="67" height="15">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{DESTINO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band height="15">
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="bea7b6c0-f9a0-485d-80bc-b7763bc4cf18" x="742" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PV_VALOR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="fb5086d4-e470-4db4-86f8-0c0ac2bd59e6" x="620" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PV_SEG_OPCIONAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="8490e6d1-a9a0-4ff2-937e-b8b369da4e2b" x="442" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PV_TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="ec1df278-6956-4237-a36b-8b84941bba30" x="502" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PV_PEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="b6bbd64a-9c36-432c-85b0-82f8d74fe69c" x="560" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PV_SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="3c596c44-6c41-4d89-a75f-d402a2534e3f" x="680" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PV_TAXA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b8884e47-037e-4e2f-a4ff-e0186a7aed3b" x="0" y="0" width="440" height="15"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TOTAL_PV}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<pageHeader>
|
||||
<band height="43">
|
||||
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
|
||||
<textField>
|
||||
<reportElement uuid="3152d9c0-592e-4136-b3d8-2a674e779468" mode="Opaque" x="0" y="16" width="59" height="16" backcolor="#FFFFFF">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="50b8071e-9e65-49d2-bd12-b9354502caf3" mode="Opaque" x="0" y="0" width="492" height="16" backcolor="#FFFFFF">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TITULO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="07dfa225-148c-4de6-a428-3c91f83c4081" stretchType="RelativeToTallestObject" mode="Opaque" x="59" y="16" width="573" height="15" backcolor="#FFFFFF">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
|
||||
<reportElement uuid="ca2c2d81-3bdc-4351-b3c5-3c8e492a9251" mode="Transparent" x="673" y="0" width="129" height="16" forecolor="#000000" backcolor="#FFFFFF">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="eb7f6343-8d88-47bc-ad23-92998f284670" x="492" y="0" width="181" height="16">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="20f88429-9716-45bb-8c22-b5c85b175bdf" mode="Transparent" x="632" y="16" width="139" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="5e1ad619-ea2d-41b4-ac61-1f3d750d4560" mode="Transparent" x="772" y="16" width="30" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<box leftPadding="2"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="3e7f1b34-a254-4931-a7d0-2a99f113d73f" stretchType="RelativeToBandHeight" mode="Transparent" x="562" y="31" width="239" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm:ss" isBlankWhenNull="true">
|
||||
<reportElement uuid="66455995-be07-4062-8234-ade8ccfd79c0" x="0" y="0" width="100" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box leftPadding="4"/>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="151a46f2-5c54-4a0e-91c2-a49986a08cff" stretchType="RelativeToTallestObject" x="100" y="0" width="139" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA[$F{FORMA_PAGAMENTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d2f490c1-e807-4243-a3e0-b86229a83c6b" x="440" y="0" width="60" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="dcb305f9-8649-4440-a485-4ada6876b066" x="740" y="0" width="60" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
<leftPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
<rightPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{VALOR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="a3119d26-2d10-40c5-98dc-bf0f6be3fc25" x="500" y="0" width="60" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="ccad4f84-243a-47cf-904a-15c4ba7feee4" x="560" y="0" width="60" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d098d054-0eef-474a-91d3-c7ea9090ab74" x="680" y="0" width="60" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{TAXA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="48f4dece-76dc-4445-89f3-73c0537c8bf9" x="620" y="0" width="60" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{SEG_OPCIONAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="112c980b-43f4-4335-b7e0-a94248f4f516" stretchType="RelativeToTallestObject" x="239" y="0" width="67" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA[$F{BILHETE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="58e6590f-61f3-4cbf-9c0b-326cc6880983" stretchType="RelativeToTallestObject" x="306" y="0" width="67" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="60440f04-2ec6-45eb-b332-5dc48c3b7154" stretchType="RelativeToTallestObject" x="373" y="0" width="67" height="15" isPrintWhenDetailOverflows="true">
|
||||
<property name="com.jaspersoft.studio.unit.height" value="px"/>
|
||||
</reportElement>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band/>
|
||||
</columnFooter>
|
||||
<lastPageFooter>
|
||||
<band/>
|
||||
</lastPageFooter>
|
||||
<summary>
|
||||
<band height="63">
|
||||
<textField>
|
||||
<reportElement uuid="f866e6d3-35b9-49b8-9228-a27ea9beae98" x="0" y="0" width="440" height="15"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TOTAL_GERAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="26a2768f-98c4-40d6-8437-a3431e29767d" x="560" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="c3d56b38-e963-4eb8-8c1d-631bc26d3c68" x="500" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="0fa428cd-c4aa-434a-801a-4c7e78182391" x="680" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_TAXA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="2e8ebe5a-ea49-4132-8b8b-2620bfbd0f60" x="740" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_VALOR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="6b7dcb42-1af8-4243-89d7-50d6bf0d9ba5" x="440" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="993c02bc-fc54-4efc-bd4a-5fd5f3226937" x="620" y="0" width="60" height="15"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_SEG_OPCIONAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<crosstab isRepeatColumnHeaders="false" isRepeatRowHeaders="false">
|
||||
<reportElement uuid="e0606f96-28f5-4064-8e92-ece9376a82f0" x="239" y="24" width="381" height="25"/>
|
||||
<rowGroup name="FORMA_PAGAMENTO" width="210">
|
||||
<bucket class="java.lang.String">
|
||||
<bucketExpression><![CDATA[$F{FORMA_PAGAMENTO}]]></bucketExpression>
|
||||
</bucket>
|
||||
<crosstabRowHeader>
|
||||
<cellContents backcolor="#FFFFFF" mode="Opaque">
|
||||
<textField>
|
||||
<reportElement uuid="15f4cc70-6b11-4b98-b618-672fbe59aba3" style="Crosstab Data Text" x="0" y="0" width="210" height="20"/>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA["Total "+$V{FORMA_PAGAMENTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabRowHeader>
|
||||
<crosstabTotalRowHeader>
|
||||
<cellContents/>
|
||||
</crosstabTotalRowHeader>
|
||||
</rowGroup>
|
||||
<columnGroup name="TOTAL" height="5" totalPosition="End">
|
||||
<bucket class="java.lang.Double">
|
||||
<bucketExpression><![CDATA[$F{VALOR}]]></bucketExpression>
|
||||
</bucket>
|
||||
<crosstabColumnHeader>
|
||||
<cellContents backcolor="#F0F8FF" mode="Transparent"/>
|
||||
</crosstabColumnHeader>
|
||||
<crosstabTotalColumnHeader>
|
||||
<cellContents backcolor="#FFFFFF" mode="Opaque"/>
|
||||
</crosstabTotalColumnHeader>
|
||||
</columnGroup>
|
||||
<measure name="TOTALMeasure" class="java.lang.Double" calculation="Sum">
|
||||
<measureExpression><![CDATA[$F{VALOR}]]></measureExpression>
|
||||
</measure>
|
||||
<crosstabCell width="0" height="20">
|
||||
<cellContents style="Crosstab Data Text"/>
|
||||
</crosstabCell>
|
||||
<crosstabCell height="25" rowTotalGroup="FORMA_PAGAMENTO">
|
||||
<cellContents backcolor="#BFE1FF" mode="Opaque">
|
||||
<textField>
|
||||
<reportElement uuid="2ea76f60-8961-49b5-a689-9a49cafd4731" style="Crosstab Data Text" x="0" y="0" width="50" height="25"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$V{TOTALMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
<crosstabCell width="120" height="20" columnTotalGroup="TOTAL">
|
||||
<cellContents backcolor="#FFFFFF" mode="Opaque" style="Crosstab Data Text">
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="d946453b-6412-4485-b2f8-cf74cebafaa3" style="Crosstab Data Text" x="0" y="0" width="120" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$V{TOTALMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
<crosstabCell rowTotalGroup="FORMA_PAGAMENTO" columnTotalGroup="TOTAL">
|
||||
<cellContents backcolor="#BFE1FF" mode="Opaque">
|
||||
<textField>
|
||||
<reportElement uuid="6961a0e3-e27f-45d8-b6ec-5d4bf93a9862" style="Crosstab Data Text" x="0" y="0" width="50" height="25"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$V{TOTALMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
</crosstab>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="45">
|
||||
<textField>
|
||||
<reportElement uuid="6c28de84-ceae-409b-bde5-04f66cb9a805" x="0" y="0" width="802" height="45"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -19,14 +19,17 @@ import org.springframework.stereotype.Controller;
|
|||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Radiogroup;
|
||||
import org.zkoss.zul.Row;
|
||||
import org.zkoss.zul.Toolbar;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFormaPagamentoAgencia;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFormaPagamentoAgenciaNovo;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFormaPagamentoAgenciaRutaTramo;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagamentoAgenciaService;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||
|
@ -66,7 +69,6 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
private List<Empresa> lsEmpresas;
|
||||
|
||||
private MyComboboxPuntoVenta cmbAgencia;
|
||||
private Checkbox considerarRuta;
|
||||
|
||||
private MyComboboxEstandar cmbRuta;
|
||||
private MyComboboxEstandar cmbFormaPago;
|
||||
|
@ -76,6 +78,9 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
private MyListbox selectedRutasList;
|
||||
private List<FormaPago> lsFormaPago;
|
||||
|
||||
private Radiogroup rgLayout;
|
||||
private Toolbar toolbar;
|
||||
private Row rowLinha;
|
||||
|
||||
|
||||
@Override
|
||||
|
@ -155,27 +160,27 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
|
||||
SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yyyy");
|
||||
|
||||
Map<String, Object> argsInforme = new HashMap<>();
|
||||
Map<String, Object> parametros = new HashMap<>();
|
||||
|
||||
if(!considerarRuta.isChecked()){
|
||||
argsInforme.put("DATA_INICIAL", dataInicio);
|
||||
argsInforme.put("DATA_FINAL", dataFinal);
|
||||
if(rgLayout.getSelectedItem().getValue().equals("LINHA")){
|
||||
parametros.put("DATA_INICIAL", dt.format(dataInicio));
|
||||
parametros.put("DATA_FINAL", dt.format(dataFinal));
|
||||
}else{
|
||||
argsInforme.put("DATA_INICIAL", dt.format(dataInicio));
|
||||
argsInforme.put("DATA_FINAL", dt.format(dataFinal));
|
||||
parametros.put("DATA_INICIAL", dataInicio);
|
||||
parametros.put("DATA_FINAL", dataFinal);
|
||||
}
|
||||
|
||||
filtro.append("Periodo: ");
|
||||
filtro.append(dt.format(dataInicio)).append(" a ");
|
||||
filtro.append(dt.format(dataFinal)).append("; ");
|
||||
|
||||
argsInforme.put("USUARIO_ID", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
argsInforme.put("USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||
parametros.put("USUARIO_ID", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||
|
||||
filtro.append("Empresa: ");
|
||||
if (cmbEmpresa.isValid() && cmbEmpresa.getSelectedItem() != null) {
|
||||
Empresa empresa = ((Empresa)cmbEmpresa.getSelectedItem().getValue());
|
||||
argsInforme.put("EMPRESA", empresa.getEmpresaId());
|
||||
parametros.put("EMPRESA", empresa.getEmpresaId());
|
||||
filtro.append(empresa.getNombempresa()).append("; ");
|
||||
}else {
|
||||
filtro.append(TODAS);
|
||||
|
@ -184,14 +189,16 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
filtro.append("Agência: ");
|
||||
if (cmbAgencia.getSelectedItem() != null) {
|
||||
PuntoVenta agencia = ((PuntoVenta) cmbAgencia.getSelectedItem().getValue());
|
||||
argsInforme.put("AGENCIA", agencia.getPuntoventaId());
|
||||
parametros.put("AGENCIA", agencia.getPuntoventaId());
|
||||
filtro.append(agencia.getNombpuntoventa()).append("; ");
|
||||
}else {
|
||||
filtro.append(TODAS);
|
||||
}
|
||||
|
||||
filtro.append("Linha: ");
|
||||
if (considerarRuta.isChecked() && listSelectedRutas != null && !listSelectedRutas.isEmpty()) {
|
||||
if( rgLayout.getSelectedItem().getValue().equals("LINHA")
|
||||
&& listSelectedRutas != null
|
||||
&& !listSelectedRutas.isEmpty()) {
|
||||
StringBuilder idsRutas = new StringBuilder();
|
||||
StringBuilder linhas = new StringBuilder();
|
||||
for(Ruta r : listSelectedRutas){
|
||||
|
@ -199,7 +206,7 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
linhas.append(r.getDescruta()).append(", ");
|
||||
}
|
||||
|
||||
argsInforme.put("RUTAS_IDS", idsRutas.substring(0, idsRutas.length()-2));
|
||||
parametros.put("RUTAS_IDS", idsRutas.substring(0, idsRutas.length()-2));
|
||||
filtro.append(linhas.substring(0, idsRutas.length()-2));
|
||||
}else {
|
||||
filtro.append(TODAS);
|
||||
|
@ -208,27 +215,28 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
filtro.append("Forma de Pagamento: ");
|
||||
if (cmbFormaPago.getSelectedItem() != null) {
|
||||
FormaPago formaPago= ((FormaPago) cmbFormaPago.getSelectedItem().getValue());
|
||||
argsInforme.put("FORMA_PAGO", formaPago.getFormapagoId());
|
||||
parametros.put("FORMA_PAGO", formaPago.getFormapagoId());
|
||||
filtro.append(formaPago.getDescpago()).append("; ");
|
||||
}else {
|
||||
filtro.append(TODAS);
|
||||
}
|
||||
|
||||
RelatorioFormaPagamentoAgencia relatorio =null;
|
||||
RelatorioFormaPagamentoAgenciaRutaTramo relatorioRutaTramo =null;
|
||||
argsInforme.put("FILTROS", filtro.toString());
|
||||
if(!considerarRuta.isChecked()){
|
||||
relatorio = new RelatorioFormaPagamentoAgencia(argsInforme, dataSourceRead.getConnection());
|
||||
}else{
|
||||
relatorioRutaTramo = new RelatorioFormaPagamentoAgenciaRutaTramo(argsInforme, dataSourceRead.getConnection());
|
||||
if(rgLayout.getSelectedItem().getValue().equals("DATA_VENDA")) {
|
||||
parametros.put("TIPO_DATA", "DATA_VENDA");
|
||||
}
|
||||
|
||||
parametros.put("FILTROS", filtro.toString());
|
||||
|
||||
Map<String, Object> args = new HashMap<>();
|
||||
if(!considerarRuta.isChecked()){
|
||||
if(rgLayout.getSelectedItem().getValue().equals("PADRAO")){
|
||||
RelatorioFormaPagamentoAgencia relatorio = new RelatorioFormaPagamentoAgencia(parametros, dataSourceRead.getConnection());
|
||||
args.put("relatorio", relatorio);
|
||||
}else if(rgLayout.getSelectedItem().getValue().equals("LINHA")){
|
||||
RelatorioFormaPagamentoAgenciaRutaTramo relatorio = new RelatorioFormaPagamentoAgenciaRutaTramo(parametros, dataSourceRead.getConnection());
|
||||
args.put("relatorio", relatorio);
|
||||
}else if(rgLayout.getSelectedItem().getValue().equals("NOVO")){
|
||||
RelatorioFormaPagamentoAgenciaNovo relatorio = new RelatorioFormaPagamentoAgenciaNovo(parametros, dataSourceRead.getConnection());
|
||||
args.put("relatorio", relatorio);
|
||||
}else{
|
||||
args.put("relatorio", relatorioRutaTramo);
|
||||
}
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
|
@ -244,6 +252,24 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public void onClick$rdLinha(Event ev) {
|
||||
habilitaLinha(true);
|
||||
}
|
||||
|
||||
public void onClick$rdPadrao(Event ev) {
|
||||
habilitaLinha(false);
|
||||
}
|
||||
|
||||
public void onClick$rdNovo(Event ev) {
|
||||
habilitaLinha(false);
|
||||
}
|
||||
|
||||
private void habilitaLinha( boolean view) {
|
||||
rowLinha.setVisible(view);
|
||||
toolbar.setVisible(view);
|
||||
selectedRutasList.setVisible(view);
|
||||
}
|
||||
|
||||
public void onClick$btnRemoveRuta(Event ev) {
|
||||
Ruta ruta = (Ruta) selectedRutasList.getSelected();
|
||||
listSelectedRutas.remove(ruta);
|
||||
|
@ -258,22 +284,18 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
this.lsRuta = lsRuta;
|
||||
}
|
||||
|
||||
|
||||
public List<Ruta> getListSelectedRutas() {
|
||||
return listSelectedRutas;
|
||||
}
|
||||
|
||||
|
||||
public void setListSelectedRutas(List<Ruta> listSelectedRutas) {
|
||||
this.listSelectedRutas = listSelectedRutas;
|
||||
}
|
||||
|
||||
|
||||
public MyListbox getSelectedRutasList() {
|
||||
return selectedRutasList;
|
||||
}
|
||||
|
||||
|
||||
public void setSelectedRutasList(MyListbox selectedRutasList) {
|
||||
this.selectedRutasList = selectedRutasList;
|
||||
}
|
||||
|
@ -281,9 +303,25 @@ public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
|||
public List<FormaPago> getLsFormaPago() {
|
||||
return lsFormaPago;
|
||||
}
|
||||
|
||||
public void setLsFormaPago(List<FormaPago> lsFormaPago) {
|
||||
this.lsFormaPago = lsFormaPago;
|
||||
}
|
||||
|
||||
public Radiogroup getRgLayout() {
|
||||
return rgLayout;
|
||||
}
|
||||
|
||||
public void setRgLayout(Radiogroup rgLayout) {
|
||||
this.rgLayout = rgLayout;
|
||||
}
|
||||
|
||||
public Toolbar getToolbar() {
|
||||
return toolbar;
|
||||
}
|
||||
|
||||
public void setToolbar(Toolbar toolbar) {
|
||||
this.toolbar = toolbar;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -103,7 +103,8 @@ relatorio.parametro.msgNoData = Não foi possivel obter dados com os parâmetros
|
|||
relatorio.lb.btnExecutarRelatorioEstavel = Executar Relatório - Versão Estável
|
||||
relatorio.parametro.dataMenorDataAtual=Data não pode ser menor do que a Data Atual
|
||||
relatorio.lb.btnGerarArquivo=Gerar Arquivo
|
||||
|
||||
relatorio.lbPadrao.value=Padrão
|
||||
relatorio.lbNovo.label=Novo
|
||||
|
||||
# tooltip botões
|
||||
tooltiptext.btnFechar = Fechar
|
||||
|
|
|
@ -101,7 +101,8 @@ relatorio.lb.btnSalvarRelatorioXls = Guardar reporte en XLS
|
|||
relatorio.parametro.msgNoData = No fue posible obtener datos con los parámetros informados.
|
||||
relatorio.parametro.dataMenorDataAtual=Data não pode ser menor do que a Data Atual
|
||||
relatorio.lb.btnGerarArquivo=Generar Arquivo
|
||||
|
||||
relatorio.lbPadrao.value=Padrão
|
||||
relatorio.lbNovo.label=Novo
|
||||
|
||||
# tooltip botões
|
||||
tooltiptext.btnFechar = Cerrar
|
||||
|
|
|
@ -102,6 +102,8 @@ relatorio.parametro.msgNoData = Não foi possivel obter dados com os parâmetros
|
|||
relatorio.lb.btnExecutarRelatorioEstavel = Executar Relatório - Versão Estável
|
||||
relatorio.parametro.dataMenorDataAtual=Data não pode ser menor do que a Data Atual
|
||||
relatorio.lb.btnGerarArquivo=Gerar Arquivo
|
||||
relatorio.lbPadrao.value=Padrão
|
||||
relatorio.lbNovo.label=Novo
|
||||
|
||||
|
||||
# tooltip botões
|
||||
|
@ -303,9 +305,9 @@ indexController.mniAnalitico.label = Relatórios
|
|||
indexController.mniIntegracion.label = Integração
|
||||
indexController.mniRelatoriosBpe.label = Relatórios BPe
|
||||
indexController.mniRelatoriosOperacionais.label = Relatórios Operacionais
|
||||
indexController.mniRelatoriosFinanceiro.label = Relatórios Financeiro
|
||||
indexController.mniRelatoriosFinanceiro.label = Relatórios Financeiros
|
||||
indexController.mniRelatoriosEstatisticos.label = Relatórios Estatísticos
|
||||
indexController.mniRelatoriosPacote.label = Relatórios Pacote
|
||||
indexController.mniRelatoriosPacote.label = Relatórios Pacotes
|
||||
indexController.mniIntegracion.bgm.label = BGM
|
||||
indexController.mnSubMenuContaCorrente.label = Fechamento Conta Corrente
|
||||
indexController.mniRelatorioEmbarqueLocalidade.label=Relatório Embarque por Localidade
|
||||
|
|
|
@ -10,100 +10,95 @@
|
|||
apply="${formaPagamentoAgenciaController}"
|
||||
contentStyle="overflow:auto" width="560px" border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataIni.value')}" />
|
||||
<datebox id="fecInicio" width="90%"
|
||||
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataFin.value')}" />
|
||||
<datebox id="fecFinal" width="90%"
|
||||
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('formaPagamentoAgenciaController.lbAgencia.value')}" />
|
||||
<combobox id="cmbAgencia" width="50%" maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataIni.value')}" />
|
||||
<datebox id="fecInicio" width="50%"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataFin.value')}" />
|
||||
<datebox id="fecFinal" width="50%"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<row spans="1,1,2">
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
<combobox id="cmbEmpresa" buttonVisible="true"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" constraint="no empty"
|
||||
width="50%"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsEmpresas}"/>
|
||||
model="@{winFiltroRelatorioRecargaRvhub$composer.lsEmpresa}"
|
||||
width="95%" />
|
||||
</row>
|
||||
<row spans="1,1,2">
|
||||
<label value="${c:l('formaPagamentoAgenciaController.lbAgencia.value')}" />
|
||||
<combobox id="cmbAgencia" width="95%" maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="90%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<checkbox id="considerarRuta">
|
||||
<attribute name="onCheck">
|
||||
cmbRuta.setVisible(!cmbRuta.isVisible());
|
||||
toolbar.setVisible(!toolbar.isVisible());
|
||||
selectedRutasList.setVisible(!selectedRutasList.isVisible());
|
||||
</attribute>
|
||||
</checkbox>
|
||||
<combobox id="cmbRuta" visible="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="50%"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsRuta}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</row>
|
||||
<row>
|
||||
<row spans="1,1,2">
|
||||
<label id="lblFormaPago"
|
||||
value="${c:l('formaPagamentoAgenciaController.lbFormaPagamento.value')}" />
|
||||
<combobox id="cmbFormaPago"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="50%" mold="rounded" buttonVisible="true"
|
||||
width="95%" mold="rounded" buttonVisible="true"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsFormaPago}" />
|
||||
</row>
|
||||
<row spans="4">
|
||||
<radiogroup Id="rgLayout" >
|
||||
<radio value="PADRAO" id="rdPadrao" label="${c:l('relatorio.lbPadrao.value')}" checked="true" />
|
||||
<radio value="NOVO" id="rdNovo" label="${c:l('relatorio.lbNovo.label')}"/>
|
||||
<radio value="LINHA" id="rdLinha" label="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
|
||||
<row spans="1,1,2" id="rowLinha" visible="false">
|
||||
<label id="lblRuta" value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
||||
<combobox id="cmbRuta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="80%"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsRuta}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar id="toolbar" visible="false">
|
||||
<button id="btnRemoveRuta" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelRemoveRuta.value')}" />
|
||||
<button id="btnAddRuta" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelAddRuta.value')}" />
|
||||
</toolbar>
|
||||
<listbox id="selectedRutasList" visible="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('generarTarifaOrgaoController.labelRuta.value')}" width="70%"/>
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('generarTarifaOrgaoController.labelOrgao.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<button id="btnRemoveRuta" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelRemoveRuta.value')}" />
|
||||
<button id="btnAddRuta" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelAddRuta.value')}" />
|
||||
</toolbar>
|
||||
<listbox id="selectedRutasList" visible="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('generarTarifaOrgaoController.labelRuta.value')}" width="70%"/>
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('generarTarifaOrgaoController.labelOrgao.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnInforme" height="20" image="/gui/img/vis.png" width="35px"/>
|
||||
</toolbar>
|
||||
<button id="btnInforme" image="/gui/img/find.png"
|
||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||
</toolbar>
|
||||
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue