diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioOrigemDestino.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioOrigemDestino.java index c7362e4dd..5cd488e5e 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioOrigemDestino.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioOrigemDestino.java @@ -17,22 +17,25 @@ import org.apache.log4j.Logger; import com.rjconsultores.ventaboletos.entidad.Constante; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioOrigemDestinoBean; import com.rjconsultores.ventaboletos.relatorios.utilitarios.beans.PesoOperacional; import com.rjconsultores.ventaboletos.service.ConstanteService; +import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext; +import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; + public class RelatorioOrigemDestino extends Relatorio { private static Logger log = Logger.getLogger(RelatorioOrigemDestino.class); private static String CONSTANTE_GRATUIDADE_CRIANCA; + private List listaBean = new ArrayList(); public RelatorioOrigemDestino(Map parametros, Connection conexao) throws Exception { super(parametros, conexao); - } - - @Override - protected void processaParametros() throws Exception { + + // Mantis 15600 - O relatório não tinha um Bean, a consulta SQL era executada dentro do jasper e o relatório não era gerado (ou demorava muito) para o usuário. CONSTANTE_GRATUIDADE_CRIANCA = buscarConstante("GRATUIDADE_CRIANCA"); @@ -44,15 +47,48 @@ public class RelatorioOrigemDestino extends Relatorio { Boolean trechosSemMovimento = (Boolean) getParametros().get("TRECHOS_SEM_MOVIMENTO"); String sql = getSQL(empresaIds, corridasIds, dataDe, dataAte, bilhetesGratuitos, trechosSemMovimento); - log.info(sql); - List lsPesoOperacionalRelatorio = getPesoOperacional(corridasIds, dataDe, dataAte, bilhetesGratuitos, empresaIds, trechosSemMovimento); - getParametros().put("lsPesoOperacionalRelatorio", lsPesoOperacionalRelatorio); - getParametros().put("SQL", sql); + NamedParameterStatement npst = new NamedParameterStatement(conexao, sql); + npst.setFetchSize(1000); + ResultSet rs = npst.executeQuery(); + + while (rs.next()) { + RelatorioOrigemDestinoBean bean = new RelatorioOrigemDestinoBean(); + bean.setNombempresa(rs.getString("nombempresa")); + bean.setCorrida_1(rs.getBigDecimal("corrida_1")); + bean.setFechorsalida(rs.getTimestamp("fechorsalida")); + bean.setOrigem(rs.getString("origem")); + bean.setDestino(rs.getString("destino")); + bean.setKm_tramo(rs.getBigDecimal("km_tramo")); + bean.setDescruta(rs.getString("descruta")); + bean.setIndsentidoida(rs.getInt("indsentidoida")); + bean.setKm_corrida(rs.getBigDecimal("km_corrida")); + bean.setAbsolutos(rs.getBigDecimal("absolutos")); + bean.setReceita(rs.getBigDecimal("receita")); + bean.setPreciobase(rs.getBigDecimal("preciobase")); + bean.setEquivalente_total_corrida(rs.getBigDecimal("equivalente_total_corrida")); + bean.setDisponibilidade(rs.getInt("disponibilidade")); + bean.setViagens(rs.getInt("viagens")); + bean.setAbsoluto_total_corrida(rs.getInt("absoluto_total_corrida")); + bean.setImportetaxaembarque(rs.getBigDecimal("importetaxaembarque")); + bean.setImportepedagio(rs.getBigDecimal("importepedagio")); + + listaBean.add(bean); + } + + List listaSqlPesoOperacional = getPesoOperacional(conexao, corridasIds, dataDe, dataAte, bilhetesGratuitos, empresaIds, trechosSemMovimento); + + getParametros().put("lsPesoOperacionalRelatorio", listaSqlPesoOperacional); + + this.setCollectionDataSource(new JRBeanCollectionDataSource(listaBean)); } - private List getPesoOperacional(String corridasIds, String dataDe, String dataAte, + @Override + protected void processaParametros() throws Exception { + } + + private List getPesoOperacional(Connection conexao, String corridasIds, String dataDe, String dataAte, Boolean bilhetesGratuitos, String empresaIds, Boolean mostratTrechosSemMovimento) throws SQLException { StringBuilder sql = new StringBuilder(); @@ -183,10 +219,11 @@ public class RelatorioOrigemDestino extends Relatorio { sql.append(" ORDER BY CA.CORRIDA_ID,SECD "); } - Connection conexao = getConexao(); + log.info(sql); PreparedStatement stmt = null; stmt = conexao.prepareStatement(sql.toString()); + stmt.setFetchSize(1000); ResultSet rset = null; rset = stmt.executeQuery(); @@ -436,18 +473,18 @@ public class RelatorioOrigemDestino extends Relatorio { sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') "); sql.append(" AND CA.motivocancelacion_id IS NULL "); - if(StringUtils.isNotBlank(CONSTANTE_GRATUIDADE_CRIANCA)) { + if (StringUtils.isNotBlank(CONSTANTE_GRATUIDADE_CRIANCA)) { sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA); } sql.append(" AND CA.preciobase IS NOT NULL "); sql.append(" AND CA.preciobase = RESULTADO.preciobase "); - sql.append(" AND PO.DESCPARADA = RESULTADO.origem "); - sql.append(" AND PD.DESCPARADA = RESULTADO.destino) "); + sql.append(" AND PO.parada_id = RESULTADO.origem "); + sql.append(" AND PD.parada_id = RESULTADO.destino) "); sql.append(" EQUIVALENTE "); sql.append(" FROM (SELECT CO.corrida_id CORRIDA_ID, "); - sql.append(" ORI.DESCPARADA ORIGEM, "); - sql.append(" DES.DESCPARADA DESTINO, "); + sql.append(" ORI.parada_id ORIGEM, "); + sql.append(" DES.parada_id DESTINO, "); sql.append(" CA.numkmviaje KM_TRAMO, "); sql.append(" RU.ruta_id, "); sql.append(" CA.preciobase, "); @@ -465,7 +502,7 @@ public class RelatorioOrigemDestino extends Relatorio { sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') "); sql.append(" AND CA.motivocancelacion_id IS NULL "); - if(StringUtils.isNotBlank(CONSTANTE_GRATUIDADE_CRIANCA)) { + if (StringUtils.isNotBlank(CONSTANTE_GRATUIDADE_CRIANCA)) { sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA); } @@ -473,8 +510,8 @@ public class RelatorioOrigemDestino extends Relatorio { sql.append((bilhetesGratuitos ? " AND CA.PRECIOBASE >= 0 " : " AND CA.PRECIOBASE > 0 ")); sql.append(" GROUP BY RU.ruta_id, "); sql.append(" EM.nombempresa, "); - sql.append(" ORI.DESCPARADA, "); - sql.append(" DES.DESCPARADA, "); + sql.append(" ORI.parada_id, "); + sql.append(" DES.parada_id, "); sql.append(" CA.numkmviaje, "); sql.append(" CO.corrida_id, "); sql.append(" RU.descruta, "); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jasper index 9d8197bb4..e0f61c7d9 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jrxml index cd35f2eac..5f30124a3 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioOrigemDestino.jrxml @@ -1,8 +1,8 @@ - - + + @@ -30,7 +30,7 @@ - + @@ -106,166 +106,172 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + + - + + - + + - + - + - + - + - + + - + + - + + - + - + - + - + - + @@ -276,182 +282,184 @@ - + - + - + - + - + - + 0?new BigDecimal("100.00"):$V{sum_por_equivalente}]]> - + 0?new BigDecimal("100.00"):$V{sum_porc_abs}]]> - + - + - + - + - + - + - + - + - + - + - + + - + + - + - + - + - + - + - + - + - + - + @@ -461,79 +469,90 @@ - + + - + + - + + - + + - + + - + - + + - + + - + - + + - + + - + + - + - + + @@ -545,47 +564,47 @@ <band height="80" splitType="Stretch"> <staticText> - <reportElement x="0" y="0" width="661" height="20" uuid="58b5b133-43e0-42f0-a904-5cc3645d3df3"/> + <reportElement uuid="58b5b133-43e0-42f0-a904-5cc3645d3df3" x="0" y="0" width="661" height="20"/> <textElement verticalAlignment="Middle"> <font size="15" isBold="true"/> </textElement> <text><![CDATA[ORIGEM/DESTINO OD]]></text> </staticText> <textField pattern="dd/MM/yyyy HH:mm"> - <reportElement x="661" y="0" width="104" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/> + <reportElement uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5" x="661" y="0" width="104" height="20"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> <staticText> - <reportElement x="0" y="61" width="74" height="19" uuid="bb8d0dec-2060-456e-bca1-c69d7c272fa3"/> + <reportElement uuid="bb8d0dec-2060-456e-bca1-c69d7c272fa3" x="0" y="61" width="74" height="19"/> <textElement verticalAlignment="Middle"> <font isBold="true"/> </textElement> <text><![CDATA[Serviço(s):]]></text> </staticText> <textField> - <reportElement x="0" y="20" width="765" height="20" uuid="a16eb33b-78ca-4fb4-80c2-f5c85a0d09c3"/> + <reportElement uuid="a16eb33b-78ca-4fb4-80c2-f5c85a0d09c3" x="0" y="20" width="765" height="20"/> <textElement verticalAlignment="Middle"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA["Período: " + $P{DATA_DE} + " a " + $P{DATA_ATE}]]></textFieldExpression> </textField> <staticText> - <reportElement x="0" y="39" width="74" height="23" uuid="3857502f-b69a-4362-97fe-6f7a7f6ee32b"/> + <reportElement uuid="3857502f-b69a-4362-97fe-6f7a7f6ee32b" x="0" y="39" width="74" height="23"/> <textElement verticalAlignment="Middle"> <font isBold="true"/> </textElement> <text><![CDATA[Empresa(s):]]></text> </staticText> <textField> - <reportElement x="74" y="39" width="691" height="23" isPrintWhenDetailOverflows="true" uuid="7f31cdf0-886d-4eef-b64c-28bc94c05b77"/> + <reportElement uuid="7f31cdf0-886d-4eef-b64c-28bc94c05b77" x="74" y="39" width="691" height="23" isPrintWhenDetailOverflows="true"/> <textElement verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$P{EMPRESAS}]]></textFieldExpression> </textField> <textField> - <reportElement x="74" y="61" width="691" height="19" isPrintWhenDetailOverflows="true" uuid="44b1c344-61df-4dd0-b661-cae5f2f8e699"/> + <reportElement uuid="44b1c344-61df-4dd0-b661-cae5f2f8e699" x="74" y="61" width="691" height="19" isPrintWhenDetailOverflows="true"/> <textElement verticalAlignment="Middle"> <font isBold="false" isUnderline="false" isStrikeThrough="false"/> </textElement> @@ -599,22 +618,22 @@ <pageHeader> <band height="21" splitType="Stretch"> <line> - <reportElement x="0" y="20" width="763" height="1" uuid="4f39b5b4-849a-4fe2-9365-06930866fbaa"/> + <reportElement uuid="4f39b5b4-849a-4fe2-9365-06930866fbaa" x="0" y="20" width="763" height="1"/> </line> <staticText> - <reportElement x="661" y="0" width="57" height="20" uuid="5f39d93c-51d4-41cd-88af-10407d4f9968"/> + <reportElement uuid="5f39d93c-51d4-41cd-88af-10407d4f9968" x="661" y="0" width="57" height="20"/> <textElement verticalAlignment="Top" markup="none"> <font isBold="true"/> </textElement> <text><![CDATA[Página]]></text> </staticText> <textField evaluationTime="Report"> - <reportElement x="743" y="1" width="22" height="20" uuid="0b68046e-8819-470c-8da5-43f2a16aba7e"/> + <reportElement uuid="0b68046e-8819-470c-8da5-43f2a16aba7e" x="743" y="1" width="22" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField> - <reportElement x="719" y="1" width="24" height="20" uuid="0e678318-ffaf-4459-a5c0-e69e6162fcf4"/> + <reportElement uuid="0e678318-ffaf-4459-a5c0-e69e6162fcf4" x="719" y="1" width="24" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression> </textField> @@ -626,65 +645,67 @@ <detail> <band height="21" splitType="Stretch"> <textField> - <reportElement x="430" y="0" width="57" height="21" uuid="c45c70fb-1c4e-46a8-9a39-f804605e85b5"/> + <reportElement uuid="c45c70fb-1c4e-46a8-9a39-f804605e85b5" x="430" y="0" width="57" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{ABSOLUTOS}]]></textFieldExpression> </textField> <textField> - <reportElement x="239" y="0" width="41" height="21" uuid="87a6161e-e6ed-4330-bbff-34a87a5fb1a6"/> + <reportElement uuid="87a6161e-e6ed-4330-bbff-34a87a5fb1a6" x="239" y="0" width="41" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{KM_TRAMO}]]></textFieldExpression> </textField> <textField pattern="#,##0.00"> - <reportElement x="699" y="0" width="32" height="21" uuid="22d22d0b-ed49-44a7-8725-c4a62b7fbb41"/> + <reportElement uuid="22d22d0b-ed49-44a7-8725-c4a62b7fbb41" x="699" y="0" width="32" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$V{porc_abs}]]></textFieldExpression> </textField> <textField pattern="#,##0.00"> - <reportElement x="731" y="0" width="34" height="21" uuid="5ecd33c0-2648-482f-b87a-d5197d2f193e"/> + <reportElement uuid="5ecd33c0-2648-482f-b87a-d5197d2f193e" x="731" y="0" width="34" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$V{por_equivalente}]]></textFieldExpression> </textField> <textField> - <reportElement x="661" y="0" width="38" height="21" uuid="0de4edf8-49c8-49d2-b2d6-0476fb8ab3ed"/> + <reportElement uuid="0de4edf8-49c8-49d2-b2d6-0476fb8ab3ed" x="661" y="0" width="38" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$V{pax_km}]]></textFieldExpression> </textField> <textField pattern="#,##0.00"> - <reportElement x="487" y="0" width="64" height="21" uuid="c88714a3-010d-4e26-801d-8982acc15a19"/> + <reportElement uuid="c88714a3-010d-4e26-801d-8982acc15a19" x="487" y="0" width="64" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{RECEITA}]]></textFieldExpression> </textField> <textField pattern="###0.00;-###0.00" isBlankWhenNull="true"> - <reportElement x="315" y="0" width="66" height="21" uuid="3a76b131-6ebf-4234-a367-ba5e1527886a"/> + <reportElement uuid="3a76b131-6ebf-4234-a367-ba5e1527886a" x="315" y="0" width="66" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{IMPORTETAXAEMBARQUE}]]></textFieldExpression> </textField> <textField pattern="###0.00;-###0.00" isBlankWhenNull="true"> - <reportElement x="381" y="0" width="49" height="21" uuid="32534bbc-2bf6-4786-b5cd-e68c4062d3ec"/> + <reportElement uuid="32534bbc-2bf6-4786-b5cd-e68c4062d3ec" x="381" y="0" width="49" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{IMPORTEPEDAGIO}]]></textFieldExpression> </textField> <textField pattern="#,##0.00"> - <reportElement x="551" y="0" width="51" height="21" uuid="0fe8352f-f787-46b6-adcb-e8dda60b4d9d"/> + <reportElement uuid="0fe8352f-f787-46b6-adcb-e8dda60b4d9d" x="551" y="0" width="51" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$V{rec_abs}]]></textFieldExpression> </textField> <textField pattern="#,##0.00"> - <reportElement x="602" y="0" width="59" height="21" uuid="5ad372c0-5127-4441-aae3-be6ca2949a93"/> + <reportElement uuid="5ad372c0-5127-4441-aae3-be6ca2949a93" x="602" y="0" width="59" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$V{equivalente}]]></textFieldExpression> </textField> <textField> - <reportElement x="1" y="0" width="131" height="21" uuid="b3bae3e1-ad19-4ed0-8188-b4700f493c28"/> + <reportElement uuid="b3bae3e1-ad19-4ed0-8188-b4700f493c28" x="1" y="0" width="131" height="21"/> + <textElement/> <textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression> </textField> <textField> - <reportElement x="132" y="0" width="107" height="21" uuid="e3a13390-06e7-4bda-bb55-8afbfb15d6fb"/> + <reportElement uuid="e3a13390-06e7-4bda-bb55-8afbfb15d6fb" x="132" y="0" width="107" height="21"/> + <textElement/> <textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression> </textField> <textField pattern="###0.00;-###0.00"> - <reportElement x="280" y="0" width="35" height="21" uuid="9fef3b4f-3c79-4b11-8702-0f4c5757b81e"/> + <reportElement uuid="9fef3b4f-3c79-4b11-8702-0f4c5757b81e" x="280" y="0" width="35" height="21"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{PRECIOBASE}]]></textFieldExpression> </textField> diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioOrigemDestinoBean.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioOrigemDestinoBean.java new file mode 100644 index 000000000..1b9d1d5a8 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioOrigemDestinoBean.java @@ -0,0 +1,245 @@ +package com.rjconsultores.ventaboletos.relatorios.utilitarios; + +import java.math.BigDecimal; +import java.sql.Timestamp; + +//Mantis 15600 +public class RelatorioOrigemDestinoBean { + + private String nombempresa; + private BigDecimal corrida_1; + private Timestamp fechorsalida; + private String origem; + private String destino; + private BigDecimal km_tramo; + private String descruta; + private Integer indsentidoida; + private BigDecimal km_corrida; + private BigDecimal absolutos; + private BigDecimal receita; + private BigDecimal preciobase; + private BigDecimal equivalente_total_corrida; + private Integer disponibilidade; + private Integer viagens; + private Integer absoluto_total_corrida; + private BigDecimal importetaxaembarque; + private BigDecimal importepedagio; + + public String getNombempresa() { + return nombempresa; + } + + public BigDecimal getCorrida_1() { + return corrida_1; + } + + public Timestamp getFechorsalida() { + return fechorsalida; + } + + public String getOrigem() { + return origem; + } + + public String getDestino() { + return destino; + } + + public BigDecimal getKm_tramo() { + return km_tramo; + } + + public String getDescruta() { + return descruta; + } + + public Integer getIndsentidoida() { + return indsentidoida; + } + + public BigDecimal getKm_corrida() { + return km_corrida; + } + + public BigDecimal getAbsolutos() { + return absolutos; + } + + public BigDecimal getReceita() { + return receita; + } + + public BigDecimal getPreciobase() { + return preciobase; + } + + public BigDecimal getEquivalente_total_corrida() { + return equivalente_total_corrida; + } + + public Integer getDisponibilidade() { + return disponibilidade; + } + + public Integer getViagens() { + return viagens; + } + + public Integer getAbsoluto_total_corrida() { + return absoluto_total_corrida; + } + + public BigDecimal getImportetaxaembarque() { + return importetaxaembarque; + } + + public BigDecimal getImportepedagio() { + return importepedagio; + } + + public void setNombempresa(String nombempresa) { + this.nombempresa = nombempresa; + } + + public void setCorrida_1(BigDecimal corrida_1) { + this.corrida_1 = corrida_1; + } + + public void setFechorsalida(Timestamp fechorsalida) { + this.fechorsalida = fechorsalida; + } + + public void setOrigem(String origem) { + this.origem = origem; + } + + public void setDestino(String destino) { + this.destino = destino; + } + + public void setKm_tramo(BigDecimal km_tramo) { + this.km_tramo = km_tramo; + } + + public void setDescruta(String descruta) { + this.descruta = descruta; + } + + public void setIndsentidoida(Integer indsentidoida) { + this.indsentidoida = indsentidoida; + } + + public void setKm_corrida(BigDecimal km_corrida) { + this.km_corrida = km_corrida; + } + + public void setAbsolutos(BigDecimal absolutos) { + this.absolutos = absolutos; + } + + public void setReceita(BigDecimal receita) { + this.receita = receita; + } + + public void setPreciobase(BigDecimal preciobase) { + this.preciobase = preciobase; + } + + public void setEquivalente_total_corrida(BigDecimal equivalente_total_corrida) { + this.equivalente_total_corrida = equivalente_total_corrida; + } + + public void setDisponibilidade(Integer disponibilidade) { + this.disponibilidade = disponibilidade; + } + + public void setViagens(Integer viagens) { + this.viagens = viagens; + } + + public void setAbsoluto_total_corrida(Integer absoluto_total_corrida) { + this.absoluto_total_corrida = absoluto_total_corrida; + } + + public void setImportetaxaembarque(BigDecimal importetaxaembarque) { + this.importetaxaembarque = importetaxaembarque; + } + + public void setImportepedagio(BigDecimal importepedagio) { + this.importepedagio = importepedagio; + } + + // Gets criados por causa do mantis 15600. O relatório não tinha um Bean, a consulta SQL era executada dentro do jasper e o relatório não era gerado (ou demorava muito) para o usuário. + // Os fields estão com nome em maiúsculo no jasper. + public String getNOMBEMPRESA() { + return getNombempresa(); + } + + public BigDecimal getCORRIDA_1() { + return getCorrida_1(); + } + + public Timestamp getFECHORSALIDA() { + return getFechorsalida(); + } + + public String getORIGEM() { + return getOrigem(); + } + + public String getDESTINO() { + return getDestino(); + } + + public BigDecimal getKM_TRAMO() { + return getKm_tramo(); + } + + public String getDESCRUTA() { + return getDescruta(); + } + + public Integer getINDSENTIDOIDA() { + return getIndsentidoida(); + } + + public BigDecimal getKM_CORRIDA() { + return getKm_corrida(); + } + + public BigDecimal getABSOLUTOS() { + return getAbsolutos(); + } + + public BigDecimal getRECEITA() { + return getReceita(); + } + + public BigDecimal getPRECIOBASE() { + return getPreciobase(); + } + + public BigDecimal getEQUIVALENTE_TOTAL_CORRIDA() { + return getEquivalente_total_corrida(); + } + + public Integer getDISPONIBILIDADE() { + return getDisponibilidade(); + } + + public Integer getVIAGENS() { + return getViagens(); + } + + public Integer getABSOLUTO_TOTAL_CORRIDA() { + return getAbsoluto_total_corrida(); + } + + public BigDecimal getIMPORTETAXAEMBARQUE() { + return getImportetaxaembarque(); + } + + public BigDecimal getIMPORTEPEDAGIO() { + return getImportepedagio(); + } +} \ No newline at end of file