fixes bug#0011329

dev: emerson
qua: renato.oliveira

Os valores estão repetidos, pois tratam-se de serviços diferentes.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@83078 d1611594-4594-4d17-8e1d-87c2c4800839
master
emerson 2018-07-03 17:51:57 +00:00
parent 091fedc81c
commit 9e196d4507
7 changed files with 260 additions and 282 deletions

View File

@ -1,9 +1,9 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@ -61,7 +61,6 @@ public class RelatorioEmpresaCorrida extends Relatorio {
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null;
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
stmt.setString(FILED_FEC_INICIO, fecInicio);
stmt.setString(FIELD_FEC_FINAL, fecFinal);
if (empresa != null && !empresa.equals("")) {
@ -74,58 +73,63 @@ public class RelatorioEmpresaCorrida extends Relatorio {
List<RelatorioEmpresaCorridaBean> lsDadosRelatorio = new ArrayList<RelatorioEmpresaCorridaBean>();
log.info("Preenchendo bean:" + System.currentTimeMillis());
while (rset.next()) {
RelatorioEmpresaCorridaBean bean = new RelatorioEmpresaCorridaBean();
setDadosBean(rset, bean);
lsDadosRelatorio.add(bean);
}
setDadosRelatorio(rset, lsDadosRelatorio);
log.info("Fim bean:" + System.currentTimeMillis());
log.info("empresa:" + empresa + ";fecinicio:" + fecInicio + ";fecFinal:" + fecFinal);
String sqlKm = getSqlKm(empresa);
log.info(sqlKm);
stmt = new NamedParameterStatement(conexao, sqlKm);
rset = null;
stmt.setTimestamp(FILED_FEC_INICIO, new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
stmt.setTimestamp(FIELD_FEC_FINAL, new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
if (empresa != null && !empresa.equals("")) {
stmt.setInt(FIELD_EMPRESA_ID, Integer.parseInt(empresa));
}
List<RelatorioEmpresaCorridaBean> lsAux = new ArrayList<RelatorioEmpresaCorridaBean>();
log.info("Antes de enviar consulta para o banco:" + System.currentTimeMillis());
rset = stmt.executeQuery();
log.info("Depois de enviar consulta para o banco:" + System.currentTimeMillis());
while (rset.next()) {
RelatorioEmpresaCorridaBean rec = buscarRelatorioEmpresaCorrida(lsDadosRelatorio, rset);
if (rec != null) {
rec.setKmOnibusArrendados(rset.getInt(FIELD_KM_ONIBUS_ARRENDADOS));
rec.setKmOnibusProprio(rset.getInt(FIELD_KM_ONIBUS_PROPRIO));
rec.setKmTotal(rset.getInt(FIELD_KM_TOTAL));
lsAux.add(rec);
}
}
if (lsAux.size() > 0) {
setLsDadosRelatorio(lsAux);
if (lsDadosRelatorio.size() > 0) {
setLsDadosRelatorio(lsDadosRelatorio);
}
}
});
}
protected void setDadosRelatorio(ResultSet rset, List<RelatorioEmpresaCorridaBean> lsDadosRelatorio) throws SQLException {
RelatorioEmpresaCorridaBean bean = new RelatorioEmpresaCorridaBean();
while (rset.next()) {
if (possuiRutaNoBean(rset.getInt(FIELD_RUTA_ID), lsDadosRelatorio)) {
setValoresAgrupados(rset, bean);
continue;
} else {
bean = new RelatorioEmpresaCorridaBean();
setDadosBean(rset, bean);
}
lsDadosRelatorio.add(bean);
}
}
private boolean possuiRutaNoBean(int ruta_id, List<RelatorioEmpresaCorridaBean> lsDadosRelatorio) {
for (RelatorioEmpresaCorridaBean relatorioBean : lsDadosRelatorio) {
if (ruta_id == relatorioBean.getRutaId()) {
return true;
}
}
return false;
}
protected void setDadosBean(ResultSet rset, RelatorioEmpresaCorridaBean bean) throws SQLException {
bean.setRutaId(rset.getInt(FIELD_RUTA_ID));
bean.setAbonos(rset.getBigDecimal(FIELD_ABONOS));
bean.setBoletos(rset.getBigDecimal(FIELD_BOLETOS));
bean.setEmpresa(rset.getString(FIELD_NOMB_EMPRESA));
bean.setLinea(rset.getString(FIELD_LINEA));
bean.setAbonos(rset.getBigDecimal(FIELD_ABONOS));
bean.setBoletos(rset.getBigDecimal(FIELD_BOLETOS));
bean.setPasajerosTransportados(rset.getInt(FIELD_PASSAGEIROS_TRANSP));
bean.setKmOnibusArrendados(rset.getBigDecimal(FIELD_KM_ONIBUS_ARRENDADOS));
bean.setKmOnibusProprio(rset.getBigDecimal(FIELD_KM_ONIBUS_PROPRIO));
bean.setKmTotal(rset.getBigDecimal(FIELD_KM_TOTAL));
}
private void setValoresAgrupados(ResultSet rset, RelatorioEmpresaCorridaBean bean) throws SQLException {
bean.setAbonos(rset.getBigDecimal(FIELD_ABONOS).add(getValorBigDecimal(bean.getAbonos())));
bean.setBoletos(rset.getBigDecimal(FIELD_BOLETOS).add(getValorBigDecimal(bean.getBoletos())));
bean.setPasajerosTransportados(rset.getInt(FIELD_PASSAGEIROS_TRANSP) + (bean.getPasajerosTransportados() == null ? 0 : bean.getPasajerosTransportados()));
bean.setKmOnibusArrendados(rset.getBigDecimal(FIELD_KM_ONIBUS_ARRENDADOS).add(getValorBigDecimal(bean.getKmOnibusArrendados())));
bean.setKmOnibusProprio(rset.getBigDecimal(FIELD_KM_ONIBUS_PROPRIO).add(getValorBigDecimal(bean.getKmOnibusProprio())));
bean.setKmTotal(rset.getBigDecimal(FIELD_KM_TOTAL).add(getValorBigDecimal(bean.getKmTotal())));
}
private BigDecimal getValorBigDecimal(BigDecimal valor) {
return valor == null ? BigDecimal.ZERO : valor;
}
public void setLsDadosRelatorio(List<RelatorioEmpresaCorridaBean> lsDadosRelatorio) {
@ -136,73 +140,93 @@ public class RelatorioEmpresaCorrida extends Relatorio {
protected void processaParametros() throws Exception {
}
private RelatorioEmpresaCorridaBean buscarRelatorioEmpresaCorrida(
List<RelatorioEmpresaCorridaBean> lsDadosRelatorio, ResultSet rset) throws SQLException {
for (RelatorioEmpresaCorridaBean rec : lsDadosRelatorio) {
if (filtraEmpresaCorrida(rec, rset)) {
return rec;
}
}
return null;
}
protected boolean filtraEmpresaCorrida(RelatorioEmpresaCorridaBean rec, ResultSet rset) throws SQLException {
return rec.getRutaId().equals(rset.getInt(FIELD_RUTA_ID));
}
protected String getSql(String empresa) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT ");
sql.append(" e.empresa_id, ");
sql.append(" e.nombempresa, ");
sql.append(" r.ruta_id, ");
sql.append(" r.descruta AS linea, ");
sql.append(" COALESCE(SUM(CASE WHEN (cat.grupocategoria_id IS NULL OR cat.grupocategoria_id <> 4) THEN b.preciopagado ELSE 0 END), 0) boletos, ");
sql.append(" COALESCE(SUM(CASE WHEN cat.grupocategoria_id = 4 THEN b.preciopagado ELSE 0 END), 0) abonos, ");
sql.append(" COUNT(b.boleto_id) passageirosTransp ");
sql.append("FROM ruta r ");
sql.append("LEFT JOIN corrida c ON c.ruta_id = r.ruta_id ");
sql.append(" coalesce(b.boletos, 0) boletos, ");
sql.append(" coalesce(b.abonos, 0) abonos, ");
sql.append(" coalesce(b.passageirostransp, 0) passageirostransp, ");
sql.append(" TO_CHAR(c.feccorrida, 'dd/mm/yyyy') dataCorrida, ");
sql.append(" TO_CHAR(c.fechorsalida, 'hh24:mi') turnoOrigem, ");
sql.append(" po.descparada origem, ");
sql.append(" pd.descparada destino, ");
sql.append(" c.corrida_id, ");
sql.append(" coalesce(SUM(t.cantkmreal),0) kmtotal, ");
sql.append(" coalesce(SUM(");
sql.append(" CASE ");
sql.append(" WHEN a.empresa_id = c.empresacorrida_id THEN t.cantkmreal ");
sql.append(" ELSE 0 ");
sql.append(" END ");
sql.append(" ),0) kmonibusproprio, ");
sql.append(" coalesce(SUM(");
sql.append(" CASE ");
sql.append(" WHEN a.empresa_id <> c.empresacorrida_id THEN t.cantkmreal ");
sql.append(" ELSE 0 ");
sql.append(" END");
sql.append(" ),0) kmonibusarrendados ");
sql.append("FROM corrida c ");
sql.append("INNER JOIN ruta r ON c.ruta_id = r.ruta_id ");
sql.append("INNER JOIN corrida_tramo ct ON ct.corrida_id = c.corrida_id ");
sql.append(" AND c.feccorrida = ct.feccorrida ");
sql.append("INNER JOIN tramo t ON t.tramo_id = ct.tramo_id ");
sql.append("INNER JOIN autobus a ON a.autobus_id = ct.autobus_id ");
sql.append("INNER JOIN marca m ON m.marca_id = c.marca_id ");
sql.append("INNER JOIN empresa e ON e.empresa_id = m.empresa_id ");
sql.append("LEFT JOIN boleto b ON b.corrida_id = c.corrida_id AND b.feccorrida = c.feccorrida AND b.motivocancelacion_id IS NULL ");
sql.append("LEFT JOIN categoria cat ON cat.categoria_id = b.categoria_id ");
sql.append("LEFT JOIN ( ");
sql.append(" SELECT ");
sql.append(" COALESCE(SUM(");
sql.append(" CASE WHEN(cat.grupocategoria_id IS NULL OR cat.grupocategoria_id <> 4) THEN ");
sql.append(" bo.preciopagado ");
sql.append(" ELSE 0 ");
sql.append(" END");
sql.append(" ),0) boletos, ");
sql.append(" COALESCE(SUM(");
sql.append(" CASE WHEN cat.grupocategoria_id = 4 THEN bo.preciopagado ");
sql.append(" ELSE 0 ");
sql.append(" END");
sql.append(" ),0) abonos, ");
sql.append(" COUNT(bo.boleto_id) passageirostransp, ");
sql.append(" bo.boleto_id, ");
sql.append(" bo.corrida_id, ");
sql.append(" bo.feccorrida, ");
sql.append(" bo.motivocancelacion_id ");
sql.append(" FROM boleto bo ");
sql.append(" LEFT JOIN categoria cat ON cat.categoria_id = bo.categoria_id ");
sql.append(" GROUP BY bo.boleto_id, ");
sql.append(" bo.corrida_id, ");
sql.append(" bo.feccorrida, ");
sql.append(" bo.motivocancelacion_id) b ");
sql.append(" on b.corrida_id = c.corrida_id ");
sql.append(" AND b.feccorrida = c.feccorrida ");
sql.append(" AND b.motivocancelacion_id IS NULL ");
sql.append("LEFT JOIN parada po ON po.parada_id = c.origen_id ");
sql.append("LEFT JOIN parada pd ON pd.parada_id = c.destino_id ");
sql.append("WHERE c.activo <> 0 ");
sql.append("AND r.activo = 1 ");
sql.append("AND ct.activo = 1 ");
sql.append(StringUtils.isBlank(empresa) ? "" : "AND e.empresa_id = :empresa_id ");
sql.append("AND c.FECCORRIDA BETWEEN to_date(:fecInicio, 'DD/MM/YYYY HH24:Mi:SS') AND to_date(:fecFinal, 'DD/MM/YYYY HH24:Mi:SS') ");
sql.append("GROUP BY ");
sql.append(" e.empresa_id, ");
sql.append(" e.nombempresa, ");
sql.append(" r.ruta_id, ");
sql.append(" r.descruta ");
sql.append(" r.descruta, ");
sql.append(" TO_CHAR(c.feccorrida, 'dd/mm/yyyy'), ");
sql.append(" po.descparada, ");
sql.append(" pd.descparada, ");
sql.append(" TO_CHAR(c.fechorsalida, 'hh24:mi'), ");
sql.append(" c.corrida_id, ");
sql.append(" coalesce(b.boletos, 0), ");
sql.append(" coalesce(b.abonos, 0), ");
sql.append(" coalesce(b.passageirostransp, 0)");
sql.append("ORDER BY r.ruta_id ");
return sql.toString();
}
protected String getSqlKm(String empresa) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT ");
sql.append("c.ruta_id ruta_id, ");
sql.append("COALESCE(SUM(t.cantkmreal), 0) kmtotal, ");
sql.append("COALESCE(SUM(CASE WHEN a.empresa_id = c.empresacorrida_id THEN t.cantkmreal ELSE 0 END), 0) kmOnibusProprio, ");
sql.append("COALESCE(SUM(CASE WHEN a.empresa_id <> c.empresacorrida_id THEN t.cantkmreal ELSE 0 END), 0) kmOnibusArrendados ");
sql.append("FROM corrida c ");
sql.append("INNER JOIN corrida_tramo ct ON ct.corrida_id = c.corrida_id AND c.feccorrida = ct.feccorrida ");
sql.append("INNER JOIN tramo t ON t.tramo_id = ct.tramo_id ");
sql.append("INNER JOIN autobus a ON a.autobus_id = ct.autobus_id ");
sql.append("INNER JOIN marca m ON m.marca_id = c.marca_id ");
sql.append("INNER JOIN empresa e ON e.empresa_id = m.empresa_id ");
sql.append("WHERE c.activo <> 0 ");
sql.append("AND ct.activo = 1 ");
sql.append(StringUtils.isBlank(empresa) ? "" : "AND e.empresa_id = :empresa_id ");
sql.append("AND c.FECCORRIDA BETWEEN :fecInicio AND :fecFinal ");
sql.append("GROUP BY c.ruta_id ");
sql.append("ORDER BY c.ruta_id ");
return sql.toString();
}
}

View File

@ -3,6 +3,7 @@ package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
@ -15,6 +16,15 @@ public class RelatorioEmpresaCorridaNovoLayout extends RelatorioEmpresaCorrida {
super(parametros, conexao);
}
@Override
protected void setDadosRelatorio(ResultSet rset, List<RelatorioEmpresaCorridaBean> lsDadosRelatorio) throws SQLException {
while (rset.next()) {
RelatorioEmpresaCorridaBean bean = new RelatorioEmpresaCorridaBean();
setDadosBean(rset, bean);
lsDadosRelatorio.add(bean);
}
}
@Override
protected void setDadosBean(ResultSet rset, RelatorioEmpresaCorridaBean bean) throws SQLException {
super.setDadosBean(rset, bean);
@ -25,80 +35,4 @@ public class RelatorioEmpresaCorridaNovoLayout extends RelatorioEmpresaCorrida {
bean.setDestino(StringUtils.defaultString(rset.getString(FIELD_DESTINO)));
}
@Override
protected String getSql(String empresa) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT ");
sql.append(" e.empresa_id, ");
sql.append(" e.nombempresa, ");
sql.append(" r.ruta_id, ");
sql.append(" r.descruta AS linea, ");
sql.append(" COALESCE(SUM(CASE WHEN (cat.grupocategoria_id IS NULL OR cat.grupocategoria_id <> 4) THEN b.preciopagado ELSE 0 END), 0) boletos, ");
sql.append(" COALESCE(SUM(CASE WHEN cat.grupocategoria_id = 4 THEN b.preciopagado ELSE 0 END), 0) abonos, ");
sql.append(" COUNT(b.boleto_id) passageirosTransp, ");
sql.append(" TO_CHAR(c.feccorrida, 'dd/mm/yyyy') dataCorrida, ");
sql.append(" TO_CHAR(c.fechorsalida, 'hh24:mi') turnoOrigem, ");
sql.append(" po.descparada origem, ");
sql.append(" pd.descparada destino, ");
sql.append(" c.corrida_id ");
sql.append("FROM ruta r ");
sql.append("LEFT JOIN corrida c ON c.ruta_id = r.ruta_id ");
sql.append("INNER JOIN marca m ON m.marca_id = c.marca_id ");
sql.append("INNER JOIN empresa e ON e.empresa_id = m.empresa_id ");
sql.append("LEFT JOIN boleto b ON b.corrida_id = c.corrida_id AND b.feccorrida = c.feccorrida AND b.motivocancelacion_id IS NULL ");
sql.append("LEFT JOIN categoria cat ON cat.categoria_id = b.categoria_id ");
sql.append("LEFT JOIN parada po ON po.parada_id = c.origen_id ");
sql.append("LEFT JOIN parada pd ON pd.parada_id = c.destino_id ");
sql.append("WHERE c.activo <> 0 ");
sql.append("AND r.activo = 1 ");
sql.append(StringUtils.isBlank(empresa) ? "" : "AND e.empresa_id = :empresa_id ");
sql.append("AND c.FECCORRIDA BETWEEN to_date(:fecInicio, 'DD/MM/YYYY HH24:Mi:SS') AND to_date(:fecFinal, 'DD/MM/YYYY HH24:Mi:SS') ");
sql.append("GROUP BY ");
sql.append(" e.empresa_id, ");
sql.append(" e.nombempresa, ");
sql.append(" r.ruta_id, ");
sql.append(" r.descruta, ");
sql.append(" TO_CHAR(c.feccorrida, 'dd/mm/yyyy'), ");
sql.append(" po.descparada, ");
sql.append(" pd.descparada, ");
sql.append(" TO_CHAR(c.fechorsalida, 'hh24:mi'), ");
sql.append(" c.corrida_id ");
sql.append("ORDER BY r.ruta_id ");
return sql.toString();
}
@Override
protected String getSqlKm(String empresa) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT ");
sql.append("c.ruta_id ruta_id, ");
sql.append("c.corrida_id, ");
sql.append("COALESCE(SUM(t.cantkmreal), 0) kmtotal, ");
sql.append("COALESCE(SUM(CASE WHEN a.empresa_id = c.empresacorrida_id THEN t.cantkmreal ELSE 0 END), 0) kmOnibusProprio, ");
sql.append("COALESCE(SUM(CASE WHEN a.empresa_id <> c.empresacorrida_id THEN t.cantkmreal ELSE 0 END), 0) kmOnibusArrendados, ");
sql.append("TO_CHAR(c.feccorrida,'dd/mm/yyyy') datacorrida ");
sql.append("FROM corrida c ");
sql.append("INNER JOIN corrida_tramo ct ON ct.corrida_id = c.corrida_id AND c.feccorrida = ct.feccorrida ");
sql.append("INNER JOIN tramo t ON t.tramo_id = ct.tramo_id ");
sql.append("INNER JOIN autobus a ON a.autobus_id = ct.autobus_id ");
sql.append("INNER JOIN marca m ON m.marca_id = c.marca_id ");
sql.append("INNER JOIN empresa e ON e.empresa_id = m.empresa_id ");
sql.append("WHERE c.activo <> 0 ");
sql.append("AND ct.activo = 1 ");
sql.append(StringUtils.isBlank(empresa) ? "" : "AND e.empresa_id = :empresa_id ");
sql.append("AND c.FECCORRIDA BETWEEN :fecInicio AND :fecFinal ");
sql.append("GROUP BY c.ruta_id, ");
sql.append("c.corrida_id, ");
sql.append("TO_CHAR(c.feccorrida,'dd/mm/yyyy') ");
sql.append("ORDER BY c.ruta_id ");
return sql.toString();
}
@Override
protected boolean filtraEmpresaCorrida(RelatorioEmpresaCorridaBean rec, ResultSet rset) throws SQLException {
return rec.getCorridaId().equals(rset.getInt(FIELD_CORRIDA_ID));
}
}

View File

@ -8,7 +8,7 @@
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.4" value="groupFooter"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.group.4" value="empresa"/>
<property name="ireport.zoom" value="1.3636363636363635"/>
<property name="ireport.x" value="0"/>
<property name="ireport.x" value="60"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.remove.emtpy.space.between.columns" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.emtpy.space.between.rows" value="true"/>
@ -27,9 +27,9 @@
<field name="linea" class="java.lang.String"/>
<field name="boletos" class="java.math.BigDecimal"/>
<field name="abonos" class="java.math.BigDecimal"/>
<field name="kmOnibusProprio" class="java.lang.Integer"/>
<field name="kmOnibusArrendados" class="java.lang.Integer"/>
<field name="kmTotal" class="java.lang.Integer"/>
<field name="kmOnibusProprio" class="java.math.BigDecimal"/>
<field name="kmOnibusArrendados" class="java.math.BigDecimal"/>
<field name="kmTotal" class="java.math.BigDecimal"/>
<field name="pasajerosTransportados" class="java.lang.Integer"/>
<field name="empresa" class="java.lang.String"/>
<variable name="sum.boletos" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
@ -38,13 +38,13 @@
<variable name="sum.abonos" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{abonos}]]></variableExpression>
</variable>
<variable name="sum.kmOnibusProprio" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
<variable name="sum.kmOnibusProprio" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{kmOnibusProprio}]]></variableExpression>
</variable>
<variable name="sum.kmOnibusArrendados" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
<variable name="sum.kmOnibusArrendados" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{kmOnibusArrendados}]]></variableExpression>
</variable>
<variable name="sum.kmTotal" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
<variable name="sum.kmTotal" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{kmTotal}]]></variableExpression>
</variable>
<variable name="sum.pasajerosTransportados" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
@ -131,7 +131,7 @@
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="96095298-1c13-4089-8a8b-fd324b377e45" x="131" y="3" width="61" height="16"/>
<textElement textAlignment="Center">
<font size="10"/>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.boletos}]]></textFieldExpression>
</textField>
@ -140,27 +140,37 @@
</line>
<textField pattern="#,##0.00">
<reportElement uuid="354a3daa-dbb6-45c0-93c3-b9c4f485cbb5" x="192" y="3" width="59" height="16"/>
<textElement textAlignment="Center"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.abonos}]]></textFieldExpression>
</textField>
<textField>
<textField pattern="#,##0.00">
<reportElement uuid="2f518abc-f4b9-411b-bb4f-5e58c0a2b301" x="326" y="3" width="73" height="16"/>
<textElement textAlignment="Center"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.kmOnibusProprio}]]></textFieldExpression>
</textField>
<textField>
<textField pattern="#,##0.00">
<reportElement uuid="6ce0a6db-3435-4ef2-be61-273af168410f" x="399" y="3" width="88" height="16"/>
<textElement textAlignment="Center"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.kmOnibusArrendados}]]></textFieldExpression>
</textField>
<textField>
<textField pattern="#,##0.00">
<reportElement uuid="3abc13c1-b7df-49e7-977a-c49638f639c2" x="487" y="3" width="68" height="16"/>
<textElement textAlignment="Center"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.kmTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9a3560b6-4371-4d7c-9336-f7578ccadda8" x="251" y="3" width="75" height="16"/>
<textElement textAlignment="Center"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.pasajerosTransportados}]]></textFieldExpression>
</textField>
</band>
@ -280,7 +290,7 @@
</columnHeader>
<detail>
<band height="17" splitType="Stretch">
<textField isBlankWhenNull="true">
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="3111776a-f727-4313-841c-55dabd804df4" stretchType="RelativeToTallestObject" x="487" y="0" width="68" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
@ -296,7 +306,7 @@
</textElement>
<textFieldExpression><![CDATA[$F{abonos}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="cee727cd-cbc7-41d0-8020-d70aa33d8c9f" stretchType="RelativeToTallestObject" x="399" y="0" width="88" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
@ -312,7 +322,7 @@
</textElement>
<textFieldExpression><![CDATA[$F{linea}]]></textFieldExpression>
</textField>
<textField>
<textField pattern="#,##0.00">
<reportElement uuid="c29b2244-5b3e-48a2-9adf-8e10ee2a3856" stretchType="RelativeToTallestObject" x="326" y="0" width="73" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
@ -336,7 +346,7 @@
</textElement>
<textFieldExpression><![CDATA[$F{pasajerosTransportados}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="b933abbd-d3f7-4164-a61d-0ffb2c3e4d73" stretchType="RelativeToTallestObject" x="0" y="0" width="59" height="17"/>
<textElement textAlignment="Left">
<font size="7"/>

View File

@ -7,8 +7,8 @@
<property name="net.sf.jasperreports.export.xls.exclude.origin.group.3" value="empresa"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.4" value="groupFooter"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.group.4" value="empresa"/>
<property name="ireport.zoom" value="1.8150000000000004"/>
<property name="ireport.x" value="85"/>
<property name="ireport.zoom" value="1.3636363636363638"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.remove.emtpy.space.between.columns" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.emtpy.space.between.rows" value="true"/>
@ -27,9 +27,9 @@
<field name="linea" class="java.lang.String"/>
<field name="boletos" class="java.math.BigDecimal"/>
<field name="abonos" class="java.math.BigDecimal"/>
<field name="kmOnibusProprio" class="java.lang.Integer"/>
<field name="kmOnibusArrendados" class="java.lang.Integer"/>
<field name="kmTotal" class="java.lang.Integer"/>
<field name="kmOnibusProprio" class="java.math.BigDecimal"/>
<field name="kmOnibusArrendados" class="java.math.BigDecimal"/>
<field name="kmTotal" class="java.math.BigDecimal"/>
<field name="pasajerosTransportados" class="java.lang.Integer"/>
<field name="empresa" class="java.lang.String"/>
<field name="origem" class="java.lang.String"/>
@ -42,13 +42,13 @@
<variable name="sum.abonos" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{abonos}]]></variableExpression>
</variable>
<variable name="sum.kmOnibusProprio" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
<variable name="sum.kmOnibusProprio" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{kmOnibusProprio}]]></variableExpression>
</variable>
<variable name="sum.kmOnibusArrendados" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
<variable name="sum.kmOnibusArrendados" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{kmOnibusArrendados}]]></variableExpression>
</variable>
<variable name="sum.kmTotal" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
<variable name="sum.kmTotal" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
<variableExpression><![CDATA[$F{kmTotal}]]></variableExpression>
</variable>
<variable name="sum.pasajerosTransportados" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
@ -66,40 +66,40 @@
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e8355048-a037-4837-866b-e6cf7a3e90ed" stretchType="RelativeToTallestObject" x="319" y="20" width="46" height="22"/>
<reportElement uuid="e8355048-a037-4837-866b-e6cf7a3e90ed" stretchType="RelativeToTallestObject" x="313" y="20" width="46" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.abonos}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d88253ec-b6d4-4e99-b677-3c1a0b273a81" stretchType="RelativeToTallestObject" x="273" y="20" width="46" height="22"/>
<reportElement uuid="d88253ec-b6d4-4e99-b677-3c1a0b273a81" stretchType="RelativeToTallestObject" x="264" y="20" width="49" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.boletos}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="569add1e-cb73-4278-b800-fa44631527f6" stretchType="RelativeToTallestObject" x="463" y="20" width="45" height="22"/>
<reportElement uuid="569add1e-cb73-4278-b800-fa44631527f6" stretchType="RelativeToTallestObject" x="450" y="20" width="45" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.kmOnibusArrendados}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="31387dbf-1cdc-4c27-992f-2e439abea576" stretchType="RelativeToTallestObject" x="423" y="20" width="40" height="22"/>
<reportElement uuid="31387dbf-1cdc-4c27-992f-2e439abea576" stretchType="RelativeToTallestObject" x="404" y="20" width="45" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.kmOnibusProprio}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="12ef050d-3938-4dd6-8e82-bfeca7adaa2a" stretchType="RelativeToTallestObject" x="49" y="20" width="51" height="22"/>
<reportElement uuid="12ef050d-3938-4dd6-8e82-bfeca7adaa2a" stretchType="RelativeToTallestObject" x="39" y="20" width="51" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.linea}]]></textFieldExpression>
@ -113,49 +113,49 @@
<textFieldExpression><![CDATA[$R{header.km.grupo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="73c02335-4bbe-44ba-9c73-1201ed6b3967" stretchType="RelativeToTallestObject" x="365" y="20" width="58" height="22"/>
<reportElement uuid="73c02335-4bbe-44ba-9c73-1201ed6b3967" stretchType="RelativeToTallestObject" x="359" y="20" width="45" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.pasajerosTransportados}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="edd89ef1-92d6-4b5f-b249-851532fad9df" stretchType="RelativeToTallestObject" x="508" y="20" width="47" height="22"/>
<reportElement uuid="edd89ef1-92d6-4b5f-b249-851532fad9df" stretchType="RelativeToTallestObject" x="495" y="20" width="60" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.kmTotal}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="edc6a77e-c068-4251-bb3e-1f08004eb5bf" stretchType="RelativeToTallestObject" x="100" y="20" width="51" height="22"/>
<reportElement uuid="edc6a77e-c068-4251-bb3e-1f08004eb5bf" stretchType="RelativeToTallestObject" x="90" y="20" width="52" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.dataCorrida}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="15a278aa-451b-4c74-8b9c-15262c6f88f6" stretchType="RelativeToTallestObject" x="151" y="20" width="41" height="22"/>
<reportElement uuid="15a278aa-451b-4c74-8b9c-15262c6f88f6" stretchType="RelativeToTallestObject" x="142" y="20" width="41" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.turnoOrigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="1f69061d-585c-4aee-aeba-17c3cf06734e" stretchType="RelativeToTallestObject" x="192" y="20" width="40" height="22"/>
<reportElement uuid="1f69061d-585c-4aee-aeba-17c3cf06734e" stretchType="RelativeToTallestObject" x="183" y="20" width="40" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="ff19c95a-f2a3-4e55-b02e-07cc660acc14" stretchType="RelativeToTallestObject" x="232" y="20" width="41" height="22"/>
<reportElement uuid="ff19c95a-f2a3-4e55-b02e-07cc660acc14" stretchType="RelativeToTallestObject" x="223" y="20" width="41" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
@ -165,9 +165,9 @@
<groupFooter>
<band height="23">
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="96095298-1c13-4089-8a8b-fd324b377e45" x="273" y="3" width="46" height="16"/>
<reportElement uuid="96095298-1c13-4089-8a8b-fd324b377e45" x="264" y="3" width="49" height="16"/>
<textElement textAlignment="Center">
<font size="10"/>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.boletos}]]></textFieldExpression>
</textField>
@ -175,28 +175,38 @@
<reportElement uuid="6cef9de7-7dee-488b-aea7-3d02a8e3634a" x="0" y="0" width="555" height="1"/>
</line>
<textField pattern="#,##0.00">
<reportElement uuid="354a3daa-dbb6-45c0-93c3-b9c4f485cbb5" x="319" y="3" width="46" height="16"/>
<textElement textAlignment="Center"/>
<reportElement uuid="354a3daa-dbb6-45c0-93c3-b9c4f485cbb5" x="313" y="3" width="46" height="16"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.abonos}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="2f518abc-f4b9-411b-bb4f-5e58c0a2b301" x="423" y="3" width="40" height="16"/>
<textElement textAlignment="Center"/>
<textField pattern="#,##0.00">
<reportElement uuid="2f518abc-f4b9-411b-bb4f-5e58c0a2b301" x="404" y="3" width="45" height="16"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.kmOnibusProprio}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="6ce0a6db-3435-4ef2-be61-273af168410f" x="463" y="3" width="45" height="16"/>
<textElement textAlignment="Center"/>
<textField pattern="#,##0.00">
<reportElement uuid="6ce0a6db-3435-4ef2-be61-273af168410f" x="450" y="3" width="45" height="16"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.kmOnibusArrendados}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="3abc13c1-b7df-49e7-977a-c49638f639c2" x="508" y="3" width="47" height="16"/>
<textElement textAlignment="Center"/>
<textField pattern="#,##0.00">
<reportElement uuid="3abc13c1-b7df-49e7-977a-c49638f639c2" x="495" y="3" width="60" height="16"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.kmTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9a3560b6-4371-4d7c-9336-f7578ccadda8" x="365" y="3" width="58" height="16"/>
<textElement textAlignment="Center"/>
<reportElement uuid="9a3560b6-4371-4d7c-9336-f7578ccadda8" x="359" y="3" width="45" height="16"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.pasajerosTransportados}]]></textFieldExpression>
</textField>
</band>
@ -208,7 +218,7 @@
<title>
<band height="39">
<textField>
<reportElement uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716" x="0" y="19" width="49" height="20"/>
<reportElement uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716" x="0" y="19" width="39" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$R{header.periodo}]]></textFieldExpression>
</textField>
@ -225,7 +235,7 @@
<textFieldExpression><![CDATA[$R{header.pagina}+" "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50" x="49" y="19" width="395" height="20"/>
<reportElement uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50" x="40" y="19" width="404" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
</textField>
@ -251,95 +261,95 @@
<columnHeader>
<band height="22" splitType="Stretch">
<textField>
<reportElement uuid="f5729d81-df6a-4612-b01d-d43ce1008f3f" stretchType="RelativeToTallestObject" x="508" y="0" width="47" height="22"/>
<reportElement uuid="f5729d81-df6a-4612-b01d-d43ce1008f3f" stretchType="RelativeToTallestObject" x="495" y="0" width="60" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.kmTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e0126182-4184-40df-898c-71babec8c9ac" stretchType="RelativeToTallestObject" x="365" y="0" width="58" height="22"/>
<reportElement uuid="e0126182-4184-40df-898c-71babec8c9ac" stretchType="RelativeToTallestObject" x="359" y="0" width="45" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.pasajerosTransportados}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="1ab856e3-3db6-43af-9241-f52d67972d8f" stretchType="RelativeToTallestObject" x="319" y="0" width="46" height="22"/>
<reportElement uuid="1ab856e3-3db6-43af-9241-f52d67972d8f" stretchType="RelativeToTallestObject" x="313" y="0" width="46" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.abonos}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="192f95fb-fc2c-4872-b0a4-00d0675a9882" stretchType="RelativeToTallestObject" x="273" y="0" width="46" height="22"/>
<reportElement uuid="192f95fb-fc2c-4872-b0a4-00d0675a9882" stretchType="RelativeToTallestObject" x="264" y="0" width="49" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.boletos}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="76ea0944-2fed-4c0f-a436-77489c8bb755" stretchType="RelativeToTallestObject" x="423" y="0" width="40" height="22"/>
<reportElement uuid="76ea0944-2fed-4c0f-a436-77489c8bb755" stretchType="RelativeToTallestObject" x="404" y="0" width="40" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.kmOnibusProprio}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="bc11eaed-fff3-4d98-b397-25e43e398699" stretchType="RelativeToTallestObject" x="463" y="0" width="45" height="22"/>
<reportElement uuid="bc11eaed-fff3-4d98-b397-25e43e398699" stretchType="RelativeToTallestObject" x="450" y="0" width="45" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph firstLineIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.kmOnibusArrendados}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="140d9378-b983-4eef-bb17-9dbdc80d324a" stretchType="RelativeToTallestObject" x="49" y="0" width="51" height="22"/>
<reportElement uuid="140d9378-b983-4eef-bb17-9dbdc80d324a" stretchType="RelativeToTallestObject" x="39" y="0" width="51" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.linea}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="1e959efc-f066-48df-94d1-5ab4ba7fb79e" stretchType="RelativeToTallestObject" x="0" y="0" width="49" height="22"/>
<reportElement uuid="1e959efc-f066-48df-94d1-5ab4ba7fb79e" stretchType="RelativeToTallestObject" x="0" y="0" width="39" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
</textElement>
<text><![CDATA[Empresa]]></text>
</staticText>
<textField isStretchWithOverflow="true">
<reportElement uuid="57b90a8d-7cab-4256-a814-87c298307204" stretchType="RelativeToTallestObject" x="151" y="0" width="41" height="22"/>
<reportElement uuid="57b90a8d-7cab-4256-a814-87c298307204" stretchType="RelativeToTallestObject" x="142" y="0" width="41" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.turnoOrigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="2df70287-7eb7-4551-af67-a2df2f9cac76" stretchType="RelativeToTallestObject" x="100" y="0" width="51" height="22"/>
<reportElement uuid="2df70287-7eb7-4551-af67-a2df2f9cac76" stretchType="RelativeToTallestObject" x="90" y="0" width="52" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.dataCorrida}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="a7498aa9-7e4c-4987-8da4-6aa7d354f680" stretchType="RelativeToTallestObject" x="232" y="0" width="41" height="22"/>
<reportElement uuid="a7498aa9-7e4c-4987-8da4-6aa7d354f680" stretchType="RelativeToTallestObject" x="223" y="0" width="41" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="fa7a55df-3f22-4bd3-bda4-98e3cae73b6f" stretchType="RelativeToTallestObject" x="192" y="0" width="40" height="22"/>
<reportElement uuid="fa7a55df-3f22-4bd3-bda4-98e3cae73b6f" stretchType="RelativeToTallestObject" x="183" y="0" width="40" height="22"/>
<textElement markup="none">
<font size="9"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression>
@ -348,8 +358,8 @@
</columnHeader>
<detail>
<band height="18" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement uuid="3111776a-f727-4313-841c-55dabd804df4" stretchType="RelativeToTallestObject" x="508" y="0" width="47" height="17"/>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="3111776a-f727-4313-841c-55dabd804df4" stretchType="RelativeToTallestObject" x="495" y="0" width="60" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
<paragraph leftIndent="2"/>
@ -357,15 +367,15 @@
<textFieldExpression><![CDATA[$F{kmTotal}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="3343aea7-212b-4bd5-a29c-8dcab3cb7568" stretchType="RelativeToTallestObject" x="319" y="0" width="46" height="17"/>
<reportElement uuid="3343aea7-212b-4bd5-a29c-8dcab3cb7568" stretchType="RelativeToTallestObject" x="313" y="0" width="46" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{abonos}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="cee727cd-cbc7-41d0-8020-d70aa33d8c9f" stretchType="RelativeToTallestObject" x="463" y="0" width="45" height="17"/>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="cee727cd-cbc7-41d0-8020-d70aa33d8c9f" stretchType="RelativeToTallestObject" x="450" y="0" width="45" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
<paragraph leftIndent="2"/>
@ -373,15 +383,15 @@
<textFieldExpression><![CDATA[$F{kmOnibusArrendados}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="9f731da4-307a-4409-a8d5-28b2c4c40fce" stretchType="RelativeToTallestObject" x="49" y="0" width="51" height="17"/>
<reportElement uuid="9f731da4-307a-4409-a8d5-28b2c4c40fce" stretchType="RelativeToTallestObject" x="39" y="0" width="51" height="17"/>
<textElement textAlignment="Left">
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{linea}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c29b2244-5b3e-48a2-9adf-8e10ee2a3856" stretchType="RelativeToTallestObject" x="423" y="0" width="40" height="17"/>
<textField pattern="#,##0.00">
<reportElement uuid="c29b2244-5b3e-48a2-9adf-8e10ee2a3856" stretchType="RelativeToTallestObject" x="404" y="0" width="45" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
<paragraph leftIndent="2"/>
@ -389,7 +399,7 @@
<textFieldExpression><![CDATA[$F{kmOnibusProprio}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="b36dbddb-2fa9-48a5-809e-0e15ad54c529" stretchType="RelativeToTallestObject" x="273" y="0" width="46" height="17"/>
<reportElement uuid="b36dbddb-2fa9-48a5-809e-0e15ad54c529" stretchType="RelativeToTallestObject" x="264" y="0" width="49" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
<paragraph leftIndent="2"/>
@ -397,23 +407,23 @@
<textFieldExpression><![CDATA[$F{boletos}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="4a68f71a-7be1-467a-b3eb-641a0c1f9a48" stretchType="RelativeToTallestObject" x="365" y="0" width="58" height="17"/>
<reportElement uuid="4a68f71a-7be1-467a-b3eb-641a0c1f9a48" stretchType="RelativeToTallestObject" x="359" y="0" width="45" height="17"/>
<textElement textAlignment="Center">
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{pasajerosTransportados}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="b933abbd-d3f7-4164-a61d-0ffb2c3e4d73" stretchType="RelativeToTallestObject" x="0" y="0" width="49" height="17"/>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="b933abbd-d3f7-4164-a61d-0ffb2c3e4d73" stretchType="RelativeToTallestObject" x="0" y="0" width="39" height="17"/>
<textElement textAlignment="Left">
<font size="7"/>
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="c263b8a0-59ed-444b-ac4c-5bc075c5aa35" stretchType="RelativeToTallestObject" x="100" y="0" width="51" height="17"/>
<reportElement uuid="c263b8a0-59ed-444b-ac4c-5bc075c5aa35" stretchType="RelativeToTallestObject" x="90" y="0" width="52" height="17"/>
<textElement textAlignment="Left">
<font size="8"/>
<paragraph leftIndent="2"/>
@ -421,7 +431,7 @@
<textFieldExpression><![CDATA[$F{dataCorrida}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="b4507261-0f9d-494e-9884-ef0e052ca100" stretchType="RelativeToTallestObject" x="151" y="0" width="41" height="17"/>
<reportElement uuid="b4507261-0f9d-494e-9884-ef0e052ca100" stretchType="RelativeToTallestObject" x="142" y="0" width="41" height="17"/>
<textElement textAlignment="Left">
<font size="8"/>
<paragraph leftIndent="2"/>
@ -429,7 +439,7 @@
<textFieldExpression><![CDATA[$F{turnoOrigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="11973578-f700-40c5-8e55-1d84f5f44689" stretchType="RelativeToTallestObject" x="192" y="0" width="40" height="17"/>
<reportElement uuid="11973578-f700-40c5-8e55-1d84f5f44689" stretchType="RelativeToTallestObject" x="183" y="0" width="40" height="17"/>
<textElement textAlignment="Left">
<font size="8"/>
<paragraph leftIndent="2"/>
@ -437,7 +447,7 @@
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="31a7ab2b-9bad-4f03-baea-32a7b1aa1dcc" stretchType="RelativeToTallestObject" x="232" y="0" width="41" height="17"/>
<reportElement uuid="31a7ab2b-9bad-4f03-baea-32a7b1aa1dcc" stretchType="RelativeToTallestObject" x="223" y="0" width="41" height="17"/>
<textElement textAlignment="Left">
<font size="8"/>
<paragraph leftIndent="2"/>

View File

@ -10,9 +10,9 @@ public class RelatorioEmpresaCorridaBean {
private String linea;
private BigDecimal boletos;
private BigDecimal abonos;
private Integer kmOnibusProprio;
private Integer kmOnibusArrendados;
private Integer kmTotal;
private BigDecimal kmOnibusProprio;
private BigDecimal kmOnibusArrendados;
private BigDecimal kmTotal;
private Integer pasajerosTransportados;
private String origem;
private String destino;
@ -83,27 +83,27 @@ public class RelatorioEmpresaCorridaBean {
this.abonos = abonos;
}
public Integer getKmOnibusProprio() {
public BigDecimal getKmOnibusProprio() {
return kmOnibusProprio;
}
public void setKmOnibusProprio(Integer kmOnibusProprio) {
public void setKmOnibusProprio(BigDecimal kmOnibusProprio) {
this.kmOnibusProprio = kmOnibusProprio;
}
public Integer getKmOnibusArrendados() {
public BigDecimal getKmOnibusArrendados() {
return kmOnibusArrendados;
}
public void setKmOnibusArrendados(Integer kmOnibusArrendados) {
public void setKmOnibusArrendados(BigDecimal kmOnibusArrendados) {
this.kmOnibusArrendados = kmOnibusArrendados;
}
public Integer getKmTotal() {
public BigDecimal getKmTotal() {
return kmTotal;
}
public void setKmTotal(Integer kmTotal) {
public void setKmTotal(BigDecimal kmTotal) {
this.kmTotal = kmTotal;
}