git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@29940 d1611594-4594-4d17-8e1d-87c2c4800839
parent
aef41304bb
commit
681c20d1d0
|
@ -80,6 +80,25 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
|
||||
List<RelatorioLinhasHorarioBean> lsDadosRelatorio = new ArrayList<RelatorioLinhasHorarioBean>();
|
||||
|
||||
BigDecimal totalPassagens = BigDecimal.ZERO;
|
||||
BigDecimal totalSeguro = BigDecimal.ZERO;
|
||||
BigDecimal totalBagagens = BigDecimal.ZERO;
|
||||
BigDecimal totalSeuroOpcional = BigDecimal.ZERO;
|
||||
BigDecimal totalTotal = BigDecimal.ZERO;
|
||||
BigDecimal totalOrdinario = BigDecimal.ZERO;
|
||||
BigDecimal totalExtra = BigDecimal.ZERO;
|
||||
BigDecimal totalViagem = BigDecimal.ZERO;
|
||||
BigDecimal totalKmRodado = BigDecimal.ZERO;
|
||||
BigDecimal totalAbsoluto = BigDecimal.ZERO;
|
||||
BigDecimal totalEquivalente = BigDecimal.ZERO;
|
||||
BigDecimal mediaMPA = BigDecimal.ZERO;
|
||||
BigDecimal mediaMPE = BigDecimal.ZERO;
|
||||
BigDecimal mediaRsPorKm = BigDecimal.ZERO;
|
||||
BigDecimal totalEQ = BigDecimal.ZERO;
|
||||
BigDecimal mediaRSPorViagem = BigDecimal.ZERO;
|
||||
BigDecimal totalPaxKMOfertado = BigDecimal.ZERO;
|
||||
BigDecimal totalPaxKMTransportado = BigDecimal.ZERO;
|
||||
BigDecimal totalIAP = BigDecimal.ZERO;
|
||||
while (rset.next()) {
|
||||
|
||||
RelatorioLinhasHorarioBean horarioBean = new RelatorioLinhasHorarioBean();
|
||||
|
@ -130,9 +149,50 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
horarioBean.setExtensao(horarioBean.getExtensaoTrecho());
|
||||
|
||||
lsDadosRelatorio.add(horarioBean);
|
||||
}
|
||||
parametros.put("lsDadosRelatorio", lsDadosRelatorio);
|
||||
|
||||
totalPassagens = totalPassagens.add(horarioBean.getPassagens() != null ? horarioBean.getPassagens() : BigDecimal.ZERO);
|
||||
totalSeguro = totalSeguro.add(horarioBean.getSeguro() != null ? horarioBean.getSeguro() : BigDecimal.ZERO);
|
||||
totalBagagens = totalBagagens.add(horarioBean.getBagagens() != null ? horarioBean.getBagagens() : BigDecimal.ZERO);
|
||||
totalSeuroOpcional = totalSeuroOpcional.add(horarioBean.getSegOpc() != null ? horarioBean.getSegOpc() : BigDecimal.ZERO);
|
||||
totalTotal = totalTotal.add(horarioBean.getTotal() != null ? horarioBean.getTotal() : BigDecimal.ZERO);
|
||||
totalOrdinario = totalOrdinario.add(horarioBean.getOrd() != null ? horarioBean.getOrd() : BigDecimal.ZERO);
|
||||
totalExtra = totalExtra.add(horarioBean.getExtra() != null ? horarioBean.getExtra() : BigDecimal.ZERO);
|
||||
totalViagem = totalViagem.add(horarioBean.getTotalViagem() != null ? horarioBean.getTotalViagem() : BigDecimal.ZERO);
|
||||
totalKmRodado = totalKmRodado.add(horarioBean.getKmRodado() != null ? horarioBean.getKmRodado() : BigDecimal.ZERO);
|
||||
totalAbsoluto = totalAbsoluto.add(horarioBean.getAbsol() != null ? horarioBean.getAbsol() : BigDecimal.ZERO);
|
||||
totalEquivalente = totalEquivalente.add(horarioBean.getEquivalente() != null ? horarioBean.getEquivalente() : BigDecimal.ZERO);
|
||||
mediaMPA = mediaMPA.add(horarioBean.getMpa() != null ? horarioBean.getMpa() : BigDecimal.ZERO);
|
||||
mediaMPE = mediaMPE.add(horarioBean.getMpe() != null ? horarioBean.getMpe() : BigDecimal.ZERO);
|
||||
mediaRsPorKm = mediaRsPorKm.add(horarioBean.getRsKm() != null ? horarioBean.getRsKm() : BigDecimal.ZERO);
|
||||
totalEQ = totalEQ.add(horarioBean.getEq() != null ? horarioBean.getEq() : BigDecimal.ZERO);
|
||||
mediaRSPorViagem = mediaRSPorViagem.add(horarioBean.getRsViagem() != null ? horarioBean.getRsViagem() : BigDecimal.ZERO);
|
||||
totalPaxKMOfertado = totalPaxKMOfertado.add(horarioBean.getPaxKmOfertado() != null ? horarioBean.getPaxKmOfertado() : BigDecimal.ZERO);
|
||||
totalPaxKMTransportado = totalPaxKMTransportado.add(horarioBean.getPaxKmTransportado() != null ? horarioBean.getPaxKmTransportado() : BigDecimal.ZERO);
|
||||
totalIAP = totalIAP.add(horarioBean.getIap() != null ? horarioBean.getIap() : BigDecimal.ZERO);
|
||||
}
|
||||
|
||||
BigDecimal qtdeRegistros = new BigDecimal(lsDadosRelatorio.size());
|
||||
|
||||
parametros.put("lsDadosRelatorio", lsDadosRelatorio);
|
||||
parametros.put("TOTAL_PASSAGENS", totalPassagens);
|
||||
parametros.put("TOTAL_SEGURO", totalSeguro);
|
||||
parametros.put("TOTAL_BAGAGENS", totalBagagens);
|
||||
parametros.put("TOTAL_SEURO_OPCIONAL", totalSeuroOpcional);
|
||||
parametros.put("TOTAL_TOTAL", totalTotal);
|
||||
parametros.put("TOTAL_ORDINARIO", totalOrdinario);
|
||||
parametros.put("TOTAL_EXTRA", totalExtra);
|
||||
parametros.put("TOTAL_VIAGEM", totalViagem);
|
||||
parametros.put("TOTAL_KM_RODADO", totalKmRodado);
|
||||
parametros.put("TOTAL_ABSOLUTO", totalAbsoluto);
|
||||
parametros.put("TOTAL_EQUIVALENTE", totalEquivalente);
|
||||
parametros.put("MEDIA_MPA", mediaMPA.divide(qtdeRegistros, RoundingMode.HALF_EVEN));
|
||||
parametros.put("MEDIA_MPE", mediaMPE.divide(qtdeRegistros, RoundingMode.HALF_EVEN));
|
||||
parametros.put("MEDIA_RS_POR_KM", mediaRsPorKm.divide(qtdeRegistros, RoundingMode.HALF_EVEN));
|
||||
parametros.put("TOTAL_EQ", totalEQ);
|
||||
parametros.put("MEDIA_RS_POR_VIAGEM", mediaRSPorViagem.divide(qtdeRegistros, RoundingMode.HALF_EVEN));
|
||||
parametros.put("TOTAL_PAX_KM_OFERTADO", totalPaxKMOfertado);
|
||||
parametros.put("TOTAL_PAX_KM_TRANSPORTADO", totalPaxKMTransportado);
|
||||
parametros.put("TOTAL_IAP", totalIAP);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -274,6 +334,7 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
StringBuffer sql = new StringBuffer();
|
||||
|
||||
sql.append(" SELECT ");
|
||||
sql.append(" R.RUTA_ID, ");
|
||||
sql.append(" NVL(GR.DESCGRUPO, 'Não Informado') AS GRUPO_RUTA, ");
|
||||
sql.append(" TO_CHAR(CJ.FECHORVIAJE, 'HH24:MI') AS HORA, ");
|
||||
sql.append(" C.CORRIDA_ID AS SERVICO, ");
|
||||
|
@ -342,7 +403,7 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
sql.append(" ON ( EE.CORRIDA_ID = C.CORRIDA_ID ");
|
||||
sql.append(" AND EE.FECCORRIDA = C.FECCORRIDA ");
|
||||
sql.append(" AND EE.TIPOEVENTOEXTRA_ID = 1 ) ");
|
||||
sql.append(" WHERE CJ.MOTIVOCANCELACION_ID IS NULL AND CJ.FECCORRIDA BETWEEN :DATA_INICIO AND :DATA_FINAL ");
|
||||
sql.append(" WHERE CJ.PRECIOBASE>0 AND CJ.MOTIVOCANCELACION_ID IS NULL AND CJ.FECCORRIDA BETWEEN :DATA_INICIO AND :DATA_FINAL ");
|
||||
sql.append(" AND TB1.RUTA_ID = C.RUTA_ID ");
|
||||
sql.append(" AND TB2.CORRIDA_ID = C.CORRIDA_ID ");
|
||||
sql.append(" AND TB3.CORRIDA_ID = C.CORRIDA_ID ");
|
||||
|
@ -387,6 +448,7 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
sql.append(" AND CS.ACTIVO = 1 ");
|
||||
|
||||
sql.append(" GROUP BY ");
|
||||
sql.append(" R.RUTA_ID, ");
|
||||
sql.append(" NVL(GR.DESCGRUPO, 'Não Informado'), ");
|
||||
sql.append(" TO_CHAR(CJ.FECHORVIAJE, 'HH24:MI'), ");
|
||||
sql.append(" C.CORRIDA_ID, ");
|
||||
|
|
|
@ -4,12 +4,12 @@ msg.a=
|
|||
|
||||
#Labels header
|
||||
header.titulo.relatorio=Resumo de Linhas por Horário - RLH
|
||||
header.periodo=Período:
|
||||
header.data.hora=Data/Hora:
|
||||
header.pagina=Página:
|
||||
header.filtro=Filtro:
|
||||
header.filtro.servico=Serviço:
|
||||
header.filtro.linha=Linha:
|
||||
header.periodo=Per\u00EDodo\:
|
||||
header.data.hora=Data/Hora\:
|
||||
header.pagina=P\u00E1gina\:
|
||||
header.filtro=Filtro\:
|
||||
header.filtro.servico=Servi\u00E7o\:
|
||||
header.filtro.linha=Linha\:
|
||||
|
||||
#Labels detail
|
||||
|
||||
|
@ -41,7 +41,7 @@ detail.mpe=MPE
|
|||
detail.rsKm=R$/Km
|
||||
detail.eq=Eq.
|
||||
detail.rsViagem=R$/Viagem
|
||||
detail.paxOfer=Pax.Km Ofertado
|
||||
detail.paxOfer=Pax.Km Ofer.
|
||||
detail.paxTrans=Pax.Km Transportado
|
||||
detail.iap=IAP%
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
<?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="RelatorioLinhasHorario" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ae2cbb01-bc79-4d18-8206-3b59273fe793">
|
||||
<property name="ireport.zoom" value="2.0"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.x" value="1040"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<subDataset name="dataset1" uuid="0071d032-5d46-4665-9806-aa548a2ddde3">
|
||||
<field name="grupoRuta" class="java.lang.String"/>
|
||||
|
@ -44,6 +44,25 @@
|
|||
<parameter name="LINHA_FILTRO" class="java.lang.String"/>
|
||||
<parameter name="SERVICO_FILTRO" class="java.lang.String"/>
|
||||
<parameter name="lsDadosRelatorio" class="java.util.List"/>
|
||||
<parameter name="TOTAL_PASSAGENS" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_SEGURO" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_BAGAGENS" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_SEURO_OPCIONAL" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_TOTAL" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_ORDINARIO" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_EXTRA" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_VIAGEM" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_KM_RODADO" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_ABSOLUTO" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_EQUIVALENTE" class="java.math.BigDecimal"/>
|
||||
<parameter name="MEDIA_MPA" class="java.math.BigDecimal"/>
|
||||
<parameter name="MEDIA_MPE" class="java.math.BigDecimal"/>
|
||||
<parameter name="MEDIA_RS_POR_KM" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_EQ" class="java.math.BigDecimal"/>
|
||||
<parameter name="MEDIA_RS_POR_VIAGEM" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_PAX_KM_OFERTADO" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_IAP" class="java.math.BigDecimal"/>
|
||||
<parameter name="TOTAL_PAX_KM_TRANSPORTADO" class="java.math.BigDecimal"/>
|
||||
<queryString>
|
||||
<![CDATA[SELECT SYSDATE FROM DUAL]]>
|
||||
</queryString>
|
||||
|
@ -349,10 +368,10 @@
|
|||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="3" splitType="Stretch"/>
|
||||
<band splitType="Stretch"/>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<band height="22" splitType="Stretch">
|
||||
<componentElement>
|
||||
<reportElement uuid="46c9edde-269e-4b09-b782-abe7ade3e60a" x="0" y="0" width="802" height="12"/>
|
||||
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
|
||||
|
@ -552,6 +571,142 @@
|
|||
</jr:listContents>
|
||||
</jr:list>
|
||||
</componentElement>
|
||||
<textField>
|
||||
<reportElement uuid="fb2fa43e-b87b-4b4d-9e15-dd60bfe81787" positionType="Float" x="231" y="12" width="33" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_PASSAGENS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="c0753597-89c3-40b9-a34a-ab382741214a" positionType="Float" x="264" y="12" width="24" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="8bc21d8a-7402-419f-91dc-73fd55f9054e" positionType="Float" x="288" y="12" width="32" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_BAGAGENS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="c7443b9a-b8a7-4e0d-9771-a69c7cc56f14" positionType="Float" x="320" y="12" width="29" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_SEURO_OPCIONAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="7bbb0c46-57d5-449b-ac94-15eba31bae5b" positionType="Float" x="349" y="12" width="38" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_TOTAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="47040d40-cf8a-4cc5-8a33-90e9380198a7" positionType="Float" x="397" y="12" width="12" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_ORDINARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="0de69dfa-27f3-486c-b5fd-4f17526f88e1" positionType="Float" x="409" y="12" width="17" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_EXTRA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="2cf233b8-2798-4e5a-9781-3447f2f85d62" positionType="Float" x="426" y="12" width="22" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_VIAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="0497b315-b7d5-436d-9e66-144db5dec2c1" positionType="Float" x="448" y="12" width="36" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_KM_RODADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="6a90ca08-98b7-4bde-8405-0c44939c8569" positionType="Float" x="494" y="12" width="19" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_ABSOLUTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="ddb5198c-5d50-4150-8fe2-5728291472c4" positionType="Float" x="513" y="12" width="35" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_EQUIVALENTE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0">
|
||||
<reportElement uuid="7a7481e6-5685-4ad6-8b50-ca108a16db96" positionType="Float" x="565" y="12" width="17" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{MEDIA_MPE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0">
|
||||
<reportElement uuid="f0665aa0-283f-4b0f-833f-a8d864d7c1b1" positionType="Float" x="548" y="12" width="17" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{MEDIA_MPA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0">
|
||||
<reportElement uuid="c89eabd5-2f70-4834-a49a-a44efa77b8c8" positionType="Float" x="592" y="12" width="29" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{MEDIA_RS_POR_KM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="36117b7f-967d-4a2e-a99a-d8a341a03c09" positionType="Float" x="621" y="12" width="16" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_EQ}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0">
|
||||
<reportElement uuid="258a9f99-c3e4-494d-b98a-8a4bee489abb" positionType="Float" x="637" y="12" width="31" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{MEDIA_RS_POR_VIAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="cf7bbf9b-a37a-4bd3-a629-7958b51bacf7" positionType="Float" x="668" y="12" width="46" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_PAX_KM_OFERTADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="9098e4b0-55e4-44ea-8d26-05a85a1b9774" positionType="Float" x="714" y="12" width="66" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_PAX_KM_TRANSPORTADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="5c8e07f3-9ed9-40c0-a55d-a9a7dadb9dd6" positionType="Float" x="780" y="12" width="22" height="10"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TOTAL_IAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="8dd18564-6d32-4232-a0fd-f39054849109" positionType="Float" x="0" y="12" width="803" height="1"/>
|
||||
</line>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
|
|
|
@ -90,7 +90,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getServico() {
|
||||
return servico;
|
||||
return servico == null ? BigDecimal.ZERO : servico;
|
||||
}
|
||||
|
||||
public void setServico(BigDecimal servico) {
|
||||
|
@ -106,7 +106,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getLot() {
|
||||
return lot;
|
||||
return lot == null ? BigDecimal.ZERO : lot;
|
||||
}
|
||||
|
||||
public void setLot(BigDecimal lot) {
|
||||
|
@ -122,7 +122,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getExtensaoTrecho() {
|
||||
return extensaoTrecho;
|
||||
return extensaoTrecho == null ? BigDecimal.ZERO : extensaoTrecho;
|
||||
}
|
||||
|
||||
public void setExtensaoTrecho(BigDecimal extensaoTrecho) {
|
||||
|
@ -130,7 +130,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getExtensao() {
|
||||
return extensao;
|
||||
return extensao == null ? BigDecimal.ZERO : extensao;
|
||||
}
|
||||
|
||||
public void setExtensao(BigDecimal extensao) {
|
||||
|
@ -138,7 +138,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getTarifa() {
|
||||
return tarifa;
|
||||
return tarifa == null ? BigDecimal.ZERO : tarifa;
|
||||
}
|
||||
|
||||
public void setTarifa(BigDecimal tarifa) {
|
||||
|
@ -146,7 +146,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getPassagens() {
|
||||
return passagens;
|
||||
return passagens == null ? BigDecimal.ZERO : passagens;
|
||||
}
|
||||
|
||||
public void setPassagens(BigDecimal passagens) {
|
||||
|
@ -154,7 +154,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getSeguro() {
|
||||
return seguro;
|
||||
return seguro == null ? BigDecimal.ZERO : seguro;
|
||||
}
|
||||
|
||||
public void setSeguro(BigDecimal seguro) {
|
||||
|
@ -162,7 +162,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getBagagens() {
|
||||
return bagagens;
|
||||
return bagagens == null ? BigDecimal.ZERO : bagagens;
|
||||
}
|
||||
|
||||
public void setBagagens(BigDecimal bagagens) {
|
||||
|
@ -170,7 +170,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getSegOpc() {
|
||||
return segOpc;
|
||||
return segOpc == null ? BigDecimal.ZERO : segOpc;
|
||||
}
|
||||
|
||||
public void setSegOpc(BigDecimal segOpc) {
|
||||
|
@ -178,7 +178,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getTotal() {
|
||||
return total;
|
||||
return total == null ? BigDecimal.ZERO : total;
|
||||
}
|
||||
|
||||
public void setTotal(BigDecimal total) {
|
||||
|
@ -186,7 +186,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getOrd() {
|
||||
return ord;
|
||||
return ord == null ? BigDecimal.ZERO : ord;
|
||||
}
|
||||
|
||||
public void setOrd(BigDecimal ord) {
|
||||
|
@ -194,7 +194,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getExtra() {
|
||||
return extra;
|
||||
return extra == null ? BigDecimal.ZERO : extra;
|
||||
}
|
||||
|
||||
public void setExtra(BigDecimal extra) {
|
||||
|
@ -202,7 +202,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getAbsol() {
|
||||
return absol;
|
||||
return absol == null ? BigDecimal.ZERO : absol;
|
||||
}
|
||||
|
||||
public void setAbsol(BigDecimal absol) {
|
||||
|
@ -210,7 +210,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getMediaReceitaViagem() {
|
||||
return mediaReceitaViagem;
|
||||
return mediaReceitaViagem == null ? BigDecimal.ZERO : mediaReceitaViagem;
|
||||
}
|
||||
|
||||
public void setMediaReceitaViagem(BigDecimal mediaReceitaViagem) {
|
||||
|
@ -218,7 +218,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getTotalViagem() {
|
||||
return totalViagem;
|
||||
return totalViagem == null ? BigDecimal.ZERO : totalViagem;
|
||||
}
|
||||
|
||||
public void setTotalViagem(BigDecimal totalViagem) {
|
||||
|
@ -226,7 +226,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getKmRodado() {
|
||||
return kmRodado;
|
||||
return kmRodado == null ? BigDecimal.ZERO : kmRodado;
|
||||
}
|
||||
|
||||
public void setKmRodado(BigDecimal kmRodado) {
|
||||
|
@ -234,7 +234,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getEquivalente() {
|
||||
return equivalente;
|
||||
return equivalente == null ? BigDecimal.ZERO : equivalente;
|
||||
}
|
||||
|
||||
public void setEquivalente(BigDecimal equivalente) {
|
||||
|
@ -242,7 +242,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getMpa() {
|
||||
return mpa;
|
||||
return mpa == null ? BigDecimal.ZERO : mpa;
|
||||
}
|
||||
|
||||
public void setMpa(BigDecimal mpa) {
|
||||
|
@ -250,7 +250,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getMpe() {
|
||||
return mpe;
|
||||
return mpe == null ? BigDecimal.ZERO : mpe;
|
||||
}
|
||||
|
||||
public void setMpe(BigDecimal mpe) {
|
||||
|
@ -258,7 +258,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getRsKm() {
|
||||
return rsKm;
|
||||
return rsKm == null ? BigDecimal.ZERO : rsKm;
|
||||
}
|
||||
|
||||
public void setRsKm(BigDecimal rsKm) {
|
||||
|
@ -266,7 +266,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getEq() {
|
||||
return eq;
|
||||
return eq == null ? BigDecimal.ZERO : eq;
|
||||
}
|
||||
|
||||
public void setEq(BigDecimal eq) {
|
||||
|
@ -274,7 +274,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getRsViagem() {
|
||||
return rsViagem;
|
||||
return rsViagem == null ? BigDecimal.ZERO : rsViagem;
|
||||
}
|
||||
|
||||
public void setRsViagem(BigDecimal rsViagem) {
|
||||
|
@ -282,7 +282,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getPaxKmOfertado() {
|
||||
return paxKmOfertado;
|
||||
return paxKmOfertado == null ? BigDecimal.ZERO : paxKmOfertado;
|
||||
}
|
||||
|
||||
public void setPaxKmOfertado(BigDecimal paxKmOfertado) {
|
||||
|
@ -290,7 +290,7 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getPaxKmTransportado() {
|
||||
return paxKmTransportado;
|
||||
return paxKmTransportado == null ? BigDecimal.ZERO : paxKmTransportado;
|
||||
}
|
||||
|
||||
public void setPaxKmTransportado(BigDecimal paxKmTransportado) {
|
||||
|
@ -298,11 +298,10 @@ public class RelatorioLinhasHorarioBean {
|
|||
}
|
||||
|
||||
public BigDecimal getIap() {
|
||||
return iap;
|
||||
return iap == null ? BigDecimal.ZERO : iap;
|
||||
}
|
||||
|
||||
public void setIap(BigDecimal iap) {
|
||||
this.iap = iap;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue