diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesBoletos.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesBoletos.java index c46a73a4b..a78c900b5 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesBoletos.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesBoletos.java @@ -16,6 +16,7 @@ import org.apache.log4j.Logger; import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasPacotesBoletosBean; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasPacotesBoletosBean.RelatorioVendasPacotesBoletosItemBean; import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; public class RelatorioVendasPacotesBoletos extends Relatorio { @@ -29,24 +30,37 @@ public class RelatorioVendasPacotesBoletos extends Relatorio { private Date fecInicio; private Date fecFinal; private Integer empresaId; - + private Integer origenId; + private Integer destinoId; + private Integer usuarioId; + private Integer tipoTarifaPacoteId; + public RelatorioVendasPacotesBoletos(Map parametros, Connection conexao, final String... nomeSubReporte) throws Exception { super(parametros, conexao); this.setCustomDataSource(new DataSource(this) { + + @Override public void initDados() throws Exception { Map parametros = this.relatorio.getParametros(); fecInicio = new java.sql.Date(sdf.parse(parametros.get("fecInicio").toString()).getTime()); fecFinal = new java.sql.Date(sdf.parse(parametros.get("fecFinal").toString()).getTime()); empresaId = parametros.get("empresaId") != null && !parametros.get("empresaId").equals("null") ? Integer.valueOf(parametros.get("empresaId").toString()) : null; + origenId = parametros.get("origenId") != null && !parametros.get("origenId").equals("null") ? Integer.valueOf(parametros.get("origenId").toString()) : null; + destinoId = parametros.get("destinoId") != null && !parametros.get("destinoId").equals("null") ? Integer.valueOf(parametros.get("destinoId").toString()) : null; + usuarioId = parametros.get("usuarioId") != null && !parametros.get("usuarioId").equals("null") ? Integer.valueOf(parametros.get("usuarioId").toString()) : null; + tipoTarifaPacoteId = parametros.get("tipoTarifaPacoteId") != null && !parametros.get("tipoTarifaPacoteId").equals("null") ? Integer.valueOf(parametros.get("tipoTarifaPacoteId").toString()) : null; Connection conexao = this.relatorio.getConexao(); processarVendasPacote(conexao); + processarVendasPacoteCancelados(conexao); + processarVendasPacoteTotais(); setNomeSubReporte(nomeSubReporte); setLsDadosRelatorio(lsDadosRelatorio); } + }); } @@ -55,22 +69,7 @@ public class RelatorioVendasPacotesBoletos extends Relatorio { NamedParameterStatement stmt = null; try { - String sql = getSqlPacotes(); - - log.info(sql); - - stmt = new NamedParameterStatement(conexao, sql); - - if(fecInicio != null) { - stmt.setDate("fecInicio", fecInicio); - } - if(fecFinal != null) { - stmt.setDate("fecFinal", fecFinal); - } - if (empresaId != null){ - stmt.setInt("empresaId", empresaId); - } - + stmt = carregarNamedParameterStatement(conexao, false); rset = stmt.executeQuery(); if(lsDadosRelatorio == null) { @@ -78,31 +77,14 @@ public class RelatorioVendasPacotesBoletos extends Relatorio { } while (rset.next()) { - RelatorioVendasPacotesBoletosBean relatorioVendasBoletosBean = new RelatorioVendasPacotesBoletosBean(); - relatorioVendasBoletosBean.setDescdestino(rset.getString("destino")); - relatorioVendasBoletosBean.setDescorigen(rset.getString("origem")); + RelatorioVendasPacotesBoletosBean relatorioVendasBoletosBean = carregarRelatorioVendasBoletosBean(rset); + Integer idx = carregarIndice(relatorioVendasBoletosBean); - Integer idx = null; - if(lsDadosRelatorio.contains(relatorioVendasBoletosBean)) { - idx = lsDadosRelatorio.indexOf(relatorioVendasBoletosBean); - relatorioVendasBoletosBean = lsDadosRelatorio.get(idx); + if(idx != null) { + relatorioVendasBoletosBean = lsDadosRelatorio.get(idx); } - RelatorioVendasPacotesBoletosBean.RelatorioVendasPacotesBoletosItemBean relatorioVendasPacotesBoletosItemBean = new RelatorioVendasPacotesBoletosBean().new RelatorioVendasPacotesBoletosItemBean(); - relatorioVendasPacotesBoletosItemBean.setNomconvenio(rset.getString("nomconvenio")); - relatorioVendasPacotesBoletosItemBean.setDesctipotarifa(rset.getString("desctipotarifa")); - relatorioVendasPacotesBoletosItemBean.setQtde(rset.getLong("qtde")); - relatorioVendasPacotesBoletosItemBean.setSimportetaxaembarque(rset.getBigDecimal("simportetaxaembarque")); - relatorioVendasPacotesBoletosItemBean.setSimportepedagio(rset.getBigDecimal("simportepedagio")); - relatorioVendasPacotesBoletosItemBean.setSimporteoutros(rset.getBigDecimal("simporteoutros")); - relatorioVendasPacotesBoletosItemBean.setSimporteseguro(rset.getBigDecimal("simporteseguro")); - relatorioVendasPacotesBoletosItemBean.setSpreciobase(rset.getBigDecimal("spreciobase")); - relatorioVendasPacotesBoletosItemBean.setDesconto(rset.getBigDecimal("desconto")); - - if(relatorioVendasBoletosBean.getRelatorioVendasPacotesBoletosItemBeans() == null) { - relatorioVendasBoletosBean.setRelatorioVendasPacotesBoletosItemBeans(new ArrayList()); - } - relatorioVendasBoletosBean.getRelatorioVendasPacotesBoletosItemBeans().add(relatorioVendasPacotesBoletosItemBean); + relatorioVendasBoletosBean.setRelatorioVendasPacotesBoletosItemBeans(carregarItens(rset, relatorioVendasBoletosBean, relatorioVendasBoletosBean.getRelatorioVendasPacotesBoletosItemBeans())); if(idx != null) { lsDadosRelatorio.set(idx, relatorioVendasBoletosBean); @@ -128,10 +110,130 @@ public class RelatorioVendasPacotesBoletos extends Relatorio { } - protected String getSqlPacotes() { + private List carregarItens(ResultSet rset, RelatorioVendasPacotesBoletosBean relatorioVendasPacotesBoletosBean, List itens) throws SQLException { + RelatorioVendasPacotesBoletosBean.RelatorioVendasPacotesBoletosItemBean relatorioVendasPacotesBoletosItemBean = relatorioVendasPacotesBoletosBean.new RelatorioVendasPacotesBoletosItemBean(); + relatorioVendasPacotesBoletosItemBean.setNomconvenio(rset.getString("nomconvenio")); + relatorioVendasPacotesBoletosItemBean.setDesctipotarifa(rset.getString("desctipotarifa")); + relatorioVendasPacotesBoletosItemBean.setQtde(rset.getLong("qtde")); + relatorioVendasPacotesBoletosItemBean.setSimportetaxaembarque(rset.getBigDecimal("simportetaxaembarque")); + relatorioVendasPacotesBoletosItemBean.setSimportepedagio(rset.getBigDecimal("simportepedagio")); + relatorioVendasPacotesBoletosItemBean.setSimporteoutros(rset.getBigDecimal("simporteoutros")); + relatorioVendasPacotesBoletosItemBean.setSimporteseguro(rset.getBigDecimal("simporteseguro")); + relatorioVendasPacotesBoletosItemBean.setSpreciobase(rset.getBigDecimal("spreciobase")); + relatorioVendasPacotesBoletosItemBean.setDesconto(rset.getBigDecimal("desconto")); + + if(itens == null) { + itens = new ArrayList(); + } + itens.add(relatorioVendasPacotesBoletosItemBean); + + return itens; + } + + private Integer carregarIndice(RelatorioVendasPacotesBoletosBean relatorioVendasBoletosBean) { + Integer idx = null; + if(lsDadosRelatorio.contains(relatorioVendasBoletosBean)) { + idx = lsDadosRelatorio.indexOf(relatorioVendasBoletosBean); + relatorioVendasBoletosBean = lsDadosRelatorio.get(idx); + } + return idx; + } + + private RelatorioVendasPacotesBoletosBean carregarRelatorioVendasBoletosBean(ResultSet rset) throws SQLException { + RelatorioVendasPacotesBoletosBean relatorioVendasPacotesBoletosBean = new RelatorioVendasPacotesBoletosBean(); + relatorioVendasPacotesBoletosBean.setDescdestino(rset.getString("destino")); + relatorioVendasPacotesBoletosBean.setDescorigen(rset.getString("origem")); + relatorioVendasPacotesBoletosBean.setCvedestino(rset.getString("cvedestino")); + relatorioVendasPacotesBoletosBean.setCveorigen(rset.getString("cveorigem")); + /*relatorioVendasPacotesBoletosBean.setTotais(new ArrayList()); + relatorioVendasPacotesBoletosBean.getTotais().add(relatorioVendasPacotesBoletosBean.new RelatorioVendasPacotesBoletosItemTotaisBean("CWB-MOR","ADULTO",2)); + relatorioVendasPacotesBoletosBean.getTotais().add(relatorioVendasPacotesBoletosBean.new RelatorioVendasPacotesBoletosItemTotaisBean("CWB-MOR","CHD",2)); + relatorioVendasPacotesBoletosBean.getTotais().add(relatorioVendasPacotesBoletosBean.new RelatorioVendasPacotesBoletosItemTotaisBean("MOR-CWB","SEGURO",2));*/ + + return relatorioVendasPacotesBoletosBean; + } + + private void processarVendasPacoteCancelados(Connection conexao) { + ResultSet rset = null; + NamedParameterStatement stmt = null; + + try { + stmt = carregarNamedParameterStatement(conexao, true); + rset = stmt.executeQuery(); + + if(lsDadosRelatorio == null) { + lsDadosRelatorio = new ArrayList(); + } + + while (rset.next()) { + RelatorioVendasPacotesBoletosBean relatorioVendasBoletosBean = carregarRelatorioVendasBoletosBean(rset); + Integer idx = carregarIndice(relatorioVendasBoletosBean); + + if(idx != null) { + relatorioVendasBoletosBean = lsDadosRelatorio.get(idx); + } + + relatorioVendasBoletosBean.setRelatorioVendasPacotesBoletosItemBeansCancelados(carregarItens(rset, relatorioVendasBoletosBean, relatorioVendasBoletosBean.getRelatorioVendasPacotesBoletosItemBeansCancelados())); + + if(idx != null) { + lsDadosRelatorio.set(idx, relatorioVendasBoletosBean); + } else { + lsDadosRelatorio.add(relatorioVendasBoletosBean); + } + } + + } catch (Exception e) { + log.error(e.getMessage(), e); + } finally { + try { + if(rset != null) { + rset.close(); + } + if(stmt != null) { + stmt.close(); + } + } catch (SQLException e) { + log.error(e.getMessage(), e); + } + } + + } + + private NamedParameterStatement carregarNamedParameterStatement(Connection conexao, boolean cancelados) throws SQLException { + String sql = getSqlPacotes(cancelados); + log.info(sql); + + NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); + + if(fecInicio != null) { + stmt.setDate("fecInicio", fecInicio); + } + if(fecFinal != null) { + stmt.setDate("fecFinal", fecFinal); + } + if (empresaId != null){ + stmt.setInt("empresaId", empresaId); + } + if(origenId != null) { + stmt.setInt("origenId", origenId); + } + if(destinoId != null) { + stmt.setInt("destinoId", destinoId); + } + if(usuarioId != null) { + stmt.setInt("usuarioId", usuarioId); + } + if(tipoTarifaPacoteId != null && tipoTarifaPacoteId > 0) { + stmt.setInt("tipoTarifaPacoteId", tipoTarifaPacoteId); + } + + return stmt; + } + + protected String getSqlPacotes(boolean cancelado) { StringBuilder sQuery = new StringBuilder(); - sQuery.append("SELECT ORI.DESCPARADA AS ORIGEM, DES.DESCPARADA AS DESTINO, TVP.NOMCONVENIO, TTP.DESCTIPOTARIFA, ") + sQuery.append("SELECT DES.CVEPARADA AS CVEDESTINO, ORI.CVEPARADA AS CVEORIGEM, ORI.DESCPARADA AS ORIGEM, DES.DESCPARADA AS DESTINO, TVP.NOMCONVENIO, TTP.DESCTIPOTARIFA, ") .append("COUNT(TVP.TARIFAVENDAPACOTE_ID) AS QTDE, SUM(B.IMPORTETAXAEMBARQUE) AS SIMPORTETAXAEMBARQUE, SUM(B.IMPORTEPEDAGIO) AS SIMPORTEPEDAGIO, ") .append("SUM(B.IMPORTEOUTROS) AS SIMPORTEOUTROS, SUM(B.IMPORTESEGURO) AS SIMPORTESEGURO, SUM(B.PRECIOBASE) AS SPRECIOBASE, SUM(B.PRECIOBASE - B.PRECIOPAGADO) AS DESCONTO ") .append("FROM VENDA_PACOTE VP ") @@ -143,14 +245,35 @@ public class RelatorioVendasPacotesBoletos extends Relatorio { .append("LEFT JOIN PARADA ORI ON ORI.PARADA_ID = B.ORIGEN_ID ") .append("LEFT JOIN PARADA DES ON DES.PARADA_ID = B.DESTINO_ID ") .append("WHERE P.ACTIVO = 1 ") - .append("AND B.ACTIVO = 1 ") - .append("AND B.INDSTATUSBOLETO = 'V' ") - .append("AND B.MOTIVOCANCELACION_ID IS NULL "); + .append("AND B.ACTIVO = 1 "); + + if(!cancelado) { + sQuery.append("AND B.INDSTATUSBOLETO = 'V' ") + .append("AND B.MOTIVOCANCELACION_ID IS NULL "); + } else { + sQuery.append("AND B.MOTIVOCANCELACION_ID IS NOT NULL "); + } if(empresaId != null) { sQuery.append("AND P.EMPRESA_ID = :empresaId "); } + if(origenId != null) { + sQuery.append("AND B.ORIGEN_ID = :origenId "); + } + + if(destinoId != null) { + sQuery.append("AND B.DESTINO_ID = :destinoId "); + } + + if(usuarioId != null) { + sQuery.append("AND VP.USUARIO_ID = :usuarioId "); + } + + if(tipoTarifaPacoteId != null && tipoTarifaPacoteId > 0) { + sQuery.append("AND TTP.TIPOTARIFAPACOTE_ID = :tipoTarifaPacoteId "); + } + if(fecInicio != null) { sQuery.append("AND VP.DATAVENDA >= :fecInicio "); } @@ -159,11 +282,36 @@ public class RelatorioVendasPacotesBoletos extends Relatorio { sQuery.append("AND VP.DATAVENDA <= :fecFinal "); } - sQuery.append("GROUP BY ORI.DESCPARADA,DES.DESCPARADA,TVP.NOMCONVENIO,TTP.DESCTIPOTARIFA ") - .append("ORDER BY ORI.DESCPARADA,DES.DESCPARADA,TVP.NOMCONVENIO,TTP.DESCTIPOTARIFA "); + sQuery.append("GROUP BY DES.CVEPARADA,ORI.CVEPARADA,ORI.DESCPARADA,DES.DESCPARADA,TVP.NOMCONVENIO,TTP.DESCTIPOTARIFA ") + .append("ORDER BY DES.CVEPARADA,ORI.CVEPARADA,ORI.DESCPARADA,DES.DESCPARADA,TVP.NOMCONVENIO,TTP.DESCTIPOTARIFA "); return sQuery.toString(); } + + private void processarVendasPacoteTotais() { + List totais = new ArrayList(); + for (RelatorioVendasPacotesBoletosBean relatorioVendasPacotesBoletosBean : lsDadosRelatorio) { + for (RelatorioVendasPacotesBoletosItemBean item : relatorioVendasPacotesBoletosBean.getRelatorioVendasPacotesBoletosItemBeans()) { + RelatorioVendasPacotesBoletosBean.RelatorioVendasPacotesBoletosItemTotaisBean total = relatorioVendasPacotesBoletosBean.new RelatorioVendasPacotesBoletosItemTotaisBean(); + total.setTrecho(relatorioVendasPacotesBoletosBean.getCveorigen()+"-"+relatorioVendasPacotesBoletosBean.getCvedestino()); + total.setCategoria(item.getDesctipotarifa()); + total.setQtde(0l); + Integer idx = null; + if(totais.contains(total)) { + idx = totais.indexOf(total); + total = totais.get(idx); + } + total.setQtde(total.getQtde() + item.getQtde()); + + if(idx == null) { + totais.add(total); + } else { + totais.set(idx, total); + } + } + } + this.parametros.put("totais", totais); + } @Override protected void processaParametros() throws Exception { diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesDetalhado.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesDetalhado.java index 5724d928e..28c46fd13 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesDetalhado.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioVendasPacotesDetalhado.java @@ -32,6 +32,10 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio { private Date fecFinal; private Integer empresaId; private Integer pacoteId; + private Integer origenId; + private Integer destinoId; + private Integer usuarioId; + private Integer tipoTarifaPacoteId; public RelatorioVendasPacotesDetalhado(Map parametros, Connection conexao, final String... nomeSubReporte) throws Exception { super(parametros, conexao); @@ -44,6 +48,10 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio { fecFinal = new java.sql.Date(sdf.parse(parametros.get("fecFinal").toString()).getTime()); empresaId = parametros.get("empresaId") != null && !parametros.get("empresaId").equals("null") ? Integer.valueOf(parametros.get("empresaId").toString()) : null; pacoteId = parametros.get("pacoteId") != null && !parametros.get("pacoteId").equals("null") ? Integer.valueOf(parametros.get("pacoteId").toString()) : null; + origenId = parametros.get("origenId") != null && !parametros.get("origenId").equals("null") ? Integer.valueOf(parametros.get("origenId").toString()) : null; + destinoId = parametros.get("destinoId") != null && !parametros.get("destinoId").equals("null") ? Integer.valueOf(parametros.get("destinoId").toString()) : null; + usuarioId = parametros.get("usuarioId") != null && !parametros.get("usuarioId").equals("null") ? Integer.valueOf(parametros.get("usuarioId").toString()) : null; + tipoTarifaPacoteId = parametros.get("tipoTarifaPacoteId") != null && !parametros.get("tipoTarifaPacoteId").equals("null") ? Integer.valueOf(parametros.get("tipoTarifaPacoteId").toString()) : null; Connection conexao = this.relatorio.getConexao(); processarVendasPacote(conexao); @@ -74,10 +82,21 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio { if (empresaId != null && empresaId > 0){ stmt.setInt("empresaId", empresaId); } - if (pacoteId != null && pacoteId > 0){ stmt.setInt("pacoteId", pacoteId); } + if(origenId != null) { + stmt.setInt("origenId", origenId); + } + if(destinoId != null) { + stmt.setInt("destinoId", destinoId); + } + if(usuarioId != null) { + stmt.setInt("usuarioId", usuarioId); + } + if(tipoTarifaPacoteId != null && tipoTarifaPacoteId > 0) { + stmt.setInt("tipoTarifaPacoteId", tipoTarifaPacoteId); + } rset = stmt.executeQuery(); @@ -151,6 +170,8 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio { .append("LEFT JOIN ENDERECO_APANHE EA ON EA.VENDAPACOTE_ID = VP.VENDAPACOTE_ID AND EA.ACTIVO = 1 ") .append("LEFT JOIN CLIENTE_PACOTE CP ON CP.CLIENTEPACOTE_ID = VP.CLIENTEPACOTE_ID ") .append("LEFT JOIN USUARIO U ON U.USUARIO_ID = VP.USUARIO_ID ") + .append("LEFT JOIN PACOTE_TARIFA PT ON PT.PACOTETARIFA_ID = TVP.PACOTETARIFA_ID ") + .append("LEFT JOIN TIPO_TARIFA_PACOTE TTP ON TTP.TIPOTARIFAPACOTE_ID = PT.TIPOTARIFAPACOTE_ID ") .append("WHERE P.ACTIVO = 1 ") .append("AND (B.BOLETO_ID IS NULL OR (B.ACTIVO = 1 AND B.INDSTATUSBOLETO = 'V' AND B.MOTIVOCANCELACION_ID IS NULL)) "); @@ -170,6 +191,22 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio { sQuery.append("AND VP.DATAPACOTE <= :fecFinal "); } + if(origenId != null) { + sQuery.append("AND B.ORIGEN_ID = :origenId "); + } + + if(destinoId != null) { + sQuery.append("AND B.DESTINO_ID = :destinoId "); + } + + if(usuarioId != null) { + sQuery.append("AND VP.USUARIO_ID = :usuarioId "); + } + + if(tipoTarifaPacoteId != null && tipoTarifaPacoteId > 0) { + sQuery.append("AND TTP.TIPOTARIFAPACOTE_ID = :tipoTarifaPacoteId "); + } + sQuery.append("GROUP BY P.PACOTE_ID, VP.VENDAPACOTE_ID, P.NOMPACOTE, VP.NUMOPERACION, VP.DATAVENDA, VP.DATAPACOTE, EA.DESCHOTEL, EA.LOCAL, CP.RAZAO_SOCIAL, U.NOMBUSUARIO, VP.SUBTOTAL, VP.DESCONTO, VP.TOTAL, VP.SITUACAO ") .append("ORDER BY P.NOMPACOTE, VP.DATAPACOTE, VP.DATAVENDA "); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletosItemTotais_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletosItemTotais_es.properties new file mode 100644 index 000000000..bb4a63f42 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletosItemTotais_es.properties @@ -0,0 +1,3 @@ +#Labels +label.total=TOTAL +label.trecho=TRECHOS \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletosItemTotais_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletosItemTotais_pt_BR.properties new file mode 100644 index 000000000..bb4a63f42 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletosItemTotais_pt_BR.properties @@ -0,0 +1,3 @@ +#Labels +label.total=TOTAL +label.trecho=TRECHOS \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_es.properties index 7828250ea..41b496b90 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_es.properties +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_es.properties @@ -11,5 +11,11 @@ cabecalho.impressorPor=Impressor por: cabecalho.pagina=Página cabecalho.de=de cabecalho.filtros=Filtros: +cabecalho.origem=Origem: +cabecalho.destino=Destino: +cabecalho.usuario=Usuário: +cabecalho.tipoTarifaPacote=Tipo Tarifa: label.empresa=Empresa: -label.trecho=Trecho: \ No newline at end of file +label.trecho=Trecho: +label.cancelados = - CANCELADOS +label.resumo=RESUMO \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_pt_BR.properties index 7828250ea..5af027d30 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_pt_BR.properties +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesBoletos_pt_BR.properties @@ -11,5 +11,11 @@ cabecalho.impressorPor=Impressor por: cabecalho.pagina=Página cabecalho.de=de cabecalho.filtros=Filtros: +cabecalho.origem=Origem: +cabecalho.destino=Destino: +cabecalho.usuario=Usuário: +cabecalho.tipoTarifaPacote=Tipo Tarifa: label.empresa=Empresa: -label.trecho=Trecho: \ No newline at end of file +label.trecho=Trecho: +label.cancelados=- CANCELADOS +label.resumo=RESUMO \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_es.properties index 1ecd72247..832addf5a 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_es.properties +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_es.properties @@ -12,4 +12,11 @@ cabecalho.pagina=P cabecalho.de=de cabecalho.filtros=Filtros: label.empresa=Empresa: -label.pacote=Pacote: \ No newline at end of file +label.pacote=Pacote: +cabecalho.origem=Origem: +cabecalho.destino=Destino: +cabecalho.usuario=Usuário: +cabecalho.tipoTarifaPacote=Tipo Tarifa: +label.empresa=Empresa: +label.trecho=Trecho: +label.resumo=Resumo \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_pt_BR.properties index 1ecd72247..832addf5a 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_pt_BR.properties +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioVendasPacotesDetalhado_pt_BR.properties @@ -12,4 +12,11 @@ cabecalho.pagina=P cabecalho.de=de cabecalho.filtros=Filtros: label.empresa=Empresa: -label.pacote=Pacote: \ No newline at end of file +label.pacote=Pacote: +cabecalho.origem=Origem: +cabecalho.destino=Destino: +cabecalho.usuario=Usuário: +cabecalho.tipoTarifaPacote=Tipo Tarifa: +label.empresa=Empresa: +label.trecho=Trecho: +label.resumo=Resumo \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jasper index feb2a222d..46c4b38d2 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jrxml index 24d8aafd4..d915ec06c 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendaPacoteVoucher.jrxml @@ -1,8 +1,8 @@ - + - + @@ -299,15 +299,18 @@ + + + - + - + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jasper index 71415185b..068c03708 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jrxml index ed556dd3f..77ce23acf 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletos.jrxml @@ -1,26 +1,34 @@ - - + + - + + + + + + + + + - <band height="62" splitType="Stretch"> + <band height="122" splitType="Stretch"> <textField> <reportElement x="0" y="0" width="620" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/> <textElement markup="none"> @@ -49,6 +57,27 @@ </textElement> <textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicio} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinal}]]></textFieldExpression> </textField> + <textField> + <reportElement x="0" y="60" width="802" height="20" uuid="bc1ac781-2bb6-40ef-92dd-d4f07f327d18"/> + <textElement> + <font isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.origem} + " " + $P{origem} + " " + $R{cabecalho.destino} + " " + $P{destino}]]></textFieldExpression> + </textField> + <textField> + <reportElement x="0" y="80" width="802" height="20" uuid="1cfececb-aab4-4ec7-a002-b7a45c567252"/> + <textElement> + <font isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.usuario} + " " + $P{usuario}]]></textFieldExpression> + </textField> + <textField> + <reportElement x="0" y="100" width="802" height="20" uuid="8b436394-0e3c-420e-b2dd-2b62ee7ed988"/> + <textElement> + <font isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.tipoTarifaPacote} + " " + $P{tipoTarifaPacote}]]></textFieldExpression> + </textField> </band> @@ -66,7 +95,7 @@ - + @@ -77,7 +106,7 @@ - + @@ -86,6 +115,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -94,7 +144,27 @@ - + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletosItemTotais.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletosItemTotais.jasper new file mode 100644 index 000000000..a0bbf10f5 Binary files /dev/null and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletosItemTotais.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletosItemTotais.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletosItemTotais.jrxml new file mode 100644 index 000000000..c891629b7 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioVendasPacotesBoletosItemTotais.jrxml @@ -0,0 +1,156 @@ + + + + + +