Merge pull request 'fixes bug#AL-4146' (!532) from AL-4146 into master
Reviewed-on: adm/VentaBoletosAdm#532 Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>master 1.79.0
commit
9182e307fd
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.78.3</version>
|
<version>1.79.0</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -0,0 +1,328 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
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.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.negocio.CalculoImposto;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ExceptionConfiguracao;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioTaxasLinhaBean;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.MoneyHelper;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Bruno H. G. Gouvea <bruno@rjconsultores.com.br>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class RelatorioTaxasLinhaPorDataEmissao extends Relatorio {
|
||||||
|
|
||||||
|
private List<RelatorioTaxasLinhaBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param parametros
|
||||||
|
* @param conexao
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public RelatorioTaxasLinhaPorDataEmissao(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
CalculoImposto.limpaCache();
|
||||||
|
|
||||||
|
this.setCustomDataSource(false, 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");
|
||||||
|
|
||||||
|
Boolean isTxEmbarque = (Boolean) parametros.get("IS_TX_EMBARQUE");
|
||||||
|
Boolean isPedagio = (Boolean) parametros.get("IS_PEDAGIO");
|
||||||
|
Boolean isSeguro = (Boolean) parametros.get("IS_SEGURO");
|
||||||
|
Boolean isSeguroW2I = (Boolean) parametros.get("IS_SEGUROOPCIONAL");
|
||||||
|
|
||||||
|
lsDadosRelatorio = new ArrayList<RelatorioTaxasLinhaBean>();
|
||||||
|
|
||||||
|
String sql = getSql(puntosVentaIds);
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
|
||||||
|
ResultSet rset1 = 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);
|
||||||
|
|
||||||
|
rset1 = stmt.executeQuery();
|
||||||
|
|
||||||
|
|
||||||
|
while (rset1.next()) {
|
||||||
|
Boolean isValidado = false;
|
||||||
|
BigDecimal valorIcms;
|
||||||
|
// Se não for pra subtrair o ICMS, realiza o calculo e adiciona o mesmo
|
||||||
|
if(!(Boolean) parametros.get("B_SUBTRAIR_ICMS")){
|
||||||
|
valorIcms = BigDecimal.ZERO;
|
||||||
|
}else{
|
||||||
|
valorIcms = rset1.getBigDecimal("ICMS") == null ? BigDecimal.ZERO : rset1.getBigDecimal("ICMS");
|
||||||
|
}
|
||||||
|
String indInterestadual = rset1.getString("INTERESTADUAL");
|
||||||
|
Integer idEstado = rset1.getInt("ORIGEM_ESTADO_ID");
|
||||||
|
Integer empresaId = rset1.getInt("EMPRESA_ID");
|
||||||
|
|
||||||
|
BigDecimal importeTaxaEmbarque = rset1.getBigDecimal("IMPORTETAXAEMBARQUE") == null ? BigDecimal.ZERO : rset1.getBigDecimal("IMPORTETAXAEMBARQUE");
|
||||||
|
BigDecimal importePedagio = rset1.getBigDecimal("IMPORTEPEDAGIO") == null ? BigDecimal.ZERO : rset1.getBigDecimal("IMPORTEPEDAGIO");
|
||||||
|
BigDecimal importeSeguro = rset1.getBigDecimal("IMPORTESEGURO") == null ? BigDecimal.ZERO : rset1.getBigDecimal("IMPORTESEGURO");
|
||||||
|
|
||||||
|
BigDecimal totalEmbarque = rset1.getBigDecimal("TOTAL_EMBARQUE") == null ? BigDecimal.ZERO : rset1.getBigDecimal("TOTAL_EMBARQUE");
|
||||||
|
BigDecimal totalPedagio = rset1.getBigDecimal("TOTAL_PEDAGIO") == null ? BigDecimal.ZERO : rset1.getBigDecimal("TOTAL_PEDAGIO");
|
||||||
|
BigDecimal totalSeguro = rset1.getBigDecimal("TOTAL_SEGURO") == null ? BigDecimal.ZERO : rset1.getBigDecimal("TOTAL_SEGURO");
|
||||||
|
|
||||||
|
String prefixo = rset1.getString("PREFIXO") == null ? "" : rset1.getString("PREFIXO");
|
||||||
|
String cidadeOrigem = rset1.getString("CIDADE_ORIGEM") == null ? "" : rset1.getString("CIDADE_ORIGEM");
|
||||||
|
String cidadeDestino= rset1.getString("CIDADE_DESTINO") == null ? "" : rset1.getString("CIDADE_DESTINO");
|
||||||
|
|
||||||
|
String nombEmpresa = rset1.getString("NOMBEMPRESA") == null ? "" : rset1.getString("NOMBEMPRESA");
|
||||||
|
String nombPuntoVenta = rset1.getString("NOMBPUNTOVENTA") == null ? "" : rset1.getString("NOMBPUNTOVENTA");
|
||||||
|
BigDecimal embarque_vendidos = rset1.getBigDecimal("EMBARQUE_VENDIDOS") == null ? BigDecimal.ZERO : rset1.getBigDecimal("EMBARQUE_VENDIDOS");
|
||||||
|
BigDecimal pedagio_vendidos = rset1.getBigDecimal("PEDAGIO_VENDIDOS") == null ? BigDecimal.ZERO : rset1.getBigDecimal("PEDAGIO_VENDIDOS");
|
||||||
|
BigDecimal seguro_vendidos = rset1.getBigDecimal("SEGURO_VENDIDOS") == null ? BigDecimal.ZERO : rset1.getBigDecimal("SEGURO_VENDIDOS");
|
||||||
|
|
||||||
|
BigDecimal qtdSeguroOpcionalCancelado = rset1.getBigDecimal("QTD_SEGUROOPCIONALCANCELADO") == null ? BigDecimal.ZERO : rset1.getBigDecimal("QTD_SEGUROOPCIONALCANCELADO");
|
||||||
|
BigDecimal totalValorSeguroOpcionalCancelado = rset1.getBigDecimal("TOTAL_SEG_CANCELADO") == null ? BigDecimal.ZERO : rset1.getBigDecimal("TOTAL_SEG_CANCELADO");
|
||||||
|
BigDecimal qtdSeguroOpcionalVendidos = rset1.getBigDecimal("QTD_SEGUROOPCIONALVENDIDOS") == null ? BigDecimal.ZERO : rset1.getBigDecimal("QTD_SEGUROOPCIONALVENDIDOS");
|
||||||
|
BigDecimal totalValorseguroOpcionalVendido = rset1.getBigDecimal("TOTAL_SEG_VENDIDO") == null ? BigDecimal.ZERO : rset1.getBigDecimal("TOTAL_SEG_VENDIDO");
|
||||||
|
|
||||||
|
|
||||||
|
RelatorioTaxasLinhaBean taxasLinha = new RelatorioTaxasLinhaBean();
|
||||||
|
|
||||||
|
if(!importeTaxaEmbarque.equals(BigDecimal.ZERO) && (Boolean) this.relatorio.getParametros().get("B_SUBTRAIR_ICMS")){
|
||||||
|
valorIcms = CalculoImposto.getValorImposto(this.relatorio.getConexao(), idEstado, empresaId, indInterestadual, BigDecimal.ZERO, BigDecimal.ZERO, importeTaxaEmbarque, BigDecimal.ZERO);
|
||||||
|
importeTaxaEmbarque = MoneyHelper.subtrair(importeTaxaEmbarque, valorIcms);
|
||||||
|
}
|
||||||
|
taxasLinha.setIMPORTETAXAEMBARQUE(importeTaxaEmbarque);
|
||||||
|
|
||||||
|
if(!importePedagio.equals(BigDecimal.ZERO) && (Boolean) this.relatorio.getParametros().get("B_SUBTRAIR_ICMS")){
|
||||||
|
valorIcms = CalculoImposto.getValorImposto(this.relatorio.getConexao(), idEstado, empresaId, indInterestadual, BigDecimal.ZERO, BigDecimal.ZERO, BigDecimal.ZERO, importePedagio);
|
||||||
|
importePedagio = MoneyHelper.subtrair(importePedagio, valorIcms);
|
||||||
|
}
|
||||||
|
taxasLinha.setIMPORTEPEDAGIO(importePedagio);
|
||||||
|
|
||||||
|
if(!importeSeguro.equals(BigDecimal.ZERO) && (Boolean) this.relatorio.getParametros().get("B_SUBTRAIR_ICMS")){
|
||||||
|
valorIcms = CalculoImposto.getValorImposto(this.relatorio.getConexao(), idEstado, empresaId, indInterestadual, BigDecimal.ZERO, importeSeguro, BigDecimal.ZERO, BigDecimal.ZERO);
|
||||||
|
importeSeguro = MoneyHelper.subtrair(importeSeguro, valorIcms);
|
||||||
|
}
|
||||||
|
taxasLinha.setIMPORTESEGURO(importeSeguro);
|
||||||
|
|
||||||
|
if(!totalEmbarque.equals(BigDecimal.ZERO) && (Boolean) this.relatorio.getParametros().get("B_SUBTRAIR_ICMS")){
|
||||||
|
//Mantis 16205 - Alinhado com a Junia
|
||||||
|
//Estava sendo feita a subtracao do ICMS duas vezes, no valor unitario (Emb., Ped. e Seg.) e no totalizador (T Emb., T. Ped. e T. Seg.)
|
||||||
|
//Assim os valores não batiam quando se multiplicava o valor unitario pela Q. EMB. por serem calculos independentes.
|
||||||
|
//Agora o valor unitario é subtraido pelo ICMS e os totalizadores sao calculados pela multiplicado do Q. EMB.
|
||||||
|
|
||||||
|
// valorIcms = CalculoImposto.getValorImposto(this.relatorio.getConexao(), idEstado, empresaId, indInterestadual, BigDecimal.ZERO, BigDecimal.ZERO, totalEmbarque , BigDecimal.ZERO);
|
||||||
|
// totalEmbarque = MoneyHelper.subtrair(totalEmbarque, valorIcms);
|
||||||
|
totalEmbarque = importeTaxaEmbarque.multiply(embarque_vendidos);
|
||||||
|
|
||||||
|
}
|
||||||
|
taxasLinha.setTOTAL_EMBARQUE(totalEmbarque);
|
||||||
|
|
||||||
|
if(!totalPedagio.equals(BigDecimal.ZERO) && (Boolean) this.relatorio.getParametros().get("B_SUBTRAIR_ICMS")){
|
||||||
|
//Mantis 16205 - Alinhado com a Junia
|
||||||
|
//Estava sendo feita a subtracao do ICMS duas vezes, no valor unitario (Emb., Ped. e Seg.) e no totalizador (T Emb., T. Ped. e T. Seg.)
|
||||||
|
//Assim os valores não batiam quando se multiplicava o valor unitario pela Q. EMB. por serem calculados independentes.
|
||||||
|
//Agora o valor unitario é subtraído pelo ICMS e os totalizadores sao calculados pela multiplicacao do Q. EMB.
|
||||||
|
|
||||||
|
// valorIcms = CalculoImposto.getValorImposto(this.relatorio.getConexao(), idEstado, empresaId, indInterestadual, BigDecimal.ZERO, BigDecimal.ZERO, BigDecimal.ZERO, totalPedagio);
|
||||||
|
// totalPedagio = MoneyHelper.subtrair(totalPedagio, valorIcms);
|
||||||
|
totalPedagio = importePedagio.multiply(pedagio_vendidos);
|
||||||
|
}
|
||||||
|
taxasLinha.setTOTAL_PEDAGIO(totalPedagio);
|
||||||
|
|
||||||
|
if(!totalSeguro.equals(BigDecimal.ZERO) && (Boolean) this.relatorio.getParametros().get("B_SUBTRAIR_ICMS")){
|
||||||
|
//Mantis 16205 - Alinhado com a Junia
|
||||||
|
//Estava sendo feita a subtração do ICMS duas vezes, no valor unitario (Emb., Ped. e Seg.) e no totalizador (T Emb., T. Ped. e T. Seg.)
|
||||||
|
//Assim os valores não batiam quando se multiplicava o valor unitario pela Q. EMB. por serem calculos independentes.
|
||||||
|
//Agora o valor unitario é subtraído pelo ICMS e os totalizadores sao calculados pela multiplicação do Q. EMB.
|
||||||
|
|
||||||
|
// valorIcms = CalculoImposto.getValorImposto(this.relatorio.getConexao(), idEstado, empresaId, indInterestadual, BigDecimal.ZERO, totalSeguro, BigDecimal.ZERO, BigDecimal.ZERO);
|
||||||
|
// totalSeguro = MoneyHelper.subtrair(totalSeguro, valorIcms);
|
||||||
|
totalSeguro = importeSeguro.multiply(seguro_vendidos);
|
||||||
|
}
|
||||||
|
taxasLinha.setTOTAL_SEGURO(totalSeguro);
|
||||||
|
|
||||||
|
taxasLinha.setPREFIXO(prefixo);
|
||||||
|
taxasLinha.setCIDADE_ORIGEM(cidadeOrigem);
|
||||||
|
taxasLinha.setCIDADE_DESTINO(cidadeDestino);
|
||||||
|
|
||||||
|
taxasLinha.setNOMBEMPRESA(nombEmpresa);
|
||||||
|
taxasLinha.setNOMBPUNTOVENTA(nombPuntoVenta);
|
||||||
|
|
||||||
|
taxasLinha.setEMBARQUE_VENDIDOS(embarque_vendidos);
|
||||||
|
taxasLinha.setPEDAGIO_VENDIDOS(pedagio_vendidos);
|
||||||
|
taxasLinha.setSEGURO_VENDIDOS(seguro_vendidos);
|
||||||
|
|
||||||
|
taxasLinha.setQtdSeguroOpcionalCancelado(qtdSeguroOpcionalCancelado);
|
||||||
|
taxasLinha.setTotalValorSeguroOpcionalCancelado(totalValorSeguroOpcionalCancelado);
|
||||||
|
taxasLinha.setQtdSeguroOpcionalVendidos(qtdSeguroOpcionalVendidos);
|
||||||
|
taxasLinha.setTotalValorseguroOpcionalVendido(totalValorseguroOpcionalVendido);
|
||||||
|
|
||||||
|
if( importeTaxaEmbarque.doubleValue() > 0 && isTxEmbarque ) {
|
||||||
|
isValidado = true;
|
||||||
|
}else if( importeSeguro.doubleValue() > 0 && isSeguro ) {
|
||||||
|
isValidado = true;
|
||||||
|
}else if( importePedagio.doubleValue() > 0 && isPedagio ) {
|
||||||
|
isValidado = true;
|
||||||
|
}else if((taxasLinha.getTotalValorSeguroOpcionalCancelado().compareTo(BigDecimal.ZERO)==1 || taxasLinha.getTotalValorseguroOpcionalVendido().compareTo(BigDecimal.ZERO)==1) && isSeguroW2I ) {
|
||||||
|
isValidado = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
taxasLinha.setFecHorventa(rset1.getTimestamp("FECHORVENTA"));
|
||||||
|
|
||||||
|
if( isValidado ) {
|
||||||
|
lsDadosRelatorio.add(taxasLinha);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lsDadosRelatorio.size() > 0) {
|
||||||
|
|
||||||
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioTaxasLinhaBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* (non-Javadoc)
|
||||||
|
*
|
||||||
|
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
public HashMap<String, Object> getConfigImposto(Integer idEstado, Integer puntoVentaId) throws Exception {
|
||||||
|
HashMap<String, Object> cacheConfig = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
cacheConfig = (HashMap<String, Object>) CalculoImposto.getConfigImpostoByEstadoOrigem(this.getConexao(), idEstado, puntoVentaId);
|
||||||
|
} catch (Exception e) {
|
||||||
|
if (e instanceof ExceptionConfiguracao)
|
||||||
|
this.addInfoMsg(e.getMessage());
|
||||||
|
else
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
|
||||||
|
return cacheConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getSql(String puntosVentaIds) {
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
|
||||||
|
sql.append(" SELECT RT.PREFIXO, ");
|
||||||
|
sql.append(" PO.DESCPARADA CIDADE_ORIGEM, ");
|
||||||
|
sql.append(" PD.DESCPARADA CIDADE_DESTINO, ");
|
||||||
|
sql.append(" COALESCE(CJ.IMPORTETAXAEMBARQUE,0) AS IMPORTETAXAEMBARQUE, ");
|
||||||
|
sql.append(" COALESCE(CJ.IMPORTEPEDAGIO,0) AS IMPORTEPEDAGIO, ");
|
||||||
|
sql.append(" COALESCE(CJ.IMPORTESEGURO,0) AS IMPORTESEGURO, ");
|
||||||
|
sql.append(" EM.NOMBEMPRESA, ");
|
||||||
|
sql.append(" EM.EMPRESA_ID, ");
|
||||||
|
sql.append(" CJ.PUNTOVENTA_ID, ");
|
||||||
|
sql.append(" PV.NOMBPUNTOVENTA, ");
|
||||||
|
sql.append(" SUM(CASE WHEN (CJ.IMPORTETAXAEMBARQUE>0 and cj.indcancelacion = 0 ) THEN 1 WHEN (CJ.IMPORTETAXAEMBARQUE>0 and cj.indcancelacion = 1 ) then -1 ELSE 0 END) EMBARQUE_VENDIDOS, ");
|
||||||
|
sql.append(" SUM(CASE WHEN (CJ.IMPORTEPEDAGIO>0 and cj.indcancelacion = 0 ) THEN 1 WHEN (CJ.IMPORTEPEDAGIO>0 and cj.indcancelacion = 1 ) THEN -1 ELSE 0 END) PEDAGIO_VENDIDOS, ");
|
||||||
|
sql.append(" SUM(CASE WHEN (CJ.IMPORTESEGURO>0 and cj.indcancelacion = 0 ) THEN 1 WHEN (CJ.IMPORTESEGURO>0 and cj.indcancelacion = 1 ) THEN -1 ELSE 0 END) SEGURO_VENDIDOS, ");
|
||||||
|
sql.append(" CO.ESTADO_ID ORIGEM_ESTADO_ID, ");
|
||||||
|
sql.append(" CD.ESTADO_ID DESTINO_ESTADO_ID, ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN ");
|
||||||
|
sql.append(" 'S' ");
|
||||||
|
sql.append(" ELSE ");
|
||||||
|
sql.append(" 'N' ");
|
||||||
|
sql.append(" END INTERESTADUAL, ");
|
||||||
|
sql.append(" SUM( (case when cj.indcancelacion = 0 then 1 else -1 end) * CJ.IMPORTETAXAEMBARQUE) TOTAL_EMBARQUE, ");
|
||||||
|
sql.append(" SUM( (case when cj.indcancelacion = 0 then 1 else -1 end) * CJ.IMPORTEPEDAGIO) TOTAL_PEDAGIO, ");
|
||||||
|
sql.append(" SUM( (case when cj.indcancelacion = 0 then 1 else -1 end) * CJ.IMPORTESEGURO) TOTAL_SEGURO, ");
|
||||||
|
sql.append(" EST.ICMS AS ICMS, ");
|
||||||
|
sql.append(" SUM( (case when sx.status =0 then 1 else 0.0 end)) QTD_SEGUROOPCIONALCANCELADO, ");
|
||||||
|
sql.append(" SUM( (case when sx.status =0 then sx.valor else 0.0 end )) TOTAL_SEG_CANCELADO, ");
|
||||||
|
sql.append(" SUM( (case when sx.status >0 then 1 else 0.0 end )) QTD_SEGUROOPCIONALVENDIDOS, ");
|
||||||
|
sql.append(" SUM( (case when sx.status >0 then sx.valor else 0.0 end )) TOTAL_SEG_VENDIDO, ");
|
||||||
|
sql.append(" CJ.FECHORVENTA ");
|
||||||
|
sql.append("FROM CAJA CJ ");
|
||||||
|
sql.append("INNER JOIN PUNTO_VENTA PV ON CJ.PUNTOVENTA_ID = PV.PUNTOVENTA_ID ");
|
||||||
|
sql.append("INNER JOIN EMPRESA EM ON CJ.EMPRESACORRIDA_ID = EM.EMPRESA_ID ");
|
||||||
|
sql.append("INNER JOIN PARADA PO ON CJ.ORIGEN_ID = PO.PARADA_ID ");
|
||||||
|
sql.append("INNER JOIN PARADA PD ON CJ.DESTINO_ID = PD.PARADA_ID ");
|
||||||
|
sql.append("INNER JOIN CIUDAD CO ON PO.CIUDAD_ID = CO.CIUDAD_ID ");
|
||||||
|
sql.append("INNER JOIN ESTADO EST ON EST.ESTADO_ID = CO.estado_ID ");
|
||||||
|
sql.append("INNER JOIN CIUDAD CD ON PD.CIUDAD_ID = CD.CIUDAD_ID ");
|
||||||
|
sql.append("LEFT JOIN CORRIDA CR ON (CJ.CORRIDA_ID = CR.CORRIDA_ID AND CJ.FECCORRIDA = CR.FECCORRIDA) ");
|
||||||
|
sql.append("LEFT JOIN RUTA RT ON RT.RUTA_ID = CJ.RUTA_ID ");
|
||||||
|
sql.append("LEFT JOIN SEGPOLV SX ON SX.BOLETO_ID = CJ.TRANSACAO_ID ");
|
||||||
|
sql.append("LEFT JOIN TAXPOLV TX ON TX.BOLETO_ID = CJ.TRANSACAO_ID ");
|
||||||
|
|
||||||
|
sql.append("WHERE (CJ.IMPORTETAXAEMBARQUE>0 OR CJ.IMPORTEPEDAGIO>0 OR CJ.IMPORTESEGURO>0 OR SX.VALOR>0 OR TX.VALORTAXA > 0) ");
|
||||||
|
sql.append("AND CJ.INDSTATUSOPERACION = 'F' ");
|
||||||
|
sql.append("AND CJ.INDREIMPRESION = 0 ");
|
||||||
|
sql.append("AND DECODE(:TIPO_DATA, 1, CJ.FECHORVENTA, 2, CJ.FECCORRIDA) BETWEEN :DATA_INICIAL AND :DATA_FINAL ");
|
||||||
|
sql.append("AND EM.EMPRESA_ID = COALESCE(:EMPRESA_ID, EM.EMPRESA_ID) ");
|
||||||
|
|
||||||
|
if (!puntosVentaIds.equals("Todas")) {
|
||||||
|
sql.append(" AND PV.PUNTOVENTA_ID IN (").append(puntosVentaIds).append(") ");
|
||||||
|
}
|
||||||
|
sql.append(" AND PO.PARADA_ID = COALESCE(:ORIGEN_ID, PO.PARADA_ID) ");
|
||||||
|
sql.append(" AND PD.PARADA_ID = COALESCE(:DESTINO_ID, PD.PARADA_ID) ");
|
||||||
|
|
||||||
|
sql.append(" GROUP BY RT.PREFIXO, ");
|
||||||
|
sql.append(" PO.DESCPARADA, ");
|
||||||
|
sql.append(" PD.DESCPARADA, ");
|
||||||
|
sql.append(" COALESCE(CJ.IMPORTETAXAEMBARQUE,0), ");
|
||||||
|
sql.append(" COALESCE(CJ.IMPORTEPEDAGIO,0), ");
|
||||||
|
sql.append(" COALESCE(CJ.IMPORTESEGURO,0), ");
|
||||||
|
sql.append(" CO.ESTADO_ID, ");
|
||||||
|
sql.append(" CD.ESTADO_ID, ");
|
||||||
|
sql.append(" EM.NOMBEMPRESA, ");
|
||||||
|
sql.append(" EM.EMPRESA_ID, ");
|
||||||
|
sql.append(" CJ.PUNTOVENTA_ID, ");
|
||||||
|
sql.append(" PV.NOMBPUNTOVENTA, ");
|
||||||
|
sql.append(" EST.ICMS, ");
|
||||||
|
sql.append(" CJ.FECHORVENTA ");
|
||||||
|
sql.append(" ORDER BY EM.NOMBEMPRESA,PV.NOMBPUNTOVENTA ,PO.DESCPARADA, PD.DESCPARADA ");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -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:
|
Binary file not shown.
|
@ -0,0 +1,781 @@
|
||||||
|
<?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="RelatorioTaxasLinhaPorDataEmissao" 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.000000000000004"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<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"/>
|
||||||
|
<parameter name="IS_TX_EMBARQUE" class="java.lang.Boolean"/>
|
||||||
|
<parameter name="IS_PEDAGIO" class="java.lang.Boolean"/>
|
||||||
|
<parameter name="IS_SEGURO" class="java.lang.Boolean"/>
|
||||||
|
<parameter name="IS_SEGUROOPCIONAL" class="java.lang.Boolean"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="PREFIXO" class="java.lang.String"/>
|
||||||
|
<field name="CIDADE_ORIGEM" class="java.lang.String"/>
|
||||||
|
<field name="CIDADE_DESTINO" class="java.lang.String"/>
|
||||||
|
<field name="IMPORTETAXAEMBARQUE" class="java.math.BigDecimal"/>
|
||||||
|
<field name="IMPORTEPEDAGIO" class="java.math.BigDecimal"/>
|
||||||
|
<field name="IMPORTESEGURO" class="java.math.BigDecimal"/>
|
||||||
|
<field name="TOTAL_EMBARQUE" class="java.math.BigDecimal"/>
|
||||||
|
<field name="TOTAL_PEDAGIO" class="java.math.BigDecimal"/>
|
||||||
|
<field name="TOTAL_SEGURO" class="java.math.BigDecimal"/>
|
||||||
|
<field name="NOMBEMPRESA" class="java.lang.String"/>
|
||||||
|
<field name="NOMBPUNTOVENTA" class="java.lang.String"/>
|
||||||
|
<field name="EMBARQUE_VENDIDOS" class="java.math.BigDecimal"/>
|
||||||
|
<field name="PEDAGIO_VENDIDOS" class="java.math.BigDecimal"/>
|
||||||
|
<field name="SEGURO_VENDIDOS" class="java.math.BigDecimal"/>
|
||||||
|
<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"/>
|
||||||
|
<field name="fecHorventa" class="java.sql.Timestamp"/>
|
||||||
|
<variable name="TOTAL_EMBARQUE_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{TOTAL_EMBARQUE}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="TOTAL_PEDAGIO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{TOTAL_PEDAGIO}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="TOTAL_SEGURO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{TOTAL_SEGURO}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="TOTAL_EMBARQUE_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{TOTAL_EMBARQUE}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="TOTAL_PEDAGIO_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{TOTAL_PEDAGIO}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="TOTAL_SEGURO_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{TOTAL_SEGURO}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="EMBARQUE_VENDIDOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{EMBARQUE_VENDIDOS}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="PEDAGIO_VENDIDOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{PEDAGIO_VENDIDOS}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="SEGURO_VENDIDOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{SEGURO_VENDIDOS}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="EMBARQUE_VENDIDOS_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{EMBARQUE_VENDIDOS}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="PEDAGIO_VENDIDOS_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{PEDAGIO_VENDIDOS}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="SEGURO_VENDIDOS_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{SEGURO_VENDIDOS}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="qtdSeguroOpcionalCancelado_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" 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="qtdSeguroOpcionalVendidos_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" 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="qtdSeguroOpcionalCancelado_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdSeguroOpcionalCancelado}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="totalValorSeguroOpcionalCancelado_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{totalValorSeguroOpcionalCancelado}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="qtdSeguroOpcionalVendidos_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdSeguroOpcionalVendidos}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="totalValorseguroOpcionalVendido_2" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{totalValorseguroOpcionalVendido}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<group name="grpEmpresa">
|
||||||
|
<groupExpression><![CDATA[$F{NOMBEMPRESA}]]></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{NOMBEMPRESA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="0" width="554" 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>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="0617c1e5-cd2f-4b67-ba79-d68c6604275e" x="341" y="1" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{TOTAL_EMBARQUE_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="64e6d5bd-b475-479b-a12b-c4c28025fd57" x="371" y="1" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<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>
|
||||||
|
<reportElement uuid="95408a88-e07a-409a-a11d-5061362a9521" x="261" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{EMBARQUE_VENDIDOS_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="e6546467-4251-4025-a0b8-e6502bc5b141" x="286" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{PEDAGIO_VENDIDOS_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="d3f05b2b-2c01-4b3b-a471-e79b0e5bbd75" x="316" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{SEGURO_VENDIDOS_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="">
|
||||||
|
<reportElement uuid="aae4ca90-ecdd-4f3b-9199-20a7bd86ae56" x="433" y="1" width="27" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalCancelado_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="1e9dd609-759a-47ba-abe8-16186f491d24" x="461" y="1" width="33" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{totalValorSeguroOpcionalCancelado_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="">
|
||||||
|
<reportElement uuid="b60d9e41-0cee-4745-b7de-e8893a5730f3" x="495" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalVendidos_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="6f182823-9822-49ec-a0e1-76cca114addc" x="520" y="1" width="34" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{totalValorseguroOpcionalVendido_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="5162f048-897c-495a-9033-20c188c17d4e" x="401" y="1" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{TOTAL_SEGURO_1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</groupFooter>
|
||||||
|
</group>
|
||||||
|
<group name="AgenciaGroup">
|
||||||
|
<groupExpression><![CDATA[$F{NOMBPUNTOVENTA}]]></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{NOMBPUNTOVENTA}]]></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="433" y="0" width="121" 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="558" height="1"/>
|
||||||
|
</line>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" x="316" y="0" width="117" 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="433" y="31" width="121" 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="433" y="16" width="87" 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="520" y="16" width="34" 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="13">
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="1" width="554" height="1"/>
|
||||||
|
<graphicElement>
|
||||||
|
<pen lineWidth="0.5"/>
|
||||||
|
</graphicElement>
|
||||||
|
</line>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="1" width="31" height="11"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Prefixo]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="31" y="1" width="61" height="11"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Origem]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="93" y="1" width="61" height="11"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Destino]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="186" y="1" width="25" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Emb.]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="93a5880a-7547-4e53-85f4-09a6c22d5699" mode="Transparent" x="211" y="1" width="25" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Ped.]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="1d4f5650-a014-468d-a9b2-c58887492ace" mode="Transparent" x="236" y="1" width="25" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Seg.]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="9b724ccc-0e90-4271-9e51-54128161d074" mode="Transparent" x="341" y="1" width="30" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[T. Emb.]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="88be8133-60fd-45a5-9c81-363647bb3002" mode="Transparent" x="371" y="1" width="30" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[T. Ped.]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="bb5f610e-adc6-4f73-ba16-11ce1ec169a3" mode="Transparent" x="401" y="1" width="30" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[T. Seg.]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="c41834a6-5ca0-4bba-a5ac-0cc2dd7a35b5" mode="Transparent" x="261" y="1" width="25" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Q. Emb]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="88257609-1874-4558-b57a-bc6f811f7896" mode="Transparent" x="286" y="1" width="25" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Q. Ped]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="276a9b95-f7ce-44e7-a3a9-65f7fd6944fd" mode="Transparent" x="316" y="1" width="25" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Q. Seg]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="b5fde6f7-0dce-4379-bd51-9ca891f2ee64" mode="Transparent" x="433" y="1" width="27" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Q. SO.C]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="8234630e-a75c-41eb-8bdf-5f4741e30a18" mode="Transparent" x="461" y="1" width="33" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[T. SO.C]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="8ec41c30-637d-47bf-9034-7bf2325a340c" mode="Transparent" x="495" y="1" width="25" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<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>
|
||||||
|
<text><![CDATA[Q. SO]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="24525295-120f-4704-bc9a-ea2fdd548246" mode="Transparent" x="520" y="1" width="34" height="11" forecolor="#000000" backcolor="#FFFFFF">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Center" 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>
|
||||||
|
<text><![CDATA[T. SO]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement uuid="8f6976c6-bd48-447f-a07f-f6bbbc33b8f6" mode="Transparent" x="154" y="1" width="32" height="11" 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>
|
||||||
|
<text><![CDATA[Data Emi.]]></text>
|
||||||
|
</staticText>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="12">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="b12cbc2b-3eac-4c2c-b94c-cac2e746b2c2" x="0" y="1" width="31" height="11"/>
|
||||||
|
<box rightPadding="5"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$F{PREFIXO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="d19cff45-ad13-4a6b-b6f3-3e871a6d8d58" x="93" y="1" width="61" height="11"/>
|
||||||
|
<box rightPadding="5"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$F{CIDADE_DESTINO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="f868a599-c0bb-4187-97b6-7681b753abbf" x="31" y="1" width="61" height="11"/>
|
||||||
|
<box rightPadding="5"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$F{CIDADE_ORIGEM}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="6454beed-fb72-4aa5-8bff-7eb4ea6c26ba" x="186" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right" markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{IMPORTETAXAEMBARQUE}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="1242bccb-ce44-47d6-ac13-6f4df97f707e" x="211" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{IMPORTEPEDAGIO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="2184d556-1501-4525-8d09-510f9d798b86" x="236" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{IMPORTESEGURO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="58c1e14e-9c44-4e34-8b57-fbb6af384ce3" x="341" y="1" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{TOTAL_EMBARQUE}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="05426ccc-ff54-4381-8406-ae0c4290a54b" x="371" y="1" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{TOTAL_PEDAGIO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="8a365def-0ad3-48e8-b942-5d00f5d74a21" x="401" y="1" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{TOTAL_SEGURO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="7059069b-3c22-416a-afc1-d05473a3d429" x="261" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{EMBARQUE_VENDIDOS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="049ba79a-5ee9-4ee2-80d7-d498ad7d7125" x="286" y="0" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{PEDAGIO_VENDIDOS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="c15ba1bc-2040-4a73-a221-52d574fbedb4" x="316" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{SEGURO_VENDIDOS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="14366362-112f-4407-af42-1d4bb373340a" x="461" y="1" width="33" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{totalValorSeguroOpcionalCancelado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="">
|
||||||
|
<reportElement uuid="9921ad8d-d1bd-4789-becc-583210c0b4e9" x="433" y="1" width="27" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdSeguroOpcionalCancelado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="">
|
||||||
|
<reportElement uuid="1d0ddaa7-506e-4e81-b798-d6832489da83" x="495" y="1" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdSeguroOpcionalVendidos}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="fb64c49c-1370-47fd-a0b0-e4d5f24d02d9" x="520" y="1" width="34" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{totalValorseguroOpcionalVendido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="da706924-1662-451e-8841-3b6559657b90" x="154" y="1" width="32" height="11"/>
|
||||||
|
<textElement textAlignment="Right" markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{fecHorventa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<lastPageFooter>
|
||||||
|
<band height="11">
|
||||||
|
<textField evaluationTime="Auto" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="1d265368-d216-4cec-a824-a0c0b5536a43" x="341" y="0" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{TOTAL_EMBARQUE_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Auto" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="adfa3eb3-6ab0-4141-aced-e3d231e4f433" x="371" y="0" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<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 evaluationTime="Auto" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="a4f4cff0-6b6e-42f0-9f07-7cbd06f5a545" x="401" y="0" width="30" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{TOTAL_SEGURO_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="58961ea4-a59e-4a77-b898-b2df93fc43cb" x="261" y="0" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_TX_EMBARQUE}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{EMBARQUE_VENDIDOS_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="96bd08a5-5321-4938-8d4b-5260faa9a283" x="286" y="0" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_PEDAGIO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{PEDAGIO_VENDIDOS_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="c090f6cf-7340-4990-92d0-101fbf056cb7" x="316" y="0" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGURO}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{SEGURO_VENDIDOS_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Auto" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="8e2ee368-5832-4f62-875e-0267b5759e18" x="433" y="0" width="27" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalCancelado_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Auto" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="20bce09a-9883-41fc-ad0c-8759f8cad519" x="461" y="0" width="33" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{totalValorSeguroOpcionalCancelado_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Auto" pattern="">
|
||||||
|
<reportElement uuid="c3ab4658-281d-4d4b-ab42-0119e259812e" x="495" y="0" width="25" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{qtdSeguroOpcionalVendidos_2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Auto" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="e550f9d5-3815-4158-9162-2366889d1963" x="520" y="0" width="34" height="11">
|
||||||
|
<printWhenExpression><![CDATA[$P{IS_SEGUROOPCIONAL}]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{totalValorseguroOpcionalVendido_2}]]></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>
|
|
@ -42,6 +42,7 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioTaxasLinha;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioTaxasLinha;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioTaxasLinhaPorDataEmissao;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.negocio.CalculoImposto;
|
import com.rjconsultores.ventaboletos.relatorios.negocio.CalculoImposto;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioTaxasLinhaBean;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioTaxasLinhaBean;
|
||||||
|
@ -181,10 +182,106 @@ public class RelatorioTaxasLinhaController extends MyGenericForwardComposer {
|
||||||
executarRelatorio();
|
executarRelatorio();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onClick$btnExecutarRelatorioPorDataEmissao(Event ev) throws Exception {
|
||||||
|
executarRelatorioPorDataEmissao();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
|
private void executarRelatorioPorDataEmissao() 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 = "Todas";
|
||||||
|
} 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("relatorioTaxasLinhaController.window.title"));
|
||||||
|
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||||
|
parametros.put("TIPO_DATA", Integer.parseInt(rdGroupTipoData.getSelectedItem().getValue()));
|
||||||
|
parametros.put("NUMPUNTOVENTA", puntoVentaIds);
|
||||||
|
parametros.put("B_SUBTRAIR_ICMS", ((Boolean) (chkSubtrairIcms.isChecked())));
|
||||||
|
parametros.put("IS_TX_EMBARQUE", ((Boolean) (chkTaxaEmbarque.isChecked())));
|
||||||
|
parametros.put("IS_PEDAGIO", (Boolean) chkTaxaPedagio.isChecked());
|
||||||
|
parametros.put("IS_SEGURO", chkTaxaSeguro.isChecked());
|
||||||
|
parametros.put("IS_SEGUROOPCIONAL", chkTaxaSeguroOpcional.isChecked());
|
||||||
|
filtro.append(" Tipo de Data: " + (rdGroupTipoData.getSelectedItem().getValue().equals(1) ? " Origem;" : "Destino;"));
|
||||||
|
filtro.append(" Subtrair ICMS: " + (chkSubtrairIcms.isChecked() ? " Sim;" : "Não;"));
|
||||||
|
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 {
|
||||||
|
if(chkDownloadTxt.isChecked())
|
||||||
|
exportarTxt(parametros, connection);
|
||||||
|
|
||||||
|
parametros.put("FILTROS", filtro.toString());
|
||||||
|
relatorio = new RelatorioTaxasLinhaPorDataEmissao(parametros, connection);
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul",
|
||||||
|
Labels.getLabel("relatorioTaxasLinhaController.window.title"), args, MODAL);
|
||||||
|
} finally {
|
||||||
|
if ((connection != null) && !connection.isClosed()) {
|
||||||
|
connection.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
private void executarRelatorio() throws Exception {
|
private void executarRelatorio() throws Exception {
|
||||||
Relatorio relatorio;
|
Relatorio relatorio;
|
||||||
|
@ -277,6 +374,7 @@ public class RelatorioTaxasLinhaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void exportarTxt(Map<String, Object> parametros, Connection conexao) throws Exception{
|
private void exportarTxt(Map<String, Object> parametros, Connection conexao) throws Exception{
|
||||||
|
|
||||||
Calendar data = Calendar.getInstance();
|
Calendar data = Calendar.getInstance();
|
||||||
|
@ -668,5 +766,4 @@ public class RelatorioTaxasLinhaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9450,6 +9450,7 @@ relatorioTaxasLinhaController.window.title = Relatório de Taxas por Linha
|
||||||
relatorioTrechoVendidoController.btnLimpar.label = Limpar Seleção
|
relatorioTrechoVendidoController.btnLimpar.label = Limpar Seleção
|
||||||
relatorioTrechoVendidoController.btnPesquisa.label = Pesquisar
|
relatorioTrechoVendidoController.btnPesquisa.label = Pesquisar
|
||||||
relatorioTrechoVendidoController.lbDataFin.value = Data Final
|
relatorioTrechoVendidoController.lbDataFin.value = Data Final
|
||||||
|
relatorio.lb.btnExecutarRelatorioPorDataEmissao= Detailed by Issue Date
|
||||||
#Relatorio Trecho Vendido
|
#Relatorio Trecho Vendido
|
||||||
relatorioTrechoVendidoController.lbDataIni.value = Data Inicial
|
relatorioTrechoVendidoController.lbDataIni.value = Data Inicial
|
||||||
relatorioTrechoVendidoController.lbEmpresa.label = Empresa
|
relatorioTrechoVendidoController.lbEmpresa.label = Empresa
|
||||||
|
|
|
@ -9592,6 +9592,7 @@ relatorioTaxasLinhaController.window.title = Reporte de tasas por linea
|
||||||
relatorioTrechoVendidoController.btnLimpar.label = Limpiar selección
|
relatorioTrechoVendidoController.btnLimpar.label = Limpiar selección
|
||||||
relatorioTrechoVendidoController.btnPesquisa.label = Buscar
|
relatorioTrechoVendidoController.btnPesquisa.label = Buscar
|
||||||
relatorioTrechoVendidoController.lbDataFin.value = Fecha final
|
relatorioTrechoVendidoController.lbDataFin.value = Fecha final
|
||||||
|
relatorio.lb.btnExecutarRelatorioPorDataEmissao= Detallado por fecha de emisión
|
||||||
#Relatorio Tramo Vendido
|
#Relatorio Tramo Vendido
|
||||||
relatorioTrechoVendidoController.lbDataIni.value = Fecha inicial
|
relatorioTrechoVendidoController.lbDataIni.value = Fecha inicial
|
||||||
relatorioTrechoVendidoController.lbEmpresa.label = Empresa
|
relatorioTrechoVendidoController.lbEmpresa.label = Empresa
|
||||||
|
|
|
@ -9563,6 +9563,7 @@ relatorioTaxasLinhaController.window.title = Rapport des tarifs par ligne
|
||||||
relatorioTrechoVendidoController.btnLimpar.label = Effacer la sélection
|
relatorioTrechoVendidoController.btnLimpar.label = Effacer la sélection
|
||||||
relatorioTrechoVendidoController.btnPesquisa.label = Recherche
|
relatorioTrechoVendidoController.btnPesquisa.label = Recherche
|
||||||
relatorioTrechoVendidoController.lbDataFin.value = Date de fin
|
relatorioTrechoVendidoController.lbDataFin.value = Date de fin
|
||||||
|
relatorio.lb.btnExecutarRelatorioPorDataEmissao= Détaillé par date d'émission
|
||||||
#Relatorio Trecho Vendido
|
#Relatorio Trecho Vendido
|
||||||
relatorioTrechoVendidoController.lbDataIni.value = Date de début
|
relatorioTrechoVendidoController.lbDataIni.value = Date de début
|
||||||
relatorioTrechoVendidoController.lbEmpresa.label = Entreprise
|
relatorioTrechoVendidoController.lbEmpresa.label = Entreprise
|
||||||
|
|
|
@ -9567,6 +9567,7 @@ relatorioTaxasLinhaController.window.title = Relatório de Taxas por Linha
|
||||||
relatorioTrechoVendidoController.btnLimpar.label = Limpar Seleção
|
relatorioTrechoVendidoController.btnLimpar.label = Limpar Seleção
|
||||||
relatorioTrechoVendidoController.btnPesquisa.label = Pesquisar
|
relatorioTrechoVendidoController.btnPesquisa.label = Pesquisar
|
||||||
relatorioTrechoVendidoController.lbDataFin.value = Data Final
|
relatorioTrechoVendidoController.lbDataFin.value = Data Final
|
||||||
|
relatorio.lb.btnExecutarRelatorioPorDataEmissao= Detalhado por Data Emissão
|
||||||
#Relatorio Trecho Vendido
|
#Relatorio Trecho Vendido
|
||||||
relatorioTrechoVendidoController.lbDataIni.value = Data Inicial
|
relatorioTrechoVendidoController.lbDataIni.value = Data Inicial
|
||||||
relatorioTrechoVendidoController.lbEmpresa.label = Empresa
|
relatorioTrechoVendidoController.lbEmpresa.label = Empresa
|
||||||
|
|
|
@ -158,6 +158,8 @@
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||||
|
<button id="btnExecutarRelatorioPorDataEmissao" image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorio.lb.btnExecutarRelatorioPorDataEmissao')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
</window>
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
Loading…
Reference in New Issue