- Ajustes nos filtros do RDA

- Tela de cadastramento de comissão
- Calculo de comissão
- Melhoria, padronização do percentual
- Outros ajustes

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@29372 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno 2013-07-23 20:17:06 +00:00
parent c9f2cb6f48
commit dde1aa09b6
37 changed files with 3920 additions and 1063 deletions

View File

@ -5,13 +5,16 @@ package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
@ -21,31 +24,43 @@ import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
*/
public class RelatorioReceitaDiariaAgencia extends Relatorio {
private HashMap<Integer, BigDecimal> cacheImposto;
private Map<String, HashMap<String, Object>> mapCacheConfigImposto;
private Map<String, HashMap<String, Object>> mapCacheConfigComissao;
public RelatorioReceitaDiariaAgencia(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
this.cacheImposto = new HashMap<Integer, BigDecimal>();
this.mapCacheConfigImposto = new HashMap<String, HashMap<String, Object>>();
this.mapCacheConfigComissao = new HashMap<String, HashMap<String, Object>>();
this.setCustomDataSource(new DataSource(this) {
this.setCustomDataSource(new ArrayDataSource(this) {
protected HashMap<Integer, HashMap<String, Object>> mapDados;
@Override
public Object valueCustomFields(String fieldName) throws Exception {
if (fieldName.equals("IMPOSTOS")) {
return getValorImposto(this.rowNum, this.resultSet.getInt("puntoventa_id"), this.resultSet.getBigDecimal("receita_tarifa"), this.resultSet.getBigDecimal("receita_seguro"), BigDecimal.ZERO, BigDecimal.ZERO);
if (fieldName.equals("RECEITA_BAGAGEM")) {
if (!(Boolean) this.relatorio.getParametros().get("B_EXCLUI_BAGAGEM"))
return getValorReceitaBagagem((Integer) this.getByName("PUNTOVENTA_ID"));
else
return BigDecimal.ZERO;
}
else if (fieldName.equals("RECEITA_TOTAL")) {
return ((BigDecimal) this.getByName("RECEITA_TARIFA")).add((BigDecimal) this.getByName("RECEITA_SEGURO")).add((BigDecimal) this.getByName("RECEITA_BAGAGEM")).subtract((BigDecimal) this.getByName("TOTAL_DEVOL"));
}
else if (fieldName.equals("RECEITA_LIQUIDA")) {
return this.resultSet.getBigDecimal("receita_tarifa").subtract(getValorImposto(this.rowNum, this.resultSet.getInt("puntoventa_id"), this.resultSet.getBigDecimal("receita_tarifa"), this.resultSet.getBigDecimal("receita_seguro"), BigDecimal.ZERO, BigDecimal.ZERO));
return ((BigDecimal) this.getByName("RECEITA_TARIFA")).add((BigDecimal) this.getByName("RECEITA_SEGURO")).add((BigDecimal) this.getByName("RECEITA_BAGAGEM")).subtract((BigDecimal) this.getByName("TOTAL_DEVOL")).subtract((BigDecimal) this.getByName("IMPOSTOS"));
}
else if (fieldName.equals("DIFERENCA_COMISSAO")) {
return ((BigDecimal) this.getByName("VALOR_COMISSAO")).subtract((BigDecimal) this.getByName("ANTECIPACAO"));
}
return null;
}
@Override
public void initDados() throws SQLException {
protected void prepareQuery() throws SQLException {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
@ -53,26 +68,227 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
if (parametros.get("NUMPUNTOVENTA") != null) {
StringBuilder strNumPuntoVenta = new StringBuilder();
for (PuntoVenta s : ((ArrayList<PuntoVenta>) parametros.get("NUMPUNTOVENTA"))) {
for (PuntoVenta s : (ArrayList<PuntoVenta>) parametros.get("NUMPUNTOVENTA")) {
strNumPuntoVenta.append("," + s.getNumPuntoVenta() + ",");
}
stmt.setString("NUMPUNTOVENTA", strNumPuntoVenta.toString());
}
else
stmt.setString("NUMPUNTOVENTA", null);
stmt.setBoolean("B_EXCLUI_BAGAGEM", (Boolean) parametros.get("B_EXCLUI_BAGAGEM"));
stmt.setNull("ESTADO_ID", java.sql.Types.INTEGER);
if (parametros.get("ESTADO_ID") != null)
stmt.setInt("ESTADO_ID", (Integer) parametros.get("ESTADO_ID"));
else
stmt.setNull("ESTADO_ID", java.sql.Types.INTEGER);
if (parametros.get("EMPRESA_ID") != null)
stmt.setInt("EMPRESA_ID", (Integer) parametros.get("EMPRESA_ID"));
else
stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER);
if (parametros.get("TIPOPTOVTA_ID") != null)
stmt.setInt("TIPOPTOVTA_ID", (Integer) parametros.get("TIPOPTOVTA_ID"));
else
stmt.setNull("TIPOPTOVTA_ID", java.sql.Types.INTEGER);
stmt.setDate("DATA_INICIO", (java.sql.Date) parametros.get("DATA_INICIO"));
stmt.setDate("DATA_FINAL", (java.sql.Date) parametros.get("DATA_FINAL"));
stmt.setString("ISNUMPUNTOVENTATODOS", (String) parametros.get("ISNUMPUNTOVENTATODOS"));
this.resultSet = stmt.executeQuery();
}
public void setRowComissao(Map<String, Object> rowOrigem) throws Exception {
Map<String, Object> rowDestino = rowOrigem;
// Busca as configurações de comissão
HashMap<String, Object> configComissao = getConfigComissao((Integer) rowOrigem.get("PUNTOVENTA_ID"), (Integer) rowOrigem.get("EMPRESAPUNTOVENTA_ID"));
if (configComissao == null) {
return;
}
// Verifica se existe agência de destino da comissão e atualiza a row se necessario
if ((Integer) configComissao.get("PUNTOVENTA_ID") != 0 && !((Integer) configComissao.get("PUNTOVENTA_ID")).equals(this.resultSet.getInt("PUNTOVENTA_ID")))
rowDestino = this.getRow((Integer) configComissao.get("PUNTOVENTA_ID"), null);
Integer puntoVentaId = (Integer) rowDestino.get("PUNTOVENTA_ID");
BigDecimal motivoCancelacionId = this.resultSet.getBigDecimal("MOTIVOCANCELACION_ID");
Integer tipoVentaId = this.resultSet.getInt("TIPOVENTA_ID");
HashMap<String, Object> configImposto = getConfigImposto(puntoVentaId);
if (configImposto == null) {
return;
}
BigDecimal baseCalculo = BigDecimal.ZERO;
BigDecimal valorComissao, percComissao;
BigDecimal issComissao = (BigDecimal) configComissao.get("ISSRETIDO");
BigDecimal royatilesComissao = (BigDecimal) configComissao.get("ROYALTIES");
// Defini a base de calculo da comissão
if (motivoCancelacionId == null) {
if ((Boolean) configComissao.get("TARIFARECEITA"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("PRECIOPAGADO"));
if ((Boolean) configComissao.get("SEGURORECEITA"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("IMPORTESEGURO"));
if ((Boolean) configComissao.get("TAXARECEITA"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("IMPORTETAXAEMBARQUE"));
if ((Boolean) configComissao.get("PEDAGIORECEITA"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("IMPORTEPEDAGIO"));
// Caso esteje setado na configuração de comissão que o calculo deve ser sobre o liquido, deduz o imposto.
if (((String) configComissao.get("RECEITA")).equals("RL") &&
(!tipoVentaId.equals(18) || (tipoVentaId.equals(18) && (Boolean) this.relatorio.getParametros().get("B_CONTEMPLAR_GAP"))))
baseCalculo = baseCalculo.subtract((BigDecimal) rowOrigem.get("IMPOSTO"));
}
else {
if ((Boolean) configComissao.get("TARIFADEV"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("PRECIOPAGADO"));
if ((Boolean) configComissao.get("SEGURO_DEV"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("IMPORTESEGURO"));
if ((Boolean) configComissao.get("TAXADEV"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("IMPORTETAXAEMBARQUE"));
if ((Boolean) configComissao.get("PEDAGIODEV"))
baseCalculo = baseCalculo.add(this.resultSet.getBigDecimal("IMPORTEPEDAGIO"));
}
// Verifica se na tabela de impostos por empresa, o mes da corrida esta marcado como alta ou baixa temporada
Date fecCorrida = this.resultSet.getDate("FECCORRIDA");
String mes = new SimpleDateFormat("M").format(fecCorrida);
Boolean isAltaTemporada = ((mes.equals("1") && (Boolean) configImposto.get("INDJANEIRO")) || (mes.equals("2") && (Boolean) configImposto.get("INDFEVEREIRO"))
|| (mes.equals("3") && (Boolean) configImposto.get("INDMARCO")) || (mes.equals("4") && (Boolean) configImposto.get("INDJABRIL"))
|| (mes.equals("5") && (Boolean) configImposto.get("INDMAIO")) || (mes.equals("6") && (Boolean) configImposto.get("INDJUNHO"))
|| (mes.equals("7") && (Boolean) configImposto.get("INDJULHO")) || (mes.equals("8") && (Boolean) configImposto.get("INDAGOSTO"))
|| (mes.equals("9") && (Boolean) configImposto.get("INDSETEMBRO")) || (mes.equals("10") && (Boolean) configImposto.get("INDOUTUBRO"))
|| (mes.equals("11") && (Boolean) configImposto.get("INDNOVEMBRO")) || (mes.equals("12") && (Boolean) configImposto.get("INDDEZEMBRO"))) ? true : false;
percComissao = isAltaTemporada ? (BigDecimal) configComissao.get("PASSAGEMALTA") : (BigDecimal) configComissao.get("PASSAGEMBAIXA");
// VALOR COMISSAO = BASE DE CALCULO * (PERCENTUAL COMISSAO / 100)
valorComissao = baseCalculo.multiply(percComissao.divide(BigDecimal.valueOf(100)));
// Deduz o ISS: VALOR COMISSAO = VALOR COMISSAO * (PERCENTUAL ISS / 100) - 1
if (issComissao != null && !issComissao.equals(BigDecimal.ZERO)) {
BigDecimal fator = BigDecimal.ONE.subtract(issComissao.divide(BigDecimal.valueOf(100)));
valorComissao = valorComissao.multiply(fator);
}
// Deduz os royatiles
if (royatilesComissao != null && !royatilesComissao.equals(BigDecimal.ZERO)) {
BigDecimal fator = BigDecimal.ONE.subtract(royatilesComissao.divide(BigDecimal.valueOf(100)));
valorComissao = valorComissao.multiply(fator);
}
rowDestino.put("VALOR_COMISSAO", ((BigDecimal) rowDestino.get("VALOR_COMISSAO")).add(!tipoVentaId.equals(18) ? valorComissao : BigDecimal.ZERO));
// Se a agencia de destino não estiver na listagem, finaliza o preenchimento do map e adiciona na listagem
if (!mapDados.containsKey(puntoVentaId)) {
rowDestino.put("PUNTOVENTA_ID", configComissao.get("PUNTOVENTA_ID"));
rowDestino.put("CVEESTADO", configComissao.get("CVEESTADO"));
rowDestino.put("NUMPUNTOVENTA", configComissao.get("NUMPUNTOVENTA"));
rowDestino.put("NOMBPUNTOVENTA", configComissao.get("NOMBPUNTOVENTA"));
rowDestino.put("EMPRESAPUNTOVENTA_ID", rowOrigem.get("EMPRESAPUNTOVENTA_ID"));
rowDestino.put("ESTADO_ID", configComissao.get("ESTADO_ID"));
rowDestino.put("TIPO_AGENCIA", configComissao.get("TIPO_AGENCIA"));
mapDados.put(puntoVentaId, (HashMap<String, Object>) rowDestino);
}
}
protected Map<String, Object> getRow(Integer puntoVentaId, ResultSet rs) throws SQLException {
Map<String, Object> row;
if (mapDados.containsKey(puntoVentaId)) {
row = mapDados.get(puntoVentaId);
}
else
{
row = new HashMap<String, Object>();
row.put("TOTAL_BILHETES", BigDecimal.ZERO);
row.put("TOTAL_BILHETES_CANC", BigDecimal.ZERO);
row.put("TOTAL_BILHETES_GAP", BigDecimal.ZERO);
row.put("RECEITA_TARIFA", BigDecimal.ZERO);
row.put("RECEITA_TARIFA_GAP", BigDecimal.ZERO);
row.put("RECEITA_SEGURO", BigDecimal.ZERO);
row.put("RECEITA_SEGURO_GAP", BigDecimal.ZERO);
row.put("RECEITA_EMBARQUE", BigDecimal.ZERO);
row.put("RECEITA_EMBARQUE_GAP", BigDecimal.ZERO);
row.put("RECEITA_OUTROS", BigDecimal.ZERO);
row.put("RECEITA_OUTROS_GAP", BigDecimal.ZERO);
row.put("RECEITA_PEDAGIO", BigDecimal.ZERO);
row.put("RECEITA_PEDAGIO_GAP", BigDecimal.ZERO);
row.put("RECEITA_BAGAGEM", BigDecimal.ZERO);
row.put("TOTAL_DEVOL", BigDecimal.ZERO);
row.put("TOTAL_DEVOL_GAP", BigDecimal.ZERO);
row.put("IMPOSTOS", BigDecimal.ZERO);
row.put("VALOR_COMISSAO", BigDecimal.ZERO);
row.put("ANTECIPACAO", getValorAntecipacaoComissao(puntoVentaId));
if (rs != null) {
row.put("PUNTOVENTA_ID", rs.getInt("PUNTOVENTA_ID"));
row.put("CVEESTADO", rs.getString("CVEESTADO"));
row.put("NUMPUNTOVENTA", rs.getString("NUMPUNTOVENTA"));
row.put("NOMBPUNTOVENTA", rs.getString("NOMBPUNTOVENTA"));
row.put("EMPRESAPUNTOVENTA_ID", rs.getInt("EMPRESAPUNTOVENTA_ID"));
row.put("ESTADO_ID", rs.getBigDecimal("ESTADO_ID"));
row.put("TIPO_AGENCIA", rs.getString("TIPO_AGENCIA"));
}
}
return row;
}
@Override
public void initDados() throws Exception {
this.prepareQuery();
this.mapDados = new HashMap<Integer, HashMap<String, Object>>();
while (this.resultSet.next()) {
Integer puntoVentaId = this.resultSet.getInt("PUNTOVENTA_ID");
BigDecimal motivoCancelacionId = this.resultSet.getBigDecimal("MOTIVOCANCELACION_ID");
Integer tipoVentaId = this.resultSet.getInt("TIPOVENTA_ID");
// Inicializa a row atual
Map<String, Object> row = this.getRow(puntoVentaId, this.resultSet);
this.mapDados.put((Integer) row.get("PUNTOVENTA_ID"), (HashMap<String, Object>) row);
row.put("TOTAL_BILHETES", ((BigDecimal) row.get("TOTAL_BILHETES")).add(motivoCancelacionId == null && !tipoVentaId.equals(18) ? BigDecimal.ONE : BigDecimal.ZERO));
row.put("TOTAL_BILHETES_GAP", ((BigDecimal) row.get("TOTAL_BILHETES_GAP")).add(motivoCancelacionId == null && tipoVentaId.equals(18) ? BigDecimal.ONE : BigDecimal.ZERO));
row.put("TOTAL_BILHETES_CANC", ((BigDecimal) row.get("TOTAL_BILHETES_CANC")).add(motivoCancelacionId != null ? BigDecimal.ONE : BigDecimal.ZERO));
if (motivoCancelacionId == null) {
row.put("RECEITA_TARIFA", ((BigDecimal) row.get("RECEITA_TARIFA")).add(!tipoVentaId.equals(18) ? this.resultSet.getBigDecimal("PRECIOPAGADO") : BigDecimal.ZERO));
row.put("RECEITA_TARIFA_GAP", ((BigDecimal) row.get("RECEITA_TARIFA_GAP")).add(tipoVentaId.equals(18) ? this.resultSet.getBigDecimal("PRECIOPAGADO") : BigDecimal.ZERO));
row.put("RECEITA_SEGURO", ((BigDecimal) row.get("RECEITA_SEGURO")).add(!tipoVentaId.equals(18) && this.resultSet.getBigDecimal("IMPORTESEGURO") != null ? this.resultSet.getBigDecimal("IMPORTESEGURO") : BigDecimal.ZERO));
row.put("RECEITA_SEGURO_GAP", ((BigDecimal) row.get("RECEITA_SEGURO_GAP")).add(tipoVentaId.equals(18) ? this.resultSet.getBigDecimal("IMPORTESEGURO") : BigDecimal.ZERO));
row.put("RECEITA_EMBARQUE", ((BigDecimal) row.get("RECEITA_EMBARQUE")).add(!tipoVentaId.equals(18) && this.resultSet.getBigDecimal("IMPORTETAXAEMBARQUE") != null ? this.resultSet.getBigDecimal("IMPORTETAXAEMBARQUE") : BigDecimal.ZERO));
row.put("RECEITA_EMBARQUE_GAP", ((BigDecimal) row.get("RECEITA_EMBARQUE_GAP")).add(tipoVentaId.equals(18) && this.resultSet.getBigDecimal("IMPORTETAXAEMBARQUE") != null ? this.resultSet.getBigDecimal("IMPORTETAXAEMBARQUE") : BigDecimal.ZERO));
row.put("RECEITA_OUTROS", ((BigDecimal) row.get("RECEITA_OUTROS")).add(!tipoVentaId.equals(18) && this.resultSet.getBigDecimal("IMPORTEOUTROS") != null ? this.resultSet.getBigDecimal("IMPORTEOUTROS") : BigDecimal.ZERO));
row.put("RECEITA_OUTROS_GAP", ((BigDecimal) row.get("RECEITA_OUTROS_GAP")).add(tipoVentaId.equals(18) && this.resultSet.getBigDecimal("IMPORTEOUTROS") != null ? this.resultSet.getBigDecimal("IMPORTEOUTROS") : BigDecimal.ZERO));
row.put("RECEITA_PEDAGIO", ((BigDecimal) row.get("RECEITA_PEDAGIO")).add(!tipoVentaId.equals(18) && this.resultSet.getBigDecimal("IMPORTEPEDAGIO") != null ? this.resultSet.getBigDecimal("IMPORTEPEDAGIO") : BigDecimal.ZERO));
row.put("RECEITA_PEDAGIO_GAP", ((BigDecimal) row.get("RECEITA_PEDAGIO_GAP")).add(tipoVentaId.equals(18) && this.resultSet.getBigDecimal("IMPORTEPEDAGIO") != null ? this.resultSet.getBigDecimal("IMPORTEPEDAGIO") : BigDecimal.ZERO));
row.put("IMPOSTOS", ((BigDecimal) row.get("IMPOSTOS")).add(!tipoVentaId.equals(18) || (tipoVentaId.equals(18) && (Boolean) this.relatorio.getParametros().get("B_CONTEMPLAR_GAP")) ? getValorImposto(puntoVentaId, this.resultSet.getString("INTERESTADUAL"), this.resultSet.getBigDecimal("PRECIOPAGADO"), this.resultSet.getBigDecimal("IMPORTESEGURO"), this.resultSet.getBigDecimal("IMPORTETAXAEMBARQUE"), this.resultSet.getBigDecimal("IMPORTEPEDAGIO")) : BigDecimal.ZERO));
// Realiza os calculos de comissão se o tipo de venda não for "EM ABERTO" e se for venda normal, ou se for GAP e o check estiver marcado
if (!tipoVentaId.equals(9) && (!tipoVentaId.equals(18) || (tipoVentaId.equals(18) && (Boolean) this.relatorio.getParametros().get("B_CONTEMPLAR_GAP"))))
this.setRowComissao(row);
}
else {
// Verificia se a devolução é pra ser contabilizada na agência de destino ou de origem da venda
if (((Integer) this.relatorio.getParametros().get("ISDEVOLUCAODESTINO")).equals(1) || (((Integer) this.relatorio.getParametros().get("ISDEVOLUCAODESTINO")).equals(0) && this.resultSet.getInt("POSSUI_CANC") == 1)) {
row.put("TOTAL_DEVOL", ((BigDecimal) row.get("TOTAL_DEVOL")).add((motivoCancelacionId.equals(31) || motivoCancelacionId.equals(32)) && !tipoVentaId.equals(18) ? this.resultSet.getBigDecimal("PRECIOPAGADO") : BigDecimal.ZERO));
row.put("TOTAL_DEVOL_GAP", ((BigDecimal) row.get("TOTAL_DEVOL_GAP")).add((motivoCancelacionId.equals(31) || motivoCancelacionId.equals(32)) && tipoVentaId.equals(18) ? this.resultSet.getBigDecimal("PRECIOPAGADO") : BigDecimal.ZERO));
}
}
}
this.dados = new ArrayList<Map<String, Object>>(this.mapDados.values());
}
});
@ -87,19 +303,336 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
public void processaParametros() throws Exception {
}
public BigDecimal getValorImposto(Integer puntoVentaId, BigDecimal tarifa, BigDecimal seguro, BigDecimal embarque, BigDecimal pedagio) {
public HashMap<String, Object> getConfigComissao(Integer puntoVentaId, Integer empresaId) throws Exception {
return tarifa.add(seguro).multiply(BigDecimal.valueOf(0.10));
HashMap<String, Object> cacheConfig = null;
// Verifica se já existe configuração na memoria, caso não exista, realiza busca no banco
if (!mapCacheConfigComissao.containsKey(puntoVentaId.toString() + "_" + empresaId.toString())) {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT PC.ISSRETIDO, PC.ROYALTIES, PC.ENVIARRECIBO, PC.RECEITA, PC.CODAG, PC.PASSAGEMALTA, PC.PASSAGEMBAIXA, ");
sql.append(" PC.SEGUROALTA, PC.SEGUROBAIXA, PC.OUTROSBAIXA, PC.OUTROSALTA, PC.EXCESSOALTA, PC.EXCESSOBAIXA, ");
sql.append(" PC.TARIFARECEITA, PC.SEGURORECEITA, PC.TAXARECEITA, PC.PEDAGIORECEITA, TP.CVEPTOVTA TIPO_AGENCIA, ");
sql.append(" PC.TARIFADEV, PC.SEGURO_DEV, PC.TAXADEV, PC.PEDAGIODEV, PV.PUNTOVENTA_ID, PV.NUMPUNTOVENTA, PV.NOMBPUNTOVENTA, ");
sql.append(" ES.CVEESTADO, ES.ESTADO_ID ");
sql.append(" FROM PTOVTA_COMISSAO PC, ");
sql.append(" PUNTO_VENTA PV, ");
sql.append(" PARADA PR, ");
sql.append(" CIUDAD CD, ");
sql.append(" ESTADO ES, ");
sql.append(" TIPO_PTOVTA TP ");
sql.append(" WHERE PC.EMPRESA_ID = :EMPRESA_ID ");
sql.append(" AND PC.PUNTOVENTA_ID = :PUNTOVENTA_ID ");
sql.append(" AND PC.PTOVTADESCOMISSAO_ID = PV.PUNTOVENTA_ID(+) ");
sql.append(" AND PV.PARADA_ID = PR.PARADA_ID(+) ");
sql.append(" AND PR.CIUDAD_ID = CD.CIUDAD_ID(+) ");
sql.append(" AND CD.ESTADO_ID = ES.ESTADO_ID(+) ");
sql.append(" AND PV.TIPOPTOVTA_ID = TP.TIPOPTOVTA_ID(+) ");
NamedParameterStatement stmt = new NamedParameterStatement(this.getConexao(), sql.toString());
stmt.setInt("PUNTOVENTA_ID", puntoVentaId);
stmt.setInt("EMPRESA_ID", empresaId);
ResultSet rs = stmt.executeQuery();
if (rs.next()) {
cacheConfig = new HashMap<String, Object>();
cacheConfig.put("ISSRETIDO", rs.getBigDecimal("ISSRETIDO"));
cacheConfig.put("ROYALTIES", rs.getBigDecimal("ROYALTIES"));
cacheConfig.put("PASSAGEMALTA", rs.getBigDecimal("PASSAGEMALTA"));
cacheConfig.put("PASSAGEMBAIXA", rs.getBigDecimal("PASSAGEMBAIXA"));
cacheConfig.put("SEGUROALTA", rs.getBigDecimal("SEGUROALTA"));
cacheConfig.put("SEGUROBAIXA", rs.getBigDecimal("SEGUROBAIXA"));
cacheConfig.put("OUTROSALTA", rs.getBigDecimal("OUTROSALTA"));
cacheConfig.put("OUTROSBAIXA", rs.getBigDecimal("OUTROSBAIXA"));
cacheConfig.put("EXCESSOALTA", rs.getBigDecimal("EXCESSOALTA"));
cacheConfig.put("EXCESSOBAIXA", rs.getBigDecimal("EXCESSOBAIXA"));
cacheConfig.put("TARIFARECEITA", rs.getBoolean("TARIFARECEITA"));
cacheConfig.put("SEGURORECEITA", rs.getBoolean("SEGURORECEITA"));
cacheConfig.put("TAXARECEITA", rs.getBoolean("TAXARECEITA"));
cacheConfig.put("PEDAGIORECEITA", rs.getBoolean("PEDAGIORECEITA"));
cacheConfig.put("TARIFADEV", rs.getBoolean("TARIFADEV"));
cacheConfig.put("SEGURO_DEV", rs.getBoolean("SEGURO_DEV"));
cacheConfig.put("TAXADEV", rs.getBoolean("TAXADEV"));
cacheConfig.put("PEDAGIODEV", rs.getBoolean("PEDAGIODEV"));
cacheConfig.put("RECEITA", rs.getString("RECEITA"));
cacheConfig.put("TIPO_AGENCIA", rs.getString("TIPO_AGENCIA"));
cacheConfig.put("NUMPUNTOVENTA", rs.getString("NUMPUNTOVENTA"));
cacheConfig.put("NOMBPUNTOVENTA", rs.getString("NOMBPUNTOVENTA"));
cacheConfig.put("CVEESTADO", rs.getString("CVEESTADO"));
cacheConfig.put("ESTADO_ID", rs.getInt("ESTADO_ID"));
cacheConfig.put("PUNTOVENTA_ID", rs.getInt("PUNTOVENTA_ID"));
mapCacheConfigComissao.put(puntoVentaId.toString() + "_" + empresaId.toString(), cacheConfig);
rs.close();
stmt.close();
}
else {
StringBuilder sqlParam = new StringBuilder();
sqlParam.append(" SELECT EM.NOMBEMPRESA, PV.NOMBPUNTOVENTA ");
sqlParam.append(" FROM EMPRESA EM, ");
sqlParam.append(" PUNTO_VENTA PV ");
sqlParam.append(" WHERE EM.EMPRESA_ID = :EMPRESA_ID ");
sqlParam.append(" AND PV.PUNTOVENTA_ID = :PUNTOVENTA_ID ");
NamedParameterStatement stmtParam = new NamedParameterStatement(this.getConexao(), sqlParam.toString());
stmtParam.setInt("PUNTOVENTA_ID", puntoVentaId);
stmtParam.setInt("EMPRESA_ID", empresaId);
ResultSet rsParam = stmtParam.executeQuery();
if (rsParam.next())
this.addInfoMsg("Não foi possivel obter a configuração de comissão do ponto de venda: " + rsParam.getString("NOMBPUNTOVENTA") + " empresa: " + rsParam.getString("NOMBEMPRESA") + " .");
rsParam.close();
stmtParam.close();
}
}
else
cacheConfig = mapCacheConfigComissao.get(puntoVentaId.toString() + "_" + empresaId.toString());
return cacheConfig;
}
public BigDecimal getValorImposto(Integer rowResultSet, Integer puntoVentaId, BigDecimal tarifa, BigDecimal seguro, BigDecimal embarque, BigDecimal pedagio) {
public HashMap<String, Object> getConfigImposto(Integer puntoVentaId) throws Exception {
HashMap<String, Object> cacheConfig = null;
if (this.cacheImposto.containsKey(rowResultSet))
return (BigDecimal) this.cacheImposto.get(rowResultSet);
// Verifica se já existe configuração na memoria, caso não exista, realiza busca no banco
if (!mapCacheConfigImposto.containsKey(puntoVentaId.toString())) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT EI.*, ES.NOMBESTADO, EM.NOMBEMPRESA ");
sql.append(" FROM PUNTO_VENTA PV, PARADA PR, CIUDAD CD, EMPRESA_IMPOSTO EI, ESTADO ES, EMPRESA EM ");
sql.append("WHERE PV.PUNTOVENTA_ID = :PUNTOVENTA_ID ");
sql.append(" AND PV.PARADA_ID = PR.PARADA_ID ");
sql.append(" AND PR.CIUDAD_ID = CD.CIUDAD_ID ");
sql.append(" AND CD.ESTADO_ID = EI.ESTADO_ID (+) ");
sql.append(" AND PV.EMPRESA_ID = NVL(EI.EMPRESA_ID, PV.EMPRESA_ID) ");
sql.append(" AND CD.ESTADO_ID = ES.ESTADO_ID ");
sql.append(" AND PV.EMPRESA_ID = EM.EMPRESA_ID ");
sql.append(" AND NVL(EI.ACTIVO, 1) = 1 ");
NamedParameterStatement stmt = new NamedParameterStatement(this.getConexao(), sql.toString());
stmt.setInt("PUNTOVENTA_ID", puntoVentaId);
ResultSet rs = stmt.executeQuery();
if (rs.next()) {
if (rs.getBigDecimal("ICMS") != null) {
cacheConfig = new HashMap<String, Object>();
cacheConfig.put("PORCREDBASEICMS", rs.getBigDecimal("PORCREDBASEICMS"));
cacheConfig.put("PORCREDESTADUAL", rs.getBigDecimal("PORCREDESTADUAL"));
cacheConfig.put("INDTARIFAESTADUAL", rs.getBoolean("INDTARIFAESTADUAL"));
cacheConfig.put("INDSEGUROESTADUAL", rs.getBoolean("INDSEGUROESTADUAL"));
cacheConfig.put("INDTXEMBARQUEESTADUAL", rs.getBoolean("INDTXEMBARQUEESTADUAL"));
cacheConfig.put("INDPEDAGIOESTDUAL", rs.getBoolean("INDPEDAGIOESTDUAL"));
cacheConfig.put("PORCREDMUNICIPAL", rs.getBigDecimal("PORCREDMUNICIPAL"));
cacheConfig.put("INDTARIFAMUNICIPAL", rs.getBoolean("INDTARIFAMUNICIPAL"));
cacheConfig.put("INDSEGUROMUNICIPAL", rs.getBoolean("INDSEGUROMUNICIPAL"));
cacheConfig.put("INDTXEMBARQUEMUNICIPAL", rs.getBoolean("INDTXEMBARQUEMUNICIPAL"));
cacheConfig.put("INDPEDAGIOMUNICIPAL", rs.getBoolean("INDPEDAGIOMUNICIPAL"));
cacheConfig.put("INDJANEIRO", rs.getBoolean("INDJANEIRO"));
cacheConfig.put("INDFEVEREIRO", rs.getBoolean("INDFEVEREIRO"));
cacheConfig.put("INDMARCO", rs.getBoolean("INDMARCO"));
cacheConfig.put("INDABRIL", rs.getBoolean("INDABRIL"));
cacheConfig.put("INDMAIO", rs.getBoolean("INDMAIO"));
cacheConfig.put("INDJUNHO", rs.getBoolean("INDJUNHO"));
cacheConfig.put("INDJULHO", rs.getBoolean("INDJULHO"));
cacheConfig.put("INDAGOSTO", rs.getBoolean("INDAGOSTO"));
cacheConfig.put("INDSETEMBRO", rs.getBoolean("INDSETEMBRO"));
cacheConfig.put("INDOUTUBRO", rs.getBoolean("INDOUTUBRO"));
cacheConfig.put("INDNOVEMBRO", rs.getBoolean("INDNOVEMBRO"));
cacheConfig.put("INDDEZEMBRO", rs.getBoolean("INDDEZEMBRO"));
cacheConfig.put("ICMS", rs.getBigDecimal("ICMS"));
cacheConfig.put("PORCREDBASEICMS", rs.getBigDecimal("PORCREDBASEICMS"));
this.mapCacheConfigImposto.put(puntoVentaId.toString(), cacheConfig);
}
else
{
this.addInfoMsg("Não foi possivel obter a configuração de imposto para o estado: " + rs.getString("NOMBESTADO") + " empresa: " + rs.getString("NOMBEMPRESA"));
}
rs.close();
stmt.close();
}
else {
}
}
else
cacheConfig = mapCacheConfigImposto.get(puntoVentaId.toString());
return cacheConfig;
}
public BigDecimal getValorImposto(Integer puntoVentaId, String indInterestadual, BigDecimal tarifa, BigDecimal seguro, BigDecimal embarque, BigDecimal pedagio) throws Exception {
HashMap<String, Object> configImposto = new HashMap<String, Object>();
BigDecimal baseCalculo = BigDecimal.ZERO;
BigDecimal icms;
BigDecimal porcRedEstadual;
BigDecimal porcRedMunicipal;
BigDecimal porcRedBaseIcms;
BigDecimal valorIcms = BigDecimal.ZERO;
Boolean indTarifaMunicipal;
Boolean indSeguroMunicipal;
Boolean indTxEmbarqueMunicipal;
Boolean indPedagioMunicipal;
Boolean indTarifaEstadual;
Boolean indSeguroEstadual;
Boolean indTxEmbarqueEstadual;
Boolean indPedagioEstadual;
configImposto = this.getConfigImposto(puntoVentaId);
if (configImposto == null)
return BigDecimal.ZERO;
icms = (BigDecimal) configImposto.get("ICMS");
porcRedBaseIcms = (BigDecimal) configImposto.get("PORCREDBASEICMS");
if (indInterestadual.equals("S")) {
porcRedEstadual = (BigDecimal) configImposto.get("PORCREDESTADUAL");
indTarifaEstadual = (Boolean) configImposto.get("INDTARIFAESTADUAL");
indSeguroEstadual = (Boolean) configImposto.get("INDSEGUROESTADUAL");
indTxEmbarqueEstadual = (Boolean) configImposto.get("INDTXEMBARQUEESTADUAL");
indPedagioEstadual = (Boolean) configImposto.get("INDPEDAGIOESTDUAL");
// System.out.println(" Tarifa: "+ tarifa +" seguro: "+ seguro +" embarque: "+ embarque +" pedagio: "+ pedagio);
// Criação da base de calculo
baseCalculo = indTarifaEstadual && tarifa != null ? baseCalculo.add(tarifa) : BigDecimal.ZERO;
baseCalculo = indSeguroEstadual && seguro != null ? baseCalculo.add(seguro) : BigDecimal.ZERO;
baseCalculo = indTxEmbarqueEstadual && embarque != null ? baseCalculo.add(embarque) : BigDecimal.ZERO;
baseCalculo = indPedagioEstadual && pedagio != null ? baseCalculo.add(pedagio) : BigDecimal.ZERO;
// Redução da base de calculo
if (porcRedBaseIcms != null && porcRedBaseIcms.equals(BigDecimal.ZERO))
// BASE DE CALCULO = BASE DE CALCULO - ((PERCENTUAL DE REDUÇÃO / 100) * BASE DE CALCULO ))
baseCalculo = baseCalculo.subtract(porcRedBaseIcms.divide(BigDecimal.valueOf(100)).multiply(baseCalculo));
// Calcula o valor do ICMS
valorIcms = baseCalculo.multiply(icms.divide(BigDecimal.valueOf(100)));
// Redução estadual
if (porcRedEstadual != null && porcRedEstadual.equals(BigDecimal.ZERO))
valorIcms = valorIcms.subtract(porcRedEstadual.divide(BigDecimal.valueOf(100)).multiply(valorIcms));
// System.out.println("INTER BASE DE CALCULO: "+baseCalculo+" VALOR ICMS: "+ valorIcms);
}
else {
this.cacheImposto.put(rowResultSet, this.getValorImposto(puntoVentaId, tarifa, seguro, embarque, pedagio));
return this.cacheImposto.get(rowResultSet);
porcRedMunicipal = (BigDecimal) configImposto.get("PORCREDMUNICIPAL");
indTarifaMunicipal = (Boolean) configImposto.get("INDTARIFAMUNICIPAL");
indSeguroMunicipal = (Boolean) configImposto.get("INDSEGUROMUNICIPAL");
indTxEmbarqueMunicipal = (Boolean) configImposto.get("INDTXEMBARQUEMUNICIPAL");
indPedagioMunicipal = (Boolean) configImposto.get("INDPEDAGIOMUNICIPAL");
baseCalculo = indTarifaMunicipal && tarifa != null ? baseCalculo.add(tarifa) : BigDecimal.ZERO;
baseCalculo = indSeguroMunicipal && seguro != null ? baseCalculo.add(seguro) : BigDecimal.ZERO;
baseCalculo = indTxEmbarqueMunicipal && embarque != null ? baseCalculo.add(embarque) : BigDecimal.ZERO;
baseCalculo = indPedagioMunicipal && pedagio != null ? baseCalculo.add(pedagio) : BigDecimal.ZERO;
// Redução da base de calculo
if (porcRedBaseIcms != null && porcRedBaseIcms.equals(BigDecimal.ZERO))
// BASE DE CALCULO = BASE DE CALCULO - ((PERCENTUAL DE REDUÇÃO / 100) * BASE DE CALCULO ))
baseCalculo = baseCalculo.subtract(porcRedBaseIcms.divide(BigDecimal.valueOf(100)).multiply(baseCalculo));
// Calcula o valor do ICMS
valorIcms = baseCalculo.multiply(icms.divide(BigDecimal.valueOf(100)));
// Redução estadual
if (porcRedMunicipal != null && porcRedMunicipal.equals(BigDecimal.ZERO))
valorIcms = valorIcms.subtract(porcRedMunicipal.divide(BigDecimal.valueOf(100)).multiply(valorIcms));
// System.out.println("MUN BASE DE CALCULO: "+baseCalculo+" VALOR ICMS: "+ valorIcms);
}
return valorIcms;
}
public BigDecimal getValorReceitaBagagem(Integer puntoVentaId) throws SQLException {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT SUM(CASE ");
sql.append(" WHEN EE.TIPOEVENTOEXTRA_ID = 1 AND EE.ACTIVO = 1 THEN ");
sql.append(" EE.IMPINGRESO ");
sql.append(" END) RECEITA_BAGAGEM ");
sql.append(" FROM EVENTO_EXTRA EE ");
sql.append(" WHERE TRUNC(EE.FECHORINGRESO) BETWEEN :DATA_INICIO AND ");
sql.append(" :DATA_FINAL ");
sql.append(" AND EE.PUNTOVENTA_ID = :PUNTOVENTA_ID ");
NamedParameterStatement stmt = new NamedParameterStatement(this.getConexao(), sql.toString());
stmt.setInt("PUNTOVENTA_ID", puntoVentaId);
stmt.setDate("DATA_INICIO", (java.sql.Date) this.getParametros().get("DATA_INICIO"));
stmt.setDate("DATA_FINAL", (java.sql.Date) this.getParametros().get("DATA_FINAL"));
ResultSet rs = stmt.executeQuery();
if (rs.next()) {
BigDecimal receitaBagagem = rs.getBigDecimal("RECEITA_BAGAGEM");
rs.close();
stmt.close();
return receitaBagagem;
}
else {
rs.close();
stmt.close();
return BigDecimal.ZERO;
}
}
public BigDecimal getValorAntecipacaoComissao(Integer puntoVentaId) throws SQLException {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT SUM(PA.RETEM) TOTAL_ANTECIPACAO ");
sql.append(" FROM PTOVTA_ANTECIPACOMISSAO PA ");
sql.append(" WHERE PA.ACTIVO = 1 ");
sql.append(" AND PA.DATA BETWEEN :DATA_INICIO AND ");
sql.append(" :DATA_FINAL ");
sql.append(" AND PA.PUNTOVENTA_ID = :PUNTOVENTA_ID ");
NamedParameterStatement stmt = new NamedParameterStatement(this.getConexao(), sql.toString());
stmt.setInt("PUNTOVENTA_ID", puntoVentaId);
stmt.setDate("DATA_INICIO", (java.sql.Date) this.getParametros().get("DATA_INICIO"));
stmt.setDate("DATA_FINAL", (java.sql.Date) this.getParametros().get("DATA_FINAL"));
ResultSet rs = stmt.executeQuery();
if (rs.next()) {
BigDecimal antecipacaoComissao = rs.getBigDecimal("TOTAL_ANTECIPACAO");
rs.close();
stmt.close();
return (antecipacaoComissao == null) ? BigDecimal.ZERO : antecipacaoComissao;
}
else {
rs.close();
stmt.close();
return BigDecimal.ZERO;
}
}
@ -108,200 +641,70 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
StringBuilder sql = new StringBuilder();
sql.append(" select tab1.*, ");
sql.append(" (tab1.receita_tarifa + tab1.receita_bagagem + tab1.receita_seguro + ");
sql.append(" tab1.receita_tarifa_gap + tab1.receita_seguro_gap - ");
sql.append(" tab1.total_devol - tab1.total_devol_gap) receita_total, ");
sql.append(" 0 impostos, ");
sql.append(" ((tab1.receita_tarifa + tab1.receita_bagagem + tab1.receita_seguro + ");
sql.append(" tab1.receita_tarifa_gap + tab1.receita_seguro_gap - ");
sql.append(" tab1.total_devol - tab1.total_devol_gap) - 0) receita_liquida, ");
sql.append(" 0 percentual_comissao, ");
sql.append(" 0 valor_comissao, ");
sql.append(" 0 diferenca_comissao, ");
sql.append(" '' tipo_agencia ");
sql.append(" from (select tab.cveestado, ");
sql.append(" tab.puntoventa_id, ");
sql.append(" tab.empresapuntoventa_id, ");
sql.append(" tab.estado_id, ");
sql.append(" tab.numpuntoventa, ");
sql.append(" tab.nombpuntoventa, ");
sql.append(" tab.total_bilhetes, ");
sql.append(" tab.total_bilhetes_gap, ");
sql.append(" tab.receita_tarifa receita_tarifa, ");
sql.append(" tab.receita_seguro receita_seguro, ");
sql.append(" decode( :B_EXCLUI_BAGAGEM , ");
sql.append(" 0, ");
sql.append(" nvl(sum(case ");
sql.append(" when ee.tipoeventoextra_id = 1 and ee.activo = 1 then ");
sql.append(" ee.impingreso ");
sql.append(" end), ");
sql.append(" 0), ");
sql.append(" 0) receita_bagagem, ");
sql.append(" tab.total_devol total_devol, ");
sql.append(" tab.receita_tarifa_gap receita_tarifa_gap, ");
sql.append(" tab.receita_seguro_gap receita_seguro_gap, ");
sql.append(" tab.total_devol_gap total_devol_gap, ");
sql.append(" tab.total_bilhetes_canc total_bilhetes_canc ");
sql.append(" ");
sql.append(" from (select es.cveestado, ");
sql.append(" pv.puntoventa_id, ");
sql.append(" pv.numpuntoventa, ");
sql.append(" pv.nombpuntoventa, ");
sql.append(" cj.empresapuntoventa_id, ");
sql.append(" ce.estado_id, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id <> 18 THEN ");
sql.append(" 1 ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) total_bilhetes, ");
sql.append(" ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is not null THEN ");
sql.append(" 1 ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) total_bilhetes_canc, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id = 18 THEN ");
sql.append(" 1 ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) total_bilhetes_gap, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id <> 18 THEN ");
sql.append(" cj.preciopagado ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_tarifa, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id = 18 THEN ");
sql.append(" cj.preciopagado ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_tarifa_gap, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id <> 18 THEN ");
sql.append(" cj.importeseguro ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_seguro, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id = 18 THEN ");
sql.append(" cj.importeseguro ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_seguro_gap, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id <> 18 THEN ");
sql.append(" cj.importetaxaembarque ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_embarque, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id = 18 THEN ");
sql.append(" cj.importetaxaembarque ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_embarque_gap, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id <> 18 THEN ");
sql.append(" cj.importeoutros ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_outros, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id = 18 THEN ");
sql.append(" cj.importeoutros ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_outros_gap, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id <> 18 THEN ");
sql.append(" cj.importepedagio ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_pedagio, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id is null and ");
sql.append(" cj.tipoventa_id = 18 THEN ");
sql.append(" cj.importepedagio ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) receita_pedagio_gap, ");
sql.append(" ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id in (31, 32) and ");
sql.append(" cj.tipoventa_id <> 18 THEN ");
sql.append(" cj.preciopagado ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) total_devol, ");
sql.append(" sum(CASE ");
sql.append(" WHEN cj.motivocancelacion_id in (31, 32) and ");
sql.append(" cj.tipoventa_id = 18 THEN ");
sql.append(" cj.preciopagado ");
sql.append(" ELSE ");
sql.append(" 0 ");
sql.append(" END) total_devol_gap ");
sql.append(" from caja cj, ");
sql.append(" punto_venta pv, ");
sql.append(" empresa em, ");
sql.append(" parada pr, ");
sql.append(" ciudad cd, ");
sql.append(" ciudad ce, ");
sql.append(" estado es ");
sql.append(" where cj.puntoventa_id = pv.puntoventa_id ");
sql.append(" and trunc(cj.fechorventa) between :DATA_INICIO and ");
sql.append(" :DATA_FINAL ");
sql.append(" and pr.parada_id = pv.parada_id ");
sql.append(" and cj.empresapuntoventa_id = em.empresa_id ");
sql.append(" and em.ciudad_id = ce.ciudad_id ");
sql.append(" and cd.ciudad_id = pr.ciudad_id ");
sql.append(" and cd.estado_id = es.estado_id ");
sql.append(" and es.estado_id = nvl( :ESTADO_ID , es.estado_id) ");
sql.append(" and (( instr( :NUMPUNTOVENTA , ','||trim(numpuntoventa)||',') > 0 ");
sql.append(" and :ISNUMPUNTOVENTATODOS = 'N') or ");
sql.append(" ( :ISNUMPUNTOVENTATODOS = 'S')) ");
sql.append(" group by es.cveestado, ");
sql.append(" pv.puntoventa_id, ");
sql.append(" pv.numpuntoventa, ");
sql.append(" cj.empresapuntoventa_id, ");
sql.append(" ce.estado_id, ");
sql.append(" pv.nombpuntoventa) tab, ");
sql.append(" vtabol.evento_extra ee ");
sql.append(" where trunc(ee.fechoringreso(+)) between :DATA_INICIO and ");
sql.append(" :DATA_FINAL ");
sql.append(" and ee.puntoventa_id(+) = tab.puntoventa_id ");
sql.append(" ");
sql.append(" group by tab.cveestado, ");
sql.append(" tab.puntoventa_id, ");
sql.append(" tab.numpuntoventa, ");
sql.append(" tab.nombpuntoventa, ");
sql.append(" tab.total_bilhetes, ");
sql.append(" tab.total_bilhetes_gap, ");
sql.append(" tab.receita_tarifa, ");
sql.append(" tab.receita_seguro, ");
sql.append(" tab.total_devol, ");
sql.append(" tab.receita_tarifa_gap, ");
sql.append(" tab.receita_seguro_gap, ");
sql.append(" tab.total_devol_gap, ");
sql.append(" tab.empresapuntoventa_id, ");
sql.append(" tab.estado_id, ");
sql.append(" tab.total_bilhetes_canc) tab1 ");
sql.append(" SELECT ES.CVEESTADO, ");
sql.append(" PV.PUNTOVENTA_ID, ");
sql.append(" PV.NUMPUNTOVENTA, ");
sql.append(" PV.NOMBPUNTOVENTA, ");
sql.append(" CJ.EMPRESAPUNTOVENTA_ID, ");
sql.append(" CE.ESTADO_ID, ");
sql.append(" CASE ");
sql.append(" WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN ");
sql.append(" 'S' ");
sql.append(" ELSE ");
sql.append(" 'N' ");
sql.append(" END INTERESTADUAL, ");
sql.append(" CJ.PRECIOPAGADO, ");
sql.append(" CJ.MOTIVOCANCELACION_ID, ");
sql.append(" CJ.TIPOVENTA_ID, ");
sql.append(" CJ.IMPORTESEGURO, ");
sql.append(" CJ.IMPORTETAXAEMBARQUE, ");
sql.append(" CJ.IMPORTEOUTROS, ");
sql.append(" CJ.IMPORTEPEDAGIO, ");
sql.append(" CJ.FECCORRIDA, ");
sql.append(" (SELECT 1 ");
sql.append(" FROM CAJA CJD ");
sql.append(" WHERE CJD.MOTIVOCANCELACION_ID IN (31, 32) ");
sql.append(" AND CJD.FECCORRIDA = CJ.FECCORRIDA ");
sql.append(" AND CJD.CORRIDA_ID = CJ.CORRIDA_ID ");
sql.append(" AND CJD.NUMFOLIOSISTEMA = CJ.NUMFOLIOSISTEMA ");
sql.append(" AND CJD.NUMASIENTO = CJ.NUMASIENTO ");
sql.append(" AND CJD.CAJA_ID <> CJ.CAJA_ID ");
sql.append(" AND CJD.INDSTATUSOPERACION = 'F' ");
sql.append(" AND CJD.INDREIMPRESION = 0 ");
sql.append(" AND ROWNUM = 1) POSSUI_CANC, ");
sql.append(" TP.CVEPTOVTA TIPO_AGENCIA ");
sql.append(" FROM CAJA CJ, ");
sql.append(" PUNTO_VENTA PV, ");
sql.append(" EMPRESA EM, ");
sql.append(" PARADA PR, ");
sql.append(" CIUDAD CX, ");
sql.append(" CIUDAD CE, ");
sql.append(" ESTADO ES, ");
sql.append(" PARADA PO, ");
sql.append(" PARADA PD, ");
sql.append(" CIUDAD CO, ");
sql.append(" CIUDAD CD, ");
sql.append(" TIPO_PTOVTA TP ");
sql.append(" WHERE CJ.PUNTOVENTA_ID = PV.PUNTOVENTA_ID ");
sql.append(" AND TRUNC(CJ.FECHORVENTA) BETWEEN :DATA_INICIO AND ");
sql.append(" :DATA_FINAL ");
sql.append(" AND PR.PARADA_ID = PV.PARADA_ID ");
sql.append(" AND CJ.EMPRESAPUNTOVENTA_ID = EM.EMPRESA_ID ");
sql.append(" AND EM.CIUDAD_ID = CE.CIUDAD_ID ");
sql.append(" AND CX.CIUDAD_ID = PR.CIUDAD_ID ");
sql.append(" AND CX.ESTADO_ID = ES.ESTADO_ID ");
sql.append(" AND CJ.ORIGEN_ID = PO.PARADA_ID ");
sql.append(" AND CJ.DESTINO_ID = PD.PARADA_ID ");
sql.append(" AND PO.CIUDAD_ID = CO.CIUDAD_ID ");
sql.append(" AND PD.CIUDAD_ID = CD.CIUDAD_ID ");
sql.append(" AND CJ.INDSTATUSOPERACION = 'F' ");
sql.append(" AND CJ.INDREIMPRESION = 0 ");
sql.append(" AND PV.TIPOPTOVTA_ID = NVL(:TIPOPTOVTA_ID, PV.TIPOPTOVTA_ID) ");
sql.append(" AND TP.TIPOPTOVTA_ID = PV.TIPOPTOVTA_ID ");
sql.append(" AND CJ.EMPRESAPUNTOVENTA_ID = NVL(:EMPRESA_ID, CJ.EMPRESAPUNTOVENTA_ID) ");
sql.append(" AND ES.ESTADO_ID = NVL(:ESTADO_ID, ES.ESTADO_ID) ");
sql.append(" AND ((INSTR(:NUMPUNTOVENTA, ',' || TRIM(PV.NUMPUNTOVENTA) || ',') > 0 AND ");
sql.append(" :ISNUMPUNTOVENTATODOS = 'N') OR (:ISNUMPUNTOVENTATODOS = 'S')) ");
return sql.toString();
}

View File

@ -0,0 +1,35 @@
/**
*
*/
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
/**
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
*
*/
public class RelatorioResumoLinhas extends Relatorio {
/**
* @param parametros
* @param conexao
*/
public RelatorioResumoLinhas(Map<String, Object> parametros, Connection conexao) {
super(parametros, conexao);
// TODO Auto-generated constructor stub
}
/*
* (non-Javadoc)
*
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
*/
@Override
public void processaParametros() throws Exception {
}
}

View File

@ -0,0 +1,35 @@
/**
*
*/
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
/**
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
*
*/
public class RelatorioResumoLinhasAnalitico extends Relatorio {
/**
* @param parametros
* @param conexao
*/
public RelatorioResumoLinhasAnalitico(Map<String, Object> parametros, Connection conexao) {
super(parametros, conexao);
// TODO Auto-generated constructor stub
}
/*
* (non-Javadoc)
*
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
*/
@Override
public void processaParametros() throws Exception {
}
}

View File

@ -0,0 +1,10 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.periodo=Período:
cabecalho.periodoA=à
rodape.pagina=Página
rodape.de=de

View File

@ -0,0 +1,10 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.periodo=Período:
cabecalho.periodoA=à
rodape.pagina=Página
rodape.de=de

View File

@ -1,8 +1,8 @@
<?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="RelatorioReceitaDiariaAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c5fca8ba-9c4b-4e17-9986-a053943688db">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="96"/>
<property name="ireport.x" value="659"/>
<property name="ireport.y" value="0"/>
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
<style name="SubTitle" forecolor="#736343" fontName="SansSerif" fontSize="18"/>
<style name="Column header" forecolor="#666666" fontName="SansSerif" fontSize="12" isBold="true"/>
@ -22,191 +22,204 @@
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="B_EXCLUI_BAGAGEM" class="java.lang.Boolean"/>
<parameter name="EMPRESA_NOME" class="java.lang.String"/>
<queryString>
<![CDATA[select tab1.*,
(tab1.receita_tarifa + tab1.receita_bagagem + tab1.receita_seguro +
tab1.receita_tarifa_gap + tab1.receita_seguro_gap -
tab1.total_devol - tab1.total_devol_gap) receita_total,
0 impostos,
((tab1.receita_tarifa + tab1.receita_bagagem + tab1.receita_seguro +
tab1.receita_tarifa_gap + tab1.receita_seguro_gap -
tab1.total_devol - tab1.total_devol_gap) - 0) receita_liquida,
0 percentual_comissao,
0 valor_comissao,
0 diferenca_comissao,
'' tipo_agencia
from (select tab.cveestado,
tab.puntoventa_id,
tab.numpuntoventa,
tab.nombpuntoventa,
tab.total_bilhetes, --
tab.total_bilhetes_gap,
tab.receita_tarifa receita_tarifa,
tab.receita_seguro receita_seguro,
decode($P{B_EXCLUI_BAGAGEM},
<![CDATA[SELECT TAB1.*,
(TAB1.RECEITA_TARIFA + TAB1.RECEITA_BAGAGEM + TAB1.RECEITA_SEGURO +
TAB1.RECEITA_TARIFA_GAP + TAB1.RECEITA_SEGURO_GAP -
TAB1.TOTAL_DEVOL - TAB1.TOTAL_DEVOL_GAP) RECEITA_TOTAL,
0 IMPOSTOS,
((TAB1.RECEITA_TARIFA + TAB1.RECEITA_BAGAGEM + TAB1.RECEITA_SEGURO +
TAB1.RECEITA_TARIFA_GAP + TAB1.RECEITA_SEGURO_GAP -
TAB1.TOTAL_DEVOL - TAB1.TOTAL_DEVOL_GAP) - 0) RECEITA_LIQUIDA,
0 PERCENTUAL_COMISSAO,
0 VALOR_COMISSAO,
0 DIFERENCA_COMISSAO,
'' TIPO_AGENCIA
FROM (SELECT TAB.CVEESTADO,
TAB.PUNTOVENTA_ID,
TAB.EMPRESAPUNTOVENTA_ID,
TAB.ESTADO_ID,
TAB.NUMPUNTOVENTA,
TAB.NOMBPUNTOVENTA,
TAB.TOTAL_BILHETES,
TAB.TOTAL_BILHETES_GAP,
TAB.RECEITA_TARIFA RECEITA_TARIFA,
TAB.RECEITA_SEGURO RECEITA_SEGURO,
DECODE(0,
0,
nvl(sum(case
when ee.tipoeventoextra_id = 1 and ee.activo = 1 then
ee.impingreso
end),
NVL(SUM(CASE
WHEN EE.TIPOEVENTOEXTRA_ID = 1 AND EE.ACTIVO = 1 THEN
EE.IMPINGRESO
END),
0),
0) receita_bagagem,
tab.total_devol total_devol,
tab.receita_tarifa_gap receita_tarifa_gap,
tab.receita_seguro_gap receita_seguro_gap,
tab.total_devol_gap total_devol_gap,
tab.total_bilhetes_canc total_bilhetes_canc
from (select es.cveestado,
pv.puntoventa_id,
pv.numpuntoventa,
pv.nombpuntoventa,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id <> 18 THEN
0) RECEITA_BAGAGEM,
TAB.TOTAL_DEVOL TOTAL_DEVOL,
TAB.RECEITA_TARIFA_GAP RECEITA_TARIFA_GAP,
TAB.RECEITA_SEGURO_GAP RECEITA_SEGURO_GAP,
TAB.TOTAL_DEVOL_GAP TOTAL_DEVOL_GAP,
TAB.TOTAL_BILHETES_CANC TOTAL_BILHETES_CANC
FROM (SELECT ES.CVEESTADO,
PV.PUNTOVENTA_ID,
PV.NUMPUNTOVENTA,
PV.NOMBPUNTOVENTA,
CJ.EMPRESAPUNTOVENTA_ID,
CE.ESTADO_ID,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID <> 18 THEN
1
ELSE
0
END) total_bilhetes,
END) TOTAL_BILHETES,
sum(CASE
WHEN cj.motivocancelacion_id is not null THEN
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NOT NULL THEN
1
ELSE
0
END) total_bilhetes_canc,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id = 18 THEN
END) TOTAL_BILHETES_CANC,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID = 18 THEN
1
ELSE
0
END) total_bilhetes_gap,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id <> 18 THEN
cj.preciopagado
END) TOTAL_BILHETES_GAP,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID <> 18 THEN
CJ.PRECIOPAGADO
ELSE
0
END) receita_tarifa,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id = 18 THEN
cj.preciopagado
END) RECEITA_TARIFA,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID = 18 THEN
CJ.PRECIOPAGADO
ELSE
0
END) receita_tarifa_gap,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id <> 18 THEN
cj.importeseguro
END) RECEITA_TARIFA_GAP,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID <> 18 THEN
CJ.IMPORTESEGURO
ELSE
0
END) receita_seguro,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id = 18 THEN
cj.importeseguro
END) RECEITA_SEGURO,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID = 18 THEN
CJ.IMPORTESEGURO
ELSE
0
END) receita_seguro_gap,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id <> 18 THEN
cj.importetaxaembarque
END) RECEITA_SEGURO_GAP,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID <> 18 THEN
CJ.IMPORTETAXAEMBARQUE
ELSE
0
END) receita_embarque,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id = 18 THEN
cj.importetaxaembarque
END) RECEITA_EMBARQUE,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID = 18 THEN
CJ.IMPORTETAXAEMBARQUE
ELSE
0
END) receita_embarque_gap,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id <> 18 THEN
cj.importeoutros
END) RECEITA_EMBARQUE_GAP,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID <> 18 THEN
CJ.IMPORTEOUTROS
ELSE
0
END) receita_outros,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id = 18 THEN
cj.importeoutros
END) RECEITA_OUTROS,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID = 18 THEN
CJ.IMPORTEOUTROS
ELSE
0
END) receita_outros_gap,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id <> 18 THEN
cj.importepedagio
END) RECEITA_OUTROS_GAP,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID <> 18 THEN
CJ.IMPORTEPEDAGIO
ELSE
0
END) receita_pedagio,
sum(CASE
WHEN cj.motivocancelacion_id is null and
cj.tipoventa_id = 18 THEN
cj.importepedagio
END) RECEITA_PEDAGIO,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IS NULL AND
CJ.TIPOVENTA_ID = 18 THEN
CJ.IMPORTEPEDAGIO
ELSE
0
END) receita_pedagio_gap,
END) RECEITA_PEDAGIO_GAP,
sum(CASE
WHEN cj.motivocancelacion_id in (31, 32) and
cj.tipoventa_id <> 18 THEN
cj.preciopagado
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IN (31, 32) AND
CJ.TIPOVENTA_ID <> 18 THEN
CJ.PRECIOPAGADO
ELSE
0
END) total_devol,
sum(CASE
WHEN cj.motivocancelacion_id in (31, 32) and
cj.tipoventa_id = 18 THEN
cj.preciopagado
END) TOTAL_DEVOL,
SUM(CASE
WHEN CJ.MOTIVOCANCELACION_ID IN (31, 32) AND
CJ.TIPOVENTA_ID = 18 THEN
CJ.PRECIOPAGADO
ELSE
0
END) total_devol_gap
from vtabol_sco.caja cj,
vtabol_sco.punto_venta pv,
vtabol_sco.parada pr,
vtabol_sco.ciudad cd,
vtabol_sco.estado es
where cj.puntoventa_id = pv.puntoventa_id
and trunc(cj.fechorventa) between $P{DATA_INICIO} and
$P{DATA_FINAL}
and pr.parada_id = pv.parada_id
and cd.ciudad_id = pr.ciudad_id
and cd.estado_id = es.estado_id
and es.estado_id = nvl($P{ESTADO_ID}, es.estado_id)
and (($X{IN, numpuntoventa,
NUMPUNTOVENTA} and $P{ISNUMPUNTOVENTATODOS} = 'N') or
($P{ISNUMPUNTOVENTATODOS} = 'S'))
group by es.cveestado,
pv.puntoventa_id,
pv.numpuntoventa,
pv.nombpuntoventa) tab,
vtabol.evento_extra ee
where trunc(ee.fechoringreso(+)) between $P{DATA_INICIO} and
$P{DATA_FINAL}
and ee.puntoventa_id(+) = tab.puntoventa_id
group by tab.cveestado,
tab.puntoventa_id,
tab.numpuntoventa,
tab.nombpuntoventa,
tab.total_bilhetes,
tab.total_bilhetes_gap,
tab.receita_tarifa,
tab.receita_seguro,
tab.total_devol,
tab.receita_tarifa_gap,
tab.receita_seguro_gap,
tab.total_devol_gap,
tab.total_bilhetes_canc) tab1]]>
END) TOTAL_DEVOL_GAP
FROM CAJA CJ,
PUNTO_VENTA PV,
EMPRESA EM,
PARADA PR,
CIUDAD CD,
CIUDAD CE,
ESTADO ES
WHERE CJ.PUNTOVENTA_ID = PV.PUNTOVENTA_ID
AND TRUNC(CJ.FECHORVENTA) BETWEEN TO_DATE( '01/04/2013' , 'DD/MM/YYYY') AND
TO_DATE( '30/04/2013' , 'DD/MM/YYYY')
AND PR.PARADA_ID = PV.PARADA_ID
AND CJ.EMPRESAPUNTOVENTA_ID = EM.EMPRESA_ID
AND EM.CIUDAD_ID = CE.CIUDAD_ID
AND CD.CIUDAD_ID = PR.CIUDAD_ID
AND CD.ESTADO_ID = ES.ESTADO_ID
AND ((INSTR( ',0800060001,',
',' || TRIM(NUMPUNTOVENTA) || ',') > 0 AND
'N' = 'N') OR
( 'N' = 'S'))
GROUP BY ES.CVEESTADO,
PV.PUNTOVENTA_ID,
PV.NUMPUNTOVENTA,
CJ.EMPRESAPUNTOVENTA_ID,
CE.ESTADO_ID,
PV.NOMBPUNTOVENTA) TAB,
VTABOL.EVENTO_EXTRA EE
WHERE TRUNC(EE.FECHORINGRESO(+)) BETWEEN TO_DATE( '01/04/2013' , 'DD/MM/YYYY') AND
TO_DATE( '30/04/2013' , 'DD/MM/YYYY')
AND EE.PUNTOVENTA_ID(+) = TAB.PUNTOVENTA_ID
GROUP BY TAB.CVEESTADO,
TAB.PUNTOVENTA_ID,
TAB.NUMPUNTOVENTA,
TAB.NOMBPUNTOVENTA,
TAB.TOTAL_BILHETES,
TAB.TOTAL_BILHETES_GAP,
TAB.RECEITA_TARIFA,
TAB.RECEITA_SEGURO,
TAB.TOTAL_DEVOL,
TAB.RECEITA_TARIFA_GAP,
TAB.RECEITA_SEGURO_GAP,
TAB.TOTAL_DEVOL_GAP,
TAB.EMPRESAPUNTOVENTA_ID,
TAB.ESTADO_ID,
TAB.TOTAL_BILHETES_CANC) TAB1]]>
</queryString>
<field name="CVEESTADO" class="java.lang.String"/>
<field name="PUNTOVENTA_ID" class="java.math.BigDecimal"/>
<field name="EMPRESAPUNTOVENTA_ID" class="java.math.BigDecimal"/>
<field name="ESTADO_ID" class="java.math.BigDecimal"/>
<field name="NUMPUNTOVENTA" class="java.lang.String"/>
<field name="NOMBPUNTOVENTA" class="java.lang.String"/>
<field name="TOTAL_BILHETES" class="java.math.BigDecimal"/>
@ -226,6 +239,7 @@
<field name="VALOR_COMISSAO" class="java.math.BigDecimal"/>
<field name="DIFERENCA_COMISSAO" class="java.math.BigDecimal"/>
<field name="TIPO_AGENCIA" class="java.lang.String"/>
<field name="ANTECIPACAO" class="java.math.BigDecimal"/>
<sortField name="CVEESTADO"/>
<variable name="TOTAL_BILHETES_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_BILHETES}]]></variableExpression>
@ -266,12 +280,18 @@
<variable name="TOTAL_BILHETES_CANC_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_BILHETES_CANC}]]></variableExpression>
</variable>
<variable name="DIFERENCA_COMISSAO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
<variableExpression><![CDATA[$F{DIFERENCA_COMISSAO}]]></variableExpression>
</variable>
<variable name="ANTECIPACAO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
<variableExpression><![CDATA[$F{ANTECIPACAO}]]></variableExpression>
</variable>
<group name="GRUPO_ESTADO">
<groupExpression><![CDATA[$F{CVEESTADO}]]></groupExpression>
<groupFooter>
<band height="15">
<staticText>
<reportElement uuid="62260c71-5c44-400d-8048-b5076630da1b" mode="Transparent" x="0" y="0" width="82" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="62260c71-5c44-400d-8048-b5076630da1b" mode="Transparent" x="0" y="0" width="83" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -285,13 +305,13 @@
</graphicElement>
</line>
<line>
<reportElement uuid="8e892f70-7671-4f8b-ba54-a1308c2bbf70" positionType="FixRelativeToBottom" x="1" y="12" width="802" height="1"/>
<reportElement uuid="8e892f70-7671-4f8b-ba54-a1308c2bbf70" positionType="FixRelativeToBottom" x="1" y="14" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="1822c753-da5f-4143-820b-5eeb890867ab" mode="Transparent" x="82" y="1" width="28" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="1822c753-da5f-4143-820b-5eeb890867ab" mode="Transparent" x="82" y="0" width="29" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -299,7 +319,7 @@
<textFieldExpression><![CDATA[$V{TOTAL_BILHETES_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="5b9a67a1-30db-4fd6-9636-3871e514dd4a" mode="Transparent" x="110" y="0" width="39" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="5b9a67a1-30db-4fd6-9636-3871e514dd4a" mode="Transparent" x="110" y="0" width="63" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -307,7 +327,7 @@
<textFieldExpression><![CDATA[$V{RECEITA_TARIFA_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="87542156-d9ea-472e-b425-308a8fa66ca1" mode="Transparent" x="149" y="1" width="59" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="87542156-d9ea-472e-b425-308a8fa66ca1" mode="Transparent" x="172" y="0" width="48" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -315,7 +335,7 @@
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="5967aa4f-f97a-4647-99fb-37ae2709a068" mode="Transparent" x="208" y="1" width="62" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="5967aa4f-f97a-4647-99fb-37ae2709a068" mode="Transparent" x="219" y="0" width="47" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -323,7 +343,7 @@
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="d1dfd492-5eb5-405f-b92d-da78c30127f7" mode="Transparent" x="270" y="1" width="34" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="d1dfd492-5eb5-405f-b92d-da78c30127f7" mode="Transparent" x="265" y="0" width="36" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -331,7 +351,7 @@
<textFieldExpression><![CDATA[$V{TOTAL_DEVOL_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="fdac474f-3490-4639-831f-7168be228ca3" mode="Transparent" x="342" y="1" width="40" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="fdac474f-3490-4639-831f-7168be228ca3" mode="Transparent" x="338" y="0" width="41" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -339,7 +359,7 @@
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_GAP}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="e509cc8c-a4ea-4928-bbce-1a80ea7524f1" mode="Transparent" x="304" y="1" width="38" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="e509cc8c-a4ea-4928-bbce-1a80ea7524f1" mode="Transparent" x="300" y="0" width="39" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -347,7 +367,7 @@
<textFieldExpression><![CDATA[$V{RECEITA_TARIFA_GAP}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="70efadc9-0551-41d1-8a54-512615ddf0db" mode="Transparent" x="382" y="1" width="39" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="70efadc9-0551-41d1-8a54-512615ddf0db" mode="Transparent" x="378" y="0" width="40" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -355,7 +375,7 @@
<textFieldExpression><![CDATA[$V{TOTAL_DEVOL_GAP}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="a359bde7-b7fe-4b71-bf27-4675f9b3f5b2" mode="Transparent" x="421" y="1" width="36" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="a359bde7-b7fe-4b71-bf27-4675f9b3f5b2" mode="Transparent" x="417" y="0" width="69" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -363,7 +383,7 @@
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="8649a7fe-2b8b-4aaf-9b47-53721663e978" mode="Transparent" x="457" y="0" width="43" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="8649a7fe-2b8b-4aaf-9b47-53721663e978" mode="Transparent" x="485" y="0" width="48" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -371,7 +391,7 @@
<textFieldExpression><![CDATA[$V{IMPOSTOS_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="fa48c687-c1cb-4166-b96d-24955cb277ee" mode="Transparent" x="500" y="1" width="40" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="fa48c687-c1cb-4166-b96d-24955cb277ee" mode="Transparent" x="532" y="0" width="68" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -379,7 +399,7 @@
<textFieldExpression><![CDATA[$V{RECEITA_LIQUIDA_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="1c62672c-7ff7-4c84-8048-b776a6d621c6" mode="Transparent" x="569" y="1" width="40" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="1c62672c-7ff7-4c84-8048-b776a6d621c6" mode="Transparent" x="628" y="0" width="32" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -387,13 +407,29 @@
<textFieldExpression><![CDATA[$V{VALOR_COMISSAO_SUM}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="d380f48c-42b4-4b8e-824e-9c38eb71c5c9" mode="Transparent" x="736" y="1" width="65" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="d380f48c-42b4-4b8e-824e-9c38eb71c5c9" mode="Transparent" x="759" y="0" width="42" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{TOTAL_BILHETES_CANC_SUM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="58bd07c1-a411-453b-896e-3bac89c3dee7" mode="Transparent" x="703" y="0" width="32" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{DIFERENCA_COMISSAO_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="16fd71bc-b3db-4b42-9a4a-36645439b82e" mode="Transparent" x="659" y="0" width="45" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{ANTECIPACAO_1}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
@ -401,12 +437,12 @@
<band splitType="Stretch"/>
</background>
<title>
<band height="74" splitType="Stretch">
<band height="53" splitType="Stretch">
<rectangle>
<reportElement uuid="40951cf0-f721-444c-937e-a529296c7cc5" x="1" y="0" width="800" height="30"/>
<reportElement uuid="40951cf0-f721-444c-937e-a529296c7cc5" x="1" y="4" width="800" height="49"/>
</rectangle>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="51724883-07e3-4d85-9d83-8e4fb54a369f" mode="Transparent" x="71" y="0" width="369" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="51724883-07e3-4d85-9d83-8e4fb54a369f" mode="Transparent" x="82" y="23" width="369" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -414,14 +450,14 @@
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9ab65a31-d370-435c-9797-bf9d01f7db8e" x="6" y="0" width="65" height="15"/>
<reportElement uuid="9ab65a31-d370-435c-9797-bf9d01f7db8e" x="6" y="23" width="65" height="15"/>
<textElement>
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.relatorio}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="3df44bfd-0b0d-408a-b69d-ce5a91fac303" mode="Transparent" x="6" y="15" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="3df44bfd-0b0d-408a-b69d-ce5a91fac303" mode="Transparent" x="6" y="38" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -429,7 +465,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="2d8e8bb8-83e9-4e1b-87dc-60f3aa339144" mode="Transparent" x="71" y="15" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="2d8e8bb8-83e9-4e1b-87dc-60f3aa339144" mode="Transparent" x="82" y="38" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -437,7 +473,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="c29183cc-bb62-4ac1-b880-a218e54be0c0" mode="Transparent" x="137" y="15" width="59" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="c29183cc-bb62-4ac1-b880-a218e54be0c0" mode="Transparent" x="150" y="38" width="61" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -445,13 +481,21 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="66de0d17-aaae-4bc7-97fc-c642bbcdf2fa" mode="Transparent" x="124" y="15" width="13" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="66de0d17-aaae-4bc7-97fc-c642bbcdf2fa" mode="Transparent" x="137" y="38" width="13" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c3ee982a-23ee-4eb3-9056-dd5fb872a362" mode="Transparent" x="7" y="4" width="130" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA_NOME}]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
@ -467,140 +511,140 @@
</line>
<elementGroup>
<staticText>
<reportElement uuid="b82388b4-1e64-4f98-950d-a6b07d87c1e0" style="Column header" x="0" y="1" width="17" height="15" forecolor="#000000"/>
<reportElement uuid="b82388b4-1e64-4f98-950d-a6b07d87c1e0" style="Column header" x="0" y="1" width="18" height="15" forecolor="#000000"/>
<textElement>
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[UF]]></text>
</staticText>
<staticText>
<reportElement uuid="761cd577-3c83-4e18-b17b-d327b62aa772" style="Column header" x="17" y="1" width="30" height="15" forecolor="#000000"/>
<reportElement uuid="761cd577-3c83-4e18-b17b-d327b62aa772" style="Column header" x="17" y="1" width="31" height="15" forecolor="#000000"/>
<textElement>
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Código]]></text>
</staticText>
<staticText>
<reportElement uuid="d1726122-2865-4484-b5f0-0f44c5a0d04b" style="Column header" x="82" y="1" width="28" height="15" forecolor="#000000"/>
<reportElement uuid="d1726122-2865-4484-b5f0-0f44c5a0d04b" style="Column header" x="82" y="1" width="29" height="15" forecolor="#000000"/>
<textElement textAlignment="Center">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Qtd. Bil.]]></text>
</staticText>
<staticText>
<reportElement uuid="5a346661-5bf1-4cef-b4c7-78953ab826d4" style="Column header" x="110" y="1" width="39" height="15" forecolor="#000000"/>
<reportElement uuid="5a346661-5bf1-4cef-b4c7-78953ab826d4" style="Column header" x="110" y="1" width="63" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Rec. Tarifa]]></text>
</staticText>
<staticText>
<reportElement uuid="b705c904-485e-4039-90da-c565711ee526" style="Column header" x="149" y="1" width="61" height="15" forecolor="#000000"/>
<reportElement uuid="b705c904-485e-4039-90da-c565711ee526" style="Column header" x="172" y="1" width="48" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Rec. Seguro]]></text>
</staticText>
<staticText>
<reportElement uuid="09b51c92-9289-4be6-a015-6de7a2c50838" style="Column header" x="210" y="1" width="60" height="15" forecolor="#000000"/>
<reportElement uuid="09b51c92-9289-4be6-a015-6de7a2c50838" style="Column header" x="219" y="1" width="47" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Rec. Bagagem]]></text>
</staticText>
<staticText>
<reportElement uuid="e1ed74d5-645d-4d2b-9c44-42a663ee6e19" style="Column header" x="270" y="1" width="34" height="15" forecolor="#000000"/>
<reportElement uuid="e1ed74d5-645d-4d2b-9c44-42a663ee6e19" style="Column header" x="265" y="1" width="36" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Vr. Devol.]]></text>
</staticText>
<staticText>
<reportElement uuid="1f5fb691-2caf-4210-833d-b1bad215ba9a" style="Column header" x="304" y="1" width="38" height="15" forecolor="#000000"/>
<reportElement uuid="1f5fb691-2caf-4210-833d-b1bad215ba9a" style="Column header" x="300" y="1" width="39" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[GAP Tarifa]]></text>
</staticText>
<staticText>
<reportElement uuid="16c9f923-0257-4c6a-99b3-e0cf1c64a1ae" style="Column header" x="342" y="1" width="40" height="15" forecolor="#000000"/>
<reportElement uuid="16c9f923-0257-4c6a-99b3-e0cf1c64a1ae" style="Column header" x="338" y="1" width="41" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[GAP Seguro]]></text>
</staticText>
<staticText>
<reportElement uuid="048b4213-b856-4aa9-9551-31d31c52a0f9" style="Column header" x="382" y="1" width="39" height="15" forecolor="#000000"/>
<reportElement uuid="048b4213-b856-4aa9-9551-31d31c52a0f9" style="Column header" x="378" y="1" width="40" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[GAP Devol.]]></text>
</staticText>
<staticText>
<reportElement uuid="f1d10a1d-13fb-4ca0-914a-734f48754946" style="Column header" x="421" y="1" width="36" height="15" forecolor="#000000"/>
<reportElement uuid="f1d10a1d-13fb-4ca0-914a-734f48754946" style="Column header" x="417" y="1" width="69" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Rec. Total]]></text>
</staticText>
<staticText>
<reportElement uuid="84454d72-309f-415d-a7b3-90dac892c3da" style="Column header" x="457" y="1" width="43" height="15" forecolor="#000000"/>
<reportElement uuid="84454d72-309f-415d-a7b3-90dac892c3da" style="Column header" x="485" y="1" width="48" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Impostos]]></text>
</staticText>
<staticText>
<reportElement uuid="f7ff14b9-9667-4efe-9472-ba79158b9828" style="Column header" x="500" y="1" width="40" height="15" forecolor="#000000"/>
<reportElement uuid="f7ff14b9-9667-4efe-9472-ba79158b9828" style="Column header" x="532" y="1" width="68" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Rec. Liquida]]></text>
</staticText>
<staticText>
<reportElement uuid="ab78513c-7198-4b8d-9c5a-3115e4da2e9c" style="Column header" x="544" y="1" width="25" height="15" forecolor="#000000"/>
<reportElement uuid="ab78513c-7198-4b8d-9c5a-3115e4da2e9c" style="Column header" x="599" y="1" width="30" height="15" forecolor="#000000"/>
<textElement textAlignment="Center">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[% Com.]]></text>
</staticText>
<staticText>
<reportElement uuid="f3d84a95-2573-4611-a296-48e1787869cf" style="Column header" x="569" y="1" width="40" height="15" forecolor="#000000"/>
<reportElement uuid="f3d84a95-2573-4611-a296-48e1787869cf" style="Column header" x="628" y="1" width="32" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Comissão]]></text>
</staticText>
<staticText>
<reportElement uuid="cb3693c3-17f0-4449-bd01-c940885474a4" style="Column header" x="609" y="1" width="47" height="15" forecolor="#000000"/>
<reportElement uuid="cb3693c3-17f0-4449-bd01-c940885474a4" style="Column header" x="659" y="1" width="45" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Adiantamento]]></text>
</staticText>
<staticText>
<reportElement uuid="6176aeab-ecf8-4cfb-a197-e9a04dda31d9" style="Column header" x="656" y="1" width="40" height="15" forecolor="#000000"/>
<reportElement uuid="6176aeab-ecf8-4cfb-a197-e9a04dda31d9" style="Column header" x="703" y="1" width="32" height="15" forecolor="#000000"/>
<textElement textAlignment="Right">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Diferença]]></text>
</staticText>
<staticText>
<reportElement uuid="81c1c4f5-fe2b-4603-9209-0ebd22967e31" style="Column header" x="696" y="1" width="40" height="15" forecolor="#000000"/>
<reportElement uuid="81c1c4f5-fe2b-4603-9209-0ebd22967e31" style="Column header" x="734" y="1" width="26" height="15" forecolor="#000000"/>
<textElement textAlignment="Center">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Tipo]]></text>
</staticText>
<staticText>
<reportElement uuid="c3f916bc-f810-448d-abe2-ac7257c4eee2" style="Column header" x="736" y="1" width="65" height="15" forecolor="#000000"/>
<reportElement uuid="c3f916bc-f810-448d-abe2-ac7257c4eee2" style="Column header" x="759" y="1" width="42" height="15" forecolor="#000000"/>
<textElement textAlignment="Center">
<font size="7" isBold="false"/>
</textElement>
<text><![CDATA[Qtd. Cancelamento]]></text>
<text><![CDATA[Qtd. Canc.]]></text>
</staticText>
<staticText>
<reportElement uuid="04cfc0a4-4f6d-4ad6-b9ce-0f4953e454cd" style="Column header" x="47" y="1" width="35" height="15" forecolor="#000000"/>
<reportElement uuid="04cfc0a4-4f6d-4ad6-b9ce-0f4953e454cd" style="Column header" x="47" y="1" width="36" height="15" forecolor="#000000"/>
<textElement>
<font size="7" isBold="false"/>
</textElement>
@ -618,144 +662,152 @@
<detail>
<band height="15" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement uuid="27124f1a-ca93-43bd-9a8e-448ed64b4241" style="Detail" x="0" y="0" width="16" height="15"/>
<reportElement uuid="27124f1a-ca93-43bd-9a8e-448ed64b4241" style="Detail" x="0" y="0" width="18" height="15"/>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{CVEESTADO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="973aff15-d389-4027-b370-6dc8a38ae793" style="Detail" x="16" y="0" width="30" height="15"/>
<reportElement uuid="973aff15-d389-4027-b370-6dc8a38ae793" style="Detail" x="17" y="0" width="31" height="15"/>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{NUMPUNTOVENTA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="186064f7-7476-4ff7-b159-0e96361a94f0" style="Detail" x="46" y="0" width="35" height="15"/>
<reportElement uuid="186064f7-7476-4ff7-b159-0e96361a94f0" style="Detail" x="47" y="0" width="36" height="15"/>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{NOMBPUNTOVENTA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="b435d52f-a973-4e4f-81cc-86721ad26065" style="Detail" x="81" y="0" width="28" height="15"/>
<reportElement uuid="b435d52f-a973-4e4f-81cc-86721ad26065" style="Detail" x="82" y="0" width="29" height="15"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{TOTAL_BILHETES}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="8a842131-2b16-4d73-af3d-add23f0f4669" style="Detail" x="109" y="0" width="39" height="15"/>
<reportElement uuid="8a842131-2b16-4d73-af3d-add23f0f4669" style="Detail" x="110" y="0" width="63" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RECEITA_TARIFA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="7968d320-7f6a-433e-ac7a-7593d1ca2e52" style="Detail" x="148" y="0" width="59" height="15"/>
<reportElement uuid="7968d320-7f6a-433e-ac7a-7593d1ca2e52" style="Detail" x="172" y="0" width="48" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RECEITA_SEGURO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="15e58feb-7f79-4a61-b111-fe7561e4d939" style="Detail" x="208" y="0" width="62" height="15"/>
<reportElement uuid="15e58feb-7f79-4a61-b111-fe7561e4d939" style="Detail" x="219" y="0" width="47" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="7680fb2a-85e4-4bdd-82b0-cf49ac8d0052" style="Detail" x="270" y="0" width="34" height="15"/>
<reportElement uuid="7680fb2a-85e4-4bdd-82b0-cf49ac8d0052" style="Detail" x="265" y="0" width="36" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{TOTAL_DEVOL}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="31e7809b-4d70-4afb-a89f-9bb4190f15cd" style="Detail" x="304" y="0" width="38" height="15"/>
<reportElement uuid="31e7809b-4d70-4afb-a89f-9bb4190f15cd" style="Detail" x="300" y="0" width="39" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RECEITA_TARIFA_GAP}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="22aa78a8-8324-46e4-8f82-296d7798b6d7" style="Detail" x="342" y="0" width="40" height="15"/>
<reportElement uuid="22aa78a8-8324-46e4-8f82-296d7798b6d7" style="Detail" x="338" y="0" width="41" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RECEITA_SEGURO_GAP}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="b225f72a-e727-4ce4-a1e3-40a3a4b48a35" style="Detail" x="382" y="0" width="39" height="15"/>
<reportElement uuid="b225f72a-e727-4ce4-a1e3-40a3a4b48a35" style="Detail" x="378" y="0" width="40" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{TOTAL_DEVOL_GAP}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="d1ea5b17-efef-48aa-9464-38f800297476" style="Detail" x="421" y="0" width="36" height="15"/>
<reportElement uuid="d1ea5b17-efef-48aa-9464-38f800297476" style="Detail" x="417" y="0" width="69" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RECEITA_TOTAL}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="b9dbe642-525c-463e-9e91-c9de2c9e7f18" style="Detail" x="457" y="0" width="43" height="15"/>
<reportElement uuid="b9dbe642-525c-463e-9e91-c9de2c9e7f18" style="Detail" x="485" y="0" width="48" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{IMPOSTOS}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="ad32ef2c-9328-413c-9ee7-c18c4dcd3ae1" style="Detail" x="500" y="0" width="40" height="15"/>
<reportElement uuid="ad32ef2c-9328-413c-9ee7-c18c4dcd3ae1" style="Detail" x="532" y="0" width="68" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RECEITA_LIQUIDA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00 %">
<reportElement uuid="33c3f1e6-1775-4341-8852-2948b2bcc1c7" style="Detail" x="544" y="0" width="25" height="15"/>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="33c3f1e6-1775-4341-8852-2948b2bcc1c7" style="Detail" x="599" y="0" width="30" height="15"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{PERCENTUAL_COMISSAO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="f74e30d5-1737-4a51-b516-cf1cbaa1a1a1" style="Detail" x="569" y="0" width="40" height="15"/>
<reportElement uuid="f74e30d5-1737-4a51-b516-cf1cbaa1a1a1" style="Detail" x="628" y="0" width="32" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{VALOR_COMISSAO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="82a6de6e-b2b6-4f2d-b1f3-01eeca119640" style="Detail" x="656" y="0" width="40" height="15"/>
<reportElement uuid="82a6de6e-b2b6-4f2d-b1f3-01eeca119640" style="Detail" x="703" y="0" width="32" height="15"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{DIFERENCA_COMISSAO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="b8a07c84-cbe2-42aa-8b89-6ae548390e82" style="Detail" x="696" y="0" width="40" height="15"/>
<reportElement uuid="b8a07c84-cbe2-42aa-8b89-6ae548390e82" style="Detail" x="734" y="0" width="26" height="15"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{TIPO_AGENCIA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="4bfa82cd-4346-47b6-916a-c500cac81bb3" style="Detail" x="736" y="0" width="65" height="15"/>
<reportElement uuid="4bfa82cd-4346-47b6-916a-c500cac81bb3" style="Detail" x="759" y="0" width="42" height="15"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{TOTAL_BILHETES_CANC}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="1de75b11-c03e-4e01-a85e-2a941ae5905a" mode="Transparent" x="659" y="0" width="45" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{ANTECIPACAO}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="23" splitType="Stretch">
<band height="8" splitType="Stretch">
<line>
<reportElement uuid="550e9fbd-9d42-430f-ad4a-4df61bf47764" positionType="FixRelativeToBottom" x="0" y="3" width="802" height="1"/>
<reportElement uuid="550e9fbd-9d42-430f-ad4a-4df61bf47764" positionType="FixRelativeToBottom" x="0" y="0" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
@ -780,7 +832,7 @@
</textElement>
<textFieldExpression><![CDATA[$R{rodape.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{rodape.de}]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<textField pattern="dd/MM/yyyy h.mm a">
<reportElement uuid="86638452-9dd7-4deb-90f5-caa33d583b3d" style="Column header" x="22" y="1" width="197" height="20" forecolor="#736343"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>

View File

@ -0,0 +1,954 @@
<?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="RelatorioResumoLinhas" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="654"/>
<property name="ireport.y" value="84"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="RUTA_ID" class="java.lang.Integer" isForPrompting="false">
<defaultValueExpression><![CDATA[null]]></defaultValueExpression>
</parameter>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<queryString>
<![CDATA[SELECT TAB.*,
(TAB.PASSAGEIROS / DECODE(TAB.VIAGENS_TOTAL,0,1,TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPA,
(TAB.PASSAGEIROS_EQUIVALENTE / DECODE(TAB.VIAGENS_TOTAL,0,1,TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPE,
(TAB.RECEITA_TOTAL / DECODE(TAB.KM_RODADO,0,1,TAB.KM_RODADO)) RECEITA_KM,
(TAB.RECEITA_TOTAL / DECODE(TAB.VIAGENS_TOTAL,0,1,TAB.VIAGENS_TOTAL)) RECEITA_VIAGEM,
ROUND(((TAB.RECEITA_TOTAL / DECODE(TAB.VIAGENS_TOTAL,0,1,TAB.VIAGENS_TOTAL)) / DECODE(TAB.TARIFA,0,1,TAB.TARIFA)), 0) EQ,
(TAB.EXTENSAO_KM/TAB.PASSAGEIROS) PAX_KM,
((TAB.PASSAGEIROS_EQUIVALENTE / DECODE(TAB.VIAGENS_TOTAL,0,1, TAB.VIAGENS_TOTAL)) / TAB.ASSENTOS) * 100 IAP
FROM (SELECT TAB1.*,
(TAB1.RECEITA_TARIFA + TAB1.RECEITA_SEGURO +
TAB1.RECEITA_BAGAGEM + TAB1.RECEITA_SEGURO_OUTROS) RECEITA_TOTAL,
(TAB1.VIAGENS + TAB1.VIAGENS_EXTRA) VIAGENS_TOTAL,
((TAB1.VIAGENS + TAB1.VIAGENS_EXTRA) * TAB1.EXTENSAO_KM) KM_RODADO,
(SELECT SUM((TAB1.EXTENSAO_KM / DECODE(TR.CANTKMREAL,0,1, TR.CANTKMREAL)) * COUNT(1))
FROM CORRIDA CR,
CORRIDA_TRAMO CT,
TRAMO TR,
BOLETO BO,
CORRIDA_TRAMO CTD,
CORRIDA_TRAMO CTO
WHERE CR.FECCORRIDA BETWEEN
$P{DATA_INICIAL} AND
$P{DATA_FINAL}
AND CR.RUTA_ID = TAB1.RUTA_ID
AND CR.ROLOPERATIVO_ID = TAB1.ROLOPERATIVO_ID
AND CT.FECCORRIDA = CR.FECCORRIDA
AND CT.CORRIDA_ID = CR.CORRIDA_ID
AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID}
AND TR.TRAMO_ID = CT.TRAMO_ID
AND BO.CORRIDA_ID = CT.CORRIDA_ID
AND BO.FECCORRIDA = CT.FECCORRIDA
AND BO.ORIGEN_ID = CTO.ORIGEN_ID
AND BO.DESTINO_ID = CTD.DESTINO_ID
AND CTD.CORRIDA_ID = CT.CORRIDA_ID
AND CTD.FECCORRIDA = CT.FECCORRIDA
AND CTO.CORRIDA_ID = CT.CORRIDA_ID
AND CTO.FECCORRIDA = CT.FECCORRIDA
AND CTO.ACTIVO = 1
AND CTD.ACTIVO = 1
AND CT.NUMSECUENCIA BETWEEN CTO.NUMSECUENCIA AND
CTD.NUMSECUENCIA
AND BO.ACTIVO = 1
AND (BO.MOTIVOCANCELACION_ID IS NULL OR
BO.MOTIVOCANCELACION_ID = 0)
GROUP BY CT.TRAMO_ID, TR.CANTKMREAL) PASSAGEIROS_EQUIVALENTE
FROM (SELECT RT.RUTA_ID,
RT.NUMRUTA,
RT.DESCRUTA,
TF.PRECIO TARIFA,
DA.CANTASIENTOS ASSENTOS,
RO.ROLOPERATIVO_ID,
CASE
WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN
'S'
ELSE
'N'
END INTERESTADUAL,
NVL(GR.DESCGRUPO, 'Não Definido') GRUPO_LINHA,
(SELECT SUM(TR.CANTKMREAL)
FROM RUTA_SECUENCIA RS, TRAMO TR
WHERE RS.RUTA_ID = RT.RUTA_ID
AND RS.TRAMO_ID = TR.TRAMO_ID) EXTENSAO_KM,
NVL(SUM(BL.IMPORTESEGURO),0) RECEITA_SEGURO,
0 RECEITA_BAGAGEM,
0 RECEITA_SEGURO_OUTROS,
SUM(BL.PRECIOPAGADO) RECEITA_TARIFA,
COUNT(1) PASSAGEIROS,
COUNT(DISTINCT CASE
WHEN CR.TIPOSERVICIO_ID = 2 THEN
CR.FECCORRIDA || CR.CORRIDA_ID
ELSE
NULL
END) VIAGENS_EXTRA,
COUNT(DISTINCT CASE
WHEN CR.TIPOSERVICIO_ID <> 2 THEN
CR.FECCORRIDA || CR.CORRIDA_ID
ELSE
NULL
END) VIAGENS
FROM RUTA RT,
BOLETO BL,
CORRIDA CR,
TRAMO TR,
ROL_OPERATIVO RO,
DIAGRAMA_AUTOBUS DA,
TARIFA TF,
VIGENCIA_TARIFA VT,
GRUPO_RUTA GR,
PARADA PO,
PARADA PD,
CIUDAD CO,
CIUDAD CD
WHERE RT.RUTA_ID = CR.RUTA_ID
AND CR.FECCORRIDA = BL.FECCORRIDA
AND CR.RUTA_ID = NVL( $P{RUTA_ID} , CR.RUTA_ID)
AND CR.CORRIDA_ID = BL.CORRIDA_ID
AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID}
AND CR.ORIGEN_ID = PO.PARADA_ID
AND CR.DESTINO_ID = PD.PARADA_ID
AND PO.CIUDAD_ID = CO.CIUDAD_ID
AND PD.CIUDAD_ID = CD.CIUDAD_ID
AND RT.GRUPORUTA_ID = GR.GRUPORUTA_ID(+)
AND RO.ROLOPERATIVO_ID = CR.ROLOPERATIVO_ID
AND RO.DIAGRAMAAUTOBUS_ID = DA.DIAGRAMAAUTOBUS_ID
AND TF.CLASESERVICIO_ID = CR.CLASESERVICIO_ID
AND TR.ORIGEN_ID = CR.ORIGEN_ID
AND TR.DESTINO_ID = CR.DESTINO_ID
AND TF.MARCA_ID = CR.MARCA_ID
AND TF.RUTA_ID = CR.RUTA_ID
AND TF.TRAMO_ID = TR.TRAMO_ID
AND TF.STATUSTARIFA = 'A'
AND TF.ACTIVO = 1
AND BL.MOTIVOCANCELACION_ID IS NULL
AND BL.INDREIMPRESION = 0
AND BL.INDSTATUSOPERACION = 'F'
AND TF.VIGENCIATARIFA_ID = VT.VIGENCIATARIFA_ID
AND VT.ACTIVO = 1
AND CR.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND
VT.FECFINVIGENCIA
AND CR.FECCORRIDA BETWEEN
$P{DATA_INICIAL} AND
$P{DATA_FINAL}
GROUP BY RT.RUTA_ID,
RT.NUMRUTA,
RT.DESCRUTA,
TF.PRECIO,
DA.CANTASIENTOS,
RO.ROLOPERATIVO_ID,
GR.DESCGRUPO,
CO.ESTADO_ID,
CD.ESTADO_ID) TAB1) TAB]]>
</queryString>
<field name="RUTA_ID" class="java.math.BigDecimal"/>
<field name="NUMRUTA" class="java.math.BigDecimal"/>
<field name="DESCRUTA" class="java.lang.String"/>
<field name="TARIFA" class="java.math.BigDecimal"/>
<field name="ASSENTOS" class="java.math.BigDecimal"/>
<field name="ROLOPERATIVO_ID" class="java.math.BigDecimal"/>
<field name="INTERESTADUAL" class="java.lang.String"/>
<field name="GRUPO_LINHA" class="java.lang.String"/>
<field name="EXTENSAO_KM" class="java.math.BigDecimal"/>
<field name="RECEITA_SEGURO" class="java.math.BigDecimal"/>
<field name="RECEITA_BAGAGEM" class="java.math.BigDecimal"/>
<field name="RECEITA_SEGURO_OUTROS" class="java.math.BigDecimal"/>
<field name="RECEITA_TARIFA" class="java.math.BigDecimal"/>
<field name="PASSAGEIROS" class="java.math.BigDecimal"/>
<field name="VIAGENS_EXTRA" class="java.math.BigDecimal"/>
<field name="VIAGENS" class="java.math.BigDecimal"/>
<field name="RECEITA_TOTAL" class="java.math.BigDecimal"/>
<field name="VIAGENS_TOTAL" class="java.math.BigDecimal"/>
<field name="KM_RODADO" class="java.math.BigDecimal"/>
<field name="PASSAGEIROS_EQUIVALENTE" class="java.math.BigDecimal"/>
<field name="PASSAGEIROS_MPA" class="java.math.BigDecimal"/>
<field name="PASSAGEIROS_MPE" class="java.math.BigDecimal"/>
<field name="RECEITA_KM" class="java.math.BigDecimal"/>
<field name="RECEITA_VIAGEM" class="java.math.BigDecimal"/>
<field name="EQ" class="java.math.BigDecimal"/>
<field name="PAX_KM" class="java.math.BigDecimal"/>
<field name="IAP" class="java.math.BigDecimal"/>
<sortField name="INTERESTADUAL"/>
<sortField name="GRUPO_LINHA"/>
<sortField name="RUTA_ID"/>
<variable name="RECEITA_TARIFA_GRP" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_TARIFA}]]></variableExpression>
</variable>
<variable name="RECEITA_TARIFA_INT" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_TARIFA}]]></variableExpression>
</variable>
<variable name="RECEITA_TARIFA_GERAL" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_TARIFA}]]></variableExpression>
</variable>
<variable name="RECEITA_SEGURO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO}]]></variableExpression>
</variable>
<variable name="RECEITA_SEGURO_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO}]]></variableExpression>
</variable>
<variable name="RECEITA_SEGURO_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO}]]></variableExpression>
</variable>
<variable name="RECEITA_BAGAGEM_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression>
</variable>
<variable name="RECEITA_BAGAGEM_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression>
</variable>
<variable name="RECEITA_BAGAGEM_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression>
</variable>
<variable name="RECEITA_SEGURO_OUTROS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></variableExpression>
</variable>
<variable name="RECEITA_SEGURO_OUTROS_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></variableExpression>
</variable>
<variable name="RECEITA_SEGURO_OUTROS_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></variableExpression>
</variable>
<variable name="RECEITA_TOTAL_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_TOTAL}]]></variableExpression>
</variable>
<variable name="RECEITA_TOTAL_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_TOTAL}]]></variableExpression>
</variable>
<variable name="RECEITA_TOTAL_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_TOTAL}]]></variableExpression>
</variable>
<variable name="VIAGENS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS}]]></variableExpression>
</variable>
<variable name="VIAGENS_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS}]]></variableExpression>
</variable>
<variable name="VIAGENS_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS}]]></variableExpression>
</variable>
<variable name="VIAGENS_EXTRA_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS_EXTRA}]]></variableExpression>
</variable>
<variable name="VIAGENS_EXTRA_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS_EXTRA}]]></variableExpression>
</variable>
<variable name="VIAGENS_EXTRA_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS_EXTRA}]]></variableExpression>
</variable>
<variable name="VIAGENS_TOTAL_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS_TOTAL}]]></variableExpression>
</variable>
<variable name="VIAGENS_TOTAL_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS_TOTAL}]]></variableExpression>
</variable>
<variable name="VIAGENS_TOTAL_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS_TOTAL}]]></variableExpression>
</variable>
<variable name="KM_RODADO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{KM_RODADO}]]></variableExpression>
</variable>
<variable name="KM_RODADO_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{KM_RODADO}]]></variableExpression>
</variable>
<variable name="KM_RODADO_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{KM_RODADO}]]></variableExpression>
</variable>
<variable name="PASSAGEIROS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{PASSAGEIROS}]]></variableExpression>
</variable>
<variable name="PASSAGEIROS_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{PASSAGEIROS}]]></variableExpression>
</variable>
<variable name="PASSAGEIROS_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{PASSAGEIROS}]]></variableExpression>
</variable>
<group name="groupInterestaduak">
<groupExpression><![CDATA[$F{INTERESTADUAL}]]></groupExpression>
<groupHeader>
<band height="12">
<line>
<reportElement uuid="5bdcd7b5-6a5b-4ee1-b271-23c38689cbc0" x="1" y="1" width="797" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField>
<reportElement uuid="9bf6af16-4242-4e39-b90e-3e0d3fe8cbdb" x="14" y="2" width="72" height="9"/>
<textElement/>
<textFieldExpression><![CDATA[$F{INTERESTADUAL}.equals( "S" )?"Linhas Interestaduais":"Linhas Intermunicipais"]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="12">
<staticText>
<reportElement uuid="f949ef6f-903f-45d8-b89f-d16f49e67494" x="14" y="0" width="46" height="10"/>
<textElement textAlignment="Right"/>
<text><![CDATA[Sub Total:]]></text>
</staticText>
<textField pattern="#,##0.00">
<reportElement uuid="041e4886-2c87-4687-8f2e-f2fbbe18729d" x="177" y="0" width="38" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TARIFA_INT}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="43aee237-4e26-4dd9-bf69-f61fbf345828" x="219" y="0" width="27" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_2}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="da6f1964-eb77-40bf-ba65-6f09ee4e703f" x="246" y="0" width="35" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="13c20f2f-6815-4c5e-a756-62a635c6129b" x="281" y="0" width="37" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_OUTROS_2}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="59b3f3b3-7353-406e-a096-2e1dc48b7484" x="318" y="0" width="42" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a3767a6a-79b9-4478-b3e4-b162ebd8b6c4" x="366" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f8ff7dd1-5302-477c-9218-4a1f26f0e100" x="399" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_EXTRA_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="643a74d1-fc89-4246-b384-91b38e32c618" x="432" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_TOTAL_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="6b176547-673b-4b46-8c0c-911763d52325" x="465" y="0" width="45" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{KM_RODADO_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="3bc49334-8935-4b95-8686-65b2baf249a7" x="516" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="6c3534ae-6b62-4104-826c-668bb443f1a2" x="62" y="0" width="65" height="10"/>
<textElement/>
<textFieldExpression><![CDATA[$F{INTERESTADUAL}.equals( "S" )?"Linhas Interestaduais":"Linhas Intermunicipais"]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="groupLinha">
<groupExpression><![CDATA[$F{GRUPO_LINHA}]]></groupExpression>
<groupHeader>
<band height="9">
<textField>
<reportElement uuid="2bce894e-4df1-466e-90ba-6bd518ea4376" x="14" y="0" width="72" height="9"/>
<textElement/>
<textFieldExpression><![CDATA[$F{GRUPO_LINHA}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="095b53f2-ed2e-4c2f-8b03-fd362ba20e4a" x="1" y="0" width="797" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="15">
<staticText>
<reportElement uuid="eb3f487a-567e-4e6c-8859-09279ab6e95c" x="14" y="3" width="46" height="10"/>
<textElement textAlignment="Right"/>
<text><![CDATA[Total do Grupo:]]></text>
</staticText>
<textField pattern="#,##0.00">
<reportElement uuid="db1cd701-47d4-441a-ab78-f9e7aa686ad0" x="177" y="3" width="38" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TARIFA_GRP}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="b0221c98-0ea2-4982-ad3d-129e4a91eb94" x="219" y="3" width="27" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="a5aecb48-d419-406a-b4ab-3dad24491fea" x="246" y="3" width="35" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_2}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="dc6ef510-1db0-4682-b6f3-13e31ef5a838" x="281" y="3" width="37" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_OUTROS_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="fb906a2d-72ab-4301-ada9-002950616b02" x="318" y="3" width="42" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="2e01f4b5-2734-4b58-a01f-859148abe053" x="366" y="3" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c4065256-4776-41b7-9d17-0d7a9e8e4de9" x="399" y="3" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_EXTRA_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="1a602ed2-d5d6-4ded-b707-c7e683b0587b" x="432" y="3" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_TOTAL_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a63b3e4d-5cc2-44c0-8e6c-7cb541ddf940" x="465" y="3" width="45" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{KM_RODADO_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="dede42db-eaf2-4b63-a508-c90517d2a54e" x="516" y="3" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e80e68a1-6c62-43f6-ae30-b0c7470ccb1e" x="62" y="3" width="54" height="10"/>
<textElement/>
<textFieldExpression><![CDATA[$F{GRUPO_LINHA}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch">
<textField>
<reportElement uuid="9e87eb2d-1887-4b55-8185-532290be371a" x="0" y="24" width="114" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="13cd1307-cc98-498c-8bac-618957350b22" x="0" y="40" width="114" height="20"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e9d8adae-c169-4fc4-9a35-fd1461933161" mode="Transparent" x="119" y="60" width="13" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="4408d1db-05db-4538-944d-5561074f2706" mode="Transparent" x="66" y="60" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="06b0102b-f339-4eed-aad7-f6b84267c237" mode="Transparent" x="132" y="60" width="59" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c714d8a2-a41a-4fc8-848c-9cb455c3a0c7" mode="Transparent" x="1" y="60" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e5254cd0-647f-4b22-be4c-cce9afc5a10f" x="669" y="40" width="100" height="20"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["Página: "+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="55b08ff2-e470-4b59-8c56-58e6fa05ccd5" x="669" y="25" width="100" height="15"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3" x="1" y="76" width="797" height="1"/>
</line>
</band>
</title>
<pageHeader>
<band height="14" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="20" splitType="Stretch">
<staticText>
<reportElement uuid="69af5fee-1749-41a5-bf3d-e53db355ddd2" x="1" y="10" width="34" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6"/>
</textElement>
<text><![CDATA[Código]]></text>
</staticText>
<staticText>
<reportElement uuid="f39411fa-dfc8-4b51-a705-53b2ed781e10" mode="Transparent" x="36" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Linha]]></text>
</staticText>
<staticText>
<reportElement uuid="9d8575a4-d773-4713-abc1-11741c586b24" mode="Transparent" x="69" y="10" width="20" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Lot.]]></text>
</staticText>
<staticText>
<reportElement uuid="7a75fbcb-13b1-47a1-885d-e7255206654c" mode="Transparent" x="89" y="10" width="15" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Cla.]]></text>
</staticText>
<staticText>
<reportElement uuid="796d78cd-ff11-4469-9dbe-7abbb92f4868" mode="Transparent" x="104" y="10" width="35" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Extensão]]></text>
</staticText>
<staticText>
<reportElement uuid="d3f5465b-9474-466a-840e-554872f108fa" mode="Transparent" x="139" y="10" width="31" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Tarifa]]></text>
</staticText>
<staticText>
<reportElement uuid="deca7e00-7f89-4dac-ad2e-89eaeb59ba6c" mode="Transparent" x="176" y="10" width="38" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Passagens]]></text>
</staticText>
<staticText>
<reportElement uuid="78c11d55-5b14-4e0d-9a41-a921da36c477" mode="Transparent" x="219" y="10" width="27" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Seguro]]></text>
</staticText>
<staticText>
<reportElement uuid="9a3b4f6e-79aa-46a7-8edb-5b4a217301d4" mode="Transparent" x="246" y="10" width="35" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Bagagens]]></text>
</staticText>
<staticText>
<reportElement uuid="037e186a-34d1-4774-be91-0f53474af75b" mode="Transparent" x="281" y="10" width="37" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Seguro Opc.]]></text>
</staticText>
<staticText>
<reportElement uuid="be5c09d6-13c0-4d7f-83ec-f5718fe019d2" mode="Transparent" x="318" y="10" width="42" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Total]]></text>
</staticText>
<staticText>
<reportElement uuid="859a71a0-b584-489e-b099-cc127b5ea027" mode="Transparent" x="366" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Ord.]]></text>
</staticText>
<staticText>
<reportElement uuid="b9328b6f-5e2b-4412-a2bb-f1ab50a00ae8" mode="Transparent" x="399" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Extra]]></text>
</staticText>
<staticText>
<reportElement uuid="25946740-ff9b-4421-92c4-237b7b5c06c5" mode="Transparent" x="432" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Total]]></text>
</staticText>
<staticText>
<reportElement uuid="0c75fb19-0d9a-4b66-9e3c-4d714cae6079" mode="Transparent" x="465" y="10" width="45" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Km Rodado]]></text>
</staticText>
<staticText>
<reportElement uuid="998f2194-128e-4132-b882-9188016b3d87" mode="Transparent" x="516" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Absoluto]]></text>
</staticText>
<staticText>
<reportElement uuid="ddc8db3b-b459-4b86-9862-311f9530786b" mode="Transparent" x="582" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[MPA]]></text>
</staticText>
<staticText>
<reportElement uuid="56978e81-7af5-4596-b12c-faa90561c0fa" mode="Transparent" x="549" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Equival.]]></text>
</staticText>
<staticText>
<reportElement uuid="d5dd65d5-24a2-454e-a516-6847f0abf648" mode="Transparent" x="615" y="10" width="26" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[MPE]]></text>
</staticText>
<staticText>
<reportElement uuid="31f020bf-2be6-4f3c-98ec-6dffc692dfc6" mode="Transparent" x="649" y="10" width="26" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[R$/KM]]></text>
</staticText>
<staticText>
<reportElement uuid="ea2e82c6-9390-4fca-9158-94f17dc4360a" mode="Transparent" x="675" y="10" width="26" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[EQ.]]></text>
</staticText>
<staticText>
<reportElement uuid="5f13dda7-5e2c-4c1a-a8cc-03cb2e0ea46b" mode="Transparent" x="701" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[R$/Viagem]]></text>
</staticText>
<staticText>
<reportElement uuid="50c7e602-bf62-49c7-aab5-a923ae173891" mode="Transparent" x="733" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[PAX. KM]]></text>
</staticText>
<staticText>
<reportElement uuid="11d0f094-3bb0-4ffb-bdf6-8ff8a0831a22" mode="Transparent" x="766" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[IAP%]]></text>
</staticText>
<elementGroup>
<staticText>
<reportElement uuid="c44f403d-3437-470d-9ec6-de363516687e" x="256" y="0" width="34" height="8"/>
<textElement/>
<text><![CDATA[RECEITA]]></text>
</staticText>
<line>
<reportElement uuid="3031bb9a-2f49-447e-9b79-738d5a765c61" x="181" y="9" width="179" height="1"/>
</line>
</elementGroup>
<elementGroup>
<staticText>
<reportElement uuid="de763f1e-efcb-42a3-895e-5e0f76df37a1" x="438" y="0" width="42" height="8"/>
<textElement/>
<text><![CDATA[VIAGENS]]></text>
</staticText>
<line>
<reportElement uuid="b0b782a1-761e-46b7-8aec-6caedfa6a501" x="388" y="8" width="122" height="1"/>
</line>
</elementGroup>
<elementGroup>
<staticText>
<reportElement uuid="5166c53c-552f-48f0-84b0-000cc670faef" x="558" y="0" width="46" height="8"/>
<textElement/>
<text><![CDATA[PASSAGEIROS]]></text>
</staticText>
<line>
<reportElement uuid="c9726b5f-4f89-4c7c-ab63-a7a893bcd3b8" x="519" y="8" width="122" height="1"/>
</line>
</elementGroup>
<elementGroup>
<staticText>
<reportElement uuid="a1bffc92-03fd-4b36-958a-42daba63eeb6" x="681" y="0" width="99" height="8"/>
<textElement/>
<text><![CDATA[PARÂMETROS OPERACIONAIS]]></text>
</staticText>
<line>
<reportElement uuid="215a5a7f-9389-4c1c-8022-01dc4504b996" x="653" y="8" width="145" height="1"/>
</line>
</elementGroup>
</band>
</columnHeader>
<detail>
<band height="9" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement uuid="3806ad9e-a061-446b-b913-8e5154e42c17" x="1" y="0" width="34" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{NUMRUTA}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="9c07acec-d267-4686-b7b0-edbb1899fc95" x="36" y="0" width="32" height="9"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{DESCRUTA}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="47b2ffb9-a905-4ebf-900a-28c8103e8cec" x="139" y="0" width="31" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="d4414d92-bb36-40e7-8677-ada488bb71a6" x="69" y="0" width="20" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{ASSENTOS}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="0d406512-6238-45bb-a87f-0a59c8fdf499" x="89" y="0" width="15" height="9"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{ROLOPERATIVO_ID}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="0e3f1f2d-a83f-4e9a-ba34-db10a68e9c6c" x="104" y="0" width="35" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{EXTENSAO_KM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="01b843c0-fd06-4151-9cfd-a15a1d6f7afb" x="219" y="0" width="27" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_SEGURO}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="908b363d-27a9-4f48-a601-0506227e0ab4" x="246" y="0" width="35" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="f223321b-454b-4b7c-aa70-698525f5ba33" x="281" y="0" width="37" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="f0e8fc9a-4e83-4e23-a959-85701a6a2513" x="177" y="0" width="38" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_TARIFA}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="3b54d0f0-816a-42e3-949a-ff8a764c7926" x="366" y="0" width="33" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{VIAGENS}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="e60bbc3e-0f01-4e38-9a2f-6a870199e999" x="399" y="0" width="33" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{VIAGENS_EXTRA}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="2f23db7f-13ce-45c7-b72a-cd019807d422" x="432" y="0" width="33" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{VIAGENS_TOTAL}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="8b73a35d-2dcb-46e6-b055-2b683b6c227c" x="318" y="0" width="42" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_TOTAL}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="f53b87cd-bf78-423c-8370-da117fbfe57e" x="465" y="0" width="45" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{KM_RODADO}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="775711fe-9467-4465-b092-80ef51ead84d" x="516" y="0" width="33" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="25394a2c-dbf5-46b5-ae4e-375dd9864630" x="549" y="0" width="33" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS_EQUIVALENTE}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="ac90046e-a510-4587-8d6a-cbf419b713f6" x="582" y="0" width="33" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS_MPA}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="0190c870-c423-4a99-b09d-ce360b0382fa" x="615" y="0" width="26" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS_MPE}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="78d6da19-c9f8-4d7c-a2a7-edda464ebe46" x="649" y="0" width="26" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_KM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="8012c831-d025-4bd9-9967-a4fe6f122cd0" x="701" y="0" width="32" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_VIAGEM}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="c214d5e9-aae9-432f-b566-bc922cefdff6" x="675" y="0" width="26" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{EQ}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="4a7aebfb-b474-4fb3-9fa6-2e90fd172058" x="733" y="0" width="32" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PAX_KM}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="6c7fe634-f8ff-4561-b406-f3a7d81a59d7" x="766" y="0" width="32" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{IAP}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="10" splitType="Immediate">
<staticText>
<reportElement uuid="f4025873-ca53-4e07-ba04-997d5df4df7b" x="14" y="0" width="46" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[Geral]]></text>
</staticText>
<textField pattern="#,##0.00">
<reportElement uuid="3bfef22c-0a77-422c-ac1d-f4d2535b46ff" x="177" y="0" width="38" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TARIFA_GERAL}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="e3f91e91-6944-48d1-a237-38e52e0a8d7a" x="219" y="0" width="27" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_3}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="7142b0c4-f126-4565-9b85-a83dd631612e" x="246" y="0" width="35" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_3}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="8d8798a7-a0c3-41ef-b9c8-06b40b8196e3" x="281" y="0" width="37" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_OUTROS_3}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="7cb22254-3c7c-4ed3-9c90-2a3dac05e8e0" x="318" y="0" width="42" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_3}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="7d747ce5-937c-48ee-9fdb-6f346ff4446b" x="366" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_3}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="2284552a-20c3-494b-a40c-6237001ef20b" x="399" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_EXTRA_3}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="da8315b5-044f-40eb-88d7-c75acc2fc01d" x="432" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{VIAGENS_TOTAL_3}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="29a87e9a-930a-417c-b568-f7e030a447ae" x="465" y="0" width="45" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{KM_RODADO_3}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="11bb7940-dfb1-48a4-9855-5d189309a9a6" x="516" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_3}]]></textFieldExpression>
</textField>
</band>
</columnFooter>
<noData>
<band height="50">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="145" y="14" width="530" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,319 @@
<?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="RelatorioResumoLinhasAnalitico" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="6"/>
<property name="ireport.y" value="5"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="RUTA_ID" class="java.lang.Integer" isForPrompting="false">
<defaultValueExpression><![CDATA[null]]></defaultValueExpression>
</parameter>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<queryString>
<![CDATA[SELECT TAB.*,
(TAB.EXTENSAO_KM/TAB.PASSAGEIROS) PAX_KM
FROM (SELECT CR.FECCORRIDA,
RT.RUTA_ID,
RT.NUMRUTA,
RT.DESCRUTA,
CR.ROLOPERATIVO_ID,
(SELECT SUM(TR.CANTKMREAL)
FROM RUTA_SECUENCIA RS, TRAMO TR
WHERE RS.RUTA_ID = RT.RUTA_ID
AND RS.TRAMO_ID = TR.TRAMO_ID) EXTENSAO_KM,
COUNT(1) PASSAGEIROS,
COUNT(DISTINCT CR.FECCORRIDA || CR.CORRIDA_ID) VIAGENS
FROM RUTA RT, BOLETO BL, CORRIDA CR
WHERE RT.RUTA_ID = CR.RUTA_ID
AND CR.FECCORRIDA = BL.FECCORRIDA
AND CR.RUTA_ID = NVL($P{RUTA_ID}, CR.RUTA_ID)
AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID}
AND CR.CORRIDA_ID = BL.CORRIDA_ID
AND BL.MOTIVOCANCELACION_ID IS NULL
AND BL.INDREIMPRESION = 0
AND BL.INDSTATUSOPERACION = 'F'
AND BL.ACTIVO = 1
AND CR.FECCORRIDA BETWEEN $P{DATA_INICIAL} AND $P{DATA_FINAL}
GROUP BY CR.FECCORRIDA,
RT.RUTA_ID,
RT.NUMRUTA,
RT.DESCRUTA,
CR.ROLOPERATIVO_ID) TAB
]]>
</queryString>
<field name="FECCORRIDA" class="java.sql.Timestamp"/>
<field name="RUTA_ID" class="java.math.BigDecimal"/>
<field name="NUMRUTA" class="java.math.BigDecimal"/>
<field name="DESCRUTA" class="java.lang.String"/>
<field name="ROLOPERATIVO_ID" class="java.math.BigDecimal"/>
<field name="EXTENSAO_KM" class="java.math.BigDecimal"/>
<field name="PASSAGEIROS" class="java.math.BigDecimal"/>
<field name="VIAGENS" class="java.math.BigDecimal"/>
<field name="PAX_KM" class="java.math.BigDecimal"/>
<sortField name="DESCRUTA"/>
<sortField name="FECCORRIDA"/>
<variable name="PASSAGEIROS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="RUTA" calculation="Sum">
<variableExpression><![CDATA[$F{PASSAGEIROS}]]></variableExpression>
</variable>
<variable name="VIAGENS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="RUTA" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS}]]></variableExpression>
</variable>
<variable name="EXTENSAO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="RUTA" calculation="Sum">
<variableExpression><![CDATA[$F{VIAGENS}.multiply( $F{EXTENSAO_KM} )]]></variableExpression>
</variable>
<variable name="PAX_KM_1" class="java.math.BigDecimal" resetType="Group" resetGroup="RUTA" calculation="Sum">
<variableExpression><![CDATA[$F{PAX_KM}]]></variableExpression>
</variable>
<group name="RUTA">
<groupExpression><![CDATA[$F{NUMRUTA}]]></groupExpression>
<groupHeader>
<band height="27">
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="15" width="62" height="11"/>
<textElement>
<font size="8"/>
</textElement>
<text><![CDATA[Data]]></text>
</staticText>
<staticText>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="62" y="15" width="52" height="11"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Passageiros]]></text>
</staticText>
<staticText>
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="122" y="15" width="34" height="11"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Viagens]]></text>
</staticText>
<textField>
<reportElement uuid="9e40c4ad-b386-4e8a-9d84-977a27bfebcc" x="1" y="1" width="236" height="13"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{NUMRUTA}+" - "+$F{DESCRUTA}+" Extensão: "+new java.text.DecimalFormat("###0.00").format($F{EXTENSAO_KM})]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3" x="0" y="1" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="13" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="26" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="161" y="15" width="48" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[KM Rodados]]></text>
</staticText>
<staticText>
<reportElement uuid="4e931a04-04b4-41b7-90c2-e66083daf0fe" mode="Transparent" x="214" y="15" width="48" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[PAX. KM]]></text>
</staticText>
</band>
</groupHeader>
<groupFooter>
<band height="20">
<textField>
<reportElement uuid="102eebb5-25f0-4175-ab9b-78fbca54bc06" x="62" y="0" width="52" height="13"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9f6ea621-a236-429f-bb13-ae57118ff5b3" x="122" y="1" width="34" height="12"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{VIAGENS_1}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="422ef3af-efca-47b0-80ba-16120724ca36" x="0" y="0" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="###0.00">
<reportElement uuid="3a2d351f-134e-43d6-acea-e3556fc61897" x="161" y="0" width="48" height="13"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{EXTENSAO_1}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="false">
<reportElement uuid="7fc513ea-f587-433c-88fa-6357bdb9ed55" mode="Transparent" x="214" y="0" width="48" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAX_KM_1}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch">
<textField>
<reportElement uuid="9e87eb2d-1887-4b55-8185-532290be371a" x="0" y="24" width="114" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="13cd1307-cc98-498c-8bac-618957350b22" x="0" y="40" width="114" height="20"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e9d8adae-c169-4fc4-9a35-fd1461933161" mode="Transparent" x="119" y="60" width="13" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="4408d1db-05db-4538-944d-5561074f2706" mode="Transparent" x="66" y="60" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="06b0102b-f339-4eed-aad7-f6b84267c237" mode="Transparent" x="132" y="60" width="59" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c714d8a2-a41a-4fc8-848c-9cb455c3a0c7" mode="Transparent" x="1" y="60" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e5254cd0-647f-4b22-be4c-cce9afc5a10f" x="455" y="39" width="100" height="20"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["Página: "+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="55b08ff2-e470-4b59-8c56-58e6fa05ccd5" x="455" y="24" width="100" height="15"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band height="11" splitType="Stretch"/>
</pageHeader>
<detail>
<band height="12">
<textField pattern="dd/MM/yyyy">
<reportElement uuid="ee9c23bd-e562-43d1-a766-851d09848504" x="0" y="0" width="62" height="12"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{FECCORRIDA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9557122b-0661-4f5e-9a89-b0bfd74dabe3" x="62" y="0" width="52" height="12"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="01a234c4-7c30-4ac3-9a7c-dc09d0ebe314" x="122" y="0" width="34" height="12"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VIAGENS}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement uuid="21f73b7d-c377-4047-9960-41e085463aa0" x="161" y="0" width="48" height="12"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VIAGENS}.multiply($F{EXTENSAO_KM})]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="false">
<reportElement uuid="beb097c0-f4c1-4fe3-a62e-badfdf823c0c" mode="Transparent" x="214" y="0" width="48" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{PAX_KM}]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>
<band height="39">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="148" y="8" width="530" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,88 @@
/**
*
*/
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRField;
/**
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
*
*/
public class ArrayDataSource implements IDataSource {
protected Relatorio relatorio;
protected ResultSet resultSet;
private Integer rowNum;
protected List<Map<String, Object>> dados;
public ArrayDataSource(Relatorio relatorio) throws Exception {
this.relatorio = relatorio;
this.initDados();
this.rowNum = -1;
}
@Override
public Object getFieldValue(JRField field) throws JRException {
try {
Object valueCustomField = this.valueCustomFields(field.getName());
return (valueCustomField != null) ? valueCustomField : getByName(field.getName());
} catch (Exception e) {
e.printStackTrace();
throw new JRException(e);
}
}
protected Object getByName(String name){
return this.dados.get(this.rowNum).get(name);
}
/*
* (non-Javadoc)
*
* @see net.sf.jasperreports.engine.JRDataSource#next()
*/
@Override
public boolean next() {
this.rowNum++;
if ( this.dados != null && this.rowNum < this.dados.size()) {
return true;
}
return false;
}
@Override
public void initDados() throws Exception {
}
/*
* (non-Javadoc)
*
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.IDataSource#valueCustomFields(java.lang.String)
*/
@Override
public Object valueCustomFields(String fieldName) throws Exception {
// TODO Auto-generated method stub
return null;
}
}

View File

@ -3,8 +3,6 @@
*/
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.sql.Connection;
import java.util.Map;
/**
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>

View File

@ -1,7 +1,11 @@
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.rjconsultores.ventaboletos.relatorios.render.RenderRelatorioJasper;
@ -27,11 +31,13 @@ public abstract class Relatorio {
protected RenderRelatorioJasper render;
private IDataSource customDataSource;
private IParametros processadorParametros;
private Set<String> infoMsg;
protected Relatorio(Map<String, Object> parametros, Connection conexao) {
this.parametros = parametros;
this.conexao = conexao;
this.infoMsg = new HashSet<String>();
}
public Connection getConexao() {
@ -80,8 +86,6 @@ public abstract class Relatorio {
protected abstract void processaParametros() throws Exception;
/*
* (non-Javadoc)
*
@ -89,13 +93,20 @@ public abstract class Relatorio {
*/
public byte[] getConteudo(SaidaRelatorio saida) throws Exception {
this.processaParametros();
if(this.render == null)
if (this.render == null)
this.render = new RenderRelatorioJasper(this);
return this.render.render(saida);
return this.render.render(saida);
}
public Set<String> getInfoMsg() {
return infoMsg;
}
public void addInfoMsg(String msg) {
this.infoMsg.add(msg);
}
}

View File

@ -0,0 +1,131 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderGrupoRuta;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Textbox;
/**
*
* @author Administrador
*/
@Controller("busquedaGrupoRutaController")
@Scope("prototype")
public class BusquedaGrupoRutaController extends MyGenericForwardComposer {
@Autowired
private transient PagedListWrapper<GrupoRuta> plwGrupoRuta;
private MyListbox grupoRutaList;
private Paging pagingGrupoRuta;
private Textbox txtNome;
public MyListbox getGrupoRutaList() {
return grupoRutaList;
}
public void setGrupoRutaList(MyListbox grupoRutaList) {
this.grupoRutaList = grupoRutaList;
}
public Paging getPagingGrupoRuta() {
return pagingGrupoRuta;
}
public void setPagingGrupoRuta(Paging pagingGrupoRuta) {
this.pagingGrupoRuta = pagingGrupoRuta;
}
public Textbox getTxtNome() {
return txtNome;
}
public void setTxtNome(Textbox txtNome) {
this.txtNome = txtNome;
}
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
grupoRutaList.setItemRenderer(new RenderGrupoRuta());
grupoRutaList.addEventListener("onDoubleClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
GrupoRuta c = (GrupoRuta) grupoRutaList.getSelected();
verGrupoRuta(c);
}
});
refreshLista();
txtNome.focus();
}
private void verGrupoRuta(GrupoRuta c) {
if (c == null) {
return;
}
Map args = new HashMap();
args.put("grupoRuta", c);
args.put("grupoRutaList", grupoRutaList);
openWindow("/gui/catalogos/editarGrupoRuta.zul",
Labels.getLabel("editarGrupoRutaController.window.title"), args, MODAL);
}
private void refreshLista() {
HibernateSearchObject<GrupoRuta> grupoRutaBusqueda =
new HibernateSearchObject<GrupoRuta>(GrupoRuta.class,
pagingGrupoRuta.getPageSize());
grupoRutaBusqueda.addFilterLike("descgrupo",
"%" + txtNome.getText().trim().concat("%"));
grupoRutaBusqueda.addFilterNotEqual("grupoRutaId", -1);
grupoRutaBusqueda.addSortAsc("descgrupo");
grupoRutaBusqueda.addFilterEqual("activo", Boolean.TRUE);
plwGrupoRuta.init(grupoRutaBusqueda, grupoRutaList, pagingGrupoRuta);
if (grupoRutaList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("busquedaGrupoRutaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
}
}
}
public void onClick$btnPesquisa(Event ev) {
refreshLista();
}
public void onClick$btnRefresh(Event ev) {
refreshLista();
}
public void onClick$btnNovo(Event ev) {
verGrupoRuta(new GrupoRuta());
}
}

View File

@ -0,0 +1,143 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
import com.rjconsultores.ventaboletos.service.GrupoRutaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
import java.util.Calendar;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.util.resource.Labels;
import org.zkoss.zul.Button;
/**
*
* @author Administrador
*/
@Controller("editarGrupoRutaController")
@Scope("prototype")
public class EditarGrupoRutaController extends MyGenericForwardComposer {
@Autowired
private GrupoRutaService grupoRutaService;
private GrupoRuta grupoRuta;
private MyListbox grupoRutaList;
private MyTextbox txtNome;
private Button btnApagar;
private static Logger log = Logger.getLogger(EditarGrupoRutaController.class);
public GrupoRuta getGrupoRuta() {
return grupoRuta;
}
public void setGrupoRuta(GrupoRuta grupoRuta) {
this.grupoRuta = grupoRuta;
}
public MyTextbox getTxtNome() {
return txtNome;
}
public void setTxtNome(MyTextbox txtNome) {
this.txtNome = txtNome;
}
public Button getBtnApagar() {
return btnApagar;
}
public void setBtnApagar(Button btnApagar) {
this.btnApagar = btnApagar;
}
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
grupoRuta = (GrupoRuta) Executions.getCurrent().getArg().get("grupoRuta");
grupoRutaList = (MyListbox) Executions.getCurrent().getArg().get("grupoRutaList");
if (grupoRuta.getGrupoRutaId() == null) {
btnApagar.setVisible(Boolean.FALSE);
}
txtNome.focus();
}
public void onClick$btnSalvar(Event ev) throws InterruptedException {
txtNome.getText();
try {
String nomeGrupoRuta = grupoRuta.getDescGrupo();
List<GrupoRuta> lsGrupoRuta = grupoRutaService.buscarPorNome(nomeGrupoRuta);
if (lsGrupoRuta.isEmpty()) {
grupoRuta.setActivo(Boolean.TRUE);
grupoRuta.setFecmodif(Calendar.getInstance().getTime());
grupoRuta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
if (grupoRuta.getGrupoRutaId() == null) {
grupoRutaService.suscribir(grupoRuta);
grupoRutaList.addItem(grupoRuta);
} else {
grupoRutaService.actualizacion(grupoRuta);
grupoRutaList.updateItem(grupoRuta);
}
Messagebox.show(
Labels.getLabel("editarGrupoRutaController.MSG.suscribirOK"),
Labels.getLabel("editarGrupoRutaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
closeWindow();
} else {
Messagebox.show(
Labels.getLabel("MSG.Registro.Existe"),
Labels.getLabel("editarGrupoRutaController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
}
} catch (Exception ex) {
log.error("editarGrupoRutaController: " + ex);
Messagebox.show(
Labels.getLabel("MSG.Error"),
Labels.getLabel("editarGrupoRutaController.window.title"),
Messagebox.OK, Messagebox.ERROR);
}
}
public void onClick$btnApagar(Event ev) {
try {
int resp = Messagebox.show(
Labels.getLabel("editarGrupoRutaController.MSG.borrarPergunta"),
Labels.getLabel("editarGrupoRutaController.window.title"),
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
if (resp == Messagebox.YES) {
grupoRutaService.borrar(grupoRuta);
Messagebox.show(
Labels.getLabel("editarGrupoRutaController.MSG.borrarOK"),
Labels.getLabel("editarGrupoRutaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
grupoRutaList.removeItem(grupoRuta);
closeWindow();
}
} catch (Exception ex) {
log.error(ex);
}
}
}

View File

@ -0,0 +1,164 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Messagebox;
import com.rjconsultores.ventaboletos.entidad.PtovtaComissao;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
/**
*
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
*
*/
@Controller("editarPuntoVentaComissaoController")
@Scope("prototype")
public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
@Autowired
private PtovtaComissaoService ptovtaComissaoService;
@Autowired
private PuntoVentaService puntoVentaService;
private MyListbox ptovtaComissaoList;
private static Logger log = Logger.getLogger(EditarPuntoVentaComissaoController.class);
private List<PuntoVenta> lsDestino;
private MyComboboxEstandar cmbReceita;
private MyComboboxEstandar cmbDestino;
private PtovtaComissao ptovtaComissao;
@Override
public void doAfterCompose(Component comp) throws Exception {
PtovtaComissao ptovtaComissao = (PtovtaComissao) Executions.getCurrent().getArg().get("ptovtaComissao");
this.ptovtaComissaoList = (MyListbox) Executions.getCurrent().getArg().get("ptovtaComissaoList");
this.ptovtaComissao = ptovtaComissaoService.obtenerID(ptovtaComissao.getPtovtaComissaoId());
this.lsDestino = puntoVentaService.obtenerTodos();
super.doAfterCompose(comp);
for (PtovtaComissao.enumReceita p : PtovtaComissao.enumReceita.values()) {
Comboitem comboItem = new Comboitem(p.descricao());
comboItem.setValue(p.valor());
comboItem.setParent(cmbReceita);
}
if (this.ptovtaComissao.getReceita() != null)
if (this.ptovtaComissao.getReceita().equals("RB")) {
cmbReceita.setSelectedIndex(0);
} else if (this.ptovtaComissao.getReceita().equals("RL")) {
cmbReceita.setSelectedIndex(1);
}
}
public void onClick$btnSalvarPtovtaComissao(Event ev) throws InterruptedException {
if (cmbReceita.getSelectedItem() != null) {
this.ptovtaComissao.setReceita((String) cmbReceita.getSelectedItem().getValue());
}
/*if (cmbDestino.getSelectedItem() != null) {
this.ptovtaComissao.setReceita((String) cmbReceita.getSelectedItem().getValue());
}*/
ptovtaComissaoService.actualizacion(this.ptovtaComissao);
Messagebox.show(
Labels.getLabel("editarPuntoVentaComissaoController.MSG.suscribirOK"),
Labels.getLabel("editarPuntoVentaComissaoController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
closeWindow();
}
public void onClick$btnApagarPtovtaComissao(Event ev) {
try {
int resp = Messagebox.show(
Labels.getLabel("editarPuntoVentaComissaoController.MSG.borrarPergunta"),
Labels.getLabel("editarPuntoVentaComissaoController.window.title"),
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
if (resp == Messagebox.YES) {
ptovtaComissaoService.borrar(this.ptovtaComissao);
Messagebox.show(
Labels.getLabel("editarPuntoVentaComissaoController.MSG.borrarOK"),
Labels.getLabel("editarPuntoVentaComissaoController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
ptovtaComissaoList.removeItem(this.ptovtaComissao);
closeWindow();
}
} catch (Exception ex) {
log.error(ex);
}
}
public PuntoVentaService getPuntoVentaService() {
return puntoVentaService;
}
public void setPuntoVentaService(PuntoVentaService puntoVentaService) {
this.puntoVentaService = puntoVentaService;
}
public List<PuntoVenta> getLsDestino() {
return lsDestino;
}
public void setLsDestino(List<PuntoVenta> lsDestino) {
this.lsDestino = lsDestino;
}
public PtovtaComissao getPtovtaComissao() {
return ptovtaComissao;
}
public void setPtovtaComissao(PtovtaComissao ptovtaComissao) {
this.ptovtaComissao = ptovtaComissao;
}
/**
* @return the cmbReceita
*/
public MyComboboxEstandar getCmbReceita() {
return cmbReceita;
}
/**
* @param cmbReceita
* the cmbReceita to set
*/
public void setCmbReceita(MyComboboxEstandar cmbReceita) {
this.cmbReceita = cmbReceita;
}
}

View File

@ -8,7 +8,9 @@ import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
@ -21,6 +23,7 @@ import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.UiException;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.UploadEvent;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zkplus.databind.BindingListModel;
@ -66,6 +69,7 @@ import com.rjconsultores.ventaboletos.service.InstiFinanceiraService;
import com.rjconsultores.ventaboletos.service.MonedaService;
import com.rjconsultores.ventaboletos.service.NodoService;
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
@ -82,6 +86,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.PtovtaEmpresaRender;
import com.rjconsultores.ventaboletos.web.utilerias.render.PtovtaEstoqueRender;
import com.rjconsultores.ventaboletos.web.utilerias.render.PtovtaHorarioRender;
import com.rjconsultores.ventaboletos.web.utilerias.render.PtovtaUsuarioBancarioRender;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
/**
*
@ -114,6 +119,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private PtoVtaUsuarioBancarioService ptoVtaUsuarioBancarioService;
@Autowired
private UsuarioBancarioService usuarioBancarioService;
@Autowired
private PtovtaComissaoService ptovtaComissaoService;
private PuntoVenta puntoVenta;
private Textbox txtCP;
private MyListbox puntoVentaList;
@ -124,7 +132,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private MyListbox ptovtaAntecipaList;
private MyListbox ptovtaHorarioList;
private MyListbox ptovtaEstoqueList;
private MyListbox ptovtaComissaoList;
private static Logger log = Logger.getLogger(EditarPuntoVentaController.class);
private List<Empresa> lsEmpresas;
private List<InstiFinanceira> lsBanco;
private List<TipoPuntoVenta> lsTipoPuntoVenta;
@ -139,12 +149,15 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private List<PtoVtaUsuarioBancario> lsPtovtaUsuarioBancario;
private List<PtovtaAntecipacomissao> lsAntecipacomissao;
private List<PtovtaHorario> lsHorario;
private List<Empresa> lsEmpresaComissao;
private List<PtovtaEstoque> lsEstoque;
private List<PuntoVenta> lsDestino;
private List<PtovtaComissao> lsPtovtaComissao;
private Radio radDatosTarjetaSi;
private Radio radDatosTarjetaNo;
private Radio radAprobacionAutorizado;
private Radio radAprobacionLatente;
private Button btnAdicionarEmpresaComissao;
private Combobox cmbPuntoVentaPadre;
private Combobox cmbFormaPago;
private Combobox cmbEmpresa;
@ -166,6 +179,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Combobox cmbUsuarioBancarioPtoVtaUsuarioBancario;
private Combobox cmbPosicao;
private Combobox cmbReceita;
private Combobox cmbEmpresaComissao;
private Button btnSalvarFormaPago;
private Button btnApagar;
private Doublebox txtCargosExtras;
@ -190,16 +204,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Datebox dateAntecipData;
private MyTextboxDecimal txtAntecipRetem;
private MyTextboxDecimal txtAntecipPercentual;
private MyTextboxDecimal txtPassagemBaixa;
private MyTextboxDecimal txtPassagemAlta;
private MyTextboxDecimal txtExcessoBaixa;
private MyTextboxDecimal txtExcessoAlta;
private MyTextboxDecimal txtSeguroBaixa;
private MyTextboxDecimal txtSeguroAlta;
private MyTextboxDecimal txtOutrosBaixa;
private MyTextboxDecimal txtOutrosAlta;
private MyTextboxDecimal txtIss;
private MyTextboxDecimal txtRoyaties;
private Image img;
private Timebox timeboxInicio;
private Timebox timeboxFim;
@ -210,15 +215,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Textbox txtNomeBanco;
private Textbox numtelefonodos;
private Textbox numtelefonouno;
private Checkbox checkRecibo;
private Checkbox checkTarifaReceita;
private Checkbox checkTaxaReceita;
private Checkbox checkSeguroReceita;
private Checkbox checkPedagioReceita;
private Checkbox checkTarifaDev;
private Checkbox checkTaxaDev;
private Checkbox checkSeguroDev;
private Checkbox checkPedagioDev;
private Checkbox checkInformatizada;
private Checkbox checkBilheteInfo;
private Checkbox checkVendaInternet;
@ -261,12 +257,30 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
ptovtaComissaoList.setItemRenderer(new RenderPtovtaComissao());
ptovtaComissaoList.addEventListener("onDoubleClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
PtovtaComissao ptovtaComissao = (PtovtaComissao) ptovtaComissaoList.getSelected();
abrirPtovtaComissao(ptovtaComissao);
}
});
try {
txtCP.setDisabled(true);
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
if (puntoVenta.getPuntoventaId() != null) {
puntoVenta = puntoVentaService.obtenerID(puntoVenta.getPuntoventaId());
lsEmpresaComissao = empresaService.buscarNotInPuntoVtaComissao(puntoVenta);
lsPtovtaComissao = ptovtaComissaoService.buscarByPuntaVenta(puntoVenta);
btnAdicionarEmpresaComissao.setDisabled(false);
ptovtaComissaoList.setData(lsPtovtaComissao);
if (puntoVenta.getColonia() != null) {
cmbCiudad.setText(puntoVenta.getColonia().getCiudad().getNombciudad());
cmbColonia.setText(puntoVenta.getColonia().getDesccolonia());
@ -301,125 +315,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
}
if (puntoVenta.getPuntoventaId() != null) {
if (puntoVenta.getComissaoId() != null) {
if (puntoVenta.getComissaoId().getExcessoAlta() != null) {
txtExcessoAlta.setText(puntoVenta.getComissaoId().getExcessoAlta().toString());
}
if (puntoVenta.getComissaoId().getExcessoBaixa() != null) {
txtExcessoBaixa.setText(puntoVenta.getComissaoId().getExcessoBaixa().toString());
}
if (puntoVenta.getComissaoId().getPassagemBaixa() != null) {
txtPassagemBaixa.setText(puntoVenta.getComissaoId().getPassagemBaixa().toString());
}
if (puntoVenta.getComissaoId().getPassagemAlta() != null) {
txtPassagemAlta.setText(puntoVenta.getComissaoId().getPassagemAlta().toString());
}
if (puntoVenta.getComissaoId().getSeguroBaixa() != null) {
txtSeguroBaixa.setText(puntoVenta.getComissaoId().getSeguroBaixa().toString());
}
if (puntoVenta.getComissaoId().getSeguroAlta() != null) {
txtSeguroAlta.setText(puntoVenta.getComissaoId().getSeguroAlta().toString());
}
if (puntoVenta.getComissaoId().getOutrosBaixa() != null) {
txtOutrosBaixa.setText(puntoVenta.getComissaoId().getOutrosBaixa().toString());
}
if (puntoVenta.getComissaoId().getOutrosAlta() != null) {
txtOutrosAlta.setText(puntoVenta.getComissaoId().getOutrosAlta().toString());
}
if (puntoVenta.getComissaoId().getIssretido() != null) {
txtIss.setText(puntoVenta.getComissaoId().getIssretido().toString());
}
if (puntoVenta.getComissaoId().getRoyalties() != null) {
txtRoyaties.setText(puntoVenta.getComissaoId().getRoyalties().toString());
}
if (puntoVenta.getComissaoId().getTarifaDev() != null) {
if (puntoVenta.getComissaoId().getTarifaDev()) {
checkTarifaDev.setChecked(true);
} else {
checkTarifaDev.setChecked(false);
}
}
if (puntoVenta.getComissaoId().getTaxaDev() != null) {
if (puntoVenta.getComissaoId().getTaxaDev()) {
checkTaxaDev.setChecked(true);
} else {
checkTaxaDev.setChecked(false);
}
}
if (puntoVenta.getComissaoId().getPegagioDev() != null) {
if (puntoVenta.getComissaoId().getPegagioDev()) {
checkPedagioDev.setChecked(true);
} else {
checkPedagioDev.setChecked(false);
}
}
if (puntoVenta.getComissaoId().getSeguroDev() != null) {
if (puntoVenta.getComissaoId().getSeguroDev()) {
checkSeguroDev.setChecked(true);
} else {
checkSeguroDev.setChecked(false);
}
}
if (puntoVenta.getComissaoId().getTarifaReceita() != null) {
if (puntoVenta.getComissaoId().getTarifaReceita()) {
checkTarifaReceita.setChecked(true);
} else {
checkTarifaReceita.setChecked(false);
}
}
if (puntoVenta.getComissaoId().getTaxaReceita() != null) {
if (puntoVenta.getComissaoId().getTaxaReceita()) {
checkTaxaReceita.setChecked(true);
} else {
checkTaxaReceita.setChecked(false);
}
}
if (puntoVenta.getComissaoId().getReceita() != null) {
if (puntoVenta.getComissaoId().getReceita().equals("RB")) {
cmbReceita.setSelectedIndex(0);
} else if (puntoVenta.getComissaoId().getReceita().equals("RL")) {
cmbReceita.setSelectedIndex(1);
}
}
if (puntoVenta.getComissaoId().getPedagioReceita() != null) {
if (puntoVenta.getComissaoId().getPedagioReceita()) {
checkPedagioReceita.setChecked(true);
} else {
checkPedagioReceita.setChecked(false);
}
}
if (puntoVenta.getComissaoId().getSeguroReceita() != null) {
if (puntoVenta.getComissaoId().getSeguroReceita()) {
checkSeguroReceita.setChecked(true);
} else {
checkSeguroReceita.setChecked(false);
}
}
} else {
puntoVenta.setComissaoId(new PtovtaComissao());
}
}
if (puntoVenta.getPuntoventaId() != null) {
if (puntoVenta.getAgenciaId() != null) {
@ -722,17 +617,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
txtTitularEmissor.getValue();
txtAntecipRetem.getValue();
txtAntecipPercentual.getValue();
txtPassagemBaixa.getValue();
txtPassagemAlta.getValue();
txtExcessoBaixa.getValue();
txtExcessoAlta.getValue();
txtSeguroBaixa.getValue();
txtSeguroAlta.getValue();
txtOutrosBaixa.getValue();
txtOutrosAlta.getValue();
txtIss.getValue();
txtRoyaties.getValue();
txtcodAg.getValue();
txtResponAluguel.getValue();
txtResponTel.getValue();
txtResponEnergia.getValue();
@ -750,8 +635,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
cmbTipoConta.getValue();
cmbPosicao.getValue();
//checar uma forma onde o proprio componente coloque como null o atributo
if (cmbPuntoVentaPadre.getSelectedItem() == null){
// checar uma forma onde o proprio componente coloque como null o atributo
if (cmbPuntoVentaPadre.getSelectedItem() == null) {
puntoVenta.setPuntoVentaPadre(null);
}
List<PuntoVenta> lsPuntoVenta = puntoVentaService.buscaPuntoVenta(txtNumPtoVta.getValue());
@ -871,37 +756,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
puntoVenta.getTitularId().setFecmodif(Calendar.getInstance().getTime());
}
if ((txtIss.getValue().equals("")) && (txtRoyaties.getValue().equals("")) && (txtExcessoAlta.getValue().equals(""))
&& (txtExcessoBaixa.getValue().equals("")) && (txtPassagemBaixa.getValue().equals(""))
&& (txtPassagemAlta.getValue().equals("")) && (txtSeguroBaixa.getValue().equals(""))) {
puntoVenta.setComissaoId(null);
} else {
if (cmbReceita.getSelectedItem() != null) {
puntoVenta.getComissaoId().setReceita((String) cmbReceita.getSelectedItem().getValue());
}
puntoVenta.getComissaoId().setEnviarrecibo(checkRecibo.isChecked());
puntoVenta.getComissaoId().setTarifaReceita(checkTarifaReceita.isChecked());
puntoVenta.getComissaoId().setTaxaReceita(checkTaxaReceita.isChecked());
puntoVenta.getComissaoId().setSeguroReceita(checkSeguroReceita.isChecked());
puntoVenta.getComissaoId().setPedagioReceita(checkPedagioReceita.isChecked());
puntoVenta.getComissaoId().setTarifaDev(checkTarifaDev.isChecked());
puntoVenta.getComissaoId().setTaxaDev(checkTaxaDev.isChecked());
puntoVenta.getComissaoId().setSeguroDev(checkSeguroDev.isChecked());
puntoVenta.getComissaoId().setPegagioDev(checkPedagioDev.isChecked());
puntoVenta.getComissaoId().setExcessoAlta(txtExcessoAlta.getValueDecimal());
puntoVenta.getComissaoId().setExcessoBaixa(txtExcessoBaixa.getValueDecimal());
puntoVenta.getComissaoId().setPassagemBaixa(txtPassagemBaixa.getValueDecimal());
puntoVenta.getComissaoId().setPassagemAlta(txtPassagemAlta.getValueDecimal());
puntoVenta.getComissaoId().setSeguroBaixa(txtSeguroBaixa.getValueDecimal());
puntoVenta.getComissaoId().setSeguroAlta(txtSeguroAlta.getValueDecimal());
puntoVenta.getComissaoId().setOutrosBaixa(txtOutrosBaixa.getValueDecimal());
puntoVenta.getComissaoId().setOutrosAlta(txtOutrosAlta.getValueDecimal());
puntoVenta.getComissaoId().setIssretido(txtIss.getValueDecimal());
puntoVenta.getComissaoId().setRoyalties(txtRoyaties.getValueDecimal());
puntoVenta.getComissaoId().setActivo(Boolean.TRUE);
puntoVenta.getComissaoId().setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
puntoVenta.getComissaoId().setFecmodif(Calendar.getInstance().getTime());
}
if ((txtResponAluguel.getValue().equals("") && (txtResponTel.getValue().equals("")))) {
puntoVenta.setDiversosId(null);
@ -1431,6 +1285,39 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
}
public void onClick$btnAdicionarEmpresaComissao(Event ev) throws InterruptedException {
if (cmbEmpresaComissao.getSelectedItem() == null) {
Messagebox.show(
Labels.getLabel("MSG.Error.combobox"),
Labels.getLabel("editarPricingController.windowMarca.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
return;
}
Empresa empresa = (Empresa) cmbEmpresaComissao.getSelectedItem().getValue();
PtovtaComissao ptovtaComissao = new PtovtaComissao();
ptovtaComissao.setEmpresaId(empresa);
ptovtaComissao.setPuntoventaId(this.puntoVenta);
ptovtaComissaoService.suscribir(ptovtaComissao);
lsPtovtaComissao.add(ptovtaComissao);
List<PtovtaComissao> lsPtovtaComissaoAtivo = new ArrayList<PtovtaComissao>();
for (PtovtaComissao rc : lsPtovtaComissao) {
if (rc.getActivo()) {
lsPtovtaComissaoAtivo.add(rc);
}
}
ptovtaComissaoList.setData(lsPtovtaComissaoAtivo);
cmbEmpresaComissao.getSelectedItem().setVisible(false);
abrirPtovtaComissao(ptovtaComissao);
}
public PuntoVenta getPuntoVenta() {
return puntoVenta;
}
@ -1828,85 +1715,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
this.lsParamRecoleccion = lsParamRecoleccion;
}
public MyTextboxDecimal getTxtPassagemBaixa() {
return txtPassagemBaixa;
}
public void setTxtPassagemBaixa(MyTextboxDecimal txtPassagemBaixa) {
this.txtPassagemBaixa = txtPassagemBaixa;
}
public MyTextboxDecimal getTxtPassagemAlta() {
return txtPassagemAlta;
}
public void setTxtPassagemAlta(MyTextboxDecimal txtPassagemAlta) {
this.txtPassagemAlta = txtPassagemAlta;
}
public MyTextboxDecimal getTxtExcessoBaixa() {
return txtExcessoBaixa;
}
public void setTxtExcessoBaixa(MyTextboxDecimal txtExcessoBaixa) {
this.txtExcessoBaixa = txtExcessoBaixa;
}
public MyTextboxDecimal getTxtExcessoAlta() {
return txtExcessoAlta;
}
public void setTxtExcessoAlta(MyTextboxDecimal txtExcessoAlta) {
this.txtExcessoAlta = txtExcessoAlta;
}
public MyTextboxDecimal getTxtSeguroBaixa() {
return txtSeguroBaixa;
}
public void setTxtSeguroBaixa(MyTextboxDecimal txtSeguroBaixa) {
this.txtSeguroBaixa = txtSeguroBaixa;
}
public MyTextboxDecimal getTxtSeguroAlta() {
return txtSeguroAlta;
}
public void setTxtSeguroAlta(MyTextboxDecimal txtSeguroAlta) {
this.txtSeguroAlta = txtSeguroAlta;
}
public MyTextboxDecimal getTxtOutrosBaixa() {
return txtOutrosBaixa;
}
public void setTxtOutrosBaixa(MyTextboxDecimal txtOutrosBaixa) {
this.txtOutrosBaixa = txtOutrosBaixa;
}
public MyTextboxDecimal getTxtOutrosAlta() {
return txtOutrosAlta;
}
public void setTxtOutrosAlta(MyTextboxDecimal txtOutrosAlta) {
this.txtOutrosAlta = txtOutrosAlta;
}
public MyTextboxDecimal getTxtIss() {
return txtIss;
}
public void setTxtIss(MyTextboxDecimal txtIss) {
this.txtIss = txtIss;
}
public MyTextboxDecimal getTxtRoyaties() {
return txtRoyaties;
}
public void setTxtRoyaties(MyTextboxDecimal txtRoyaties) {
this.txtRoyaties = txtRoyaties;
}
public Intbox getTxtQuant() {
return txtQuant;
@ -2068,6 +1876,30 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
this.ptovtaUsuarioBancarioList = ptovtaUsuarioBancarioList;
}
public List<Empresa> getLsEmpresaComissao() {
return lsEmpresaComissao;
}
public void setLsEmpresaComissao(List<Empresa> lsEmpresaComissao) {
this.lsEmpresaComissao = lsEmpresaComissao;
}
public Combobox getCmbEmpresaComissao() {
return cmbEmpresaComissao;
}
public void setCmbEmpresaComissao(Combobox cmbEmpresaComissao) {
this.cmbEmpresaComissao = cmbEmpresaComissao;
}
public Button getBtnAdicionarEmpresaComissao() {
return btnAdicionarEmpresaComissao;
}
public void setBtnAdicionarEmpresaComissao(Button btnAdicionarEmpresaComissao) {
this.btnAdicionarEmpresaComissao = btnAdicionarEmpresaComissao;
}
public void onChange$cmbPuntoVentaPadre(Event ev) throws InterruptedException {
if (puntoVenta.getPuntoventaId() != null) {
List<PuntoVenta> lsPuntosSubordinados = puntoVentaService.buscarPuntoVentaSubordinados(puntoVenta);
@ -2088,4 +1920,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
}
}
public void abrirPtovtaComissao(PtovtaComissao ptovtaComissao) {
Map args = new HashMap();
args.put("ptovtaComissao", ptovtaComissao);
args.put("ptovtaComissaoList", ptovtaComissaoList);
openWindow("/gui/catalogos/editarPuntoVentaComissao.zul",
Labels.getLabel("ededitarPuntoVentaComissaoController.window.title"), args, MODAL);
}
}

View File

@ -4,7 +4,6 @@
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
@ -17,6 +16,7 @@ import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Div;
import org.zkoss.zul.Filedownload;
import org.zkoss.zul.Iframe;
import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Toolbarbutton;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.SaidaRelatorio;
@ -30,32 +30,29 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@Scope("prototype")
public class RelatorioController extends MyGenericForwardComposer {
private Div divResultadoRelatorio;
private Iframe iframeRelatorio;
private Toolbarbutton btnSalvarPDF;
private Toolbarbutton btnSalvarXLS;
private AMedia conteudoRelatorioPDF;
private AMedia conteudoRelatorioXLS;
private Relatorio relatorio;
/**
private Iframe iframeRelatorio;
private Toolbarbutton btnSalvarPDF;
private Toolbarbutton btnSalvarXLS;
private AMedia conteudoRelatorioPDF;
private AMedia conteudoRelatorioXLS;
private Relatorio relatorio;
/**
* @return the btnSalvarPDF
*/
public Toolbarbutton getBtnSalvarPDF() {
return btnSalvarPDF;
}
/**
* @param btnSalvarPDF the btnSalvarPDF to set
* @param btnSalvarPDF
* the btnSalvarPDF to set
*/
public void setBtnSalvarPDF(Toolbarbutton btnSalvarPDF) {
this.btnSalvarPDF = btnSalvarPDF;
}
/**
* @return the btnSalvarXLS
*/
@ -63,70 +60,58 @@ public class RelatorioController extends MyGenericForwardComposer {
return btnSalvarXLS;
}
/**
* @param btnSalvarXLS the btnSalvarXLS to set
* @param btnSalvarXLS
* the btnSalvarXLS to set
*/
public void setBtnSalvarXLS(Toolbarbutton btnSalvarXLS) {
this.btnSalvarXLS = btnSalvarXLS;
}
public Iframe getIframeRelatorio() {
return iframeRelatorio;
}
public void setIframeRelatorio(Iframe iframeRelatorio) {
this.iframeRelatorio = iframeRelatorio;
}
public Div getDivResultadoRelatorio() {
return divResultadoRelatorio;
}
public void setDivResultadoRelatorio(Div divResultadoRelatorio) {
this.divResultadoRelatorio = divResultadoRelatorio;
}
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
this.relatorio = (Relatorio) Executions.getCurrent().getArg().get("relatorio");
if (relatorio.getInfoMsg().size() > 0)
{
String msg = "";
for (String msgItem : relatorio.getInfoMsg())
msg = msg.concat(msgItem+"\n");
Messagebox.show(
msg, "",
Messagebox.OK, Messagebox.INFORMATION);
}
super.doAfterCompose(comp);
final InputStream mediais = new ByteArrayInputStream(this.relatorio.getConteudo(SaidaRelatorio.PDF));
conteudoRelatorioPDF = new AMedia("relatorio.pdf", "pdf", null, mediais);
iframeRelatorio.setContent(conteudoRelatorioPDF);
}
public void onClick$btnSalvarPDF(Event ev) {
Filedownload.save(conteudoRelatorioPDF.getStreamData(), "application/pdf", "relatorio.pdf");
public void onClick$btnSalvarPDF(Event ev) {
Filedownload.save(conteudoRelatorioPDF.getStreamData(), "application/pdf", "relatorio.pdf");
}
public void onClick$btnSalvarXLS(Event ev) throws Exception {
public void onClick$btnSalvarXLS(Event ev) throws Exception {
final InputStream mediais = new ByteArrayInputStream(this.relatorio.getConteudo(SaidaRelatorio.XLS));
conteudoRelatorioXLS = new AMedia("relatorio.xls", "xls", null, mediais);
Filedownload.save(conteudoRelatorioXLS.getStreamData(), "application/xls", "relatorio.xls");
Filedownload.save(conteudoRelatorioXLS.getStreamData(), "application/xls", "relatorio.xls");
}
}

View File

@ -5,6 +5,7 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -16,19 +17,28 @@ import org.zkoss.util.resource.Labels;
import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Bandbox;
import org.zkoss.zul.Button;
import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Radio;
import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioReceitaDiariaAgencia;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
@ -47,12 +57,19 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
@Autowired
private EstadoService estadoService;
@Autowired
private EmpresaService empresaService;
@Autowired
private PuntoVentaService puntoVentaService;
@Autowired
private TipoPuntoVentaService tipoPuntoVentaService;
@Autowired
private DataSource dataSource;
private List<Estado> lsEstado;
private ArrayList<PuntoVenta> lsNumPuntoVenta = new ArrayList<PuntoVenta>();
private List<Estado> lsEstado;
private List<Empresa> lsEmpresa;
private List<TipoPuntoVenta> lsTipoPuntoVenta;
private List<PuntoVenta> lsNumPuntoVenta;
@Autowired
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
@ -64,10 +81,15 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
private Textbox txtPalavraPesquisa;
private Combobox cmbEstado;
private Combobox cmbEmpresa;
private Combobox cmbPuntoVenta;
private Combobox cmbTipoPuntoVenta;
private Datebox datInicial;
private Datebox datFinal;
private Checkbox chkExcessoBagagem;
private Checkbox chkContemplarGap;
private Radio rd1;
public Datebox getDatInicial() {
return datInicial;
@ -157,31 +179,44 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
this.puntoVentaSelList = puntoVentaSelList;
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public List<TipoPuntoVenta> getLsTipoPuntoVenta() {
return lsTipoPuntoVenta;
}
public void setLsTipoPuntoVenta(List<TipoPuntoVenta> lsTipoPuntoVenta) {
this.lsTipoPuntoVenta = lsTipoPuntoVenta;
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
public void onDoubleClick$puntoVentaList(Event ev) {
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaList.getSelected();
Boolean bExiste = false;
puntoVentaSelList.addItemNovo(puntoVentaSel);
}
for (PuntoVenta objPuntoVenta : lsNumPuntoVenta) {
if (objPuntoVenta.equals(puntoVentaSel))
bExiste = true;
}
public void onDoubleClick$puntoVentaSelList(Event ev) {
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaSelList.getSelected();
puntoVentaSelList.removeItem(puntoVentaSel);
if (!bExiste) {
lsNumPuntoVenta.add(puntoVentaSel);
puntoVentaSelList.setData(lsNumPuntoVenta);
}
}
public void onSelect$puntoVentaList(Event ev) {
}
public void onClick$btnLimpar(Event ev) {
@ -196,8 +231,7 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
*
*/
private void limparPesquisaAgencia() {
lsNumPuntoVenta.clear();
puntoVentaSelList.setData(lsNumPuntoVenta);
puntoVentaSelList.setData(new ArrayList<Object>());
}
@ -238,8 +272,14 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) this.datInicial.getValue()).getTime()));
parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) this.datFinal.getValue()).getTime()));
parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked());
parametros.put("B_CONTEMPLAR_GAP", chkExcessoBagagem.isChecked());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"));
parametros.put("ISDEVOLUCAODESTINO", rd1.isChecked() ? 0 : 1);
lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
if (lsNumPuntoVenta.size() > 0) {
parametros.put("NUMPUNTOVENTA", lsNumPuntoVenta);
parametros.put("ISNUMPUNTOVENTATODOS", "N");
@ -253,6 +293,19 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
parametros.put("ESTADO_ID", estado.getEstadoId());
}
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
parametros.put("EMPRESA_NOME", empresa.getNombempresa());
}
Comboitem itemTipoPunto = cmbTipoPuntoVenta.getSelectedItem();
if (itemTipoPunto != null) {
TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) itemTipoPunto.getValue();
parametros.put("TIPOPTOVTA_ID", tipoPuntoVenta.getTipoptovtaId().intValue());
}
Relatorio relatorio = new RelatorioReceitaDiariaAgencia(parametros, dataSource.getConnection());
Map args = new HashMap();
@ -266,11 +319,16 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEstado = estadoService.obtenerTodos();
lsEmpresa = empresaService.obtenerTodos();
setLsTipoPuntoVenta(tipoPuntoVentaService.obtenerTodos());
super.doAfterCompose(comp);
puntoVentaList.setItemRenderer(new RenderPuntoVentaSimple());
puntoVentaSelList.setItemRenderer(new RenderPuntoVentaSimple());
}
}

View File

@ -0,0 +1,136 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Radio;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhas;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnalitico;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
/**
*
* @author Administrador
*/
@Controller("relatorioResumoLinhasController")
@Scope("prototype")
public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
@Autowired
private DataSource dataSource;
@Autowired
private EmpresaService empresaService;
@Autowired
private RutaService rutaService;
private List<Ruta> lsRuta;
private List<Empresa> lsEmpresa;
private Datebox fecCorridaIni;
private Datebox fecCorridaFin;
private MyComboboxEstandar cmbRuta;
private MyComboboxEstandar cmbEmpresa;
private Radio rd1;
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
/**
* @throws Exception
*
*/
private void executarRelatorio() throws Exception {
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
parametros.put("DATA_INICIAL", (java.util.Date) this.fecCorridaIni.getValue());
parametros.put("DATA_FINAL", (java.util.Date) this.fecCorridaFin.getValue());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title"));
Comboitem itemRuta = cmbRuta.getSelectedItem();
if (itemRuta != null) {
Ruta ruta = (Ruta) itemRuta.getValue();
parametros.put("RUTA_ID", ruta.getRutaId());
}
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
parametros.put("EMPRESA", empresa.getNombempresa());
}
if (rd1.isChecked())
relatorio = new RelatorioResumoLinhas(parametros, dataSource.getConnection());
else
relatorio = new RelatorioResumoLinhasAnalitico(parametros, dataSource.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioResumoLinhasController.window.title"), args, MODAL);
}
@Override
public void doAfterCompose(Component comp) throws Exception {
setLsRuta(rutaService.obtenerTodos());
lsEmpresa = empresaService.obtenerTodos();
super.doAfterCompose(comp);
}
public List<Ruta> getLsRuta() {
return lsRuta;
}
public void setLsRuta(List<Ruta> lsRuta) {
this.lsRuta = lsRuta;
}
public MyComboboxEstandar getCmbRuta() {
return cmbRuta;
}
public void setCmbRuta(MyComboboxEstandar cmbRuta) {
this.cmbRuta = cmbRuta;
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
}

View File

@ -26,7 +26,7 @@ public class StringPercentToDecimalConverter implements TypeConverter {
if (format == null) {
format = FORMAT;
}
DecimalFormat df = new DecimalFormat(format, new java.text.DecimalFormatSymbols(new Locale("us")));
DecimalFormat df = new DecimalFormat(format, new java.text.DecimalFormatSymbols(new Locale("pt", "BR")));
return df.format(val);
}
return null;
@ -39,7 +39,7 @@ public class StringPercentToDecimalConverter implements TypeConverter {
if (val instanceof String) {
return (val.toString().trim().isEmpty()) ? (BigDecimal) null : new BigDecimal(val.toString().replace(",", ""));
return (val.toString().trim().isEmpty()) ? (BigDecimal) null : new BigDecimal(val.toString().replace(".", "").replace(",", "."));
}
return null;
}

View File

@ -0,0 +1,26 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuGrupoRuta extends DefaultItemMenuSistema {
public ItemMenuGrupoRuta() {
super("indexController.mniGrupoRuta.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.GRUPORUTA";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/catalogos/busquedaGrupoRuta.zul",
Labels.getLabel("busquedaGrupoRutaController.window.title"), null,desktop);
}
}

View File

@ -0,0 +1,24 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuImportarClientes extends DefaultItemMenuSistema {
public ItemMenuImportarClientes() {
super("indexController.mniImportarClientes.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CONFIGURACIONECCOMERCIALES.MENU.IMPORTARCLIENTES";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/configuraciones_comerciales/importarClientes.zul",
Labels.getLabel("importarClientesController.window.title"), null, desktop);
}
}

View File

@ -0,0 +1,25 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuRelatorioResumoLinhas extends DefaultItemMenuSistema {
public ItemMenuRelatorioResumoLinhas() {
super("indexController.mniRelatorioResumoLinhas.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIORESUMOLINHAS";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioResumoLinhas.zul",
Labels.getLabel("relatorioResumoLinhasController.window.title"), null,desktop);
}
}

View File

@ -1,76 +1,66 @@
catalogos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.MenuCatalogos
catalogos.articulos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuArticulo
catalogos.tipoCorte=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuTipoCorte
catalogos.claseServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuClaseServicio
catalogos.categoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCategoria
catalogos.estado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuEstado
catalogos.ciudad=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCiudad
catalogos.colonia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuColonia
catalogos.cuponConvenio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCuponConvenio
catalogos.empresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuEmpresa
catalogos.formaPago=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuFormaPago
catalogos.grupoRuta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuGrupoRuta
catalogos.marcas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuMarcas
catalogos.monedas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuMoneda
catalogos.pais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuPais
catalogos.plaza=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuPlaza
catalogos.productoServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuProductoServicio
catalogos.tipoConvenio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuTipoConvenio
catalogos.tipoPuntoVenta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuTipoPuntoVenta
catalogos.tipoServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuTipoServicio
catalogos.associacioClaseServicioMarca=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuAssociacionClaseServicioMarca
catalogos.tipoVenta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuTipoVenta
catalogos.orgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuOrgaoConcedente
catalogos.puntoVenta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuPuntoVenta
catalogos.coeficientetarifa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCoeficienteTarifa
catalogos.turno=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuTurno
confComerciales=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.MenuConfiguracionesComerciales
confComerciales.secretaria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuSecretaria
confComerciales.convenio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConvenio
confComerciales.tipoCambioCiudad=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuTipoCambioCiudad
confComerciales.comisionistaExterno=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuComisionistaExterno
confComerciales.motivoCancelacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuMotivoCancelacion
confComerciales.configuracionCancelacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionCancelacion
confComerciales.configuracionCategorias=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionCategorias
confComerciales.configuracionGeneral=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionGeneral
confComerciales.configuracionReservacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionReservacion
confComerciales.restriccionFormaPago=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuRestriccionFormaPago
confComerciales.configuracionServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionServicio
confComerciales.configuracionAlerta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionAlerta
confComerciales.motivoCancelacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuMotivoCancelacion
confComerciales.motivoReimpresion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuMotivoReimpresion
confComerciales.periodoVacacional=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuPeriodoVacacional
confComerciales.configlayoutimpressaoboleto=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfigLayoutImpressaoBoleto
confComerciales.excepcionRedondeo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuExcepcionRedondeo
cortesias=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.MenuCortesias
cortesias.grupoCortesia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuGrupoCortesia
cortesias.tipoCortesia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesia
cortesias.tipoCortesiaDescuento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesiaDescuento
cortesias.cortesiaDireccion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuCortesiaDireccion
cortesias.altaCortesiaRH=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuAltaCortesiaRH
confComerciales.configuracionGeneral=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionGeneral
confComerciales.configuracionFeriado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuConfiguracionFeriado
confComerciales.tarjetacredito=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuTarjetaCredito
esquemaOperacional=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.MenuEsquemaOperacional
esquemaOperacional.tipoParadas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuTipoParadas
esquemaOperacional.paradas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuEsquemaOperacionalParadas
esquemaOperacional.aliasservico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuAliasServico
esquemaOperacional.autobus=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuAutobus
esquemaOperacional.diagramaAutobus=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuDiagramaAutobus
esquemaOperacional.via=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuVia
esquemaOperacional.rolOperativo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuRolOperativo
esquemaOperacional.generacionAutomaticaTramoRuta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuGeneracionAutomaticaTramoRuta
esquemaOperacional.via=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuVia
esquemaOperacional.tramo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuTramo
esquemaOperacional.tramoKmServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuTramoKmServicio
esquemaOperacional.ruta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuEsquemaOperacionalRuta
esquemaOperacional.corrida=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuCorrida
esquemaOperacional.rolOperativo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuRolOperativo
esquemaOperacional.paramConexion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuParamConexion
esquemaOperacional.conexion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuConexion
esquemaOperacional.generacionCorrida=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuGeneracionCorrida
pricing=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.MenuPricing
pricing.general=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricing
pricing.especifico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricingEspecifico
esquemaOperacional.confrestricaocanalventa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemMenuConfRestricaoCanalVenta
esquemaOperacional.selecionarservicosgerar=com.rjconsultores.ventaboletos.web.utilerias.menu.item.esquemaoperacional.ItemSelecionarServicosGerar
tarifasOficial=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.MenuTarifasOficial
tarifasOficial.seguroKm=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuSeguroKm
tarifasOficial.seguroTarifa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuSeguroTarifa
tarifasOficial.taxaEmbarqueKm=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuTarifasTaxaEmbarqueKm
tarifasOficial.taxaEmbarqueParada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuTarifasTaxaEmbarqueParada
tarifasOficial.generarTarifasOrgao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuGenerarTarifasOrgao
tarifasOficial.copiarTarifaOficial=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuCopiarTarifaOficial
tarifasOficial.tarifaOficialExcel=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuTarifaOficialExcel
tarifasOficial.tarifaOficial=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial.ItemMenuTarifasOficial
tarifas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.MenuTarifas
tarifas.copiarTarifaOficial=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuCopiarTarifaOficial
tarifas.redondeo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuRedondeo
tarifas.vigenciaTarifa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuVigenciaTarifa
tarifas.tarifasMinimas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifasMinimas
tarifas.cambioVigencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuCambioVigencia
@ -78,37 +68,27 @@ tarifas.mercadoCompetido=com.rjconsultores.ventaboletos.web.utilerias.menu.item.
tarifas.modificacionMasiva=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuModificacionMasiva
tarifas.tarifas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifas
tarifas.tarifaEscala=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuTarifaEscala
pasajeroFrecuente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.MenuPasajeroFrecuente
pasajeroFrecuente.tipoDomicilio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuTipoDomicilio
pasajeroFrecuente.tipoOcupacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuTipoOcupacion
pasajeroFrecuente.tipoMovimiento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuTipoMovimiento
pasajeroFrecuente.paramAcumulacionMasivo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuParamAcumulacionMasivo
pasajeroFrecuente.acumulacionPorVenta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuAcumulacionPorVenta
pasajeroFrecuente.canjePuntos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuCanjePuntos
pasajeroFrecuente.paramCompraPuntos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuParamCompraPuntos
pasajeroFrecuente.paramCostoTarjeta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuParamCostoTarjeta
pasajeroFrecuente.generacionTarjeta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuGeneracionTarjeta
pricing=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.MenuPricing
pricing.general=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricing
pricing.especifico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricingEspecifico
cortesias=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.MenuCortesias
cortesias.grupoCortesia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuGrupoCortesia
cortesias.tipoCortesia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesia
cortesias.tipoCortesiaDescuento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuTipoCortesiaDescuento
cortesias.cortesiaDireccion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.cortesias.ItemMenuCortesiaDireccion
ingresosExtras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.MenuIngreso
ingresosExtras.ingreso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.ItemMenuIngreso
seguridad=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.MenuSeguridad
seguridad.companiaBancaria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuCompaniaBancaria
seguridad.estacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuEstacion
seguridad.autorizacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuAutorizacion
seguridad.perfil=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuPerfil
seguridad.autorizacionPerfil=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuAutorizacionPerfil
seguridad.usuario=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuUsuario
equivalencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.equivalencia.MenuEquivalencia
equivalencia.parada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.equivalencia.ItemMenuParadaEquivalencia
equivalencia.empresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.equivalencia.ItemMenuEmpresaEquivalencia
equivalencia.claseServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.equivalencia.ItemMenuClaseServicioEquivalencia
equivalencia.motivoCancelacion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.equivalencia.ItemMenuMotivoCancelacionEquivalencia
ingresosExtras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.MenuIngreso
ingresosExtras.bancos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.ItemMenuBancos
ingresosExtras.ingreso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.ItemMenuIngreso
informes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.informes.MenuInformes
informes.pasajeroServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.informes.ItemMenuPasajeroServicio
informes.servicioDiario=com.rjconsultores.ventaboletos.web.utilerias.menu.item.informes.ItemMenuServicioDiario
informes.categoriaVenta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.informes.ItemMenuCategoriaVenta
informes.ventasPuntoVenta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.informes.ItemMenuVentasPuntoVenta
ayuda=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.MenuAyuda
ayuda.version=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.ItemMenuVersion
relatorios=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.MenuRelatorios
pasajerofrecuente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.MenuPasajeroFrecuente
pasajerofrecuente.cliente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuCliente
pasatorios=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.MenuRelatorios
relatorios.relatorioAproveitamento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamento
relatorios.relatorioReceitaDiariaAgencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioReceitaDiariaAgencia
relatorios.relatorioResumoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoLinhas
ayuda=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.MenuAyuda
ayuda.version=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.ItemMenuVersion

View File

@ -0,0 +1,30 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
/**
*
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
*
*/
public class RenderGrupoRuta implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
GrupoRuta grupoRuta = (GrupoRuta) o;
Listcell lc = new Listcell(grupoRuta.getGrupoRutaId().toString());
lc.setParent(lstm);
lc = new Listcell(grupoRuta.getDescGrupo());
lc.setParent(lstm);
lstm.setAttribute("data", grupoRuta);
}
}

View File

@ -0,0 +1,29 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.EmpresaImposto;
import com.rjconsultores.ventaboletos.entidad.PtovtaComissao;
/**
*
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
*
*/
public class RenderPtovtaComissao implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
PtovtaComissao ptovtaComissao = (PtovtaComissao) o;
Listcell lc = new Listcell(ptovtaComissao.getEmpresaId().getNombempresa());
lc.setParent(lstm);
lstm.setAttribute("data", ptovtaComissao);
}
}

View File

@ -4,12 +4,17 @@
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Button;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.EmpresaImposto;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
/**
*
@ -27,7 +32,28 @@ public class RenderPuntoVentaSimple implements ListitemRenderer {
lc = new Listcell(puntoVenta.getNombpuntoventa());
lc.setParent(lstm);
Button btn = new Button();
lc = new Listcell();
lc.setParent(lstm);
btn.setWidth("16");
btn.setHeight("16");
btn.setImage("/gui/img/remove.png");
btn.addEventListener("onClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
MyListbox listBox = (MyListbox)event.getTarget().getParent().getParent().getParent();
Listitem listItem = (Listitem)event.getTarget().getParent().getParent();
listBox.removeItem((PuntoVenta) listItem.getAttribute("data"));
}
});
lc.appendChild(btn);
lstm.setAttribute("data", puntoVenta);
}
}

View File

@ -119,6 +119,7 @@
<value>com.rjconsultores.ventaboletos.entidad.FormaPago</value>
<value>com.rjconsultores.ventaboletos.entidad.FormaPagoDet</value>
<value>com.rjconsultores.ventaboletos.entidad.GrupoCortesia</value>
<value>com.rjconsultores.ventaboletos.entidad.GrupoRuta</value>
<value>com.rjconsultores.ventaboletos.entidad.FuncionSistema</value>
<value>com.rjconsultores.ventaboletos.entidad.Marca</value>
<value>com.rjconsultores.ventaboletos.entidad.MercadoCompetido

View File

@ -95,6 +95,7 @@ indexController.mniMarcas.label = Marcas
indexController.mniMoneda.label = Moeda
indexController.mniPlaza.label = Praça
indexController.mniClaseServicio.label = Tipo de Classe
indexController.mniGrupoRuta.label = Grupo de Linha
indexController.mniCorrida.label = Configuração de Serviços
indexController.mniConexion.label = Conexões
indexController.mniParamConexion.label = Parâmetros de Conexão
@ -216,6 +217,7 @@ indexController.mniRelatorioReceitaDiariaAgencia.label = Relatório de Receita D
indexController.mniRelatorioLinhaOperacional.label = Relatório de Linha Operacional
indexController.mniRelatorioTrechoVendido.label = Relatório de Trecho Vendido Por Agência
indexController.mniRelatorioPassageirosViajar.label = Passageiros a Viajar
indexController.mniRelatorioResumoLinhas.label = Relatório Resumo de Linhas
#PARTE REALIZADA POR MANUEL
indexController.mnCortesias.label = Cortesias Para Funcionários
@ -239,8 +241,37 @@ busquedaClaseServicioController.btnPesquisa.label = Pesquisa
busquedaClaseServicioController.lhDesc.label = Descrição
busquedaClaseServicioController.lhId.label = ID
# Grupo Ruta
busquedaGrupoRutaController.window.title = Grupo de Linha
busquedaGrupoRutaController.btnRefresh.tooltiptext = Atualizar
busquedaGrupoRutaController.btnNovo.tooltiptext = Incluir
busquedaGrupoRutaController.btnCerrar.tooltiptext = Fechar
busquedaGrupoRutaController.btnPesquisa.label = Pesquisa
busquedaGrupoRutaController.lhDesc.label = Descrição
busquedaGrupoRutaController.lhId.label = ID
editarGrupoRutaController.window.title = Grupo de Linha
editarGrupoRutaController.btnApagar.tooltiptext = Eliminar
editarGrupoRutaController.btnSalvar.tooltiptext = Salvar
editarGrupoRutaController.btnFechar.tooltiptext = Fechar
editarGrupoRutaController.lbNome.value = Grupo de Linha
editarGrupoRutaController.MSG.suscribirOK = Grupo de linha registrado com sucesso.
editarGrupoRutaController.MSG.borrarPergunta = Deseja eliminar grupo de linha?
editarGrupoRutaController.MSG.borrarOK = Grupo de linha excluido com sucesso.
#Relatórios
#Resumo de linhas
relatorioResumoLinhasController.window.title = Relatório Resumo de Linhas
relatorioResumoLinhasController.lbRuta.value = Linha
relatorioResumoLinhasController.lbFecCorrida.value = Período de Viagem
relatorioResumoLinhasController.lbEmpresa.value = Empresa
relatorioResumoLinhasController.lbConexao.value = Conexão
relatorioResumoLinhasController.lbLote.value = Lote
#Aproveitamento
relatorioAproveitamentoController.window.title = Relatório de Aproveitamento
relatorioAproveitamentoController.lbFecCorrida.value = Data Serviço
@ -274,7 +305,15 @@ relatorioReceitaDiariaAgenciaController.lbEstado.value = Estado
relatorioReceitaDiariaAgenciaController.lbPuntoVenta.value = Agência
relatorioReceitaDiariaAgenciaController.btnPesquisa.label = Pesquisar
relatorioReceitaDiariaAgenciaController.btnLimpar.label = Limpar Seleção
relatorioReceitaDiariaAgenciaController.puntoVentaSelList.codigo = Código
relatorioReceitaDiariaAgenciaController.puntoVentaSelList.nome = Nome
relatorioReceitaDiariaAgenciaController.chkExcessoBagagem.label = Excluso Excesso de Bagagem
relatorioReceitaDiariaAgenciaController.chkContemplarGap.label = Contemplar GAP
relatorioReceitaDiariaAgenciaController.lbEmpresa.value = Empresa
relatorioReceitaDiariaAgenciaController.lbTipoPuntoVenta.value = Tipo Agência
relatorioReceitaDiariaAgenciaController.lbDevolucao.value = Devolução baseadas na ag. de
relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd1.label = Origem
relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd2.label = Destino
# Pantalla Editar Classe
editarClaseServicioController.window.title = Tipo de Classe
@ -645,6 +684,12 @@ editarPuntoVentaController.registroNumPtoVtaExiste = Já existe uma agência com
editarPuntoVentaController.lbStock.value = Estoque
editarPuntoVentaController.lbCheckStock.value = Validar Estoque
# Editar comissão ponto de venda
editarPuntoVentaComissaoController.window.title = Comissão Empresa/Ponto de Venda
editarPuntoVentaComissaoController.MSG.suscribirOK = Comissão da Empresa/Ponto de Venda registrada com cucesso.
editarPuntoVentaComissaoController.MSG.borrarPergunta = Deseja eliminar esta Comissão da Empresa/Ponto de Venda?
editarPuntoVentaComissaoController.MSG.borrarOK = Comissão da Empresa/Ponto de Venda excluida com sucesso.
# Muestra o TipoVenta Pesquisa
busquedaTipoVentaController.window.title = Modalidade de Venda
busquedaTipoVentaController.btnRefresh.tooltiptext = Atualizar
@ -4217,6 +4262,7 @@ editarClienteController.lbTipoDomicilio.value = Tipo Domícílio
editarClienteController.lbCP.value = CEP
editarClienteController.msg.clienteimportacao = Cliente inserido por importação de arquivo poderá somente ser visualizado.
# BusquedaConfigFeriado
busquedaConfigFeriadoController.window.title = Configuração de Feriado
busquedaConfigFeriadoController.btnRefresh.tooltiptext = Atualizar

View File

@ -6,7 +6,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winRelatorioView" apply="${relatorioController}"
contentStyle="overflow:auto" height="650px" width="750px" border="normal" >
contentStyle="overflow:auto" height="768px" width="980px" border="normal" maximizable="true" >
<div id="divResultadoRelatorio">
<toolbar>
@ -20,7 +20,7 @@
</toolbar>
<separator bar="true" height="20px"/>
<iframe id="iframeRelatorio" width="100%" height="550px" style="border: 1px solid gray" />
<iframe id="iframeRelatorio" width="100%" height="748px" style="border: 1px solid gray" />
</div>

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaGrupoRuta"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winBusquedaGrupoRuta"
title="${c:l('busquedaGrupoRutaController.window.title')}"
apply="${busquedaGrupoRutaController}"
contentStyle="overflow:auto" height="450px" width="600px"
border="normal">
<toolbar>
<button id="btnRefresh" image="/gui/img/refresh.png"
width="35px"
tooltiptext="${c:l('busquedaGrupoRutaController.btnRefresh.tooltiptext')}" />
<separator orient="vertical" />
<button id="btnNovo" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('busquedaGrupoRutaController.btnNovo.tooltiptext')}" />
<separator orient="vertical" />
<button id="btnCerrar"
onClick="winBusquedaGrupoRuta.detach()"
image="/gui/img/exit.png" width="35px"
tooltiptext="${c:l('busquedaGrupoRutaController.btnCerrar.tooltiptext')}" />
</toolbar>
<grid fixedLayout="true">
<columns>
<column width="30%" />
<column width="70%" />
</columns>
<rows>
<row>
<label
value="${c:l('busquedaGrupoRutaController.window.title')}" />
<textbox id="txtNome" width="300px"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnPesquisa" image="/gui/img/find.png"
label="${c:l('busquedaGrupoRutaController.btnPesquisa.label')}" />
</toolbar>
<paging id="pagingGrupoRuta" pageSize="20" />
<listbox id="grupoRutaList"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false" height="80%">
<listhead sizable="true">
<listheader image="/gui/img/create_doc.gif"
label="${c:l('busquedaGrupoRutaController.lhId.label')}"
width="70px" sort="auto(grupoRutaId)" />
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
label="${c:l('busquedaGrupoRutaController.lhDesc.label')}"
sort="auto(descgrupo)" />
</listhead>
</listbox>
</window>
</zk>

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarGrupoRuta"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winEditarGrupoRuta" border="normal"
apply="${editarGrupoRutaController}" width="400px" height="457x"
contentStyle="overflow:auto"
title="${c:l('editarGrupoRutaController.window.title')}">
<toolbar>
<hbox spacing="5px" style="padding:1px" align="right">
<button id="btnApagar" height="20"
image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarGrupoRutaController.btnApagar.tooltiptext')}" />
<button id="btnSalvar" height="20"
image="/gui/img/save.png" width="35px"
tooltiptext="${c:l('editarGrupoRutaController.btnSalvar.tooltiptext')}" />
<button id="btnFechar" height="20"
image="/gui/img/exit.png" width="35px"
onClick="winEditarGrupoRuta.detach()"
tooltiptext="${c:l('editarGrupoRutaController.btnFechar.tooltiptext')}" />
</hbox>
</toolbar>
<grid fixedLayout="true">
<columns>
<column width="40%" />
<column width="60%" />
</columns>
<rows>
<row>
<label id="lbNome"
value="${c:l('editarGrupoRutaController.lbNome.value')}" />
<textbox id="txtNome" width="100%" maxlength="30"
constraint="no empty"
value="@{winEditarGrupoRuta$composer.grupoRuta.descGrupo}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</rows>
</grid>
</window>
</zk>

View File

@ -134,9 +134,9 @@
value="${c:l('editarPuntoVentaController.lbSubordinadaPunto.label')}" />
<combobox id="cmbPuntoVentaPadre"
mold="rounded" buttonVisible="true" width="90%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
initialValue="@{winEditarPuntoVenta$composer.puntoVenta.puntoVentaPadre}"
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.puntoVentaPadre}"/>
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.puntoVentaPadre}" />
</row>
<row>
<!-- Status Aprobacion -->
@ -329,253 +329,39 @@
<tabpanel>
<grid fixedLayout="true">
<columns>
<column width="30%" />
<column width="70%" />
<column width="20%" />
<column width="80%" />
</columns>
<rows>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbPassagem.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox
id="txtPassagemBaixa" width="100px" maxlength="5"
value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox
id="txtPassagemAlta" width="100px" maxlength="5"
value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbExcesso.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox
id="txtExcessoBaixa" width="100px" maxlength="5"
value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox
id="txtExcessoAlta" width="100px" maxlength="5"
value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbSeguro.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox
id="txtSeguroBaixa" width="100px" maxlength="5"
value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox
id="txtSeguroAlta" width="100px" maxlength="5" value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbOutros.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox
id="txtOutrosBaixa" width="100px" maxlength="5"
value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox
id="txtOutrosAlta" width="100px" maxlength="5" value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbISS.value')}" />
value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
<hbox>
<textbox id="txtIss" width="70%"
maxlength="5" value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
<label
value="${c:l('editarConfiguracionComissaoController.lbPercISS.value')}" />
</hbox>
<combobox id="cmbEmpresaComissao"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
constraint="no empty" mold="rounded" buttonVisible="true"
width="70%"
model="@{winEditarPuntoVenta$composer.lsEmpresaComissao}" />
</row>
<button
id="btnAdicionarEmpresaComissao" height="20"
image="/gui/img/add.png" width="35px"
disabled="true"
tooltiptext="${c:l('editarConfiguracionReservacionController.btnAddClase.tooltiptext')}" />
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbRoyaties.value')}" />
<hbox>
<textbox id="txtRoyaties"
width="70%" maxlength="5" value="0.00"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
<label
value="${c:l('editarConfiguracionComissaoController.lbPerc.value')}" />
</hbox>
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbRecibo.value')}" />
<checkbox id="checkRecibo" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbDestino.value')}" />
<combobox id="cmbDestino" width="70%"
mold="rounded" buttonVisible="true"
model="@{winEditarPuntoVenta$composer.lsDestino}"
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.descComissaoId}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbReceita.value')}" />
<combobox id="cmbReceita" width="70%"
mold="rounded" buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbCodAG.value')}" />
<intbox id="txtcodAg" width="70%"
maxlength="7"
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.codag}" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbCompReceita.value')}" />
<hbox>
<checkbox id="checkTarifaReceita"
label="${c:l('editarConfiguracionCorridaController.lbTarifa.value')}" />
<checkbox id="checkTaxaReceita"
label="${c:l('editarConfiguracionCorridaController.lbTaxa.value')}" />
<checkbox id="checkSeguroReceita"
label="${c:l('editarConfiguracionCorridaController.lbSeguro.value')}" />
<checkbox id="checkPedagioReceita"
label="${c:l('editarConfiguracionCorridaController.lbPedagio.value')}" />
</hbox>
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbCompDev.value')}" />
<hbox>
<checkbox id="checkTarifaDev"
label="${c:l('editarConfiguracionCorridaController.lbTarifa.value')}" />
<checkbox id="checkTaxaDev"
label="${c:l('editarConfiguracionCorridaController.lbTaxa.value')}" />
<checkbox id="checkSeguroDev"
label="${c:l('editarConfiguracionCorridaController.lbSeguro.value')}" />
<checkbox id="checkPedagioDev"
label="${c:l('editarConfiguracionCorridaController.lbPedagio.value')}" />
</hbox>
</row>
</rows>
</grid>
<listbox id="ptovtaComissaoList"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false">
<listhead sizable="true">
<listheader id="lhPtovtaComissao"
image="/gui/img/create_doc.gif"
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
</listhead>
</listbox>
</tabpanel>

View File

@ -0,0 +1,295 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarPuntoVentaComissao"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winEditarPuntoVentaComissao" border="normal"
apply="${editarPuntoVentaComissaoController}" height="575px"
width="640px" contentStyle="overflow:auto"
xmlns:h="http://www.w3.org/1999/xhtml"
title="${c:l('editarPuntoVentaComissaoController.window.title')}">
<toolbar>
<hbox spacing="5px" style="padding:1px" align="right">
<button id="btnApagarPtovtaComissao" height="20"
image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarPuntoVentaComissaoController.btnApagar.tooltiptext')}" />
<button id="btnSalvarPtovtaComissao" height="20"
image="/gui/img/save.png" width="35px"
tooltiptext="${c:l('editarPuntoVentaComissaoController.btnSalvar.tooltiptext')}" />
<button id="btnFecharPtovtaComissao" height="20"
image="/gui/img/exit.png" width="35px"
onClick="winEditarPuntoVentaComissao.detach()"
tooltiptext="${c:l('editarPuntoVentaComissaoController.btnFechar.tooltiptext')}" />
</hbox>
</toolbar>
<grid fixedLayout="true">
<columns>
<column width="30%" />
<column width="70%" />
</columns>
<rows>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbPassagem.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox id="txtPassagemBaixa"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.passagemBaixa,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox id="txtPassagemAlta"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.passagemAlta,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbExcesso.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox id="txtExcessoBaixa"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.excessoBaixa,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox id="txtExcessoAlta"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.excessoAlta,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbSeguro.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox id="txtSeguroBaixa"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.seguroBaixa,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox id="txtSeguroAlta"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.seguroAlta,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row height="10px">
<label
value="${c:l('editarConfiguracionComissaoController.lbOutros.value')}" />
<hbox>
<h:table border="none">
<h:tr>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
</hlayout>
<textbox id="txtOutrosBaixa"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.outrosBaixa,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
<h:td></h:td>
<h:td>
<hlayout>
<label
value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
</hlayout>
<textbox id="txtOutrosAlta"
width="100px" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.outrosAlta,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
</h:td>
</h:tr>
</h:table>
</hbox>
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbISS.value')}" />
<hbox>
<textbox id="txtIss" width="70%" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.issretido,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
<label
value="${c:l('editarConfiguracionComissaoController.lbPercISS.value')}" />
</hbox>
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbRoyaties.value')}" />
<hbox>
<textbox id="txtRoyaties" width="70%"
maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.royalties,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
<label
value="${c:l('editarConfiguracionComissaoController.lbPerc.value')}" />
</hbox>
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbRecibo.value')}" />
<checkbox id="checkRecibo"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.enviarrecibo}" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbDestino.value')}" />
<combobox id="cmbDestino" width="70%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
selectedItem="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.descComissaoId}"
model="@{winEditarPuntoVentaComissao$composer.lsDestino}" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbReceita.value')}" />
<combobox id="cmbReceita" width="70%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbCodAG.value')}" />
<intbox id="txtcodAg" width="70%" maxlength="7"
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.codag}" />
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbCompReceita.value')}" />
<hbox>
<checkbox id="checkTarifaReceita"
label="${c:l('editarConfiguracionCorridaController.lbTarifa.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.tarifaReceita}" />
<checkbox id="checkTaxaReceita"
label="${c:l('editarConfiguracionCorridaController.lbTaxa.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.taxaReceita}" />
<checkbox id="checkSeguroReceita"
label="${c:l('editarConfiguracionCorridaController.lbSeguro.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.seguroReceita}" />
<checkbox id="checkPedagioReceita"
label="${c:l('editarConfiguracionCorridaController.lbPedagio.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.pedagioReceita}" />
</hbox>
</row>
<row>
<label
value="${c:l('editarConfiguracionComissaoController.lbCompDev.value')}" />
<hbox>
<checkbox id="checkTarifaDev"
label="${c:l('editarConfiguracionCorridaController.lbTarifa.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.tarifaDev}" />
<checkbox id="checkTaxaDev"
label="${c:l('editarConfiguracionCorridaController.lbTaxa.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.taxaDev}" />
<checkbox id="checkSeguroDev"
label="${c:l('editarConfiguracionCorridaController.lbSeguro.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.seguroDev}" />
<checkbox id="checkPedagioDev"
label="${c:l('editarConfiguracionCorridaController.lbPedagio.value')}"
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.pegagioDev}" />
</hbox>
</row>
</rows>
</grid>
</window>
</zk>

View File

@ -7,7 +7,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioReceitaDiariaAgencia"
apply="${relatorioReceitaDiariaAgenciaController}"
contentStyle="overflow:auto" height="238px" width="550px"
contentStyle="overflow:auto" height="278px" width="550px"
border="normal">
<grid fixedLayout="true">
<columns>
@ -37,11 +37,31 @@
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioReceitaDiariaAgencia$composer.lsEstado}" />
<label
value="${c:l('relatorioReceitaDiariaAgenciaController.lbTipoPuntoVenta.value')}" />
<combobox id="cmbTipoPuntoVenta" width="90%"
mold="rounded" buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioReceitaDiariaAgencia$composer.lsTipoPuntoVenta}" />
</row>
<row>
<label
value="${c:l('relatorioReceitaDiariaAgenciaController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa" width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioReceitaDiariaAgencia$composer.lsEmpresa}"
constraint="no empty" />
<label
value="${c:l('relatorioReceitaDiariaAgenciaController.lbPuntoVenta.value')}" />
<bandbox id="bbPesquisaPuntoVenta" width="90%"
mold="rounded" readonly="true">
<bandpopup>
<bandpopup height="150px">
<vbox>
<hbox>
<textbox id="txtPalavraPesquisa" />
@ -58,8 +78,10 @@
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false" height="60%" width="360px">
<listhead>
<listheader label="Código" />
<listheader label="Nome" />
<listheader
label="${c:l('relatorioReceitaDiariaAgenciaController.puntoVentaSelList.codigo')}" />
<listheader
label="${c:l('relatorioReceitaDiariaAgenciaController.puntoVentaSelList.nome')}" />
</listhead>
</listbox>
<paging id="pagingPuntoVenta"
@ -67,15 +89,21 @@
</vbox>
</bandpopup>
</bandbox>
</row>
</row>
<row>
<cell colspan="2">
<checkbox id="chkExcessoBagagem"
label="Excluso Excesso de Bagagem" />
<label
value="${c:l('relatorioReceitaDiariaAgenciaController.lbDevolucao.value')}" />
<cell>
<radiogroup id="rdIndAgenciaDevol" />
<radio id="rd1" checked="true" label="${c:l('relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd1.label')}"
radiogroup="rdIndAgenciaDevol" />
<radio id="rd2" label="${c:l('relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd2.label')}"
radiogroup="rdIndAgenciaDevol" />
</cell>
<cell colspan="2">
<cell colspan="2" rowspan="2">
<borderlayout height="100px">
<center border="0">
@ -84,14 +112,29 @@
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="true" height="60%" width="100%">
<listhead>
<listheader label="Código" />
<listheader label="Nome" />
<listheader
label="${c:l('relatorioReceitaDiariaAgenciaController.puntoVentaSelList.codigo')}" />
<listheader
label="${c:l('relatorioReceitaDiariaAgenciaController.puntoVentaSelList.nome')}" />
<listheader width="35px" />
</listhead>
</listbox>
</center>
</borderlayout>
</cell>
</row>
<row>
<cell colspan="2">
<checkbox id="chkExcessoBagagem"
label="${c:l('relatorioReceitaDiariaAgenciaController.chkExcessoBagagem.label')}" />
<separator />
<checkbox id="chkContemplarGap"
label="${c:l('relatorioReceitaDiariaAgenciaController.chkContemplarGap.label')}" />
</cell>
</row>
</rows>
</grid>
<toolbar>

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winFiltroRelatorioResumoLinhas"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioResumoLinhas"
apply="${relatorioResumoLinhasController}"
contentStyle="overflow:auto" height="240px" width="450px"
border="normal">
<grid fixedLayout="true">
<columns>
<column width="30%" />
<column width="35%" />
<column width="35%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioResumoLinhasController.lbFecCorrida.value')}" />
<datebox id="fecCorridaIni" width="100%"
format="dd/MM/yyyy" lenient="false" constraint="no empty"
maxlength="10" />
<datebox id="fecCorridaFin" width="100%"
format="dd/MM/yyyy" lenient="false" constraint="no empty"
maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioResumoLinhasController.lbRuta.value')}" />
<combobox id="cmbRuta" width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioResumoLinhas$composer.lsRuta}" />
<cell>
<radiogroup id="rdIndTipoRelatorio" />
<radio id="rd1" checked="true" label="Sintético"
radiogroup="rdIndTipoRelatorio" />
<radio id="rd2" label="Analítico"
radiogroup="rdIndTipoRelatorio" />
</cell>
</row>
<row>
<label
value="${c:l('relatorioResumoLinhasController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa" width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioResumoLinhas$composer.lsEmpresa}"
constraint="no empty" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio"
image="/gui/img/enginer.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>