fixes bug#24582

dev: Valdir
qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@112584 d1611594-4594-4d17-8e1d-87c2c4800839
master
julio 2022-06-07 18:23:01 +00:00
parent 712a3d5f28
commit 7791fee967
16 changed files with 1534 additions and 4 deletions

View File

@ -0,0 +1,143 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioW2IBean;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioW2ITaxaEmbarqueAnalitico extends Relatorio {
private List<RelatorioW2IBean> lsDadosRelatorio;
public RelatorioW2ITaxaEmbarqueAnalitico(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new DataSource(this) {
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA");
puntosVentaIds = StringUtils.replace(puntosVentaIds, ",", "','");
lsDadosRelatorio = new ArrayList<RelatorioW2IBean>();
String sql = getSql(puntosVentaIds);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null;
stmt.setInt("TIPO_DATA", (Integer) parametros.get("TIPO_DATA"));
stmt.setTimestamp("DATA_INICIAL", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime()));
stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime()));
if (parametros.get("EMPRESA_ID") != null)
stmt.setInt("EMPRESA_ID", (Integer) parametros.get("EMPRESA_ID"));
else
stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER);
if (parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != "" && ((Integer) parametros.get("ORIGEN_ID") != -1))
stmt.setInt("ORIGEN_ID", (Integer) parametros.get("ORIGEN_ID"));
else
stmt.setNull("ORIGEN_ID", java.sql.Types.INTEGER);
if (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != "" && ((Integer) parametros.get("DESTINO_ID") != -1))
stmt.setInt("DESTINO_ID", (Integer) parametros.get("DESTINO_ID"));
else
stmt.setNull("DESTINO_ID", java.sql.Types.INTEGER);
rset = stmt.executeQuery();
RelatorioW2IBean relatorioW2IBean = null;
while (rset.next()) {
relatorioW2IBean = new RelatorioW2IBean();
relatorioW2IBean.setEmpresaId(rset.getInt("empresaId"));
relatorioW2IBean.setEmpresa(rset.getString("empresa"));
relatorioW2IBean.setPuntoVentaId(rset.getInt("puntoVentaId"));
relatorioW2IBean.setAgencia(rset.getString("agencia"));
relatorioW2IBean.setNumBilhete(rset.getLong("numBilhete"));
relatorioW2IBean.setOrigem(rset.getString("origem"));
relatorioW2IBean.setDestino(rset.getString("destino"));
relatorioW2IBean.setDataVenda(rset.getDate("dataVenda"));
relatorioW2IBean.setDataViaje(rset.getDate("dataViaje"));
relatorioW2IBean.setPoltrona(rset.getString("poltrona"));
relatorioW2IBean.setStatus(rset.getString("status"));
relatorioW2IBean.setValorTaxa(rset.getBigDecimal("valorTaxa") == null ? BigDecimal.ZERO : rset.getBigDecimal("valorTaxa"));
lsDadosRelatorio.add(relatorioW2IBean);
}
if (lsDadosRelatorio.size() > 0) {
setLsDadosRelatorio(lsDadosRelatorio);
}
}
});
}
public void setLsDadosRelatorio(List<RelatorioW2IBean> lsDadosRelatorio) {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio;
}
@Override
protected void processaParametros() throws Exception {
// TODO Auto-generated method stub
}
private String getSql(String puntosVentaIds) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT DISTINCT ");
sql.append("em.empresa_id AS empresaId, ");
sql.append("em.nombempresa AS empresa, ");
sql.append("pv.puntoventa_id AS puntoVentaId, ");
sql.append("pv.nombpuntoventa As agencia, ");
sql.append("b.numfoliosistema AS numBilhete, ");
sql.append("po.descparada AS origem, ");
sql.append("pd.descparada AS destino, ");
sql.append("b.fechorviaje dataViaje, ");
sql.append("b.fechorventa dataVenda, ");
sql.append("b.numasiento AS poltrona, ");
sql.append("sx.valortaxa AS valorTaxa, ");
sql.append("CASE WHEN sx.indcancelado =0 THEN 'V' ELSE 'C' END status ");
sql.append("FROM taxpolv sx ");
sql.append("INNER JOIN boleto b on b.boleto_id=sx.boleto_id ");
sql.append("INNER JOIN punto_venta pv ON pv.PUNTOVENTA_ID = b.PUNTOVENTA_ID ");
sql.append("INNER JOIN empresa em ON em.empresa_id=b.empresacorrida_id ");
sql.append("INNER JOIN parada po ON po.parada_id=b.origen_id ");
sql.append("INNER JOIN parada pd ON pd.parada_id=b.destino_id ");
sql.append("INNER JOIN CIUDAD co ON co.ciudad_id=po.ciudad_id ");
sql.append("INNER JOIN CIUDAD cd ON cd.ciudad_id=pd.ciudad_id ");
sql.append("WHERE DECODE(:TIPO_DATA, 1, b.FECHORVENTA, 2, b.FECCORRIDA) BETWEEN :DATA_INICIAL AND :DATA_FINAL ");
sql.append("AND sx.ACTIVO = 1 ");
sql.append("AND em.empresa_id = COALESCE(:EMPRESA_ID, em.empresa_id) ");
sql.append("AND po.parada_id = COALESCE(:ORIGEN_ID, po.parada_id) ");
sql.append("AND pd.parada_id = COALESCE(:DESTINO_ID, pd.parada_id) ");
if (!puntosVentaIds.contains("-1")) {
sql.append(" AND pv.puntoventa_id IN ('" + puntosVentaIds + "') ");
}
sql.append("ORDER BY b.fechorventa ASC ");
return sql.toString();
};
}

View File

@ -0,0 +1,130 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioW2ISinteticoBean;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioW2ITaxaEmbarqueSintetico extends Relatorio {
private List<RelatorioW2ISinteticoBean> lsDadosRelatorio;
public RelatorioW2ITaxaEmbarqueSintetico(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new DataSource(this) {
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
lsDadosRelatorio = new ArrayList<RelatorioW2ISinteticoBean>();
String sql = getSql(parametros);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null;
stmt.setInt("TIPO_DATA", (Integer) parametros.get("TIPO_DATA"));
stmt.setTimestamp("DATA_INICIAL", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime()));
stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime()));
if (parametros.get("EMPRESA_ID") != null)
stmt.setInt("EMPRESA_ID", (Integer) parametros.get("EMPRESA_ID"));
if (parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != "" && ((Integer) parametros.get("ORIGEN_ID") != -1))
stmt.setInt("ORIGEN_ID", (Integer) parametros.get("ORIGEN_ID"));
if (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != "" && ((Integer) parametros.get("DESTINO_ID") != -1))
stmt.setInt("DESTINO_ID", (Integer) parametros.get("DESTINO_ID"));
rset = stmt.executeQuery();
RelatorioW2ISinteticoBean relatorioW2ISinteticoBean = null;
while (rset.next()) {
relatorioW2ISinteticoBean = new RelatorioW2ISinteticoBean();
relatorioW2ISinteticoBean.setEmpresaId(rset.getInt("empresaId"));
relatorioW2ISinteticoBean.setEmpresa(rset.getString("empresa"));
relatorioW2ISinteticoBean.setPuntoVentaId(rset.getInt("puntoVentaId"));
relatorioW2ISinteticoBean.setAgencia(rset.getString("agencia"));
relatorioW2ISinteticoBean.setQtdSeguroOpcionalCancelado(rset.getBigDecimal("qtdSeguroOpcionalCancelado") == null ? BigDecimal.ZERO : rset.getBigDecimal("qtdSeguroOpcionalCancelado"));
relatorioW2ISinteticoBean.setTotalValorSeguroOpcionalCancelado(rset.getBigDecimal("totalValorSeguroOpcionalCancelado") == null ? BigDecimal.ZERO : rset.getBigDecimal("totalValorSeguroOpcionalCancelado"));
relatorioW2ISinteticoBean.setQtdSeguroOpcionalVendidos(rset.getBigDecimal("qtdSeguroOpcionalVendidos") == null ? BigDecimal.ZERO : rset.getBigDecimal("qtdSeguroOpcionalVendidos"));
relatorioW2ISinteticoBean.setTotalValorseguroOpcionalVendido(rset.getBigDecimal("totalValorSeguroOpcionalVendido") == null ? BigDecimal.ZERO : rset.getBigDecimal("totalValorSeguroOpcionalVendido"));
lsDadosRelatorio.add(relatorioW2ISinteticoBean);
}
if (lsDadosRelatorio.size() > 0) {
setLsDadosRelatorio(lsDadosRelatorio);
}
}
});
}
public void setLsDadosRelatorio(List<RelatorioW2ISinteticoBean> lsDadosRelatorio) {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio;
}
@Override
protected void processaParametros() throws Exception {
}
private String getSql(Map<String, Object> parametros) {
String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA");
puntosVentaIds = StringUtils.replace(puntosVentaIds, "," , "','");
StringBuilder sql = new StringBuilder();
sql.append("SELECT DISTINCT ");
sql.append("em.empresa_id AS empresaId, ");
sql.append("em.nombempresa AS empresa, ");
sql.append("pv.puntoventa_id AS puntoVentaId, ");
sql.append("pv.nombpuntoventa As agencia, ");
sql.append(" SUM( (case when sx.indcancelado =1 then 1 else 0.0 end)) qtdSeguroOpcionalCancelado, ");
sql.append(" SUM( (case when sx.indcancelado =1 then sx.valortaxa else 0.0 end )) totalValorSeguroOpcionalCancelado, ");
sql.append(" SUM( (case when sx.indcancelado =0 then 1 else 0.0 end )) qtdSeguroOpcionalVendidos, ");
sql.append(" SUM( (case when sx.indcancelado =0 then sx.valortaxa else 0.0 end )) totalValorSeguroOpcionalVendido ");
sql.append("FROM taxpolv sx ");
sql.append("INNER JOIN boleto b on b.boleto_id=sx.boleto_id ");
sql.append("INNER JOIN punto_venta pv ON pv.PUNTOVENTA_ID = b.PUNTOVENTA_ID ");
sql.append("INNER JOIN empresa em ON em.empresa_id=b.empresacorrida_id ");
sql.append("INNER JOIN parada po ON po.parada_id=b.origen_id ");
sql.append("INNER JOIN parada pd ON pd.parada_id=b.destino_id ");
sql.append("INNER JOIN CIUDAD co ON co.ciudad_id=po.ciudad_id ");
sql.append("INNER JOIN CIUDAD cd ON cd.ciudad_id=pd.ciudad_id ");
sql.append("WHERE DECODE(:TIPO_DATA, 1, b.FECHORVENTA, 2, b.FECCORRIDA) BETWEEN :DATA_INICIAL AND :DATA_FINAL ");
if (parametros.get("EMPRESA_ID") != null) {
sql.append("AND em.empresa_id = COALESCE(:EMPRESA_ID, em.empresa_id) ");
}
if (parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != "" && ((Integer) parametros.get("ORIGEN_ID") != -1)) {
sql.append("AND po.parada_id = COALESCE(:ORIGEN_ID, po.parada_id) ");
}
if (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != "" && ((Integer) parametros.get("DESTINO_ID") != -1)) {
sql.append("AND pd.parada_id = COALESCE(:DESTINO_ID, pd.parada_id) ");
}
if (!puntosVentaIds.contains("-1")) {
sql.append(" AND pv.puntoventa_id IN (").append(puntosVentaIds).append(") ");
}
sql.append("GROUP BY em.empresa_id, em.nombempresa,pv.puntoventa_id,pv.nombpuntoventa ");
return sql.toString();
}
}

View File

@ -0,0 +1,13 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,13 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,387 @@
<?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="RelatorioTaxasLinha" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="250"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="dataVenda" class="java.util.Date"/>
<field name="origem" class="java.lang.String"/>
<field name="destino" class="java.lang.String"/>
<field name="valorTaxa" class="java.math.BigDecimal"/>
<field name="empresa" class="java.lang.String"/>
<field name="agencia" class="java.lang.String"/>
<field name="poltrona" class="java.lang.String"/>
<field name="numBilhete" class="java.lang.Long"/>
<field name="dataViaje" class="java.util.Date"/>
<field name="status" class="java.lang.String"/>
<variable name="valorTaxa_1" class="java.math.BigDecimal" resetType="Group" resetGroup="AgenciaGroup" calculation="Sum">
<variableExpression><![CDATA[$F{valorTaxa}]]></variableExpression>
</variable>
<variable name="valorTaxa_2" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{valorTaxa}]]></variableExpression>
</variable>
<variable name="valorTaxa_3" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorTaxa}]]></variableExpression>
</variable>
<group name="grpEmpresa">
<groupExpression><![CDATA[$F{empresa}]]></groupExpression>
<groupHeader>
<band height="14">
<textField>
<reportElement uuid="95e0028f-60d8-4bbf-afea-a2f3d40b2deb" x="0" y="0" width="187" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Empresa: "+$F{empresa}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="0" width="552" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="12">
<staticText>
<reportElement uuid="2a963103-78f6-46c6-ac37-29ed4654df56" x="0" y="0" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Empresa: ]]></text>
</staticText>
<line>
<reportElement uuid="7fc66df3-edd7-4149-847e-1375a3621e80" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="c4a77336-68c6-4e8e-8cd0-ee9c5cdcea51" x="0" y="0" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00">
<reportElement uuid="6f182823-9822-49ec-a0e1-76cca114addc" x="425" y="1" width="70" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{valorTaxa_2}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="AgenciaGroup">
<groupExpression><![CDATA[$F{agencia}]]></groupExpression>
<groupHeader>
<band height="11">
<staticText>
<reportElement uuid="32c20a27-414c-41be-86b2-0d23645acd18" x="0" y="0" width="88" height="11"/>
<box leftPadding="10"/>
<textElement>
<font size="7" isBold="true"/>
</textElement>
<text><![CDATA[Agência]]></text>
</staticText>
<textField>
<reportElement uuid="b2a45c9f-3da0-4273-9941-c9e31ee61723" x="88" y="0" width="88" height="11"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="58" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Transparent" x="1" y="1" width="257" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920" mode="Transparent" x="1" y="16" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb" mode="Transparent" x="46" y="16" width="67" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25" mode="Transparent" x="123" y="16" width="67" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb" mode="Transparent" x="113" y="16" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744" mode="Transparent" x="461" y="0" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9" x="-4" y="43" width="554" height="1"/>
</line>
<textField>
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" x="379" y="0" width="80" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="623b5d82-e7b3-4439-96c5-f44833fb8864" mode="Transparent" x="450" y="31" width="100" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ccec8b66-ed79-418b-b66d-15d9ed3bf2ce" mode="Transparent" x="1" y="44" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f" x="47" y="44" width="717" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263" mode="Transparent" x="430" y="16" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<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="5a57c3a1-ed8e-46fb-836f-d250116a238a" mode="Transparent" x="535" y="16" width="15" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="12">
<line>
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="0" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="140" y="1" width="40" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Poltrona]]></text>
</staticText>
<staticText>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="0" y="1" width="70" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Origem]]></text>
</staticText>
<staticText>
<reportElement uuid="4c091486-f854-428c-8123-185e03cdfcdd" x="70" y="1" width="70" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Destino]]></text>
</staticText>
<staticText>
<reportElement uuid="2c9f7206-dbc2-4d83-a9d9-66848c0014d9" x="180" y="1" width="60" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Numero Bilhete]]></text>
</staticText>
<staticText>
<reportElement uuid="d124642f-8c19-4b83-9c96-548cfceb83cf" x="240" y="1" width="70" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Data Venda]]></text>
</staticText>
<staticText>
<reportElement uuid="4ea45d92-24ea-4336-b4f1-7465ebda8c0f" x="310" y="1" width="70" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Data Viaje]]></text>
</staticText>
<staticText>
<reportElement uuid="442552d1-bdb7-44e3-a456-3578f64334ce" x="425" y="1" width="70" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Valor Taxa]]></text>
</staticText>
<staticText>
<reportElement uuid="dbd45011-81da-45b3-95bf-8cef85f0d0a4" x="380" y="1" width="45" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Status]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="12">
<textField>
<reportElement uuid="b12cbc2b-3eac-4c2c-b94c-cac2e746b2c2" x="0" y="1" width="70" height="11"/>
<box rightPadding="5"/>
<textElement/>
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f868a599-c0bb-4187-97b6-7681b753abbf" x="70" y="1" width="70" height="11"/>
<box rightPadding="5"/>
<textElement/>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="6454beed-fb72-4aa5-8bff-7eb4ea6c26ba" x="180" y="1" width="60" height="11"/>
<box rightPadding="5"/>
<textElement textAlignment="Right" markup="none">
<font isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{numBilhete}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="1242bccb-ce44-47d6-ac13-6f4df97f707e" x="140" y="1" width="40" height="11"/>
<box rightPadding="5"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement uuid="2184d556-1501-4525-8d09-510f9d798b86" x="240" y="1" width="70" height="11"/>
<box rightPadding="5"/>
<textElement textAlignment="Right">
<font isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement uuid="7059069b-3c22-416a-afc1-d05473a3d429" x="310" y="1" width="70" height="11"/>
<box rightPadding="5"/>
<textElement textAlignment="Right">
<font isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataViaje}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="049ba79a-5ee9-4ee2-80d7-d498ad7d7125" x="380" y="1" width="45" height="11"/>
<box rightPadding="5"/>
<textElement textAlignment="Right">
<font isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="c15ba1bc-2040-4a73-a221-52d574fbedb4" x="425" y="1" width="70" height="11"/>
<textElement textAlignment="Right">
<font isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorTaxa}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band height="11">
<staticText>
<reportElement uuid="f7ac3bf7-ac60-405e-b2a3-60c9150421a0" x="0" y="0" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Geral: ]]></text>
</staticText>
<line>
<reportElement uuid="06fb8df2-dbea-44e7-9e45-21f8aa82f939" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00">
<reportElement uuid="58961ea4-a59e-4a77-b898-b2df93fc43cb" x="425" y="1" width="70" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{valorTaxa_3}]]></textFieldExpression>
</textField>
</band>
</lastPageFooter>
<noData>
<band height="39">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="198" y="8" width="530" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,361 @@
<?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="RelatorioW2ISintetico" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="91"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="empresa" class="java.lang.String"/>
<field name="agencia" class="java.lang.String"/>
<field name="qtdSeguroOpcionalCancelado" class="java.math.BigDecimal"/>
<field name="totalValorSeguroOpcionalCancelado" class="java.math.BigDecimal"/>
<field name="qtdSeguroOpcionalVendidos" class="java.math.BigDecimal"/>
<field name="totalValorseguroOpcionalVendido" class="java.math.BigDecimal"/>
<variable name="qtdSeguroOpcionalVendidos_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{qtdSeguroOpcionalVendidos}]]></variableExpression>
</variable>
<variable name="qtdSeguroOpcionalVendidos_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{qtdSeguroOpcionalVendidos}]]></variableExpression>
</variable>
<variable name="totalValorseguroOpcionalVendido_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{totalValorseguroOpcionalVendido}]]></variableExpression>
</variable>
<variable name="totalValorseguroOpcionalVendido_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{totalValorseguroOpcionalVendido}]]></variableExpression>
</variable>
<variable name="qtdSeguroOpcionalCancelado_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{qtdSeguroOpcionalCancelado}]]></variableExpression>
</variable>
<variable name="qtdSeguroOpcionalCancelado_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{qtdSeguroOpcionalCancelado}]]></variableExpression>
</variable>
<variable name="totalValorSeguroOpcionalCancelado_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{totalValorSeguroOpcionalCancelado}]]></variableExpression>
</variable>
<variable name="totalValorSeguroOpcionalCancelado_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{totalValorSeguroOpcionalCancelado}]]></variableExpression>
</variable>
<group name="grpEmpresa">
<groupExpression><![CDATA[$F{empresa}]]></groupExpression>
<groupHeader>
<band height="14">
<textField>
<reportElement uuid="95e0028f-60d8-4bbf-afea-a2f3d40b2deb" x="0" y="0" width="187" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Empresa: "+$F{empresa}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="0" width="552" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="12">
<staticText>
<reportElement uuid="2a963103-78f6-46c6-ac37-29ed4654df56" x="0" y="0" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Empresa: ]]></text>
</staticText>
<line>
<reportElement uuid="7fc66df3-edd7-4149-847e-1375a3621e80" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="c4a77336-68c6-4e8e-8cd0-ee9c5cdcea51" x="0" y="0" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00">
<reportElement uuid="6f182823-9822-49ec-a0e1-76cca114addc" x="380" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{totalValorseguroOpcionalVendido_1}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="49d0253a-e0f4-4f0f-973a-75fc106aa8b5" x="310" y="1" width="70" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalVendidos_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="f21d6ef0-dc7d-4f6c-b7f7-235b62c1f9b6" x="230" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{totalValorSeguroOpcionalCancelado_1}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="ec0a7a02-f0f5-4fe9-a009-4e6fb25c3353" x="150" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalCancelado_1}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="AgenciaGroup">
<groupExpression><![CDATA[$F{agencia}]]></groupExpression>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="58" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Transparent" x="1" y="1" width="257" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920" mode="Transparent" x="1" y="16" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb" mode="Transparent" x="46" y="16" width="67" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25" mode="Transparent" x="123" y="16" width="67" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb" mode="Transparent" x="113" y="16" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744" mode="Transparent" x="461" y="0" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9" x="-4" y="43" width="554" height="1"/>
</line>
<textField>
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" x="379" y="0" width="80" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="623b5d82-e7b3-4439-96c5-f44833fb8864" mode="Transparent" x="450" y="31" width="100" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ccec8b66-ed79-418b-b66d-15d9ed3bf2ce" mode="Transparent" x="1" y="44" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f" x="47" y="44" width="717" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263" mode="Transparent" x="430" y="16" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<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="5a57c3a1-ed8e-46fb-836f-d250116a238a" mode="Transparent" x="535" y="16" width="15" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="12">
<line>
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="0" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="150" y="1" width="80" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Q. W2I CACNELADOS]]></text>
</staticText>
<staticText>
<reportElement uuid="4c091486-f854-428c-8123-185e03cdfcdd" x="0" y="1" width="150" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Agência]]></text>
</staticText>
<staticText>
<reportElement uuid="2c9f7206-dbc2-4d83-a9d9-66848c0014d9" x="230" y="1" width="80" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[T. W2I CANCELADOS]]></text>
</staticText>
<staticText>
<reportElement uuid="d124642f-8c19-4b83-9c96-548cfceb83cf" x="310" y="1" width="70" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[Q. W2I VENDIDO ]]></text>
</staticText>
<staticText>
<reportElement uuid="4ea45d92-24ea-4336-b4f1-7465ebda8c0f" x="380" y="1" width="80" height="11"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<text><![CDATA[T. W2I VENDIDO]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="12">
<textField>
<reportElement uuid="b12cbc2b-3eac-4c2c-b94c-cac2e746b2c2" x="0" y="1" width="150" height="11"/>
<box rightPadding="5"/>
<textElement/>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="6454beed-fb72-4aa5-8bff-7eb4ea6c26ba" x="310" y="1" width="70" height="11"/>
<textElement textAlignment="Right" markup="none">
<font isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdSeguroOpcionalVendidos}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="1242bccb-ce44-47d6-ac13-6f4df97f707e" x="230" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{totalValorSeguroOpcionalCancelado}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="2184d556-1501-4525-8d09-510f9d798b86" x="380" y="1" width="80" height="11"/>
<textElement textAlignment="Right">
<font isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{totalValorseguroOpcionalVendido}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="824ec618-40e0-4c6c-a104-83940ed8e8b7" x="150" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{qtdSeguroOpcionalCancelado}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band height="12">
<staticText>
<reportElement uuid="f7ac3bf7-ac60-405e-b2a3-60c9150421a0" x="0" y="1" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Geral: ]]></text>
</staticText>
<line>
<reportElement uuid="06fb8df2-dbea-44e7-9e45-21f8aa82f939" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00">
<reportElement uuid="da610db6-146d-487f-8727-b1364bff1669" x="380" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{totalValorseguroOpcionalVendido_2}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="65171ca8-41db-4cc3-8686-6676d6bb7382" x="310" y="1" width="70" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalVendidos_2}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="c7f9a540-9a62-4398-81b4-f0ce642f9777" x="230" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalVendidos_2}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="800939ea-b20d-4150-a8ab-6a091ac4f74b" x="150" y="1" width="80" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalVendidos_2}]]></textFieldExpression>
</textField>
</band>
</lastPageFooter>
<noData>
<band height="39">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="187" y="0" width="530" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,275 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Bandbox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.ComboitemRenderer;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Radiogroup;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioW2ITaxaEmbarqueAnalitico;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioW2ITaxaEmbarqueSintetico;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioTaxasLinhaPuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioTaxasLinhaPuntoVentaSelecionados;
@Controller("relatorioW2ITaxaEmbarqueController")
@Scope("prototype")
public class RelatorioW2ITaxaEmbarqueController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
@Autowired
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
@Autowired
private DataSource dataSourceRead;
@Autowired
private EmpresaService empresaService;
private List<Empresa> lsEmpresa;
private MyComboboxParada cmbParadaOrigem;
private MyComboboxParadaCve cmbParadaOrigemCve;
private MyComboboxParada cmbParadaDestino;
private MyComboboxParadaCve cmbParadaDestinoCve;
private MyDatebox datInicial;
private MyDatebox datFinal;
private MyTextbox txtNombrePuntoVenta;
private Radiogroup rdGroupTipoData;
private Radiogroup rdGroupTipoRelatorio;
private MyComboboxEstandar cmbEmpresa;
private Bandbox bbPesquisaPuntoVenta;
private MyListbox puntoVentaList;
private MyListbox puntoVentaSelList;
private Paging pagingPuntoVenta;
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
super.doAfterCompose(comp);
cmbParadaOrigemCve.setItemRenderer(new ComboitemRenderer() {
@Override
public void render(Comboitem cmbtm, Object o) throws Exception {
Parada parada = (Parada) o;
cmbtm.setLabel(parada.getCveparada());
cmbtm.setValue(parada);
}
});
cmbParadaDestinoCve.setItemRenderer(new ComboitemRenderer() {
@Override
public void render(Comboitem cmbtm, Object o) throws Exception {
Parada parada = (Parada) o;
cmbtm.setLabel(parada.getCveparada());
cmbtm.setValue(parada);
}
});
puntoVentaList.setItemRenderer(new RenderRelatorioTaxasLinhaPuntoVenta());
puntoVentaSelList.setItemRenderer(new RenderRelatorioTaxasLinhaPuntoVentaSelecionados());
}
private void executarPesquisa() {
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
if (puntoVentaList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioW2IController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
}
}
}
public void onClick$btnPesquisa(Event ev) {
executarPesquisa();
}
public void onDoubleClick$puntoVentaSelList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected();
puntoVentaSelList.removeItem(puntoVenta);
}
public void onDoubleClick$puntoVentaList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected();
puntoVentaSelList.addItemNovo(puntoVenta);
}
public void onClick$btnLimpar(Event ev) {
puntoVentaList.setData(new ArrayList<PuntoVenta>());
bbPesquisaPuntoVenta.setText("");
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
@SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception {
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
filtro.append("Agência: ");
String puntoVentaIds = "";
String puntoVentas = "";
List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
if (lsPuntoVentaSelecionados.isEmpty()) {
puntoVentas = "Todas";
puntoVentaIds = "-1";
} else {
for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) {
PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i);
puntoVentas = puntoVentas + puntoVenta.getNombpuntoventa() + ",";
puntoVentaIds = puntoVentaIds + puntoVenta.getPuntoventaId() + ",";
}
// removendo ultima virgula
puntoVentaIds = puntoVentaIds.substring(0, puntoVentaIds.length() - 1);
puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1);
}
filtro.append(puntoVentas).append(";");
parametros.put("DATA_INICIAL", (java.util.Date) this.datInicial.getValue());
parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue());
parametros.put("NOME_RELATORIO", Labels.getLabel("indexController.mniRelatorioTxEmbW2I.label"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("TIPO_DATA", Integer.parseInt(rdGroupTipoData.getSelectedItem().getValue()));
parametros.put("NUMPUNTOVENTA", puntoVentaIds);
filtro.append(" Tipo de Data: " + (rdGroupTipoData.getSelectedItem().getValue().equals(1) ? " Origem;" : "Destino;"));
filtro.append(" Empresa: ");
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
parametros.put("EMPRESA", empresa.getNombempresa());
filtro.append(empresa.getNombempresa() + ";");
} else {
filtro.append("Todas;");
}
filtro.append(" Origem: ");
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
if (cbiOrigem != null) {
Parada origem = (Parada) cbiOrigem.getValue();
parametros.put("ORIGEN_ID", origem.getParadaId());
filtro.append(origem.getCveparada() + ";");
} else {
filtro.append("Todas;");
}
filtro.append(" Destino: ");
Comboitem cbiDestino = cmbParadaDestino.getSelectedItem();
if (cbiDestino != null) {
Parada destino = (Parada) cbiDestino.getValue();
parametros.put("DESTINO_ID", destino.getParadaId());
filtro.append(destino.getCveparada() + ";");
} else {
filtro.append("Todos;");
}
Connection connection = dataSourceRead.getConnection();
try {
parametros.put("FILTROS", filtro.toString());
if (Integer.parseInt(rdGroupTipoRelatorio.getSelectedItem().getValue()) == 1) {
relatorio = new RelatorioW2ITaxaEmbarqueAnalitico(parametros, connection);
} else {
relatorio = new RelatorioW2ITaxaEmbarqueSintetico(parametros, connection);
}
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("indexController.mniRelatorioTxEmbW2I.label"), args, MODAL);
} finally {
if ((connection != null) && !connection.isClosed()) {
connection.close();
}
}
}
public void onSelect$cmbParadaOrigemCve(Event ev) {
if (cmbParadaOrigemCve.getSelectedItem() != null) {
cmbParadaOrigem.setComboItemByParada((Parada) cmbParadaOrigemCve.getSelectedItem().getValue());
}
}
public void onSelect$cmbParadaOrigem(Event ev) {
if (cmbParadaOrigem.getSelectedItem() != null)
cmbParadaOrigemCve.setComboItemByParada((Parada) cmbParadaOrigem.getSelectedItem().getValue());
}
public void onSelect$cmbParadaDestinoCve(Event ev) {
if (cmbParadaDestinoCve.getSelectedItem() != null) {
cmbParadaDestino.setComboItemByParada((Parada) cmbParadaDestinoCve.getSelectedItem().getValue());
}
}
public void onSelect$cmbParadaDestino(Event ev) {
if (cmbParadaDestino.getSelectedItem() != null) {
cmbParadaDestinoCve.setComboItemByParada((Parada) cmbParadaDestino.getSelectedItem().getValue());
}
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public Radiogroup getRdGroupTipoRelatorio() {
return rdGroupTipoRelatorio;
}
public void setRdGroupTipoRelatorio(Radiogroup rdGroupTipoRelatorio) {
this.rdGroupTipoRelatorio = rdGroupTipoRelatorio;
}
}

View File

@ -0,0 +1,16 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.financeiro;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class SubMenuRelatorioFinanceiroW2i extends DefaultItemMenuSistema {
public SubMenuRelatorioFinanceiroW2i() {
super("indexController.mniRelatoriosFinanceiroW2i.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS";
}
}

View File

@ -0,0 +1,25 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuRelatorioTaxaEmbarqueW2I extends DefaultItemMenuSistema {
public ItemMenuRelatorioTaxaEmbarqueW2I() {
super("indexController.mniRelatorioTxEmbW2I.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOW2I";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioTaxaEmbarqueW2I.zul",
Labels.getLabel("indexController.mniRelatorioTxEmbW2I.label"), getArgs() ,desktop);
}
}

View File

@ -163,6 +163,9 @@ analitico.gerenciais.tabPreco=com.rjconsultores.ventaboletos.web.utilerias.menu.
analitico.gerenciais.trip=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemRelatorioTripulacao analitico.gerenciais.trip=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemRelatorioTripulacao
analitico.gerenciais.relatorioImpressaoPosterior=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioImpressaoPosterior analitico.gerenciais.relatorioImpressaoPosterior=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioImpressaoPosterior
analitico.gerenciais.relatorioHistoricoCompras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioPosicaoVendaBilheteIdoso analitico.gerenciais.relatorioHistoricoCompras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioPosicaoVendaBilheteIdoso
analitico.gerenciais.w2i=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.financeiro.SubMenuRelatorioFinanceiroW2i
analitico.gerenciais.w2i.relatorioW2I=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFinanceiroW2I
analitico.gerenciais.w2i.relatorioTxEmbW2I=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioTaxaEmbarqueW2I
analitico.gerenciais.relatoriobpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.bpe.SubMenuRelatorioBpe analitico.gerenciais.relatoriobpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.bpe.SubMenuRelatorioBpe
analitico.gerenciais.relatoriobpe.relatorioBPe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPe analitico.gerenciais.relatoriobpe.relatorioBPe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPe
analitico.gerenciais.relatoriobpe.BPeSubstituido=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPeSubstituido analitico.gerenciais.relatoriobpe.BPeSubstituido=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPeSubstituido
@ -234,7 +237,6 @@ analitico.gerenciais.financeiro.vendasRequisicao=com.rjconsultores.ventaboletos.
analitico.gerenciais.financeiro.aproveitamentoFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamentoFinanceiro analitico.gerenciais.financeiro.aproveitamentoFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamentoFinanceiro
analitico.gerenciais.financeiro.relatorioOperacionalFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCaixaOrgaoConcedente analitico.gerenciais.financeiro.relatorioOperacionalFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCaixaOrgaoConcedente
analitico.gerenciais.financeiro.relatorioResumoVendaOrgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoVendaOrgaoConcedente analitico.gerenciais.financeiro.relatorioResumoVendaOrgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoVendaOrgaoConcedente
analitico.gerenciais.financeiro.relatorioW2I=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFinanceiroW2I
analitico.gerenciais.financeiro.relatorioVendasConexaoRuta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasConexaoRuta analitico.gerenciais.financeiro.relatorioVendasConexaoRuta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasConexaoRuta
analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote
analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos

View File

@ -287,7 +287,9 @@ indexController.mniRelatorioEmbarqueLocalidade.label=Boarding by Places
indexController.mniIntegracion.cashmonitor.label=Cash Monitor indexController.mniIntegracion.cashmonitor.label=Cash Monitor
indexController.mniIntegracion.cashmonitor.relatoriovendacartaocashmonitor=Card Sale indexController.mniIntegracion.cashmonitor.relatoriovendacartaocashmonitor=Card Sale
indexController.mniRelatorioQuadroDemonstrativoMovimentoPassageiros.label=Passenger Demonstration Board indexController.mniRelatorioQuadroDemonstrativoMovimentoPassageiros.label=Passenger Demonstration Board
indexController.mniRelatoriosFinanceiroW2i.label = Reports W2i
indexController.mniRelatorios.label=Reports indexController.mniRelatorios.label=Reports
indexController.mniRelatorioAproveitamento.label=Utilizationi indexController.mniRelatorioAproveitamento.label=Utilizationi
indexController.mniRelatorioArquivoBGM.label=Arquivo BGM indexController.mniRelatorioArquivoBGM.label=Arquivo BGM
@ -373,7 +375,8 @@ indexController.mniRelatorioHistoricoCompras.label=Relatório Histórico de
indexController.mniRelatorioPosicaoVendaBilheteIdoso.label=Relatório Posição de Venda do Bilhete Idoso indexController.mniRelatorioPosicaoVendaBilheteIdoso.label=Relatório Posição de Venda do Bilhete Idoso
indexController.mniRelatorioVendaEmbarcada.label=Onboard Sales indexController.mniRelatorioVendaEmbarcada.label=Onboard Sales
indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente
indexController.mniRelatorioW2I.label = Relatório W2I indexController.mniRelatorioW2I.label = Relatório Seguro W2I
indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal

View File

@ -296,6 +296,8 @@ indexController.mniIntegracion.cashmonitor.label = Cash Monitor
indexController.mniIntegracion.cashmonitor.relatoriovendacartaocashmonitor = Venda de cartão indexController.mniIntegracion.cashmonitor.relatoriovendacartaocashmonitor = Venda de cartão
indexController.mniRelatorioQuadroDemonstrativoMovimentoPassageiros.label = Quadro Demonstrativo Movimento Passageiros indexController.mniRelatorioQuadroDemonstrativoMovimentoPassageiros.label = Quadro Demonstrativo Movimento Passageiros
indexController.mniRelatoriosFinanceiroW2i.label = Reportes W2i
indexController.mniRelatorios.label = Reportes indexController.mniRelatorios.label = Reportes
indexController.mniRelatorioAproveitamento.label = Aprovechamiento indexController.mniRelatorioAproveitamento.label = Aprovechamiento
indexController.mniRelatorioArquivoBGM.label = Arquivo BGM indexController.mniRelatorioArquivoBGM.label = Arquivo BGM
@ -378,7 +380,8 @@ indexController.mniRelatorioVendaEmbarcada.label = Venda Embarcada
indexController.mniRelatorioRemessaCNAB.label = Remessa de Lote (CNAB 400) indexController.mniRelatorioRemessaCNAB.label = Remessa de Lote (CNAB 400)
indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente
indexController.mniRelatorioVendaConexaoLinha.label = Relatório Vendas de Conexão por Linha indexController.mniRelatorioVendaConexaoLinha.label = Relatório Vendas de Conexão por Linha
indexController.mniRelatorioW2I.label = Relatório W2I indexController.mniRelatorioW2I.label = Relatório Seguro W2I
indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I
indexController.mnSubMenuImpressaoFiscal.label=Impresión fiscal indexController.mnSubMenuImpressaoFiscal.label=Impresión fiscal
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importación fiscal indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importación fiscal

View File

@ -309,6 +309,8 @@ indexController.mniIntegracion.cashmonitor.label = Cash Monitor
indexController.mniIntegracion.cashmonitor.relatoriovendacartaocashmonitor = Venda de cartão indexController.mniIntegracion.cashmonitor.relatoriovendacartaocashmonitor = Venda de cartão
indexController.mniRelatorioQuadroDemonstrativoMovimentoPassageiros.label = Quadro Demonstrativo Movimento Passageiros indexController.mniRelatorioQuadroDemonstrativoMovimentoPassageiros.label = Quadro Demonstrativo Movimento Passageiros
indexController.mniRelatoriosFinanceiroW2i.label = Relatórios W2i
indexController.mniRelatorios.label = Relatórios indexController.mniRelatorios.label = Relatórios
indexController.mniRelatorioAproveitamento.label = Aproveitamento indexController.mniRelatorioAproveitamento.label = Aproveitamento
indexController.mniRelatorioArquivoBGM.label = Arquivo BGM indexController.mniRelatorioArquivoBGM.label = Arquivo BGM
@ -402,6 +404,7 @@ indexController.mniRelatorioPosicaoVendaBilheteIdoso.label = Relatório Posiçã
indexController.mniRelatorioVendaEmbarcada.label = Venda Embarcada indexController.mniRelatorioVendaEmbarcada.label = Venda Embarcada
indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente
indexController.mniRelatorioW2I.label = Relatório Seguro W2I indexController.mniRelatorioW2I.label = Relatório Seguro W2I
indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal

View File

@ -0,0 +1,156 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winFiltroRelatorioW2I"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioW2I" apply="${relatorioW2ITaxaEmbarqueController}"
contentStyle="overflow:auto" width="800px" border="normal">
<grid fixedLayout="true">
<columns>
<column width="15%" />
<column width="35%" />
<column width="15%" />
<column width="35%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioW2IController.lbDatInicial.value')}" />
<datebox id="datInicial" width="95%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
mold="rounded" lenient="true" constraint="no empty" />
<label
value="${c:l('relatorioW2IController.lbDatFinal.value')}" />
<datebox id="datFinal" width="95%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
mold="rounded" lenient="true" constraint="no empty" />
</row>
<row>
<label
value="${c:l('relatorioW2IController.lbCidadaOrigem.value')}" />
<cell>
<combobox id="cmbParadaOrigemCve"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
mold="rounded" buttonVisible="true" width="30%" />
<combobox id="cmbParadaOrigem"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
mold="rounded" buttonVisible="true" width="65%" />
</cell>
<label
value="${c:l('relatorioW2IController.lbCidadeDestino.value')}" />
<cell>
<combobox id="cmbParadaDestinoCve"
autodrop="false"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
mold="rounded" buttonVisible="true" width="30%" />
<combobox id="cmbParadaDestino" autodrop="false"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
mold="rounded" buttonVisible="true" width="65%" />
</cell>
</row>
<row spans="1,1,2">
<cell rowspan="2" align="left">
<label
value="${c:l('relatorioW2IController.lbEmpresa.value')}" />
</cell>
<cell rowspan="2" align="left">
<combobox id="cmbEmpresa" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioW2I$composer.lsEmpresa}" width="95%" />
</cell>
<hbox>
<radiogroup id="rdGroupTipoData">
<radio radiogroup="rdGroupTipoData"
value="1" checked="true"
label="${c:l('relatorioW2IController.lbTipoData.venda.value')}" />
<radio radiogroup="rdGroupTipoData"
value="2"
label="${c:l('relatorioW2IController.lbTipoData.servico.value')}" />
</radiogroup>
</hbox>
</row>
<row spans="1,1,2">
<cell colspan="2" align="center">
<label value="" />
<hbox width="100%">
<radiogroup id="rdGroupTipoRelatorio">
<radio radiogroup="rdGroupTipoRelatorio"
value="1" checked="true"
label="${c:l('relatorioW2IController.lbTipoRelatorio.analitico.value')}" />
<radio radiogroup="rdGroupTipoRelatorio"
value="2"
label="${c:l('relatorioW2IController.lbTipoRelatorio.sintetico.value')}" />
</radiogroup>
</hbox>
</cell>
</row>
<row spans="1,3">
<label
value="${c:l('relatorioW2IController.lbPuntoVenta.value')}" />
<bandbox id="bbPesquisaPuntoVenta" width="100%"
mold="rounded" readonly="true">
<bandpopup>
<vbox>
<hbox>
<label
value="${c:l('relatorioW2IController.lbPuntoVenta.value')}" />
<textbox id="txtNombrePuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
width="300px" mold="rounded" />
<button id="btnPesquisa"
image="/gui/img/find.png"
label="${c:l('relatorioW2IController.btnPesquisa.label')}" />
<button id="btnLimpar"
image="/gui/img/eraser.png"
label="${c:l('relatorioW2IController.btnLimpar.label')}" />
</hbox>
<paging id="pagingPuntoVenta"
pageSize="10" />
<listbox id="puntoVentaList"
mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" height="100%" width="700px">
<listhead>
<listheader
label="${c:l('relatorioW2IController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioW2IController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioW2IController.lbNumero.value')}" />
</listhead>
</listbox>
</vbox>
</bandpopup>
</bandbox>
</row>
<row spans="5">
<listbox id="puntoVentaSelList" mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" height="100px" width="100%">
<listhead>
<listheader
label="${c:l('relatorioW2IController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioW2IController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioW2IController.lbNumero.value')}" />
<listheader width="5%" />
</listhead>
</listbox>
<paging id="pagingSelPuntoVenta" pageSize="10" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>