sincronizacao com main

master
Fabio Faria 2022-05-17 18:09:08 -03:00
parent f91242ddad
commit 945bf825ef
104 changed files with 2378 additions and 1409 deletions

View File

@ -635,7 +635,8 @@ public class RelatorioAcompanhamentoEquivalentes extends Relatorio {
sql.append("AND CR.ROLOPERATIVO_ID = :ROLOPERATIVO_ID "); sql.append("AND CR.ROLOPERATIVO_ID = :ROLOPERATIVO_ID ");
sql.append("AND BO.ACTIVO = 1 "); sql.append("AND BO.ACTIVO = 1 ");
sql.append("AND BO.INDSTATUSOPERACION = 'F' "); sql.append("AND BO.INDSTATUSOPERACION = 'F' ");
sql.append("AND BO.MOTIVOCANCELACION_ID IS NULL OR BO.MOTIVOCANCELACION_ID = 0 "); sql.append("AND ( BO.MOTIVOCANCELACION_ID IS NULL OR BO.MOTIVOCANCELACION_ID = 0 ) ");
sql.append(" AND BO.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA) ;
sql.append("GROUP BY CR.CORRIDA_ID, CR.FECCORRIDA "); sql.append("GROUP BY CR.CORRIDA_ID, CR.FECCORRIDA ");
sql.append("ORDER BY CR.FECCORRIDA"); sql.append("ORDER BY CR.FECCORRIDA");

View File

@ -98,13 +98,14 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
* @throws ParseException * @throws ParseException
*/ */
protected void carregarDadosTotaisVenda(String fecInicio, String fecFinal, String empresa, String empresaNome, String puntoVenta) throws SQLException, ParseException { protected void carregarDadosTotaisVenda(String fecInicio, String fecFinal, String empresa, String empresaNome, String puntoVenta) throws SQLException, ParseException {
boolean isDiario = TipoRelatorioFechamentoEnum.DIARIO.equals(tipoRelatorio);
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryBilhetesVenda(puntoVenta, empresa)); NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryBilhetesVenda(puntoVenta, empresa));
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
ResultSet rset1 = criaResultSet(fecInicio, fecFinal, sdf, stmt); ResultSet rset1 = criaResultSet(fecInicio, fecFinal, sdf, stmt);
String dataInicial = fecInicio;
String dataFinal = fecFinal;
sdf = (isDiario ? new SimpleDateFormat("yyyy-MM-dd hh:mm:ss") : new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"));
StringBuilder puntoVentaIds = new StringBuilder(); StringBuilder puntoVentaIds = new StringBuilder();
puntoVentaIds.append(" 0"); puntoVentaIds.append(" 0");
@ -122,6 +123,11 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
Integer qtdeAnulado = rset1.getInt("qtdeAnulado"); Integer qtdeAnulado = rset1.getInt("qtdeAnulado");
Integer qtdeDevolvido = rset1.getInt("qtdeDevolvido"); Integer qtdeDevolvido = rset1.getInt("qtdeDevolvido");
if (isDiario) {
dataInicial = rset1.getString("DATA");
dataFinal = rset1.getString("DATA");
}
vendido = rset1.getBigDecimal("vendido"); vendido = rset1.getBigDecimal("vendido");
BigDecimal digitado = rset1.getBigDecimal("digitado"); BigDecimal digitado = rset1.getBigDecimal("digitado");
BigDecimal anulado = rset1.getBigDecimal("anulado"); BigDecimal anulado = rset1.getBigDecimal("anulado");
@ -129,11 +135,12 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
total = preencherAgenciaFechamento(empresaNome, rset1, agenciaFechamento, total, vendido, qtdevendido, qtdedigitado, qtdeAnulado, qtdeDevolvido, digitado, anulado, devolvido); total = preencherAgenciaFechamento(empresaNome, rset1, agenciaFechamento, total, vendido, qtdevendido, qtdedigitado, qtdeAnulado, qtdeDevolvido, digitado, anulado, devolvido);
carregarDadosReceitaDespesa(fecInicio, fecFinal, empresa, sdf, agenciaFechamento, total, vendido, puntoVentaId); carregarDadosReceitaDespesa(dataInicial, dataFinal, isDiario, empresa, sdf, agenciaFechamento, total, vendido, puntoVentaId);
lsDadosRelatorio.add(agenciaFechamento); lsDadosRelatorio.add(agenciaFechamento);
} }
inserirReceitaDespesa(fecInicio, fecFinal, empresa, puntoVentaIds, empresaNome); //Comentado para atender ao mantis 23925
//inserirReceitaDespesa(fecInicio, fecFinal, empresa, puntoVentaIds, empresaNome);
} }
@ -154,8 +161,12 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
* @throws SQLException * @throws SQLException
* @throws ParseException * @throws ParseException
*/ */
protected void carregarDadosReceitaDespesa(String fecInicio, String fecFinal, String empresa, SimpleDateFormat sdf, RelatorioAgenciaFechamentoAntigoBean agenciaFechamento, BigDecimal total, BigDecimal vendido, String puntoVentaId) throws SQLException, ParseException { protected void carregarDadosReceitaDespesa(String fecInicio, String fecFinal, Boolean isDiario, String empresa, SimpleDateFormat sdf, RelatorioAgenciaFechamentoAntigoBean agenciaFechamento, BigDecimal total, BigDecimal vendido, String puntoVentaId) throws SQLException, ParseException {
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryReceitaDespesa(puntoVentaId, empresa)); NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryReceitaDespesa(puntoVentaId, empresa));
if (isDiario) {
fecInicio = fecInicio.substring(0, 10).toString() + " 00:00:00";
fecFinal = fecFinal.substring(0, 10).toString() + " 23:59:59";
}
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime())); stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime())); stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
@ -318,7 +329,7 @@ public abstract class RelatorioAgenciaFechamento extends Relatorio {
sql.append(" AND cd.TURNO_ID IS NOT NULL "); sql.append(" AND cd.TURNO_ID IS NOT NULL ");
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate "); sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
sql.append(" AND cd.puntoventa_id = pv.puntoventa_id "); sql.append(" AND cd.puntoventa_id = pv.puntoventa_id ");
sql.append(" AND pv.puntoventa_id not in ( " + puntoVentaIds.toString() + ") "); sql.append(" AND pv.puntoventa_id in ( " + puntoVentaIds.toString() + ") ");
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) { if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
sql.append(" AND ee.EMPRESA_ID = " + empresa + " "); sql.append(" AND ee.EMPRESA_ID = " + empresa + " ");

View File

@ -71,48 +71,45 @@ public class RelatorioAproveitamentoFinanceiro extends Relatorio {
sql.append(" SELECT "); sql.append(" SELECT ");
sql.append(" r.DESCRUTA as linha, "); sql.append(" r.DESCRUTA as linha, ");
sql.append(" r.ruta_id as rutaid, "); sql.append(" r.ruta_id as rutaid, ");
sql.append(" count( c.caja_id) as passageiros, "); sql.append(" count( c.boleto_id) as passageiros, ");
sql.append(" sum( c.PRECIOPAGADO )as valor, "); sql.append(" sum( coalesce(c.preciopagado, 0) )as valor, ");
sql.append(" to_char( c.FECCORRIDA, 'D') as dia, "); sql.append(" to_char( co.FECCORRIDA, 'D') as dia, ");
// Quantidade de dias da semana diferente vendidas // Quantidade de dias da semana diferente vendidas
// "WW" Esse parâmetro para o to_char tras o dia da semana da data // "WW" Esse parâmetro para o to_char tras o dia da semana da data
sql.append(" coalesce(count(DISTINCT to_char( c.FECCORRIDA, 'WW')), 0) as qtde, "); sql.append(" coalesce(count(DISTINCT to_char( co.FECCORRIDA, 'WW')), 0) as qtde, ");
sql.append(" r.indsentidoida as sentido, "); sql.append(" r.indsentidoida as sentido, ");
sql.append(" da.cantasientos as assentos, "); sql.append(" da.cantasientos as assentos, ");
sql.append(" TO_CHAR(co.fechorsalidaoriginal ,'HH24:mi') as horario, "); sql.append(" TO_CHAR(co.fechorsalidaoriginal ,'HH24:mi') as horario, ");
sql.append(" c.CORRIDA_ID as servico "); sql.append(" co.CORRIDA_ID as servico ");
sql.append(" FROM CAJA c "); sql.append(" FROM boleto c ");
sql.append(" inner join corrida co "); sql.append(" RIGHT OUTER JOIN corrida co ");
sql.append(" on c.CORRIDA_ID = co.CORRIDA_ID "); sql.append(" on c.CORRIDA_ID = co.CORRIDA_ID ");
sql.append(" and c.FECCORRIDA = co.FECCORRIDA "); sql.append(" and c.FECCORRIDA = co.FECCORRIDA ");
sql.append(" and co.ACTIVO = 1 "); sql.append(" and co.ACTIVO = 1 ");
sql.append(" inner join ruta r "); sql.append(" inner join ruta r ");
sql.append(" on c.RUTA_ID = r.RUTA_ID "); sql.append(" on co.RUTA_ID = r.RUTA_ID ");
sql.append(" and r.ACTIVO = 1 "); sql.append(" and r.ACTIVO = 1 ");
sql.append(" inner join MARCA m "); sql.append(" inner join MARCA m ");
sql.append(" on m.marca_id = c.marca_id "); sql.append(" on m.marca_id = co.marca_id ");
sql.append(" and m.activo = 1 "); sql.append(" and m.activo = 1 ");
sql.append(" left join rol_operativo ro "); sql.append(" left join rol_operativo ro ");
sql.append(" on ro.roloperativo_id = co.roloperativo_id "); sql.append(" on ro.roloperativo_id = co.roloperativo_id ");
sql.append(" left join diagrama_autobus da "); sql.append(" left join diagrama_autobus da ");
sql.append(" on ro.diagramaautobus_id = da.diagramaautobus_id "); sql.append(" on ro.diagramaautobus_id = da.diagramaautobus_id ");
sql.append(" WHERE c.activo = 1 "); sql.append(" WHERE co.activo = 1 ");
sql.append(" AND m.EMPRESA_ID = :EMPRESA_ID "); sql.append(" AND m.EMPRESA_ID = :EMPRESA_ID ");
sql.append(" and c.FECCORRIDA >= :DATA_INICIAL "); sql.append(" and co.FECCORRIDA >= :DATA_INICIAL ");
sql.append(" and c.FECCORRIDA <= :DATA_FINAL "); sql.append(" and co.FECCORRIDA <= :DATA_FINAL ");
if (parametros.get("LINHAS") != null && !possuiFiltroTodos("LINHAS")) { if (parametros.get("LINHAS") != null && !possuiFiltroTodos("LINHAS")) {
sql.append(" and c.ruta_id IN (" + parametros.get("LINHAS").toString() + ")"); sql.append(" and co.ruta_id IN (" + parametros.get("LINHAS").toString() + ")");
} }
sql.append(" and c.MOTIVOCANCELACION_ID is null "); sql.append(" and c.MOTIVOCANCELACION_ID is null ");
sql.append(" and c.INDREIMPRESION = 0 ");
sql.append(" and c.MOTIVOREIMPRESION_ID is null ");
sql.append(" and c.INDSTATUSBOLETO = 'V' ");
sql.append(" GROUP by r.DESCRUTA, r.ruta_id, r.indsentidoida, da.cantasientos, "); sql.append(" GROUP by r.DESCRUTA, r.ruta_id, r.indsentidoida, da.cantasientos, ");
sql.append(" to_char( c.FECCORRIDA, 'D'), TO_CHAR(co.fechorsalidaoriginal ,'HH24:mi'), "); sql.append(" to_char( co.FECCORRIDA, 'D'), TO_CHAR(co.fechorsalidaoriginal ,'HH24:mi'), ");
sql.append(" c.CORRIDA_ID "); sql.append(" co.CORRIDA_ID ");
sql.append(" ORDER by r.DESCRUTA, r.indsentidoida desc, to_char( c.FECCORRIDA, 'D') "); sql.append(" ORDER by r.DESCRUTA, r.indsentidoida desc, to_char( co.FECCORRIDA, 'D') ");
sql.append(" ) "); sql.append(" ) ");
sql.append("PIVOT "); sql.append("PIVOT ");
sql.append("( "); sql.append("( ");

View File

@ -58,6 +58,7 @@ public class RelatorioBPe extends Relatorio {
dataResult.put("dtvenda", rset.getString("dtvenda")); dataResult.put("dtvenda", rset.getString("dtvenda"));
dataResult.put("hrvenda", rset.getString("hrvenda")); dataResult.put("hrvenda", rset.getString("hrvenda"));
dataResult.put("locpuntoventa", rset.getString("locpuntoventa")); dataResult.put("locpuntoventa", rset.getString("locpuntoventa"));
dataResult.put("numPuntoVenta", rset.getString("numPuntoVenta"));
dataResult.put("origem", rset.getString("origem")); dataResult.put("origem", rset.getString("origem"));
dataResult.put("destino", rset.getString("destino")); dataResult.put("destino", rset.getString("destino"));
dataResult.put("dtviagem", rset.getString("dtviagem")); dataResult.put("dtviagem", rset.getString("dtviagem"));
@ -94,7 +95,7 @@ public class RelatorioBPe extends Relatorio {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService"); ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
String estados = (String) parametros.get("ESTADOS_ID"); String estados = (String) parametros.get("ESTADOS_ID");
Integer empresaId = (Integer) parametros.get("EMPRESA_ID"); String empresaId = (String) parametros.get("EMPRESA_ID");
String status = (String) parametros.get("STATUS"); String status = (String) parametros.get("STATUS");
String chBpe = (String) parametros.get("CHBPE"); String chBpe = (String) parametros.get("CHBPE");
String numBpe = (String) parametros.get("NUMBPE"); String numBpe = (String) parametros.get("NUMBPE");
@ -103,7 +104,7 @@ public class RelatorioBPe extends Relatorio {
String alias = (String) parametros.get("ALIAS"); String alias = (String) parametros.get("ALIAS");
sql.append(" SELECT "); sql.append(" SELECT ");
sql.append(" dtvenda, hrvenda, locpuntoventa, origem, destino, dtviagem, vlbpe, valortarifa, valortaxa, valorpedagio, "); sql.append(" dtvenda, hrvenda, locpuntoventa,numPuntoVenta, origem, destino, dtviagem, vlbpe, valortarifa, valortaxa, valorpedagio, ");
sql.append(" valorseguro, valoroutros, chbpe, protocolo, num_bpe, numserie_bpe, status, obs, qrcode, errocontingencia "); sql.append(" valorseguro, valoroutros, chbpe, protocolo, num_bpe, numserie_bpe, status, obs, qrcode, errocontingencia ");
sql.append(" FROM ( "); sql.append(" FROM ( ");
@ -131,11 +132,11 @@ public class RelatorioBPe extends Relatorio {
return sql.toString(); return sql.toString();
} }
private void getWhere(StringBuilder sql, ConstanteService constanteService, String estados, Integer empresaId, String status, String chBpe, String numBpe, Date dtInicio, Date dtFim) { private void getWhere(StringBuilder sql, ConstanteService constanteService, String estados, String empresaId, String status, String chBpe, String numBpe, Date dtInicio, Date dtFim) {
sql.append(" WHERE e.ACTIVO = 1 "); sql.append(" WHERE e.ACTIVO = 1 ");
if (empresaId != null) { if (empresaId != null) {
sql.append(" AND ep.EMPRESA_ID = " + empresaId + " "); sql.append(" AND ep.EMPRESA_ID IN ( " + empresaId + " ) ");
} }
if (estados != null) { if (estados != null) {
sql.append(" AND e.ESTADO_ID IN ( " + estados + " )"); sql.append(" AND e.ESTADO_ID IN ( " + estados + " )");
@ -149,7 +150,7 @@ public class RelatorioBPe extends Relatorio {
} else if (status != null && status.equals("S")) {//Substituidos } else if (status != null && status.equals("S")) {//Substituidos
sql.append(" AND bpe.CODSTAT IN ('100', '102') AND bpeSub.BPE_ID IS NOT NULL AND bol.ACTIVO = 1 "); sql.append(" AND bpe.CODSTAT IN ('100', '102') AND bpeSub.BPE_ID IS NOT NULL AND bol.ACTIVO = 1 ");
} else if (status != null && status.equals("SB")) {//Substituicao } else if (status != null && status.equals("SB")) {//Substituicao
sql.append(" AND bpe.CODSTAT IN ('100', '102','150') AND bpe.TIPOSUBSTITUICAO IS NOT NULL AND bol.ACTIVO = 1 and bpeSub.CODSTAT IN('150','100','102') "); sql.append(" AND ((bpe.CODSTAT IN ('100', '102', '150') AND bpe.TIPOSUBSTITUICAO IS NOT NULL AND bol.ACTIVO = 1 and bpeSub.CODSTAT IN ('100', '102', '150')) or (bpe.CODSTAT IN ('100', '102', '150') AND bpe.TIPOSUBSTITUICAO IS NOT NULL AND bol.ACTIVO = 1 )) ");
} else if (status != null && status.equals("NE")) {//Nao Embarcado } else if (status != null && status.equals("NE")) {//Nao Embarcado
sql.append(" AND bpe.CODSTAT = '135' AND bpe.TIPOEVENTO = '110115' AND bol.ACTIVO = 1 "); sql.append(" AND bpe.CODSTAT = '135' AND bpe.TIPOEVENTO = '110115' AND bol.ACTIVO = 1 ");
} else if (status != null && status.equals("R")) {//Rejeitado } else if (status != null && status.equals("R")) {//Rejeitado
@ -161,6 +162,9 @@ public class RelatorioBPe extends Relatorio {
} else if (status != null && status.equals("PE")) {//Pendente Envio } else if (status != null && status.equals("PE")) {//Pendente Envio
sql.append(" AND bpe.CODSTAT IN ('-1','-2') "); sql.append(" AND bpe.CODSTAT IN ('-1','-2') ");
} }
else if (status != null && status.equals("T")) {//Opcao Todas
sql.append(opcaoTodas());
}
if(dtInicio != null && dtFim != null) { if(dtInicio != null && dtFim != null) {
Constante constanteBPeOtimizado = constanteService.buscarPorNomeConstante(Constantes.RELATORIO_BPE_OTIMIZADO); Constante constanteBPeOtimizado = constanteService.buscarPorNomeConstante(Constantes.RELATORIO_BPE_OTIMIZADO);
@ -183,6 +187,22 @@ public class RelatorioBPe extends Relatorio {
} }
} }
private String opcaoTodas() {
StringBuilder sql = new StringBuilder();
sql.append(" AND ((bpe.CODSTAT = '100' AND bol.ACTIVO = 1) OR (bpe.CODSTAT = '135' AND bpe.TIPOEVENTO = '110111' AND bol.ACTIVO = 1 ) ");
sql.append(" OR (bpe.CODSTAT IN ('100', '102') AND bpeSub.BPE_ID IS NOT NULL AND bol.ACTIVO = 1) ");
sql.append(" OR ((bpe.CODSTAT IN ('100', '102', '150') AND bpe.TIPOSUBSTITUICAO IS NOT NULL AND bol.ACTIVO = 1 and bpeSub.CODSTAT IN ('100', '102', '150')) or (bpe.CODSTAT IN ('100', '102', '150') AND bpe.TIPOSUBSTITUICAO IS NOT NULL AND bol.ACTIVO = 1 )) ");
sql.append(" OR (bpe.CODSTAT = '135' AND bpe.TIPOEVENTO = '110115' AND bol.ACTIVO = 1) ");
sql.append(" OR (bpe.CODSTAT NOT IN ('100','135','102','150','-1','-2')) ");
sql.append(" OR (bpe.CODSTAT IN ('100', '150') AND bpe.INDCONTINGENCIA = 1 AND bol.ACTIVO = 1) ");
sql.append(" OR (bpe.CODSTAT IN ('-10','-20') AND bol.ACTIVO = 1) ");
sql.append(" OR (bpe.CODSTAT IN ('-1','-2'))) ");
return sql.toString();
}
private void getSelectFrom(StringBuilder sql, String alias) { private void getSelectFrom(StringBuilder sql, String alias) {
sql.append("SELECT"); sql.append("SELECT");
sql.append(" TO_CHAR(COALESCE(bpe.DT_VENDA,bol.FECHORVENTA),'dd/mm/yyyy') as dtvenda, "); sql.append(" TO_CHAR(COALESCE(bpe.DT_VENDA,bol.FECHORVENTA),'dd/mm/yyyy') as dtvenda, ");
@ -194,6 +214,7 @@ public class RelatorioBPe extends Relatorio {
sql.append(" COALESCE(destA.DESCPARADA, dest.DESCPARADA) as destino,"); sql.append(" COALESCE(destA.DESCPARADA, dest.DESCPARADA) as destino,");
} }
sql.append(" locpv.DESCPARADA as locpuntoventa, "); sql.append(" locpv.DESCPARADA as locpuntoventa, ");
sql.append(" pv.NUMPUNTOVENTA as numPuntoVenta, ");
sql.append(" ori.DESCPARADA as origem, "); sql.append(" ori.DESCPARADA as origem, ");
sql.append(" dest.DESCPARADA as destino,"); sql.append(" dest.DESCPARADA as destino,");
@ -217,7 +238,7 @@ public class RelatorioBPe extends Relatorio {
sql.append(" case "); sql.append(" case ");
sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 0 then 'Autorizado' "); sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 0 then 'Autorizado' ");
sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 1 then 'Aut.Conting.' "); sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 1 then 'Aut.Conting.' ");
sql.append(" when bpe.tiposubstituicao is not null then 'Autorizado/Substitução' "); sql.append(" when bpe.tiposubstituicao is not null then 'Autorizado/Substituição' ");
sql.append(" when bpeSub.bpe_id is not null then 'Autorizado/Substituído' "); sql.append(" when bpeSub.bpe_id is not null then 'Autorizado/Substituído' ");
sql.append(" else 'Autorizado' "); sql.append(" else 'Autorizado' ");
sql.append(" end "); sql.append(" end ");
@ -225,7 +246,7 @@ public class RelatorioBPe extends Relatorio {
sql.append(" when '102' then ( "); sql.append(" when '102' then ( ");
sql.append(" case "); sql.append(" case ");
sql.append(" when bpe.tiposubstituicao is not null then 'Substitução' "); sql.append(" when bpe.tiposubstituicao is not null then 'Substituição' ");
sql.append(" when bpeSub.bpe_id is not null then 'Substituído' "); sql.append(" when bpeSub.bpe_id is not null then 'Substituído' ");
sql.append(" end "); sql.append(" end ");
sql.append(" ) "); sql.append(" ) ");
@ -251,7 +272,7 @@ public class RelatorioBPe extends Relatorio {
sql.append(" bpe.QRCODE, bpe.errocontingencia "); sql.append(" bpe.QRCODE, bpe.errocontingencia ");
sql.append(" FROM BPE bpe "); sql.append(" FROM BPE bpe ");
sql.append(" LEFT JOIN BPE bpeSub ON bpe.BPESUBSTITUICAO_ID = bpeSub.BPE_ID AND bpeSub.activo = 1 "); sql.append(" LEFT JOIN BPE bpeSub on (bpeSub.bpesubstituicao_id = bpe.bpe_id and bpeSub.activo = 1) ");
sql.append(" LEFT JOIN BOLETO bol ON bol.BOLETO_ID = bpe.BOLETO_ID and bpe.activo = 1 "); sql.append(" LEFT JOIN BOLETO bol ON bol.BOLETO_ID = bpe.BOLETO_ID and bpe.activo = 1 ");
sql.append(" LEFT JOIN estado e ON e.CODIBGE = bpe.UF "); sql.append(" LEFT JOIN estado e ON e.CODIBGE = bpe.UF ");
sql.append(" LEFT JOIN marca ma ON bol.MARCA_ID = ma.MARCA_ID "); sql.append(" LEFT JOIN marca ma ON bol.MARCA_ID = ma.MARCA_ID ");

View File

@ -47,6 +47,8 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
dataResult.put("usuario", rset.getString("usuario")); dataResult.put("usuario", rset.getString("usuario"));
dataResult.put("codigoPuntoVenta", rset.getString("codigoPuntoVenta")); dataResult.put("codigoPuntoVenta", rset.getString("codigoPuntoVenta"));
dataResult.put("puntoVenta", rset.getString("puntoVenta")); dataResult.put("puntoVenta", rset.getString("puntoVenta"));
dataResult.put("descIdentificaUno", rset.getString("descIdentificaUno"));
dataResult.put("descIdentificaDos", rset.getString("descIdentificaDos"));
this.dados.add(dataResult); this.dados.add(dataResult);
} }
@ -83,8 +85,19 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
sql.append("AND empresaFidelidad.EMPRESA_ID = empresa.EMPRESA_ID "); sql.append("AND empresaFidelidad.EMPRESA_ID = empresa.EMPRESA_ID ");
sql.append("AND clienteFidelidad.CLIENTE_ID = cliente.CLIENTE_ID) AS \"numFidelidade\", "); sql.append("AND clienteFidelidad.CLIENTE_ID = cliente.CLIENTE_ID) AS \"numFidelidade\", ");
sql.append("cliente.NOMBCLIENTE AS \"cliente\", "); sql.append("cliente.NOMBCLIENTE AS \"cliente\", ");
sql.append("cliente.NUMIDENTIFICAUNO AS \"identificaUno\", "); /*Foi feito esse CASE para forçar que o CPF fica no identificaUno e o RG identificaDos*/
sql.append("cliente.NUMIDENTIFICADOS AS \"identificaDos\", "); sql.append(" CASE ");
sql.append(" WHEN CLIENTE.TIPOIDENTIFICAUNO_ID = 2 THEN cliente.NUMIDENTIFICAUNO ");
sql.append(" WHEN CLIENTE.TIPOIDENTIFICADOS_ID = 2 THEN cliente.NUMIDENTIFICADOS ");
sql.append(" ELSE '' ");
sql.append(" END AS \"identificaUno\", ");
sql.append("ti.DESCTIPO AS \"descIdentificaUno\", ");
sql.append(" CASE ");
sql.append(" WHEN CLIENTE.TIPOIDENTIFICAUNO_ID = 1 THEN cliente.NUMIDENTIFICAUNO ");
sql.append(" WHEN CLIENTE.TIPOIDENTIFICADOS_ID = 1 THEN cliente.NUMIDENTIFICADOS ");
sql.append(" ELSE '' ");
sql.append(" END AS \"identificaDos\", ");
sql.append("ti2.DESCTIPO AS \"descIdentificaDos\", ");
sql.append("cliente.FECNACIMIENTO AS \"fecNascimento\", "); sql.append("cliente.FECNACIMIENTO AS \"fecNascimento\", ");
sql.append("cliente.NUMTELEFONODOS AS \"celular\", "); sql.append("cliente.NUMTELEFONODOS AS \"celular\", ");
sql.append("cliente.NUMTELEFONO AS \"telefone\", "); sql.append("cliente.NUMTELEFONO AS \"telefone\", ");
@ -104,6 +117,8 @@ public class RelatorioCadastroClientesDetalhado extends Relatorio {
sql.append("INNER JOIN PUNTO_VENTA puntoVenta ON usuarioUbicacion.PUNTOVENTA_ID = puntoVenta.PUNTOVENTA_ID "); sql.append("INNER JOIN PUNTO_VENTA puntoVenta ON usuarioUbicacion.PUNTOVENTA_ID = puntoVenta.PUNTOVENTA_ID ");
sql.append("INNER JOIN TIPO_PTOVTA tipoPuntoVenta ON tipoPuntoVenta.TIPOPTOVTA_ID = puntoVenta.TIPOPTOVTA_ID "); sql.append("INNER JOIN TIPO_PTOVTA tipoPuntoVenta ON tipoPuntoVenta.TIPOPTOVTA_ID = puntoVenta.TIPOPTOVTA_ID ");
sql.append("LEFT JOIN EMPRESA empresa ON empresa.EMPRESA_ID = cliente.EMPRESA_ID "); sql.append("LEFT JOIN EMPRESA empresa ON empresa.EMPRESA_ID = cliente.EMPRESA_ID ");
sql.append("LEFT JOIN TIPO_IDENTIFICACION ti ON ti.TIPOIDENTIFICACION_ID = CLIENTE.TIPOIDENTIFICAUNO_ID ");
sql.append("LEFT JOIN TIPO_IDENTIFICACION ti2 ON TI2.TIPOIDENTIFICACION_ID = CLIENTE.TIPOIDENTIFICADOS_ID ");
sql.append("WHERE cliente.ACTIVO = 1 "); sql.append("WHERE cliente.ACTIVO = 1 ");
sql.append("AND usuarioUbicacion.ACTIVO = 1 "); sql.append("AND usuarioUbicacion.ACTIVO = 1 ");

View File

@ -35,6 +35,7 @@ public class RelatorioCheckin extends Relatorio {
fecInicio = DateUtil.inicioFecha(fecInicio); fecInicio = DateUtil.inicioFecha(fecInicio);
fecFinal = DateUtil.fimFecha(fecFinal); fecFinal = DateUtil.fimFecha(fecFinal);
if (StringUtils.isNotBlank(idsBilheteiros)) { if (StringUtils.isNotBlank(idsBilheteiros)) {
String []ls = idsBilheteiros.split(","); String []ls = idsBilheteiros.split(",");
lsInt = new ArrayList<Integer>(); lsInt = new ArrayList<Integer>();
@ -103,11 +104,14 @@ public class RelatorioCheckin extends Relatorio {
sql.append("inner join boleto_checkin bc on b.boleto_id = bc.boletooriginal_id "); sql.append("inner join boleto_checkin bc on b.boleto_id = bc.boletooriginal_id ");
sql.append("inner join parada o on b.origen_id = o.parada_id "); sql.append("inner join parada o on b.origen_id = o.parada_id ");
sql.append("inner join usuario u on bc.usuario_id = u.usuario_id "); sql.append("inner join usuario u on bc.usuario_id = u.usuario_id ");
sql.append(" where b.activo = 1 "); sql.append(" where b.activo = 1 ");
sql.append("and bc.FECMODIF between ? and ? "); sql.append("and bc.FECMODIF between ? and ? ");
sql.append(corridaId == null ? "" : " and b.corrida_id = ? "); sql.append(corridaId == null ? "" : " and b.corrida_id = ? ");
sql.append(origenId == null ? "" : " and b.origen_id = ? "); sql.append(origenId == null ? "" : " and b.origen_id = ? ");
sql.append((lsInt == null || lsInt.size() == 0) ? "" : " and u.USUARIO_ID in ( "+ createIn(lsInt.size()) + ") "); sql.append((lsInt == null || lsInt.size() == 0) ? "" : " and u.USUARIO_ID in ( "+ createIn(lsInt.size()) + ") ");
sql.append(" order by bc.datacancelado desc"); sql.append(" order by bc.datacancelado desc");
return sql.toString(); return sql.toString();

View File

@ -73,10 +73,17 @@ public class RelatorioDepositos extends Relatorio {
deposito.setDtmotivo(rs.getDate("dtmotivo")); deposito.setDtmotivo(rs.getDate("dtmotivo"));
deposito.setSaldo(rs.getBigDecimal("saldo").multiply(BigDecimal.valueOf(-1))); deposito.setSaldo(rs.getBigDecimal("saldo").multiply(BigDecimal.valueOf(-1)));
deposito.setVrdeposito(rs.getBigDecimal("vrdeposito")); deposito.setVrdeposito(rs.getBigDecimal("vrdeposito"));
BigDecimal vlrBoleto=rs.getBigDecimal("vlrBoleto");
deposito.setVrdeposito(deposito.getVrdeposito().add(vlrBoleto));
deposito.setVrfechamento(rs.getBigDecimal("vrfechamento")); deposito.setVrfechamento(rs.getBigDecimal("vrfechamento"));
deposito.setEmpresaId(rs.getInt("empresaId")); deposito.setEmpresaId(rs.getInt("empresaId"));
deposito.setPuntoventaId(rs.getInt("puntoventaId")); deposito.setPuntoventaId(rs.getInt("puntoventaId"));
if (! filtrarPendentes){
deposito.setNumdeposito(rs.getString("numdeposito"));
}
boolean isPontoVendaEmpresaDiferente = (puntoventaIdAux == null || !puntoventaIdAux.equals(deposito.getPuntoventaId())) || boolean isPontoVendaEmpresaDiferente = (puntoventaIdAux == null || !puntoventaIdAux.equals(deposito.getPuntoventaId())) ||
(empresaIdAux == null || !empresaIdAux.equals(deposito.getEmpresaId())); (empresaIdAux == null || !empresaIdAux.equals(deposito.getEmpresaId()));
@ -152,6 +159,7 @@ public class RelatorioDepositos extends Relatorio {
} }
sql.append(" tmp.vrdeposito, "); sql.append(" tmp.vrdeposito, ");
sql.append(" vlrboleto, ");
sql.append(" tmp.puntoventaId, "); sql.append(" tmp.puntoventaId, ");
sql.append(" tmp.empresaId "); sql.append(" tmp.empresaId ");
sql.append(" FROM "); sql.append(" FROM ");
@ -163,6 +171,7 @@ public class RelatorioDepositos extends Relatorio {
sql.append(" f.fecfechamento AS dtmotivo, "); sql.append(" f.fecfechamento AS dtmotivo, ");
sql.append(" ( SUM(NVL(fd.valor_pago,0)) - f.total ) AS saldo, "); sql.append(" ( SUM(NVL(fd.valor_pago,0)) - f.total ) AS saldo, ");
sql.append(" SUM(NVL(fd.valor_pago,0)) AS vrdeposito , "); sql.append(" SUM(NVL(fd.valor_pago,0)) AS vrdeposito , ");
sql.append(" SUM(NVL(fbol.valordocumento,0)) AS vlrboleto, ");
sql.append(" f.total AS vrfechamento, "); sql.append(" f.total AS vrfechamento, ");
if (! filtrarPendentes){ if (! filtrarPendentes){
@ -184,6 +193,8 @@ public class RelatorioDepositos extends Relatorio {
sql.append(" LEFT JOIN empresa_contabancaria ecb "); sql.append(" LEFT JOIN empresa_contabancaria ecb ");
sql.append(" ON ecb.EMPRESACONTABANCARIA_ID = fdp.EMPRESACONTABANCARIA_ID "); sql.append(" ON ecb.EMPRESACONTABANCARIA_ID = fdp.EMPRESACONTABANCARIA_ID ");
sql.append(" AND ecb.activo = 1 "); sql.append(" AND ecb.activo = 1 ");
sql.append(" LEFT JOIN fechamento_boleto fbol ON f.fechamentocntcorrente_id = fbol.fechamentocntcorrente_id and fbol.indboletoquitado=1 ");
sql.append(" WHERE f.fecfechamento BETWEEN ? AND ? "); sql.append(" WHERE f.fecfechamento BETWEEN ? AND ? ");
sql.append(" AND f.activo = 1 "); sql.append(" AND f.activo = 1 ");
sql.append(" AND e.activo = 1 "); sql.append(" AND e.activo = 1 ");
@ -206,7 +217,7 @@ public class RelatorioDepositos extends Relatorio {
if (!filtrarPendentes){ if (!filtrarPendentes){
sql.append(" fdp.NUMDEPOSITO, "); sql.append(" fdp.NUMDEPOSITO, ");
} }
sql.append(" fbol.valordocumento, ");
sql.append(" f.total ) tmp "); sql.append(" f.total ) tmp ");
if (filtrarPendentes){ if (filtrarPendentes){

View File

@ -28,8 +28,32 @@ public class RelatorioEstoque extends Relatorio {
while (rset.next()) { while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>(); Map<String, Object> dataResult = new HashMap<String, Object>();
String formInicio = rset.getString("tipoVenta").equals(EnumTipoVenda.TPV_MANUAL.getId().toString()) ? String tipoVenta = rset.getString("tipoVenta");
(rset.getString("ultimoFolioCaja") != null ? rset.getString("ultimoFolioCaja") : rset.getString("forminicial")) : rset.getString("forminicial"); String formfinal = rset.getString("formfinal");
String formInicio = rset.getString("forminicial");
if (tipoVenta.equals(EnumTipoVenda.TPV_MANUAL.getId().toString())) {
String ultimoFolioCaja = rset.getString("ultimoFolioCaja");
boolean isFormularioMaior = false;
try {
int ultimoFolioCajaInt = Integer.parseInt(ultimoFolioCaja);
int formfinalInt = Integer.parseInt(formfinal);
if (ultimoFolioCaja != null && ultimoFolioCajaInt > formfinalInt) {
isFormularioMaior = true;
}
} catch (Exception e) {
}
if (isFormularioMaior) {
formInicio = formfinal;
} else {
formInicio = ultimoFolioCaja != null ? ultimoFolioCaja : formInicio;
}
}
dataResult.put("aidf", rset.getString("aidf")); dataResult.put("aidf", rset.getString("aidf"));
dataResult.put("empresa", rset.getString("nombempresa")); dataResult.put("empresa", rset.getString("nombempresa"));
@ -37,7 +61,7 @@ public class RelatorioEstoque extends Relatorio {
dataResult.put("agencia", rset.getString("nombpuntoventa")); dataResult.put("agencia", rset.getString("nombpuntoventa"));
dataResult.put("serie", rset.getString("serie")); dataResult.put("serie", rset.getString("serie"));
dataResult.put("forminicio", formInicio); dataResult.put("forminicio", formInicio);
dataResult.put("formfinal", rset.getString("formfinal")); dataResult.put("formfinal", formfinal);
dataResult.put("estado", rset.getString("nombestado")); dataResult.put("estado", rset.getString("nombestado"));
dataResult.put("tipo", rset.getString("tipo")); dataResult.put("tipo", rset.getString("tipo"));
this.dados.add(dataResult); this.dados.add(dataResult);

View File

@ -53,7 +53,7 @@ public class RelatorioGratuidadeAGR extends Relatorio {
String linhaIds = parametros.get("linhaIds").toString(); String linhaIds = parametros.get("linhaIds").toString();
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : ""; String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
String sql = getSql(fecInicioVenda, fecFinalVenda, linhaIds, tipGratuIds, clienteIds, empresa); String sql = getSql(fecInicioVenda, fecFinalVenda, linhaIds, tipGratuIds, clienteIds, empresa, fecInicioViagem, fecFinalViagem);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
@ -125,7 +125,7 @@ public class RelatorioGratuidadeAGR extends Relatorio {
protected void processaParametros() throws Exception { protected void processaParametros() throws Exception {
} }
private String getSql(String fecInicioVenda, String fecFinalVenda, String linha, String tipoGratu, String cliente, String empresa ) { private String getSql(String fecInicioVenda, String fecFinalVenda, String linha, String tipoGratu, String cliente, String empresa, String fecInicioViagem, String fecFinalViagem ) {
StringBuilder sql = new StringBuilder(3400); StringBuilder sql = new StringBuilder(3400);
@ -177,7 +177,9 @@ public class RelatorioGratuidadeAGR extends Relatorio {
if( fecInicioVenda != null && fecFinalVenda !=null ){ if( fecInicioVenda != null && fecFinalVenda !=null ){
sql.append(" AND b.fechorventa BETWEEN :fecInicioVenda AND :fecFinalVenda "); sql.append(" AND b.fechorventa BETWEEN :fecInicioVenda AND :fecFinalVenda ");
}else { }
if( fecInicioViagem != null && fecFinalViagem !=null ){
sql.append(" AND b.fechorviaje BETWEEN :fecInicioViagem AND :fecFinalViagem "); sql.append(" AND b.fechorviaje BETWEEN :fecInicioViagem AND :fecFinalViagem ");
} }

View File

@ -204,15 +204,12 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append("THEN b.DESCNUMDOC2 ELSE c.NUMIDENTIFICADOS "); sql.append("THEN b.DESCNUMDOC2 ELSE c.NUMIDENTIFICADOS ");
sql.append("END AS CPF, "); sql.append("END AS CPF, ");
sql.append("r.PREFIXO AS LINHA, "); sql.append("r.PREFIXO AS LINHA, ");
sql.append(" LISTAGG( "); sql.append(" (select ed.desccalle || ', ' || ed.numexterior || '-' || ed.desciudad || '/' || ed.desestado ");
sql.append("cd.DESCCALLE || ', ' || cd.NUMEXTERIOR || '-' || "); sql.append(" from cliente_direccion ed where ed.cliente_id = b.cliente_id and ed.activo = 1 and rownum = 1 ) ENDERECO, ");
sql.append("cd.DESCIUDAD || '/' || cd.DESESTADO ,';;;;' )" );
sql.append(" WITHIN GROUP( ORDER BY cd.CLIENTEDIRECCION_ID ASC )" );
sql.append(" AS ENDERECO, ");
sql.append("COALESCE(c.numtelefono, CAJA.DESCTELEFONO) AS tel,"); sql.append("COALESCE(c.numtelefono, CAJA.DESCTELEFONO) AS tel,");
sql.append("c.DESCCORREO AS email, "); sql.append("c.DESCCORREO AS email, ");
sql.append("CASE "); sql.append("CASE ");
sql.append("WHEN B.MOTIVOCANCELACION_ID IN (31, 32, 90, 23,10) "); sql.append("WHEN B.MOTIVOCANCELACION_ID IN (31, 32, 90, 23,10, 27) ");
sql.append("THEN 1 ELSE 0 "); sql.append("THEN 1 ELSE 0 ");
sql.append("END AS DESISTENCIA, "); sql.append("END AS DESISTENCIA, ");
sql.append(" (COALESCE(T.PRECIO, 0) + COALESCE(T.IMPORTEPEDAGIO,0)) "); sql.append(" (COALESCE(T.PRECIO, 0) + COALESCE(T.IMPORTEPEDAGIO,0)) ");
@ -226,10 +223,9 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append("JOIN parada ori ON ori.parada_id = b.origen_id "); sql.append("JOIN parada ori ON ori.parada_id = b.origen_id ");
sql.append("JOIN parada des ON des.parada_id = b.destino_id "); sql.append("JOIN parada des ON des.parada_id = b.destino_id ");
sql.append("JOIN ruta r ON r.ruta_id = b.ruta_id "); sql.append("JOIN ruta r ON r.ruta_id = b.ruta_id ");
sql.append("LEFT JOIN cliente c ON c.cliente_id = b.cliente_id ");
sql.append("JOIN RUTA_COMBINACION rc ON rc.ruta_id=r.ruta_id and rc.activo=1 "); sql.append("JOIN RUTA_COMBINACION rc ON rc.ruta_id=r.ruta_id and rc.activo=1 ");
sql.append("JOIN TRAMO tr ON tr.tramo_id=rc.tramo_id and tr.activo=1 "); sql.append("JOIN TRAMO tr ON tr.tramo_id=rc.tramo_id and tr.activo=1 ");
sql.append("LEFT JOIN cliente c ON c.cliente_id = b.cliente_id ");
sql.append("LEFT JOIN CLIENTE_DIRECCION cd ON cd.cliente_id = c.cliente_id AND cd.ACTIVO = 1 ");
sql.append("LEFT JOIN ORGAO_CONCEDENTE OC ON r.ORGAOCONCEDENTE_ID = OC.ORGAOCONCEDENTE_ID "); sql.append("LEFT JOIN ORGAO_CONCEDENTE OC ON r.ORGAOCONCEDENTE_ID = OC.ORGAOCONCEDENTE_ID ");
sql.append("JOIN ORGAO_EMP_PARAM O ON e.empresa_id = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID AND O.ACTIVO = 1 "); sql.append("JOIN ORGAO_EMP_PARAM O ON e.empresa_id = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID AND O.ACTIVO = 1 ");
sql.append("JOIN TARIFA T ON r.RUTA_ID = T.RUTA_ID AND b.ORIGEN_ID = T.ORIGEN_ID AND b.DESTINO_ID = T.DESTINO_ID AND b.CLASESERVICIO_ID = T.CLASESERVICIO_ID AND m.MARCA_ID = T.MARCA_ID AND oc.ORGAOCONCEDENTE_ID = T.ORGAOCONCEDENTE_ID AND T.TRAMO_ID=tr.TRAMO_ID AND T.ACTIVO=1 "); sql.append("JOIN TARIFA T ON r.RUTA_ID = T.RUTA_ID AND b.ORIGEN_ID = T.ORIGEN_ID AND b.DESTINO_ID = T.DESTINO_ID AND b.CLASESERVICIO_ID = T.CLASESERVICIO_ID AND m.MARCA_ID = T.MARCA_ID AND oc.ORGAOCONCEDENTE_ID = T.ORGAOCONCEDENTE_ID AND T.TRAMO_ID=tr.TRAMO_ID AND T.ACTIVO=1 ");
@ -258,22 +254,13 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append(" AND e.ESTADO_ID IN ( " + estados + " )"); sql.append(" AND e.ESTADO_ID IN ( " + estados + " )");
} }
sql.append(" group by OC.DESCORGAO, O.CODEMPRESAPORORGAO, B.FECHORVIAJE, ca.desccategoria, ");
sql.append(" ori.cveparada, ori.descparada, des.cveparada, B.NUMASIENTO, des.descparada, ");
sql.append(" c.TIPOIDENTIFICAUNO_ID, c.TIPOIDENTIFICADOS_ID, ");
sql.append(" b.FECCORRIDA, COALESCE(c.numtelefono, CAJA.DESCTELEFONO), c.DESCCORREO, CASE WHEN b.DESCNUMDOC IS NOT NULL THEN b.DESCNUMDOC ELSE c.NUMIDENTIFICAUNO END, ");
sql.append(" b.NUMFOLIOSISTEMA, CASE WHEN b.DESCNUMDOC2 IS NOT NULL THEN b.DESCNUMDOC2 ELSE c.NUMIDENTIFICADOS END, b.NOMBPASAJERO, b.NUMIDENTIFICACION, T.PRECIO, b.PRECIOPAGADO, b.descorgaodoc, r.PREFIXO, B.MOTIVOCANCELACION_ID, ");
sql.append(" T.IMPORTEOUTROS, T.IMPORTEPEDAGIO, T.IMPORTESEGURO, T.IMPORTETAXAEMBARQUE, T.IMPORTETPP, b.descorgaodoc, ");
sql.append(" b.IMPORTECATEGORIA, b.IMPORTEOUTROS, b.IMPORTEPEDAGIO, b.IMPORTESEGURO, b.IMPORTETAXAEMBARQUE, b.IMPORTETPP, bpe.chbpe ");
sql.append(" ORDER BY OC.DESCORGAO, O.CODEMPRESAPORORGAO, b.FECHORVIAJE, descorigem, descdestino "); sql.append(" ORDER BY OC.DESCORGAO, O.CODEMPRESAPORORGAO, b.FECHORVIAJE, descorigem, descdestino ");
return sql.toString(); return sql.toString();
} }
private String getSqlNoTabelaPreco(String fecInicioVenda, String fecFinalVenda, String linha, String tipoGratu, String empresa, String codOrgaoConcedente, String estados) { private String getSqlNoTabelaPreco(String fecInicioVenda, String fecFinalVenda, String linha, String tipoGratu, String empresa, String codOrgaoConcedente, String estados) {
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append("SELECT OC.DESCORGAO AS ORGAO,"); sql.append("SELECT OC.DESCORGAO AS ORGAO,");
@ -298,30 +285,29 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append(" ELSE c.NUMIDENTIFICADOS"); sql.append(" ELSE c.NUMIDENTIFICADOS");
sql.append(" END AS CPF,"); sql.append(" END AS CPF,");
sql.append(" r.PREFIXO AS LINHA,"); sql.append(" r.PREFIXO AS LINHA,");
sql.append(" LISTAGG(cd.DESCCALLE || ', ' || cd.NUMEXTERIOR || '-' || cd.DESCIUDAD || '/' || cd.DESESTADO, ';;;;') WITHIN GROUP("); sql.append(" (select ed.desccalle || ', ' || ed.numexterior || '-' || ed.desciudad || '/' || ed.desestado ");
sql.append(" ORDER BY cd.CLIENTEDIRECCION_ID ASC) AS ENDERECO, "); sql.append(" from cliente_direccion ed where ed.cliente_id = b.cliente_id and ed.activo = 1 and rownum = 1 ) ENDERECO, ");
sql.append(" COALESCE(c.numtelefono, CAJA.DESCTELEFONO) AS tel,"); sql.append(" COALESCE(c.numtelefono, CAJA.DESCTELEFONO) AS tel,");
sql.append(" c.DESCCORREO AS email,"); sql.append(" c.DESCCORREO AS email,");
sql.append(" CASE"); sql.append(" CASE");
sql.append(" WHEN B.MOTIVOCANCELACION_ID IN (31,32, 90, 23,10 ) THEN 1 ELSE 0 END AS DESISTENCIA, "); sql.append(" WHEN B.MOTIVOCANCELACION_ID IN (31,32, 90, 23,10, 27 ) THEN 1 ELSE 0 END AS DESISTENCIA, ");
sql.append(" (COALESCE(NULL, b.preciobase) + COALESCE(NULL, 0)) -(COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTEPEDAGIO, 0)) AS vlrGratuidade,"); sql.append(" (COALESCE(NULL, b.preciobase) + COALESCE(NULL, 0)) -(COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTEPEDAGIO, 0)) AS vlrGratuidade,");
sql.append(" bpe.chbpe AS chaveBPE "); sql.append(" bpe.chbpe AS chaveBPE ");
sql.append("FROM BOLETO b "); sql.append(" FROM BOLETO b ");
sql.append("LEFT JOIN CAJA ON B.BOLETO_ID = CAJA.TRANSACAO_ID ") ; sql.append(" LEFT JOIN CAJA ON B.BOLETO_ID = CAJA.TRANSACAO_ID ") ;
sql.append("JOIN categoria ca ON b.categoria_id = ca.categoria_id "); sql.append(" JOIN categoria ca ON b.categoria_id = ca.categoria_id ");
sql.append("JOIN empresa e ON e.empresa_id = b.EMPRESACORRIDA_ID "); sql.append(" JOIN empresa e ON e.empresa_id = b.EMPRESACORRIDA_ID ");
sql.append("JOIN marca m ON m.EMPRESA_ID = e.EMPRESA_ID "); sql.append(" JOIN marca m ON m.EMPRESA_ID = e.EMPRESA_ID ");
sql.append("JOIN parada ori ON ori.parada_id = b.origen_id "); sql.append(" JOIN parada ori ON ori.parada_id = b.origen_id ");
sql.append("JOIN parada des ON des.parada_id = b.destino_id "); sql.append(" JOIN parada des ON des.parada_id = b.destino_id ");
sql.append("JOIN ruta r ON r.ruta_id = b.ruta_id "); sql.append(" JOIN ruta r ON r.ruta_id = b.ruta_id ");
sql.append("LEFT JOIN cliente c ON c.cliente_id = b.cliente_id "); sql.append("LEFT JOIN cliente c ON c.cliente_id = b.cliente_id ");
sql.append("LEFT JOIN CLIENTE_DIRECCION cd ON cd.cliente_id = c.cliente_id AND cd.ACTIVO = 1 "); sql.append(" LEFT JOIN ORGAO_CONCEDENTE OC ON r.ORGAOCONCEDENTE_ID = OC.ORGAOCONCEDENTE_ID ");
sql.append("LEFT JOIN ORGAO_CONCEDENTE OC ON r.ORGAOCONCEDENTE_ID = OC.ORGAOCONCEDENTE_ID "); sql.append(" JOIN ORGAO_EMP_PARAM O ON e.empresa_id = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID AND O.ACTIVO = 1 ");
sql.append("JOIN ORGAO_EMP_PARAM O ON e.empresa_id = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID AND O.ACTIVO = 1 "); sql.append(" LEFT JOIN BPE bpe ON bpe.BOLETO_ID = b.BOLETO_ID ");
sql.append("LEFT JOIN BPE bpe ON bpe.BOLETO_ID = b.BOLETO_ID "); sql.append(" LEFT JOIN estado e ON e.CODIBGE = bpe.UF AND e.ACTIVO =1 ");
sql.append("LEFT JOIN estado e ON e.CODIBGE = bpe.UF AND e.ACTIVO =1 "); sql.append(" WHERE b.fechorviaje BETWEEN to_date(:fecInicioVenda,'dd/mm/yyyy hh24:mi') AND to_date(:fecFinalVenda,'dd/mm/yyyy hh24:mi') ");
sql.append("WHERE b.fechorviaje BETWEEN to_date(:fecInicioVenda,'dd/mm/yyyy hh24:mi') AND to_date(:fecFinalVenda,'dd/mm/yyyy hh24:mi') "); sql.append(" AND (b.MOTIVOCANCELACION_ID not in (4) or b.MOTIVOCANCELACION_ID is null) ");
sql.append("AND (b.MOTIVOCANCELACION_ID not in (4) or b.MOTIVOCANCELACION_ID is null) ");
if (tipoGratu != null) { if (tipoGratu != null) {
sql.append(" AND b.CATEGORIA_ID in (").append(tipoGratu).append(") "); sql.append(" AND b.CATEGORIA_ID in (").append(tipoGratu).append(") ");
@ -342,39 +328,6 @@ public class RelatorioGratuidadeARTESP extends Relatorio {
sql.append(" AND e.ESTADO_ID IN ( " + estados + " )"); sql.append(" AND e.ESTADO_ID IN ( " + estados + " )");
} }
sql.append("GROUP BY OC.DESCORGAO,");
sql.append(" O.CODEMPRESAPORORGAO,");
sql.append(" B.FECHORVIAJE,");
sql.append(" ori.cveparada,");
sql.append(" ori.descparada,");
sql.append(" des.cveparada,");
sql.append(" des.descparada,");
sql.append(" B.NUMASIENTO,");
sql.append(" b.NUMFOLIOSISTEMA,");
sql.append(" b.NOMBPASAJERO,");
sql.append(" CASE");
sql.append(" WHEN b.DESCNUMDOC IS NOT NULL THEN b.DESCNUMDOC");
sql.append(" ELSE c.NUMIDENTIFICAUNO");
sql.append(" END,");
sql.append(" c.TIPOIDENTIFICAUNO_ID,");
sql.append(" b.descorgaodoc,");
sql.append(" c.TIPOIDENTIFICADOS_ID,");
sql.append(" CASE");
sql.append(" WHEN b.DESCNUMDOC2 IS NOT NULL THEN b.DESCNUMDOC2");
sql.append(" ELSE c.NUMIDENTIFICADOS");
sql.append(" END,");
sql.append(" r.PREFIXO,");
sql.append(" c.DESCCORREO,");
sql.append(" CASE");
sql.append(" WHEN B.MOTIVOCANCELACION_ID IN (31,");
sql.append(" 32,");
sql.append(" 90,");
sql.append(" 23,10) THEN 1");
sql.append(" ELSE 0");
sql.append(" END,");
sql.append(" COALESCE(c.numtelefono, CAJA.DESCTELEFONO),");
sql.append(" (COALESCE(NULL, b.preciobase) + COALESCE(NULL, 0)) -(COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTEPEDAGIO, 0)), ");
sql.append(" bpe.chbpe ");
sql.append("ORDER BY OC.DESCORGAO, "); sql.append("ORDER BY OC.DESCORGAO, ");
sql.append(" O.CODEMPRESAPORORGAO,"); sql.append(" O.CODEMPRESAPORORGAO,");
sql.append(" b.FECHORVIAJE,"); sql.append(" b.FECHORVIAJE,");

View File

@ -187,7 +187,7 @@ public class RelatorioIndiceIRK extends Relatorio {
sb.append(" INNER JOIN parada origen ON (origen.parada_id = tr.origen_id)"); sb.append(" INNER JOIN parada origen ON (origen.parada_id = tr.origen_id)");
sb.append(" INNER JOIN parada destino ON (destino.parada_id = tr.destino_id)"); sb.append(" INNER JOIN parada destino ON (destino.parada_id = tr.destino_id)");
sb.append(" WHERE cj.activo = 1"); sb.append(" WHERE cj.activo = 1");
sb.append(" AND cj.motivocancelacion_id IS NULL"); sb.append(" AND cj.motivocancelacion_id IS NULL and cj.indstatusboleto = 'V' ");
sb.append(" and cj.feccorrida BETWEEN TO_DATE(:DATA_INICIO, 'DD/MM/YY hh24:mi:ss') AND TO_DATE(:DATA_FINAL, 'DD/MM/YY hh24:mi:ss') "); sb.append(" and cj.feccorrida BETWEEN TO_DATE(:DATA_INICIO, 'DD/MM/YY hh24:mi:ss') AND TO_DATE(:DATA_FINAL, 'DD/MM/YY hh24:mi:ss') ");
sb.append(rutaIds == null ||TODOS.equals(rutaIds) ? "" : " AND r.ruta_id IN ( " + rutaIds + " ) "); sb.append(rutaIds == null ||TODOS.equals(rutaIds) ? "" : " AND r.ruta_id IN ( " + rutaIds + " ) ");
sb.append(corridasIds == null || TODOS.equals(corridasIds) ? "" : " AND cj.corrida_id IN ( " + corridasIds + " ) "); sb.append(corridasIds == null || TODOS.equals(corridasIds) ? "" : " AND cj.corrida_id IN ( " + corridasIds + " ) ");

View File

@ -507,7 +507,7 @@ public class RelatorioLinhasHorario extends Relatorio {
sql.append(" INNER JOIN VIGENCIA_TARIFA VT ON (VT.VIGENCIATARIFA_ID = TF.VIGENCIATARIFA_ID AND C.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND VT.FECFINVIGENCIA ) "); sql.append(" INNER JOIN VIGENCIA_TARIFA VT ON (VT.VIGENCIATARIFA_ID = TF.VIGENCIATARIFA_ID AND C.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND VT.FECFINVIGENCIA ) ");
sql.append(" WHERE C.ACTIVO = 1 AND C.FECCORRIDA BETWEEN TO_DATE(:DATA_INICIO, 'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:DATA_FINAL, 'dd/mm/yyyy hh24:mi:ss') "); sql.append(" WHERE C.ACTIVO NOT IN (0,2) AND C.FECCORRIDA BETWEEN TO_DATE(:DATA_INICIO, 'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:DATA_FINAL, 'dd/mm/yyyy hh24:mi:ss') ");
if (lsNumServico.size() > 0) { if (lsNumServico.size() > 0) {
for (Corrida corrida : lsNumServico) { for (Corrida corrida : lsNumServico) {
@ -563,7 +563,7 @@ public class RelatorioLinhasHorario extends Relatorio {
sql.append(" WHERE CO.ACTIVO = 1 "); sql.append(" WHERE CO.ACTIVO NOT IN (0,2) ");
sql.append(" AND RC.ACTIVO = 1"); sql.append(" AND RC.ACTIVO = 1");
sql.append(" AND T.ACTIVO = 1"); sql.append(" AND T.ACTIVO = 1");
sql.append(" AND BO.INDSTATUSBOLETO != 'S' AND BO.MOTIVOCANCELACION_ID IS NULL "); sql.append(" AND BO.INDSTATUSBOLETO != 'S' AND BO.MOTIVOCANCELACION_ID IS NULL ");

View File

@ -516,7 +516,7 @@ public class RelatorioLinhasHorarioSimplificado extends Relatorio {
sql.append(" LEFT JOIN BOLETO B ON (B.CORRIDA_ID = C.CORRIDA_ID AND B.FECCORRIDA = C.FECCORRIDA AND B.ACTIVO = 1 AND B.MOTIVOCANCELACION_ID IS NULL "); sql.append(" LEFT JOIN BOLETO B ON (B.CORRIDA_ID = C.CORRIDA_ID AND B.FECCORRIDA = C.FECCORRIDA AND B.ACTIVO = 1 AND B.MOTIVOCANCELACION_ID IS NULL ");
sql.append(" AND (B.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA).append(" OR PORCCATEGORIA = 100)) "); sql.append(" AND (B.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA).append(" OR PORCCATEGORIA = 100)) ");
sql.append(" WHERE C.ACTIVO = 1 "); sql.append(" WHERE C.ACTIVO NOT IN (0,2) ");
sql.append(" AND C.FECCORRIDA BETWEEN TO_DATE(:DATA_INICIO, 'DD/MM/YYYY hh24:mi:ss') AND TO_DATE(:DATA_FINAL, 'DD/MM/YYYY hh24:mi:ss') "); sql.append(" AND C.FECCORRIDA BETWEEN TO_DATE(:DATA_INICIO, 'DD/MM/YYYY hh24:mi:ss') AND TO_DATE(:DATA_FINAL, 'DD/MM/YYYY hh24:mi:ss') ");
if (lsNumServico.size() > 0) { if (lsNumServico.size() > 0) {
@ -559,7 +559,7 @@ public class RelatorioLinhasHorarioSimplificado extends Relatorio {
sql.append(" INNER JOIN BOLETO BO ON CO.CORRIDA_ID = BO.CORRIDA_ID AND CO.FECCORRIDA = BO.FECCORRIDA AND BO.ACTIVO = 1 "); sql.append(" INNER JOIN BOLETO BO ON CO.CORRIDA_ID = BO.CORRIDA_ID AND CO.FECCORRIDA = BO.FECCORRIDA AND BO.ACTIVO = 1 ");
sql.append(" INNER JOIN RUTA_COMBINACION RC ON RC.RUTA_ID = CO.RUTA_ID "); sql.append(" INNER JOIN RUTA_COMBINACION RC ON RC.RUTA_ID = CO.RUTA_ID ");
sql.append(" INNER JOIN TRAMO T ON RC.TRAMO_ID = T.TRAMO_ID AND T.ORIGEN_ID = BO.ORIGEN_ID AND T.DESTINO_ID = BO.DESTINO_ID "); sql.append(" INNER JOIN TRAMO T ON RC.TRAMO_ID = T.TRAMO_ID AND T.ORIGEN_ID = BO.ORIGEN_ID AND T.DESTINO_ID = BO.DESTINO_ID ");
sql.append(" WHERE CO.ACTIVO = 1 "); sql.append(" WHERE CO.ACTIVO NOT IN (0,2) ");
sql.append(" AND RC.ACTIVO = 1"); sql.append(" AND RC.ACTIVO = 1");
sql.append(" AND T.ACTIVO = 1"); sql.append(" AND T.ACTIVO = 1");
sql.append(" AND BO.INDSTATUSBOLETO != 'S' AND BO.MOTIVOCANCELACION_ID IS NULL "); sql.append(" AND BO.INDSTATUSBOLETO != 'S' AND BO.MOTIVOCANCELACION_ID IS NULL ");

View File

@ -563,19 +563,19 @@ public class RelatorioMovimentacaoBilhete extends Relatorio {
sb.append("AND e.empresa_id = :empresa_id "); sb.append("AND e.empresa_id = :empresa_id ");
} }
if (agencia_id != null) { if (agencia_id != null && !agencia_id.equals(-1)) {
sb.append("AND c.puntoventa_id = :puntoventa_id "); sb.append("AND c.puntoventa_id = :puntoventa_id ");
} }
if (ruta_id != null) { if (ruta_id != null && !ruta_id.equals(-1)) {
sb.append("AND c.ruta_id = :ruta_id "); sb.append("AND c.ruta_id = :ruta_id ");
} }
if (origem_id != null) { if (origem_id != null && !origem_id.equals(-1)) {
sb.append("AND ori.parada_id = :origem_id "); sb.append("AND ori.parada_id = :origem_id ");
} }
if (destino_id != null) { if (destino_id != null && !destino_id.equals(-1)) {
sb.append("AND des.parada_id = :destino_id "); sb.append("AND des.parada_id = :destino_id ");
} }

View File

@ -70,19 +70,19 @@ public class RelatorioOrigemDestino extends Relatorio {
bean.setFechorsalida(rs.getTimestamp("fechorsalida")); bean.setFechorsalida(rs.getTimestamp("fechorsalida"));
bean.setOrigem(rs.getString("origem")); bean.setOrigem(rs.getString("origem"));
bean.setDestino(rs.getString("destino")); bean.setDestino(rs.getString("destino"));
bean.setKm_tramo(rs.getBigDecimal("km_tramo")); bean.setKm_tramo(limpaNulo(rs.getBigDecimal("km_tramo")));
bean.setDescruta(rs.getString("descruta")); bean.setDescruta(rs.getString("descruta"));
bean.setIndsentidoida(rs.getInt("indsentidoida")); bean.setIndsentidoida(rs.getInt("indsentidoida"));
bean.setKm_corrida(rs.getBigDecimal("km_corrida")); bean.setKm_corrida(limpaNulo(rs.getBigDecimal("km_corrida")));
bean.setAbsolutos(rs.getBigDecimal("absolutos")); bean.setAbsolutos(rs.getBigDecimal("absolutos"));
bean.setReceita(rs.getBigDecimal("receita")); bean.setReceita(rs.getBigDecimal("receita"));
bean.setPreciobase(rs.getBigDecimal("preciobase")); bean.setPreciobase(rs.getBigDecimal("preciobase"));
bean.setEquivalente_total_corrida(rs.getBigDecimal("equivalente_total_corrida")); bean.setEquivalente_total_corrida(limpaNulo(rs.getBigDecimal("equivalente_total_corrida")));
bean.setDisponibilidade(rs.getInt("disponibilidade")); bean.setDisponibilidade(rs.getInt("disponibilidade"));
bean.setViagens(rs.getInt("viagens")); bean.setViagens(rs.getInt("viagens"));
bean.setAbsoluto_total_corrida(rs.getInt("absoluto_total_corrida")); bean.setAbsoluto_total_corrida(rs.getInt("absoluto_total_corrida"));
bean.setImportetaxaembarque(rs.getBigDecimal("importetaxaembarque")); bean.setImportetaxaembarque(limpaNulo(rs.getBigDecimal("importetaxaembarque")));
bean.setImportepedagio(rs.getBigDecimal("importepedagio")); bean.setImportepedagio(limpaNulo(rs.getBigDecimal("importepedagio")));
bean.setOrigemId(rs.getInt("origen_id")); bean.setOrigemId(rs.getInt("origen_id"));
bean.setDestinoId(rs.getInt("destino_id")); bean.setDestinoId(rs.getInt("destino_id"));
@ -689,4 +689,12 @@ public class RelatorioOrigemDestino extends Relatorio {
} }
return ""; return "";
} }
private BigDecimal limpaNulo( BigDecimal val ) {
if( val == null ) {
return BigDecimal.ZERO;
}else {
return val;
}
}
} }

View File

@ -2,14 +2,19 @@ package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.List;
import java.util.Map; import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.MoneyHelper;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioQuadroDemonstrativoMovimentoPassageirosNovoLayout extends Relatorio { public class RelatorioQuadroDemonstrativoMovimentoPassageirosNovoLayout extends Relatorio {
@ -67,6 +72,7 @@ public class RelatorioQuadroDemonstrativoMovimentoPassageirosNovoLayout extends
String origem = map.get("origem").toString(); String origem = map.get("origem").toString();
String destino = map.get("destino").toString(); String destino = map.get("destino").toString();
String numRuta = map.get("numRuta").toString(); String numRuta = map.get("numRuta").toString();
BigDecimal tarifa = (BigDecimal) map.get("tarifa");
Long ida = (Long) map.get("totalida"); Long ida = (Long) map.get("totalida");
Long volta = (Long) map.get("totalvolta"); Long volta = (Long) map.get("totalvolta");
@ -74,7 +80,7 @@ public class RelatorioQuadroDemonstrativoMovimentoPassageirosNovoLayout extends
if (origem.equals(rset.getString("destino")) if (origem.equals(rset.getString("destino"))
&& destino.equals(rset.getString("origem")) && destino.equals(rset.getString("origem"))
&& numRuta.equals(rset.getString("numRuta"))) { && numRuta.equals(rset.getString("numRuta")) && (tarifa != null && MoneyHelper.isIgual(tarifa, rset.getBigDecimal("tarifa")))) {
agrupar = true; agrupar = true;
if (ida == 0) { if (ida == 0) {
map.put("totalida", rset.getLong("totalida")); map.put("totalida", rset.getLong("totalida"));
@ -110,14 +116,14 @@ public class RelatorioQuadroDemonstrativoMovimentoPassageirosNovoLayout extends
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append(" SELECT DISTINCT "); sql.append(" SELECT DISTINCT ");
sql.append(" sum(b.preciopagado + b.importepedagio) as totalReceita, "); sql.append(" sum(b.preciopagado + b.importepedagio) AS totalReceita, ");
sql.append(" tar.precio as tarifa, "); sql.append(" tar.precio AS tarifa, ");
sql.append(" e.nombempresa empresa, "); sql.append(" e.nombempresa AS empresa, ");
sql.append(" r.descruta linha, "); sql.append(" r.descruta AS linha, ");
sql.append(" r.NUMRUTA, "); sql.append(" r.NUMRUTA, ");
sql.append(" ori.descparada AS origem, "); sql.append(" ori.descparada AS origem, ");
sql.append(" des.descparada AS destino, "); sql.append(" des.descparada AS destino, ");
sql.append(" MAX(tr.CANTKMREAL) as km, "); sql.append(" MAX(tr.CANTKMREAL) AS km, ");
sql.append(" COUNT( DISTINCT "); sql.append(" COUNT( DISTINCT ");
sql.append(" CASE "); sql.append(" CASE ");
sql.append(" WHEN(r.indsentidoida = 1) THEN b.boleto_id "); sql.append(" WHEN(r.indsentidoida = 1) THEN b.boleto_id ");
@ -130,26 +136,38 @@ public class RelatorioQuadroDemonstrativoMovimentoPassageirosNovoLayout extends
sql.append(" ELSE NULL "); sql.append(" ELSE NULL ");
sql.append(" END "); sql.append(" END ");
sql.append(" ) AS totalvolta, "); sql.append(" ) AS totalvolta, ");
sql.append(" rc.rutacombinacion_id rutaCombinacionId "); sql.append(" rc.rutacombinacion_id AS rutaCombinacionId, ");
sql.append(" rs.numsecuencia ");
sql.append(" FROM "); sql.append(" FROM ");
sql.append(" boleto b "); sql.append(" boleto b ");
sql.append(" JOIN empresa e ON e.empresa_id = b.empresacorrida_id "); sql.append(" JOIN empresa e ON ( e.empresa_id = b.empresacorrida_id ) ");
sql.append(" JOIN marca m ON m.empresa_id = b.empresacorrida_id "); sql.append(" JOIN marca m ON ( m.empresa_id = b.empresacorrida_id ) ");
sql.append(" JOIN categoria ca ON b.categoria_id = ca.categoria_id "); sql.append(" JOIN categoria ca ON ( b.categoria_id = ca.categoria_id ) ");
sql.append(" JOIN parada ori ON ori.parada_id = b.origen_id "); sql.append(" JOIN parada ori ON ( ori.parada_id = b.origen_id ) ");
sql.append(" JOIN parada des ON des.parada_id = b.destino_id "); sql.append(" JOIN parada des ON ( des.parada_id = b.destino_id ) ");
sql.append(" JOIN ruta r ON r.ruta_id = b.ruta_id "); sql.append(" JOIN ruta r ON (r.ruta_id = b.ruta_id ) ");
sql.append(" JOIN RUTA_COMBINACION rc ON rc.ruta_id = r.ruta_id and rc.activo = 1 "); sql.append(" JOIN RUTA_COMBINACION rc ON ( rc.ruta_id = r.ruta_id and rc.activo = 1 ) ");
sql.append(" INNER JOIN tramo tr ON tr.TRAMO_ID =rc.TRAMO_ID AND tr.ORIGEN_ID = ori.PARADA_ID AND tr.DESTINO_ID = des.PARADA_ID AND tr.ACTIVO = 1 "); sql.append(" INNER JOIN tramo tr ON ( tr.TRAMO_ID = rc.TRAMO_ID ");
sql.append(" JOIN clase_servicio cs ON (b.claseservicio_id = cs.claseservicio_id ) "); sql.append(" AND tr.ORIGEN_ID = ori.PARADA_ID ");
sql.append(" INNER JOIN vigencia_tarifa vt ON b.fechorventa BETWEEN vt.feciniciovigencia AND vt.fecfinvigencia AND vt.activo = 1 "); sql.append(" AND tr.DESTINO_ID = des.PARADA_ID ");
sql.append(" INNER JOIN tarifa tar ON (tar.ruta_id = b.ruta_id "); sql.append(" AND tr.ACTIVO = 1 ) ");
sql.append(" JOIN clase_servicio cs ON ( b.claseservicio_id = cs.claseservicio_id ) ");
sql.append(" INNER JOIN vigencia_tarifa vt ON ( b.fechorventa BETWEEN vt.feciniciovigencia ");
sql.append(" AND vt.fecfinvigencia ");
sql.append(" AND vt.activo = 1 ) ");
sql.append(" INNER JOIN tarifa tar ON ( tar.ruta_id = b.ruta_id ");
sql.append(" AND tar.marca_id = m.marca_id "); sql.append(" AND tar.marca_id = m.marca_id ");
sql.append(" AND tar.claseservicio_id = b.claseservicio_id "); sql.append(" AND tar.claseservicio_id = b.claseservicio_id ");
sql.append(" AND tar.vigenciatarifa_id = vt.vigenciatarifa_id "); sql.append(" AND tar.vigenciatarifa_id = vt.vigenciatarifa_id ");
sql.append(" AND tar.origen_id = b.origen_id "); sql.append(" AND tar.origen_id = b.origen_id ");
sql.append(" AND tar.destino_id = b.destino_id "); sql.append(" AND tar.destino_id = b.destino_id ");
sql.append("AND tar.activo = 1 ) "); sql.append(" AND tar.TRAMO_ID = tr.TRAMO_ID ");
sql.append(" AND tar.activo = 1 ) ");
sql.append(" LEFT JOIN ruta_secuencia rs ON (tr.tramo_id = rs.tramo_id ");
sql.append(" AND r.ruta_id = rs.ruta_id ");
sql.append(" AND rs.activo =1 ) ");
sql.append(" WHERE b.empresacorrida_id IN :empresa_id "); sql.append(" WHERE b.empresacorrida_id IN :empresa_id ");
sql.append(" AND b.motivocancelacion_id is null "); sql.append(" AND b.motivocancelacion_id is null ");
@ -166,8 +184,11 @@ public class RelatorioQuadroDemonstrativoMovimentoPassageirosNovoLayout extends
sql.append(" r.descruta, "); sql.append(" r.descruta, ");
sql.append(" r.numruta, "); sql.append(" r.numruta, ");
sql.append(" ori.descparada, "); sql.append(" ori.descparada, ");
sql.append(" des.descparada, rc.rutacombinacion_id "); sql.append(" des.descparada, ");
sql.append(" rc.rutacombinacion_id, ");
sql.append(" rs.numsecuencia ");
sql.append(" ORDER BY "); sql.append(" ORDER BY ");
sql.append(" rs.numsecuencia, ");
sql.append(" r.descruta, "); sql.append(" r.descruta, ");
sql.append(" rc.rutacombinacion_id "); sql.append(" rc.rutacombinacion_id ");

View File

@ -14,8 +14,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioReceitaServico extends Relatorio { public class RelatorioReceitaServico extends Relatorio {
public RelatorioReceitaServico(Map<String, Object> parametros, Connection conexao) throws Exception public RelatorioReceitaServico(Map<String, Object> parametros, Connection conexao) throws Exception {
{
super(parametros, conexao); super(parametros, conexao);
this.setCustomDataSource(new ArrayDataSource(this) { this.setCustomDataSource(new ArrayDataSource(this) {
@ -51,8 +50,6 @@ public class RelatorioReceitaServico extends Relatorio {
if (parametros.get("CLASESERVICIO_ID") != null && (!parametros.get("CLASESERVICIO_ID").equals(""))) if (parametros.get("CLASESERVICIO_ID") != null && (!parametros.get("CLASESERVICIO_ID").equals("")))
stmt.setInt("CLASESERVICIO_ID", (Integer) parametros.get("CLASESERVICIO_ID")); stmt.setInt("CLASESERVICIO_ID", (Integer) parametros.get("CLASESERVICIO_ID"));
// else
// stmt.setNull("CLASESERVICIO_ID", java.sql.Types.INTEGER);
ResultSet rset = stmt.executeQuery(); ResultSet rset = stmt.executeQuery();
@ -73,6 +70,7 @@ public class RelatorioReceitaServico extends Relatorio {
dataResult.put("total", rset.getBigDecimal("total")); dataResult.put("total", rset.getBigDecimal("total"));
dataResult.put("tipo", rset.getString("tipo")); dataResult.put("tipo", rset.getString("tipo"));
dataResult.put("agencia", rset.getString("agencia")); dataResult.put("agencia", rset.getString("agencia"));
dataResult.put("telefone", rset.getString("telefone"));
dataResult.put("dataHoraCompra", rset.getTimestamp("dataHoraCompra")); dataResult.put("dataHoraCompra", rset.getTimestamp("dataHoraCompra"));
dataResult.put("passageiro", !(rset.getString("passageiro") == null) ? rset.getString("passageiro") : ""); dataResult.put("passageiro", !(rset.getString("passageiro") == null) ? rset.getString("passageiro") : "");
dataResult.put("nrBilhete", !(rset.getString("nrBilhete") == null) ? rset.getString("nrBilhete") : ""); dataResult.put("nrBilhete", !(rset.getString("nrBilhete") == null) ? rset.getString("nrBilhete") : "");
@ -107,6 +105,7 @@ public class RelatorioReceitaServico extends Relatorio {
sql.append("p.nombpuntoventa AS agencia, "); sql.append("p.nombpuntoventa AS agencia, ");
sql.append("b.fechorventa AS dataHoraCompra, "); sql.append("b.fechorventa AS dataHoraCompra, ");
sql.append("b.nombpasajero AS passageiro, "); sql.append("b.nombpasajero AS passageiro, ");
sql.append("b.desctelefono AS telefone, ");
sql.append("b.NUMFOLIOSISTEMA AS nrBilhete "); sql.append("b.NUMFOLIOSISTEMA AS nrBilhete ");
sql.append("FROM BOLETO b "); sql.append("FROM BOLETO b ");
sql.append("INNER JOIN marca mar ON b.marca_id = mar.marca_id "); sql.append("INNER JOIN marca mar ON b.marca_id = mar.marca_id ");

View File

@ -150,7 +150,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
sql.append(" subnivel4.numruta, "); sql.append(" subnivel4.numruta, ");
sql.append(" subnivel4.interestadual,"); sql.append(" subnivel4.interestadual,");
sql.append(" subnivel4.grupo_linha, "); sql.append(" subnivel4.grupo_linha, ");
sql.append(" subnivel4.extensao_km,"); sql.append(" COALESCE(subnivel4.extensao_km,0) as extensao_km");
sql.append(" subnivel4.cve_clase_servicio, "); sql.append(" subnivel4.cve_clase_servicio, ");
sql.append(" subnivel4.desc_clase_servicio,"); sql.append(" subnivel4.desc_clase_servicio,");
sql.append(" SUM(nvl(subnivel4.receita_seguro, 0)) AS receita_seguro, "); sql.append(" SUM(nvl(subnivel4.receita_seguro, 0)) AS receita_seguro, ");

View File

@ -112,7 +112,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
sqlSb.append(" TAB.DESCRUTA, "); sqlSb.append(" TAB.DESCRUTA, ");
sqlSb.append(" TAB.INTERESTADUAL, "); sqlSb.append(" TAB.INTERESTADUAL, ");
sqlSb.append(" TAB.GRUPO_LINHA, "); sqlSb.append(" TAB.GRUPO_LINHA, ");
sqlSb.append(" TAB.EXTENSAO_KM, "); sqlSb.append(" COALESCE(TAB.EXTENSAO_KM, 0) AS EXTENSAO_KM, ");
sqlSb.append(" TAB.CVE_CLASE_SERVICIO, "); sqlSb.append(" TAB.CVE_CLASE_SERVICIO, ");
sqlSb.append(" SUM(NVL(TAB.RECEITA_SEGURO,0)) AS RECEITA_SEGURO, "); sqlSb.append(" SUM(NVL(TAB.RECEITA_SEGURO,0)) AS RECEITA_SEGURO, ");
sqlSb.append(" SUM(NVL(TAB.RECEITA_BAGAGEM,0)) AS RECEITA_BAGAGEM, "); sqlSb.append(" SUM(NVL(TAB.RECEITA_BAGAGEM,0)) AS RECEITA_BAGAGEM, ");

View File

@ -260,9 +260,9 @@ public class RelatorioTaxasLinha extends Relatorio {
sql.append(" EM.EMPRESA_ID, "); sql.append(" EM.EMPRESA_ID, ");
sql.append(" CJ.PUNTOVENTA_ID, "); sql.append(" CJ.PUNTOVENTA_ID, ");
sql.append(" PV.NOMBPUNTOVENTA, "); sql.append(" PV.NOMBPUNTOVENTA, ");
sql.append(" SUM(CASE WHEN (CJ.IMPORTETAXAEMBARQUE>0 and cj.motivocancelacion_id is null ) THEN 1 WHEN (CJ.IMPORTETAXAEMBARQUE>0 and cj.motivocancelacion_id is not null ) then -1 ELSE 0 END) EMBARQUE_VENDIDOS, "); sql.append(" SUM(CASE WHEN (CJ.IMPORTETAXAEMBARQUE>0 and cj.indcancelacion = 0 ) THEN 1 WHEN (CJ.IMPORTETAXAEMBARQUE>0 and cj.indcancelacion = 1 ) then -1 ELSE 0 END) EMBARQUE_VENDIDOS, ");
sql.append(" SUM(CASE WHEN (CJ.IMPORTEPEDAGIO>0 and cj.motivocancelacion_id is null) THEN 1 WHEN (CJ.IMPORTEPEDAGIO>0 and cj.motivocancelacion_id is not null) THEN -1 ELSE 0 END) PEDAGIO_VENDIDOS, "); sql.append(" SUM(CASE WHEN (CJ.IMPORTEPEDAGIO>0 and cj.indcancelacion = 0 ) THEN 1 WHEN (CJ.IMPORTEPEDAGIO>0 and cj.indcancelacion = 1 ) THEN -1 ELSE 0 END) PEDAGIO_VENDIDOS, ");
sql.append(" SUM(CASE WHEN (CJ.IMPORTESEGURO>0 and cj.motivocancelacion_id is null) THEN 1 WHEN (CJ.IMPORTESEGURO>0 and cj.motivocancelacion_id is not null) THEN -1 ELSE 0 END) SEGURO_VENDIDOS, "); sql.append(" SUM(CASE WHEN (CJ.IMPORTESEGURO>0 and cj.indcancelacion = 0 ) THEN 1 WHEN (CJ.IMPORTESEGURO>0 and cj.indcancelacion = 1 ) THEN -1 ELSE 0 END) SEGURO_VENDIDOS, ");
sql.append(" CO.ESTADO_ID ORIGEM_ESTADO_ID, "); sql.append(" CO.ESTADO_ID ORIGEM_ESTADO_ID, ");
sql.append(" CD.ESTADO_ID DESTINO_ESTADO_ID, "); sql.append(" CD.ESTADO_ID DESTINO_ESTADO_ID, ");
sql.append(" CASE "); sql.append(" CASE ");
@ -271,9 +271,9 @@ public class RelatorioTaxasLinha extends Relatorio {
sql.append(" ELSE "); sql.append(" ELSE ");
sql.append(" 'N' "); sql.append(" 'N' ");
sql.append(" END INTERESTADUAL, "); sql.append(" END INTERESTADUAL, ");
sql.append(" SUM( (case when cj.motivocancelacion_id is null then 1 else -1 end) * CJ.IMPORTETAXAEMBARQUE) TOTAL_EMBARQUE, "); sql.append(" SUM( (case when cj.indcancelacion = 0 then 1 else -1 end) * CJ.IMPORTETAXAEMBARQUE) TOTAL_EMBARQUE, ");
sql.append(" SUM( (case when cj.motivocancelacion_id is null then 1 else -1 end) * CJ.IMPORTEPEDAGIO) TOTAL_PEDAGIO, "); sql.append(" SUM( (case when cj.indcancelacion = 0 then 1 else -1 end) * CJ.IMPORTEPEDAGIO) TOTAL_PEDAGIO, ");
sql.append(" SUM( (case when cj.motivocancelacion_id is null then 1 else -1 end) * CJ.IMPORTESEGURO) TOTAL_SEGURO, "); sql.append(" SUM( (case when cj.indcancelacion = 0 then 1 else -1 end) * CJ.IMPORTESEGURO) TOTAL_SEGURO, ");
sql.append(" EST.ICMS AS ICMS, "); sql.append(" EST.ICMS AS ICMS, ");
sql.append(" SUM( (case when sx.status =0 then 1 else 0.0 end)) QTD_SEGUROOPCIONALCANCELADO, "); sql.append(" SUM( (case when sx.status =0 then 1 else 0.0 end)) QTD_SEGUROOPCIONALCANCELADO, ");
sql.append(" SUM( (case when sx.status =0 then sx.valor else 0.0 end )) TOTAL_SEG_CANCELADO, "); sql.append(" SUM( (case when sx.status =0 then sx.valor else 0.0 end )) TOTAL_SEG_CANCELADO, ");
@ -290,11 +290,12 @@ public class RelatorioTaxasLinha extends Relatorio {
sql.append("INNER JOIN CIUDAD CD ON PD.CIUDAD_ID = CD.CIUDAD_ID "); sql.append("INNER JOIN CIUDAD CD ON PD.CIUDAD_ID = CD.CIUDAD_ID ");
sql.append("LEFT JOIN CORRIDA CR ON (CJ.CORRIDA_ID = CR.CORRIDA_ID AND CJ.FECCORRIDA = CR.FECCORRIDA) "); sql.append("LEFT JOIN CORRIDA CR ON (CJ.CORRIDA_ID = CR.CORRIDA_ID AND CJ.FECCORRIDA = CR.FECCORRIDA) ");
sql.append("LEFT JOIN RUTA RT ON RT.RUTA_ID = CJ.RUTA_ID "); sql.append("LEFT JOIN RUTA RT ON RT.RUTA_ID = CJ.RUTA_ID ");
sql.append("LEFT JOIN SEGPOLV SX ON SX.BOLETO_ID =CJ.TRANSACAO_ID "); sql.append("LEFT JOIN SEGPOLV SX ON SX.BOLETO_ID = CJ.TRANSACAO_ID ");
sql.append("LEFT JOIN TAXPOLV TX ON TX.BOLETO_ID = CJ.TRANSACAO_ID ");
sql.append("WHERE (CJ.IMPORTETAXAEMBARQUE>0 OR CJ.IMPORTEPEDAGIO>0 OR CJ.IMPORTESEGURO>0 OR SX.VALOR>0) "); sql.append("WHERE (CJ.IMPORTETAXAEMBARQUE>0 OR CJ.IMPORTEPEDAGIO>0 OR CJ.IMPORTESEGURO>0 OR SX.VALOR>0 OR TX.VALORTAXA > 0) ");
sql.append("AND CJ.INDSTATUSOPERACION = 'F' "); sql.append("AND CJ.INDSTATUSOPERACION = 'F' ");
sql.append("AND CJ.INDREIMPRESION = 0 "); sql.append("AND CJ.indstatusboleto not in ('E') ");
sql.append("AND DECODE(:TIPO_DATA, 1, CJ.FECHORVENTA, 2, CJ.FECCORRIDA) BETWEEN :DATA_INICIAL AND :DATA_FINAL "); sql.append("AND DECODE(:TIPO_DATA, 1, CJ.FECHORVENTA, 2, CJ.FECCORRIDA) BETWEEN :DATA_INICIAL AND :DATA_FINAL ");
sql.append("AND EM.EMPRESA_ID = COALESCE(:EMPRESA_ID, EM.EMPRESA_ID) "); sql.append("AND EM.EMPRESA_ID = COALESCE(:EMPRESA_ID, EM.EMPRESA_ID) ");
@ -317,6 +318,7 @@ public class RelatorioTaxasLinha extends Relatorio {
sql.append(" CJ.PUNTOVENTA_ID, "); sql.append(" CJ.PUNTOVENTA_ID, ");
sql.append(" PV.NOMBPUNTOVENTA, "); sql.append(" PV.NOMBPUNTOVENTA, ");
sql.append(" EST.ICMS "); sql.append(" EST.ICMS ");
sql.append(" ORDER BY EM.NOMBEMPRESA,PV.NOMBPUNTOVENTA ,PO.DESCPARADA, PD.DESCPARADA "); sql.append(" ORDER BY EM.NOMBEMPRESA,PV.NOMBPUNTOVENTA ,PO.DESCPARADA, PD.DESCPARADA ");
return sql.toString(); return sql.toString();

View File

@ -65,6 +65,8 @@ public class RelatorioVendasBilheteiro extends Relatorio {
sql.append(" m.EMPRESA_ID = :EMPRESA_ID "); sql.append(" m.EMPRESA_ID = :EMPRESA_ID ");
sql.append(" and c.FECHORVENTA >= :DATA_INICIAL "); sql.append(" and c.FECHORVENTA >= :DATA_INICIAL ");
sql.append(" and c.FECHORVENTA <= :DATA_FINAL "); sql.append(" and c.FECHORVENTA <= :DATA_FINAL ");
sql.append(" and ((c.indreimpresion = 1 ");
sql.append(" AND c.motivoreimpresion_id = 99) or c.indreimpresion = 0) ");
if (parametros.get("NUMPUNTOVENTA") != null && !possuiFiltroTodos("NUMPUNTOVENTA")) { if (parametros.get("NUMPUNTOVENTA") != null && !possuiFiltroTodos("NUMPUNTOVENTA")) {
sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")"); sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
} }

View File

@ -24,7 +24,7 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioVendasCartoes extends Relatorio { public class RelatorioVendasCartoes extends Relatorio {
private static Logger log = Logger.getLogger(RelatorioMovimentacaoEstoque.class); private static Logger log = Logger.getLogger(RelatorioVendasCartoes.class);
List<RelatorioVendasCartoesBean> list = null; List<RelatorioVendasCartoesBean> list = null;
@ -49,26 +49,27 @@ public class RelatorioVendasCartoes extends Relatorio {
String tipoAgencias = (String) parametros.get("TIPOPUNTOVENTA"); String tipoAgencias = (String) parametros.get("TIPOPUNTOVENTA");
String sql = getSql(dataInicial, dataFinal, empresa, puntoVenta, tipoAgencias, usuario, estacao, buscarPorDataDaVenda); String sql = getSql(dataInicial, dataFinal, empresa, puntoVenta, tipoAgencias, usuario, estacao, buscarPorDataDaVenda);
log.info("query= " + sql);
try { try {
stmt = new NamedParameterStatement(conexao, sql); stmt = new NamedParameterStatement(conexao, sql);
if(empresa != null){ if (empresa != null) {
stmt.setInt("empresaId", empresa.getEmpresaId()); stmt.setInt("empresaId", empresa.getEmpresaId());
} }
if(puntoVenta != null){ if (puntoVenta != null) {
stmt.setInt("puntoventaId", puntoVenta.getPuntoventaId()); stmt.setInt("puntoventaId", puntoVenta.getPuntoventaId());
} }
if(dataInicial != null){ if (dataInicial != null) {
stmt.setString("dataInicial",dataInicial); stmt.setString("dataInicial", dataInicial);
} }
if(dataFinal != null){ if (dataFinal != null) {
stmt.setString("dataFinal", dataFinal); stmt.setString("dataFinal", dataFinal);
} }
if(estacao != null){ if (estacao != null) {
stmt.setInt("estacionId", estacao.getEstacionId()); stmt.setInt("estacionId", estacao.getEstacionId());
} }
if(usuario != null){ if (usuario != null) {
stmt.setInt("usuarioId", usuario.getUsuarioId()); stmt.setInt("usuarioId", usuario.getUsuarioId());
} }
@ -102,10 +103,10 @@ public class RelatorioVendasCartoes extends Relatorio {
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} finally { } finally {
if(rset != null && !rset.isClosed()) { if (rset != null && !rset.isClosed()) {
rset.close(); rset.close();
} }
if(stmt != null && !stmt.isClosed()) { if (stmt != null && !stmt.isClosed()) {
stmt.close(); stmt.close();
} }
} }
@ -115,11 +116,11 @@ public class RelatorioVendasCartoes extends Relatorio {
this.setCollectionDataSource(new JRBeanCollectionDataSource(list)); this.setCollectionDataSource(new JRBeanCollectionDataSource(list));
} }
private RelatorioVendasCartoesBean calcTotalValor(RelatorioVendasCartoesBean bean) { // private RelatorioVendasCartoesBean calcTotalValor(RelatorioVendasCartoesBean bean) {
BigDecimal valorTotal = bean.getValorTotal().add(bean.getValorTotal()); // BigDecimal valorTotal = bean.getValorTotal().add(bean.getValorTotal());
bean.setValorTotal(valorTotal); // bean.setValorTotal(valorTotal);
return bean; // return bean;
} // }
@Override @Override
protected void processaParametros() throws Exception { protected void processaParametros() throws Exception {
@ -169,29 +170,29 @@ public class RelatorioVendasCartoes extends Relatorio {
sb.append(" LEFT JOIN estacion_sitef estsitef ON ( estsitef.estacion_id = c.estacion_id and estsitef.activo = 1) "); sb.append(" LEFT JOIN estacion_sitef estsitef ON ( estsitef.estacion_id = c.estacion_id and estsitef.activo = 1) ");
sb.append(" WHERE c.indreimpresion = 0 "); sb.append(" WHERE c.indreimpresion = 0 ");
if(empresa!= null){ if (empresa != null) {
sb.append("and ma.empresa_id = :empresaId "); sb.append("and ma.empresa_id = :empresaId ");
} }
if(puntoVenta != null){ if (puntoVenta != null) {
sb.append("AND c.puntoventa_id = :puntoventaId "); sb.append("AND c.puntoventa_id = :puntoventaId ");
} }
if(estacion!= null){ if (estacion != null) {
sb.append("AND c.estacion_id = :estacionId "); sb.append("AND c.estacion_id = :estacionId ");
} }
if(usuario!= null){ if (usuario != null) {
sb.append(" and c.usuario_id = :usuarioId "); sb.append(" and c.usuario_id = :usuarioId ");
} }
if(dataInicial != null && buscarPorDataDaVenda){ if (dataInicial != null && buscarPorDataDaVenda) {
sb.append("AND c.fechorventa >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') "); sb.append("AND c.fechorventa >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') ");
} else if (dataInicial != null && !buscarPorDataDaVenda) { } else if (dataInicial != null && !buscarPorDataDaVenda) {
sb.append("AND c.feccorte >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') "); sb.append("AND c.feccorte >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') ");
} }
if(dataFinal != null && buscarPorDataDaVenda){ if (dataFinal != null && buscarPorDataDaVenda) {
sb.append("AND c.fechorventa <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') "); sb.append("AND c.fechorventa <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
} else if (dataInicial != null && !buscarPorDataDaVenda) { } else if (dataInicial != null && !buscarPorDataDaVenda) {
sb.append("AND c.feccorte <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') "); sb.append("AND c.feccorte <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
@ -199,8 +200,6 @@ public class RelatorioVendasCartoes extends Relatorio {
sb.append(tipoAgencias.equals("-1") || tipoAgencias.equals("TODAS") ? "" : " and pt.tipoptovta_id not in (" + tipoAgencias + ") "); sb.append(tipoAgencias.equals("-1") || tipoAgencias.equals("TODAS") ? "" : " and pt.tipoptovta_id not in (" + tipoAgencias + ") ");
sb.append(" AND fp.formapago_id IN(2,3)"); sb.append(" AND fp.formapago_id IN(2,3)");
sb.append(" AND c.activo = 1) caja "); sb.append(" AND c.activo = 1) caja ");
sb.append("GROUP BY caja.descpago,"); sb.append("GROUP BY caja.descpago,");

View File

@ -105,11 +105,11 @@ public class RelatorioVendasConexaoRuta extends Relatorio {
bean.setNomeAgencia((String) rset.getString("nomeAgencia")); bean.setNomeAgencia((String) rset.getString("nomeAgencia"));
bean.setServico((Integer) rset.getInt("servico")); bean.setServico((Integer) rset.getInt("servico"));
bean.setPoltrona((String) rset.getObject("poltrona")); bean.setPoltrona((String) rset.getObject("poltrona"));
bean.setNumLinha((Integer) rset.getInt("numLinha")); bean.setNumLinha((String) rset.getString("numLinha"));
bean.setDescricaoLinha((String) rset.getObject("descricaoLinha")); bean.setDescricaoLinha((String) rset.getObject("descricaoLinha"));
bean.setCodOrigem((Integer) rset.getInt("codOrigem")); bean.setCodOrigem((String) rset.getString("codOrigem"));
bean.setDescricaoOrigem((String) rset.getObject("descricaoOrigem")); bean.setDescricaoOrigem((String) rset.getObject("descricaoOrigem"));
bean.setCodDestino((Integer) rset.getInt("codDestino")); bean.setCodDestino((String) rset.getString("codDestino"));
bean.setDescricaoDestino((String) rset.getObject("descricaoDestino")); bean.setDescricaoDestino((String) rset.getObject("descricaoDestino"));
bean.setDataEmbarque((Date) rset.getObject("dataEmbarque")); bean.setDataEmbarque((Date) rset.getObject("dataEmbarque"));
bean.setDataVenda((Date) rset.getObject("dataVenda")); bean.setDataVenda((Date) rset.getObject("dataVenda"));
@ -192,10 +192,10 @@ public class RelatorioVendasConexaoRuta extends Relatorio {
sb.append("INNER JOIN vigencia_tarifa vt ON c.fechorventa BETWEEN vt.feciniciovigencia AND vt.fecfinvigencia "); sb.append("INNER JOIN vigencia_tarifa vt ON c.fechorventa BETWEEN vt.feciniciovigencia AND vt.fecfinvigencia ");
sb.append("AND vt.activo = 1 "); sb.append("AND vt.activo = 1 ");
sb.append("INNER JOIN usuario u ON (c.usuario_id = u.usuario_id) "); sb.append("INNER JOIN usuario u ON (c.usuario_id = u.usuario_id) ");
sb.append("left join conexion cc on cc.conexionctrl_id = c.conexionctrl_id and cc.activo =1 "); sb.append("left join conexion cc on cc.conexionctrl_id = c.conexionctrl_id ");
sb.append("left join conexion_ruta_tramo_ctrl ctr on ctr.conexionrutatramoctrl_id = cc.conexionrutatramoctrl_id and ctr.activo = 1 "); sb.append("left join conexion_ruta_tramo_ctrl ctr on ctr.conexionrutatramoctrl_id = cc.conexionrutatramoctrl_id ");
sb.append("left join conexion_ruta_ctrl ctrl on ctrl.conexionrutactrl_id = ctr.conexionrutactrl_id and ctrl.activo =1 "); sb.append("left join conexion_ruta_ctrl ctrl on ctrl.conexionrutactrl_id = ctr.conexionrutactrl_id ");
sb.append("left join conexion_ruta_conf conf on conf.conexionrutaconf_id = ctrl.conexionrutaconf_id and conf.activo =1 "); sb.append("left join conexion_ruta_conf conf on conf.conexionrutaconf_id = ctrl.conexionrutaconf_id ");
sb.append("left JOIN CONVENIO_DET CONV_D ON CONV_D.CONVENIODET_ID = c.CONVENIODET_ID "); sb.append("left JOIN CONVENIO_DET CONV_D ON CONV_D.CONVENIODET_ID = c.CONVENIODET_ID ");
sb.append(" left join CONVENIO CONV ON CONV.CONVENIO_ID = CONV_D.CONVENIO_ID "); sb.append(" left join CONVENIO CONV ON CONV.CONVENIO_ID = CONV_D.CONVENIO_ID ");
sb.append("WHERE c.indconexion = 1"); sb.append("WHERE c.indconexion = 1");

View File

@ -166,7 +166,7 @@ public class RelatorioVendasRequisicao extends Relatorio {
.append("JOIN MARCA M ON C.MARCA_ID = M.MARCA_ID ") .append("JOIN MARCA M ON C.MARCA_ID = M.MARCA_ID ")
.append("JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID ") .append("JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID ")
.append("JOIN PUNTO_VENTA PV ON PV.PUNTOVENTA_ID = C.PUNTOVENTA_ID ") .append("JOIN PUNTO_VENTA PV ON PV.PUNTOVENTA_ID = C.PUNTOVENTA_ID ")
.append("WHERE FP.FORMAPAGO_ID = 11 ") .append("WHERE (FP.FORMAPAGO_ID = 11 OR FP.TIPO_PAGO = 6) ")
.append("AND C.ACTIVO = 1 ") .append("AND C.ACTIVO = 1 ")
.append("AND C.INDREIMPRESION = 0 "); .append("AND C.INDREIMPRESION = 0 ");

View File

@ -9,6 +9,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
@ -34,7 +35,7 @@ public class RelatorioW2IAnalitico extends Relatorio {
Connection conexao = this.relatorio.getConexao(); Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros(); Map<String, Object> parametros = this.relatorio.getParametros();
String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA"); String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA");
puntosVentaIds = StringUtils.replace(puntosVentaIds, "," , "','");
lsDadosRelatorio = new ArrayList<RelatorioW2IBean>(); lsDadosRelatorio = new ArrayList<RelatorioW2IBean>();
String sql = getSql(puntosVentaIds); String sql = getSql(puntosVentaIds);
@ -134,8 +135,8 @@ public class RelatorioW2IAnalitico extends Relatorio {
sql.append("AND po.parada_id = COALESCE(:ORIGEN_ID, po.parada_id) "); sql.append("AND po.parada_id = COALESCE(:ORIGEN_ID, po.parada_id) ");
sql.append("AND pd.parada_id = COALESCE(:DESTINO_ID, pd.parada_id) "); sql.append("AND pd.parada_id = COALESCE(:DESTINO_ID, pd.parada_id) ");
if (!puntosVentaIds.equals("Todas")) { if (!puntosVentaIds.contains("-1")) {
sql.append(" AND pv.puntoventa_id IN (").append(puntosVentaIds).append(") "); sql.append(" AND pv.puntoventa_id IN ('"+puntosVentaIds+"') ");
} }
sql.append("ORDER BY b.fechorventa ASC "); sql.append("ORDER BY b.fechorventa ASC ");

View File

@ -9,6 +9,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
@ -92,7 +93,7 @@ public class RelatorioW2ISintetico extends Relatorio {
private String getSql(Map<String, Object> parametros) { private String getSql(Map<String, Object> parametros) {
String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA"); String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA");
puntosVentaIds = StringUtils.replace(puntosVentaIds, "," , "','");
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append("SELECT DISTINCT "); sql.append("SELECT DISTINCT ");
sql.append("em.empresa_id AS empresaId, "); sql.append("em.empresa_id AS empresaId, ");
@ -123,7 +124,7 @@ public class RelatorioW2ISintetico extends Relatorio {
if (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != "" && ((Integer) parametros.get("DESTINO_ID") != -1)) { if (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != "" && ((Integer) parametros.get("DESTINO_ID") != -1)) {
sql.append("AND pd.parada_id = COALESCE(:DESTINO_ID, pd.parada_id) "); sql.append("AND pd.parada_id = COALESCE(:DESTINO_ID, pd.parada_id) ");
} }
if (!puntosVentaIds.equals("Todas")) { if (!puntosVentaIds.contains("-1")) {
sql.append(" AND pv.puntoventa_id IN (").append(puntosVentaIds).append(") "); sql.append(" AND pv.puntoventa_id IN (").append(puntosVentaIds).append(") ");
} }
sql.append("GROUP BY em.empresa_id, em.nombempresa,pv.puntoventa_id,pv.nombpuntoventa "); sql.append("GROUP BY em.empresa_id, em.nombempresa,pv.puntoventa_id,pv.nombpuntoventa ");

View File

@ -29,4 +29,5 @@ label.numBPe=N
label.serie=Série label.serie=Série
label.status=Status label.status=Status
label.obs=Observação label.obs=Observação
label.codAgencia=Cod.Agência
header.filtro.total=Total Geral: header.filtro.total=Total Geral:

View File

@ -30,3 +30,4 @@ label.numBPe=N
label.serie=Série label.serie=Série
label.status=Status label.status=Status
label.obs=Observação label.obs=Observação
label.codAgencia=Cod. Agência

View File

@ -13,7 +13,7 @@ cabecalho.filtros=Filtros:
#Labels datail #Labels datail
datail.voucher=Nº Bilhete / Voucher datail.voucher=Nº Bilhete / Voucher
datail.origen=Origem datail.origen=Origem do Serviço
datail.servicio=Serviço datail.servicio=Serviço
datail.data.servicio=Data do Serviço datail.data.servicio=Data do Serviço
datail.data.checkin=Data Checkin datail.data.checkin=Data Checkin

View File

@ -10,10 +10,16 @@ cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página cabecalho.pagina=Página
cabecalho.de=de cabecalho.de=de
cabecalho.filtros=Filtros: cabecalho.filtros=Filtros:
#Labels header
cabecalho.pagina=Página\:
cabecalho.empresa=Empresa\:
cabecalho.bilheteiro = Bilheteiro(s)\:
cabecalho.usuario = Usuário\:
#Labels datail #Labels datail
datail.voucher=Nº Bilhete / Voucher datail.voucher=Nº Bilhete / Voucher
datail.origen=Origem datail.origen=Origem do Serviço
datail.servicio=Serviço datail.servicio=Serviço
datail.data.servicio=Data do Serviço datail.data.servicio=Data do Serviço
datail.data.checkin=Data Checkin datail.data.checkin=Data Checkin

View File

@ -14,8 +14,8 @@ header.data=Per
header.agencia=Agência header.agencia=Agência
header.dtmotivo=Data Fechamento header.dtmotivo=Data Fechamento
header.saldo=Pendente header.saldo=Pendente
header.vrdeposito=Vr. Depósito header.vrdeposito=Depósito/Boleto
header.vrfechamento=Vr. Fechamento header.vrfechamento=Fechamento
header.usuario=Usuário header.usuario=Usuário
header.numdeposito=Num. Depósito header.numdeposito=Num. Depósito
header.numeroAgencia=Número header.numeroAgencia=Número

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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="RelatorioAproveitamentoFinanceiro" pageWidth="873" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="833" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c"> <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="RelatorioAproveitamentoFinanceiro" pageWidth="873" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="833" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="1.0"/> <property name="ireport.zoom" value="1.771561000000002"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="pageHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="pageHeader"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="546"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table"> <style name="table">
@ -33,6 +33,7 @@
<parameter name="NUMPUNTOVENTA" class="java.lang.String"/> <parameter name="NUMPUNTOVENTA" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/> <parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="EMPRESA" class="java.lang.String"/> <parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="ASSENTOS" class="java.math.BigDecimal"/>
<field name="LINHA" class="java.lang.String"/> <field name="LINHA" class="java.lang.String"/>
<field name="SENTIDO" class="java.lang.String"/> <field name="SENTIDO" class="java.lang.String"/>
<field name="ASSENTOS" class="java.math.BigDecimal"/> <field name="ASSENTOS" class="java.math.BigDecimal"/>
@ -440,8 +441,13 @@
)]]></variableExpression> )]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression> <initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable> </variable>
<variable name="assentosGeral" class="java.math.BigDecimal" calculation="Sum"> <variable name="assentosGeral" class="java.math.BigDecimal" resetType="None" incrementType="Group" incrementGroup="LINHA" calculation="Lowest">
<variableExpression><![CDATA[$F{ASSENTOS}]]></variableExpression> <variableExpression><![CDATA[$F{ASSENTOS}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="totAssentos" class="java.math.BigDecimal" resetType="Group" resetGroup="LINHA" calculation="Sum">
<variableExpression><![CDATA[$F{ASSENTOS}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable> </variable>
<group name="LINHA"> <group name="LINHA">
<groupExpression><![CDATA[$F{LINHA}]]></groupExpression> <groupExpression><![CDATA[$F{LINHA}]]></groupExpression>
@ -481,7 +487,7 @@
</textElement> </textElement>
<textFieldExpression><![CDATA["Receita unitária objetiva: "]]></textFieldExpression> <textFieldExpression><![CDATA["Receita unitária objetiva: "]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="1b592450-cd14-4fd8-badc-0ce52de329d9" stretchType="RelativeToBandHeight" mode="Transparent" x="485" y="0" width="157" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="1b592450-cd14-4fd8-badc-0ce52de329d9" stretchType="RelativeToBandHeight" mode="Transparent" x="485" y="0" width="157" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="1.25"/> <topPen lineWidth="1.25"/>
@ -490,7 +496,6 @@
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Lugares p/ Viagem: "+$F{ASSENTOS}.toString()]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="3389b306-a4a8-465a-a227-8f9ece4baa3c" stretchType="RelativeToBandHeight" mode="Transparent" x="794" y="0" width="38" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="3389b306-a4a8-465a-a227-8f9ece4baa3c" stretchType="RelativeToBandHeight" mode="Transparent" x="794" y="0" width="38" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
@ -525,7 +530,7 @@
<textFieldExpression><![CDATA[$V{totViagemLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totViagemLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="8d82e76c-f2c4-41db-b416-94aae8599b8f" stretchType="RelativeToTallestObject" mode="Transparent" x="490" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="8d82e76c-f2c4-41db-b416-94aae8599b8f" stretchType="RelativeToTallestObject" mode="Transparent" x="514" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -537,7 +542,7 @@
<textFieldExpression><![CDATA[$V{totQuaQtdeServico}+"/"+$V{totQuaTotLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totQuaQtdeServico}+"/"+$V{totQuaTotLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="4c9dbc16-1daf-4077-97a6-951ce1a0807a" stretchType="RelativeToTallestObject" mode="Transparent" x="528" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="4c9dbc16-1daf-4077-97a6-951ce1a0807a" stretchType="RelativeToTallestObject" mode="Transparent" x="549" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -550,7 +555,7 @@
<textFieldExpression><![CDATA[$V{totQuaFinLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totQuaFinLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="f8fd4f7a-0c50-4026-8248-5ab0242f89a3" stretchType="RelativeToTallestObject" mode="Transparent" x="452" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="f8fd4f7a-0c50-4026-8248-5ab0242f89a3" stretchType="RelativeToTallestObject" mode="Transparent" x="479" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -563,7 +568,7 @@
<textFieldExpression><![CDATA[$V{totTerFinLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totTerFinLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="c0596899-e184-49a8-a2aa-40bb09f62001" stretchType="RelativeToTallestObject" mode="Transparent" x="642" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="c0596899-e184-49a8-a2aa-40bb09f62001" stretchType="RelativeToTallestObject" mode="Transparent" x="654" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -575,7 +580,7 @@
<textFieldExpression><![CDATA[$V{totSexQtdeServico}+"/"+$V{totSexTotLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totSexQtdeServico}+"/"+$V{totSexTotLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="e7449824-474e-44de-823b-7940c3bd7df3" stretchType="RelativeToTallestObject" mode="Transparent" x="756" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e7449824-474e-44de-823b-7940c3bd7df3" stretchType="RelativeToTallestObject" mode="Transparent" x="759" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -588,7 +593,7 @@
<textFieldExpression><![CDATA[$V{totSabFinLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totSabFinLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="ef308b3d-fb21-4deb-9f96-17e5397f5e72" stretchType="RelativeToTallestObject" mode="Transparent" x="414" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="ef308b3d-fb21-4deb-9f96-17e5397f5e72" stretchType="RelativeToTallestObject" mode="Transparent" x="444" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -600,7 +605,7 @@
<textFieldExpression><![CDATA[$V{totTerQtdeServico}+"/"+$V{totTerTotLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totTerQtdeServico}+"/"+$V{totTerTotLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="be2fa440-3a9d-45ca-9b50-8a889516b66f" stretchType="RelativeToTallestObject" mode="Transparent" x="376" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="be2fa440-3a9d-45ca-9b50-8a889516b66f" stretchType="RelativeToTallestObject" mode="Transparent" x="409" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -613,7 +618,7 @@
<textFieldExpression><![CDATA[$V{totSegFinLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totSegFinLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="6f96cc36-c8e2-4f75-b557-cfd68bcb6612" stretchType="RelativeToTallestObject" mode="Transparent" x="566" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="6f96cc36-c8e2-4f75-b557-cfd68bcb6612" stretchType="RelativeToTallestObject" mode="Transparent" x="584" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -625,7 +630,7 @@
<textFieldExpression><![CDATA[$V{totQuiQtdeServico}+"/"+$V{totQuiTotLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totQuiQtdeServico}+"/"+$V{totQuiTotLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="6fa898d8-a03c-449e-b31a-4955944a2e52" stretchType="RelativeToTallestObject" mode="Transparent" x="604" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="6fa898d8-a03c-449e-b31a-4955944a2e52" stretchType="RelativeToTallestObject" mode="Transparent" x="619" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -638,7 +643,7 @@
<textFieldExpression><![CDATA[$V{totQuiFinLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totQuiFinLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="08356c95-4909-4382-9bfe-3e580a34b8ca" stretchType="RelativeToTallestObject" mode="Transparent" x="680" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="08356c95-4909-4382-9bfe-3e580a34b8ca" stretchType="RelativeToTallestObject" mode="Transparent" x="689" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -651,7 +656,7 @@
<textFieldExpression><![CDATA[$V{totSexFinLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totSexFinLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="ec86e129-a917-4360-bf8a-6af223fa4dce" stretchType="RelativeToTallestObject" mode="Transparent" x="718" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="ec86e129-a917-4360-bf8a-6af223fa4dce" stretchType="RelativeToTallestObject" mode="Transparent" x="724" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -663,7 +668,7 @@
<textFieldExpression><![CDATA[$V{totSabQtdeServico}+"/"+$V{totSabTotLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totSabQtdeServico}+"/"+$V{totSabTotLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="94739135-6cee-4279-a5c8-5002af1da96c" stretchType="RelativeToTallestObject" mode="Transparent" x="262" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="94739135-6cee-4279-a5c8-5002af1da96c" stretchType="RelativeToTallestObject" mode="Transparent" x="304" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.25"/> <leftPen lineWidth="0.25"/>
@ -676,7 +681,7 @@
<textFieldExpression><![CDATA[$V{totDomQtdeLinha}+"/"+$V{totDomTotLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totDomQtdeLinha}+"/"+$V{totDomTotLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="e6847b00-50c1-455e-a3ae-d0eaff028425" stretchType="RelativeToTallestObject" mode="Transparent" x="300" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e6847b00-50c1-455e-a3ae-d0eaff028425" stretchType="RelativeToTallestObject" mode="Transparent" x="339" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -689,7 +694,7 @@
<textFieldExpression><![CDATA[$V{totDomFinLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totDomFinLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="a8c28c63-bc20-46bf-9bc6-2315659cf8ab" stretchType="RelativeToTallestObject" mode="Transparent" x="338" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="a8c28c63-bc20-46bf-9bc6-2315659cf8ab" stretchType="RelativeToTallestObject" mode="Transparent" x="374" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -727,7 +732,7 @@
<textFieldExpression><![CDATA[$V{totPassageiroLinha}.intValue()]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totPassageiroLinha}.intValue()]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="862fa0c4-b5c7-48a8-9179-565f9ace04ee" stretchType="RelativeToTallestObject" mode="Transparent" x="175" y="0" width="49" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="862fa0c4-b5c7-48a8-9179-565f9ace04ee" stretchType="RelativeToTallestObject" mode="Transparent" x="176" y="0" width="49" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -752,6 +757,13 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{totViagemLinha}.intValue()]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totViagemLinha}.intValue()]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="ec22d2c4-8bf5-43a1-8376-4f423c1ff964" stretchType="RelativeToTallestObject" x="262" y="0" width="38" height="14" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totAssentos}]]></textFieldExpression>
</textField>
</band> </band>
</groupFooter> </groupFooter>
</group> </group>
@ -919,7 +931,7 @@
<textFieldExpression><![CDATA["Hora "]]></textFieldExpression> <textFieldExpression><![CDATA["Hora "]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="083ed504-c257-4a90-9f63-b20e828cc97f" stretchType="RelativeToTallestObject" mode="Transparent" x="262" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="083ed504-c257-4a90-9f63-b20e828cc97f" stretchType="RelativeToTallestObject" mode="Transparent" x="304" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.25"/> <leftPen lineWidth="0.25"/>
@ -943,7 +955,7 @@
<textFieldExpression><![CDATA["Num Viag."]]></textFieldExpression> <textFieldExpression><![CDATA["Num Viag."]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="e3a57847-646c-4572-b38d-2ed6a0e6d611" stretchType="RelativeToTallestObject" mode="Transparent" x="262" y="0" width="76" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e3a57847-646c-4572-b38d-2ed6a0e6d611" stretchType="RelativeToTallestObject" mode="Transparent" x="304" y="0" width="70" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.25"/> <leftPen lineWidth="0.25"/>
@ -957,7 +969,7 @@
<textFieldExpression><![CDATA["Domingo"]]></textFieldExpression> <textFieldExpression><![CDATA["Domingo"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="61a4d236-6f58-44c9-9f04-bb856ee561ae" stretchType="RelativeToTallestObject" mode="Transparent" x="300" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="61a4d236-6f58-44c9-9f04-bb856ee561ae" stretchType="RelativeToTallestObject" mode="Transparent" x="339" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -970,7 +982,7 @@
<textFieldExpression><![CDATA["Fin%"]]></textFieldExpression> <textFieldExpression><![CDATA["Fin%"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="5aa85acf-b465-4fba-81b3-1a6f27c08b66" stretchType="RelativeToTallestObject" mode="Transparent" x="338" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="5aa85acf-b465-4fba-81b3-1a6f27c08b66" stretchType="RelativeToTallestObject" mode="Transparent" x="374" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -982,7 +994,7 @@
<textFieldExpression><![CDATA["Qte"]]></textFieldExpression> <textFieldExpression><![CDATA["Qte"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="2ac9c463-e254-4dc9-90cf-c382c8b4bea9" stretchType="RelativeToTallestObject" mode="Transparent" x="338" y="0" width="76" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="2ac9c463-e254-4dc9-90cf-c382c8b4bea9" stretchType="RelativeToTallestObject" mode="Transparent" x="374" y="0" width="70" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -995,7 +1007,7 @@
<textFieldExpression><![CDATA["Segunda"]]></textFieldExpression> <textFieldExpression><![CDATA["Segunda"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="a624f925-4c0c-404f-90b2-8f320c2801c5" stretchType="RelativeToTallestObject" mode="Transparent" x="376" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="a624f925-4c0c-404f-90b2-8f320c2801c5" stretchType="RelativeToTallestObject" mode="Transparent" x="409" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1008,7 +1020,7 @@
<textFieldExpression><![CDATA["Fin%"]]></textFieldExpression> <textFieldExpression><![CDATA["Fin%"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="283e091a-669d-493f-b1e8-0b1cac1f27ea" stretchType="RelativeToTallestObject" mode="Transparent" x="414" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="283e091a-669d-493f-b1e8-0b1cac1f27ea" stretchType="RelativeToTallestObject" mode="Transparent" x="444" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1020,7 +1032,7 @@
<textFieldExpression><![CDATA["Qte"]]></textFieldExpression> <textFieldExpression><![CDATA["Qte"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="589f02ab-c83b-4b77-9a34-0b81201382b0" stretchType="RelativeToTallestObject" mode="Transparent" x="414" y="0" width="76" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="589f02ab-c83b-4b77-9a34-0b81201382b0" stretchType="RelativeToTallestObject" mode="Transparent" x="444" y="0" width="70" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1033,7 +1045,7 @@
<textFieldExpression><![CDATA["Terça"]]></textFieldExpression> <textFieldExpression><![CDATA["Terça"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="95225d89-604e-4e2f-8251-67a0090cb573" stretchType="RelativeToTallestObject" mode="Transparent" x="452" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="95225d89-604e-4e2f-8251-67a0090cb573" stretchType="RelativeToTallestObject" mode="Transparent" x="479" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1046,7 +1058,7 @@
<textFieldExpression><![CDATA["Fin%"]]></textFieldExpression> <textFieldExpression><![CDATA["Fin%"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="a9f72f66-7403-4fe4-9544-b21006711ae6" stretchType="RelativeToTallestObject" mode="Transparent" x="490" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="a9f72f66-7403-4fe4-9544-b21006711ae6" stretchType="RelativeToTallestObject" mode="Transparent" x="514" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1058,7 +1070,7 @@
<textFieldExpression><![CDATA["Qte"]]></textFieldExpression> <textFieldExpression><![CDATA["Qte"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="c2613b74-a63d-4a4c-8480-b04aa8c8ea30" stretchType="RelativeToTallestObject" mode="Transparent" x="490" y="0" width="76" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="c2613b74-a63d-4a4c-8480-b04aa8c8ea30" stretchType="RelativeToTallestObject" mode="Transparent" x="514" y="0" width="70" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1071,7 +1083,7 @@
<textFieldExpression><![CDATA["Quarta"]]></textFieldExpression> <textFieldExpression><![CDATA["Quarta"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="36263c71-f9bb-4155-bacb-9ad0e5b27364" stretchType="RelativeToTallestObject" mode="Transparent" x="528" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="36263c71-f9bb-4155-bacb-9ad0e5b27364" stretchType="RelativeToTallestObject" mode="Transparent" x="549" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1084,7 +1096,7 @@
<textFieldExpression><![CDATA["Fin%"]]></textFieldExpression> <textFieldExpression><![CDATA["Fin%"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="27f9340f-e948-42ae-bbc4-04329a1323ac" stretchType="RelativeToTallestObject" mode="Transparent" x="566" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="27f9340f-e948-42ae-bbc4-04329a1323ac" stretchType="RelativeToTallestObject" mode="Transparent" x="584" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1096,7 +1108,7 @@
<textFieldExpression><![CDATA["Qte"]]></textFieldExpression> <textFieldExpression><![CDATA["Qte"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="ca510ca3-2586-43d7-bb9c-39902b2d4a95" stretchType="RelativeToTallestObject" mode="Transparent" x="566" y="0" width="76" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="ca510ca3-2586-43d7-bb9c-39902b2d4a95" stretchType="RelativeToTallestObject" mode="Transparent" x="584" y="0" width="70" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1109,7 +1121,7 @@
<textFieldExpression><![CDATA["Quinta"]]></textFieldExpression> <textFieldExpression><![CDATA["Quinta"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="3237381f-e625-457e-8110-70d9f6de80d5" stretchType="RelativeToTallestObject" mode="Transparent" x="604" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="3237381f-e625-457e-8110-70d9f6de80d5" stretchType="RelativeToTallestObject" mode="Transparent" x="619" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1122,7 +1134,7 @@
<textFieldExpression><![CDATA["Fin%"]]></textFieldExpression> <textFieldExpression><![CDATA["Fin%"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="6a1f8a46-66d6-4d2c-b61f-79c52f037c32" stretchType="RelativeToTallestObject" mode="Transparent" x="642" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="6a1f8a46-66d6-4d2c-b61f-79c52f037c32" stretchType="RelativeToTallestObject" mode="Transparent" x="654" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1134,7 +1146,7 @@
<textFieldExpression><![CDATA["Qte"]]></textFieldExpression> <textFieldExpression><![CDATA["Qte"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="bbf0d948-f0a3-4cb6-bdf4-a912415d7acf" stretchType="RelativeToTallestObject" mode="Transparent" x="642" y="0" width="76" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="bbf0d948-f0a3-4cb6-bdf4-a912415d7acf" stretchType="RelativeToTallestObject" mode="Transparent" x="654" y="0" width="70" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1147,7 +1159,7 @@
<textFieldExpression><![CDATA["Sexta"]]></textFieldExpression> <textFieldExpression><![CDATA["Sexta"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="4b703af3-f42a-4c9f-8391-ef863ce8bc24" stretchType="RelativeToTallestObject" mode="Transparent" x="680" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="4b703af3-f42a-4c9f-8391-ef863ce8bc24" stretchType="RelativeToTallestObject" mode="Transparent" x="689" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1160,7 +1172,7 @@
<textFieldExpression><![CDATA["Fin%"]]></textFieldExpression> <textFieldExpression><![CDATA["Fin%"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="2ae0ff64-e230-431d-896f-c4480057ed7c" stretchType="RelativeToTallestObject" mode="Transparent" x="756" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="2ae0ff64-e230-431d-896f-c4480057ed7c" stretchType="RelativeToTallestObject" mode="Transparent" x="759" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1173,7 +1185,7 @@
<textFieldExpression><![CDATA["Fin%"]]></textFieldExpression> <textFieldExpression><![CDATA["Fin%"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="69042f11-e1df-4727-814d-6825b8af042a" stretchType="RelativeToTallestObject" mode="Transparent" x="718" y="14" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="69042f11-e1df-4727-814d-6825b8af042a" stretchType="RelativeToTallestObject" mode="Transparent" x="724" y="14" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1185,7 +1197,7 @@
<textFieldExpression><![CDATA["Qte"]]></textFieldExpression> <textFieldExpression><![CDATA["Qte"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="bb4dd80f-2904-406a-8fa1-875b117f8b4b" stretchType="RelativeToTallestObject" mode="Transparent" x="718" y="0" width="76" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="bb4dd80f-2904-406a-8fa1-875b117f8b4b" stretchType="RelativeToTallestObject" mode="Transparent" x="724" y="0" width="70" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1210,6 +1222,18 @@
</textElement> </textElement>
<textFieldExpression><![CDATA["%Fin Média"]]></textFieldExpression> <textFieldExpression><![CDATA["%Fin Média"]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="903c0f44-d95a-4d87-8c1a-3940ddcf412c" stretchType="RelativeToTallestObject" mode="Transparent" x="262" y="0" width="42" height="28" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Lugares p/ Viagem"]]></textFieldExpression>
</textField>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
@ -1230,7 +1254,7 @@
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="8b10f3c4-4fc7-4b47-952e-6bde8ec3bdda" stretchType="RelativeToTallestObject" mode="Transparent" x="262" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="8b10f3c4-4fc7-4b47-952e-6bde8ec3bdda" stretchType="RelativeToTallestObject" mode="Transparent" x="304" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<leftPen lineWidth="0.25"/> <leftPen lineWidth="0.25"/>
@ -1243,7 +1267,7 @@
<textFieldExpression><![CDATA[$F{DOM_QTDE}+"/"+$F{DOM_TOT}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{DOM_QTDE}+"/"+$F{DOM_TOT}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="e7451802-1685-48ff-8159-adbe18e78ba1" stretchType="RelativeToTallestObject" mode="Transparent" x="300" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e7451802-1685-48ff-8159-adbe18e78ba1" stretchType="RelativeToTallestObject" mode="Transparent" x="339" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1256,7 +1280,7 @@
<textFieldExpression><![CDATA[$F{DOM_FIN}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{DOM_FIN}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="69d60b51-442c-4eff-8c0a-5a5db58cd4ec" stretchType="RelativeToTallestObject" mode="Transparent" x="338" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="69d60b51-442c-4eff-8c0a-5a5db58cd4ec" stretchType="RelativeToTallestObject" mode="Transparent" x="374" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1268,7 +1292,7 @@
<textFieldExpression><![CDATA[$F{SEG_QTDE}+"/"+$F{SEG_TOT}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SEG_QTDE}+"/"+$F{SEG_TOT}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="78e35b64-7cfe-46c6-9108-3e0ffcae9ed3" stretchType="RelativeToTallestObject" mode="Transparent" x="376" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="78e35b64-7cfe-46c6-9108-3e0ffcae9ed3" stretchType="RelativeToTallestObject" mode="Transparent" x="409" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1281,7 +1305,7 @@
<textFieldExpression><![CDATA[$F{SEG_FIN}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SEG_FIN}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="3f9935c7-2e40-432e-a7f9-cb2cfdac0349" stretchType="RelativeToTallestObject" mode="Transparent" x="414" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="3f9935c7-2e40-432e-a7f9-cb2cfdac0349" stretchType="RelativeToTallestObject" mode="Transparent" x="444" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1293,7 +1317,7 @@
<textFieldExpression><![CDATA[$F{TER_QTDE}+"/"+$F{TER_TOT}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{TER_QTDE}+"/"+$F{TER_TOT}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="4b34e84b-7eaf-4eff-ac0e-6231730fa0b8" stretchType="RelativeToTallestObject" mode="Transparent" x="452" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="4b34e84b-7eaf-4eff-ac0e-6231730fa0b8" stretchType="RelativeToTallestObject" mode="Transparent" x="479" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1306,7 +1330,7 @@
<textFieldExpression><![CDATA[$F{TER_FIN}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{TER_FIN}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="40537dda-f21b-482c-ac59-089ac07d84e3" stretchType="RelativeToTallestObject" mode="Transparent" x="490" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="40537dda-f21b-482c-ac59-089ac07d84e3" stretchType="RelativeToTallestObject" mode="Transparent" x="514" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1318,7 +1342,7 @@
<textFieldExpression><![CDATA[$F{QUA_QTDE}+"/"+$F{QUA_TOT}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{QUA_QTDE}+"/"+$F{QUA_TOT}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="cc1110d3-85f4-4435-b6ca-db36b13c5b4b" stretchType="RelativeToTallestObject" mode="Transparent" x="528" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="cc1110d3-85f4-4435-b6ca-db36b13c5b4b" stretchType="RelativeToTallestObject" mode="Transparent" x="549" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1331,7 +1355,7 @@
<textFieldExpression><![CDATA[$F{QUA_FIN}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{QUA_FIN}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="860a6605-fd85-4077-9886-b8c8d6afc137" stretchType="RelativeToTallestObject" mode="Transparent" x="566" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="860a6605-fd85-4077-9886-b8c8d6afc137" stretchType="RelativeToTallestObject" mode="Transparent" x="584" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1343,7 +1367,7 @@
<textFieldExpression><![CDATA[$F{QUI_QTDE}+"/"+$F{QUI_TOT}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{QUI_QTDE}+"/"+$F{QUI_TOT}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="3362ebe9-2d11-4e08-867e-f2e74315914f" stretchType="RelativeToTallestObject" mode="Transparent" x="604" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="3362ebe9-2d11-4e08-867e-f2e74315914f" stretchType="RelativeToTallestObject" mode="Transparent" x="619" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1356,7 +1380,7 @@
<textFieldExpression><![CDATA[$F{QUI_FIN}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{QUI_FIN}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="3002b366-c323-439a-a4df-6e1d3d41d678" stretchType="RelativeToTallestObject" mode="Transparent" x="642" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="3002b366-c323-439a-a4df-6e1d3d41d678" stretchType="RelativeToTallestObject" mode="Transparent" x="654" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1368,7 +1392,7 @@
<textFieldExpression><![CDATA[$F{SEX_QTDE}+"/"+$F{SEX_TOT}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SEX_QTDE}+"/"+$F{SEX_TOT}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="c852fc1e-0ee5-4887-9632-515116db0a34" stretchType="RelativeToTallestObject" mode="Transparent" x="680" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="c852fc1e-0ee5-4887-9632-515116db0a34" stretchType="RelativeToTallestObject" mode="Transparent" x="689" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1381,7 +1405,7 @@
<textFieldExpression><![CDATA[$F{SEX_FIN}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SEX_FIN}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="4285d70c-071e-407e-aa05-53c2bcf44fa2" stretchType="RelativeToTallestObject" mode="Transparent" x="718" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="4285d70c-071e-407e-aa05-53c2bcf44fa2" stretchType="RelativeToTallestObject" mode="Transparent" x="724" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1393,7 +1417,7 @@
<textFieldExpression><![CDATA[$F{SAB_QTDE}+"/"+$F{SAB_TOT}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SAB_QTDE}+"/"+$F{SAB_TOT}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="e7edfa0c-5b02-470d-8674-246afcfeddff" stretchType="RelativeToTallestObject" mode="Transparent" x="756" y="0" width="38" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e7edfa0c-5b02-470d-8674-246afcfeddff" stretchType="RelativeToTallestObject" mode="Transparent" x="759" y="0" width="35" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box> <box>
<topPen lineWidth="0.0"/> <topPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/>
@ -1454,6 +1478,13 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{VIAGENS}.intValue()]]></textFieldExpression> <textFieldExpression><![CDATA[$F{VIAGENS}.intValue()]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="3a8636e6-e4ff-4bb8-9982-8da74473c105" stretchType="RelativeToBandHeight" x="262" y="0" width="38" height="14"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{ASSENTOS}]]></textFieldExpression>
</textField>
</band> </band>
</detail> </detail>
<lastPageFooter> <lastPageFooter>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-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="RelatorioBPe" pageWidth="1350" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="1310" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f"> <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="RelatorioBPe" pageWidth="1350" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="1310" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f">
<property name="ireport.zoom" value="1.0980750000000004"/> <property name="ireport.zoom" value="1.0980750000000004"/>
<property name="ireport.x" value="21"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
@ -16,6 +16,7 @@
<parameter name="USUARIO" class="java.lang.String"/> <parameter name="USUARIO" class="java.lang.String"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/> <parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/> <parameter name="FILTROS" class="java.lang.String"/>
<parameter name="STATUS" class="java.lang.String"/>
<field name="dtvenda" class="java.lang.String"/> <field name="dtvenda" class="java.lang.String"/>
<field name="hrvenda" class="java.lang.String"/> <field name="hrvenda" class="java.lang.String"/>
<field name="origem" class="java.lang.String"/> <field name="origem" class="java.lang.String"/>
@ -35,6 +36,7 @@
<field name="valorseguro" class="java.math.BigDecimal"/> <field name="valorseguro" class="java.math.BigDecimal"/>
<field name="valoroutros" class="java.math.BigDecimal"/> <field name="valoroutros" class="java.math.BigDecimal"/>
<field name="protocolo" class="java.lang.String"/> <field name="protocolo" class="java.lang.String"/>
<field name="numPuntoVenta" class="java.lang.String"/>
<variable name="totalTarifa" class="java.math.BigDecimal" calculation="Sum"> <variable name="totalTarifa" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valortarifa}]]></variableExpression> <variableExpression><![CDATA[$F{valortarifa}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression> <initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
@ -180,7 +182,7 @@
<textElement> <textElement>
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.origemPV}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{STATUS}.equals("T") ? $R{label.codAgencia} : $R{label.origemPV}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="84e806d9-098f-4a0a-8436-415b4517f1e8" x="501" y="0" width="70" height="15"/> <reportElement uuid="84e806d9-098f-4a0a-8436-415b4517f1e8" x="501" y="0" width="70" height="15"/>
@ -320,7 +322,8 @@
<textElement> <textElement>
<font size="9"/> <font size="9"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{locpuntoventa}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{STATUS}.equals("T") ? $F{numPuntoVenta} : $F{locpuntoventa}
]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="a5e99430-53c7-4a72-b80e-222d65555557" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="500" y="0" width="70" height="15" isPrintWhenDetailOverflows="true"/> <reportElement uuid="a5e99430-53c7-4a72-b80e-222d65555557" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="500" y="0" width="70" height="15" isPrintWhenDetailOverflows="true"/>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-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="RelatorioHistoricoClientes" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="832" leftMargin="5" rightMargin="5" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f"> <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="RelatorioHistoricoClientes" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="832" leftMargin="5" rightMargin="5" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="1.3310000000000064"/> <property name="ireport.zoom" value="1.3310000000000064"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
@ -27,310 +27,307 @@
<field name="usuario" class="java.lang.String"/> <field name="usuario" class="java.lang.String"/>
<field name="codigoPuntoVenta" class="java.lang.String"/> <field name="codigoPuntoVenta" class="java.lang.String"/>
<field name="puntoVenta" class="java.lang.String"/> <field name="puntoVenta" class="java.lang.String"/>
<field name="descIdentificaUno" class="java.lang.String"/>
<field name="descIdentificaDos" class="java.lang.String"/>
<title> <title>
<band height="79" splitType="Stretch"> <band height="79" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="da52f710-3882-4beb-ba6f-870e03f6800d" mode="Transparent" x="0" y="0" width="457" height="41" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="0" y="0" width="457" height="41" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
<font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false"> <textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="2f4f1314-9363-4e6d-822f-c85c1890998b" mode="Transparent" x="811" y="25" width="21" height="16" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="811" y="25" width="21" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c8a70b8d-369e-48ae-a911-a5d9692316f7" mode="Transparent" x="728" y="42" width="104" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="728" y="42" width="104" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="ad4bbfb8-582d-4aa2-904d-8dfe60e54442" mode="Transparent" x="728" y="0" width="104" height="25" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="728" y="0" width="104" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="8601bf20-f5f8-4fed-9445-7adfe580d236" mode="Transparent" x="543" y="25" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement mode="Transparent" x="543" y="25" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="b48a0903-0b2a-4ae5-ae04-811d097a9f91" x="543" y="0" width="185" height="25"/> <reportElement x="543" y="0" width="185" height="25"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" lineSpacing="Single">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="3c577f75-c6d6-4c11-a846-bfe71a8a1b42" x="-1" y="58" width="832" height="1"/> <reportElement x="-1" y="58" width="832" height="1"/>
</line> </line>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement uuid="aff6535e-c25b-4f31-ad3a-baacc52e4974" x="-1" y="59" width="833" height="15"/> <reportElement x="-1" y="59" width="833" height="15"/>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Middle" lineSpacing="Single">
<font size="10"/> <font size="10"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="84641d2c-21a5-47f0-b4a8-afe7bf700cb6" positionType="Float" x="-1" y="78" width="832" height="1"/> <reportElement positionType="Float" x="-1" y="78" width="832" height="1"/>
</line> </line>
</band> </band>
</title> </title>
<columnHeader> <columnHeader>
<band height="15"> <band height="15">
<textField> <textField>
<reportElement uuid="b0825447-d75d-48f9-8a73-2d4d027f118e" x="0" y="0" width="48" height="15"/> <reportElement x="0" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.numFidelidade}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.numFidelidade}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="3e3b8c9a-56f4-47fe-808a-d186c11f1545" x="48" y="0" width="63" height="15"/> <reportElement x="48" y="0" width="63" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.cliente}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.cliente}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="e2f9b240-4afd-4745-8022-16a2e36539ff" x="111" y="0" width="63" height="15"/> <reportElement x="111" y="0" width="63" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.identificaUno}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.identificaUno}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="d6d91a5c-6562-4c03-9116-b1ea126bf8bb" x="174" y="0" width="48" height="15"/> <reportElement x="174" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.identificaDos}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.identificaDos}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="2ea05454-8bd5-4900-bb36-17efd61c9548" x="222" y="0" width="48" height="15"/> <reportElement x="222" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.fecNascimento}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.fecNascimento}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="40b973a0-600d-4488-90d2-799b298a346c" x="318" y="0" width="48" height="15"/> <reportElement x="318" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.telefone}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.telefone}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="b9acecfc-dc72-4c78-ade8-94796fd90cd5" x="366" y="0" width="48" height="15"/> <reportElement x="366" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.fax}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.fax}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="d1408686-f401-45a6-a98b-6b6dd4b8d781" x="462" y="0" width="25" height="15"/> <reportElement x="462" y="0" width="25" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.sexo}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.sexo}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="e926e191-ca63-461e-8db8-e11fe9ae46bf" x="487" y="0" width="48" height="15"/> <reportElement x="487" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.fecCadastro}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.fecCadastro}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="f54349c9-1197-48c7-8a56-f6676f0db9ec" x="535" y="0" width="48" height="15"/> <reportElement x="535" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.empresaId}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.empresaId}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="f393c224-cf21-44ab-9b44-734ce8b178f2" x="583" y="0" width="60" height="15"/> <reportElement x="583" y="0" width="60" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.codUsuario}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.codUsuario}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="02ab3040-ee0f-4b6a-96c5-30917ca12f08" x="643" y="0" width="60" height="15"/> <reportElement x="643" y="0" width="60" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.usuario}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.usuario}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="fe0da755-8bd9-4a08-8e48-60b3dec97f21" x="703" y="0" width="60" height="15"/> <reportElement x="703" y="0" width="60" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.codigoPuntoVenta}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.codigoPuntoVenta}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="e430d55f-dfdd-4824-a61b-e1317573519e" x="763" y="0" width="60" height="15"/> <reportElement x="763" y="0" width="60" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.puntoVenta}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.puntoVenta}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="47ddaf82-d85d-45d4-88ce-761794b73d0a" x="414" y="0" width="48" height="15"/> <reportElement x="414" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.email}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.email}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="5b98c030-46f8-4693-a1bf-672c9479a829" x="270" y="0" width="48" height="15"/> <reportElement x="270" y="0" width="48" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.celular}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{label.celular}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="15" splitType="Stretch"> <band height="15" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="c80af5cb-d1c7-4dec-a49c-1e2a710bf74a" stretchType="RelativeToTallestObject" x="0" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numFidelidade}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{numFidelidade}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="2309bea8-858d-475a-8fe0-692db536e36d" stretchType="RelativeToTallestObject" x="48" y="0" width="63" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="48" y="0" width="63" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{cliente}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{cliente}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="5f00584f-9c75-4025-a898-1da55cc6bb08" stretchType="RelativeToTallestObject" x="111" y="0" width="63" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="111" y="0" width="63" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{identificaUno}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{identificaUno}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="1ae99590-f220-419c-a8d9-1dfe191fc3f1" stretchType="RelativeToTallestObject" x="174" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="174" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{identificaDos}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{identificaDos}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="db24f95f-9f89-4601-9721-54cb262b5082" stretchType="RelativeToTallestObject" x="222" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="222" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{fecNascimento}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{fecNascimento}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="183a64b5-9c50-4581-98d8-52d8ece8b1ab" stretchType="RelativeToTallestObject" x="270" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="270" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{celular}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{celular}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="cac8b5f7-dfe4-4893-9994-9dc519097e28" stretchType="RelativeToTallestObject" x="318" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="318" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{telefone}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{telefone}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="1f230ab5-06c7-4c23-b1ed-cc6d8f9118b3" stretchType="RelativeToTallestObject" x="366" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="366" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{fax}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{fax}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="da1adb0f-9e41-4aa4-aaa0-7654af3b29b7" stretchType="RelativeToTallestObject" x="414" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="414" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{email}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{email}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="7911217f-c670-41f4-ad8c-95a9ddbeae0a" stretchType="RelativeToTallestObject" x="462" y="0" width="25" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="462" y="0" width="25" height="15"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center" lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{sexo}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{sexo}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="d8786ea8-e54d-4c8e-a5f1-fcdb4befb657" stretchType="RelativeToTallestObject" x="487" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="487" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{fecCadastro}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{fecCadastro}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="4f3bcc67-62ef-4a0c-a6a0-6d3378718e89" stretchType="RelativeToTallestObject" x="535" y="0" width="48" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="535" y="0" width="48" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{empresaId} == 0 ? "" : $F{empresaId}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{empresaId} == 0 ? "" : $F{empresaId}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="41497ab8-79c3-4f1e-bff0-1f43c02564a7" stretchType="RelativeToTallestObject" x="583" y="0" width="60" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="583" y="0" width="60" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{codUsuario}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{codUsuario}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="6f93931e-8444-44de-adce-2b55cc49cbc6" stretchType="RelativeToTallestObject" x="643" y="0" width="60" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="643" y="0" width="60" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{usuario}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{usuario}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="8c85e53f-77f6-4d0d-8264-c07e096d3e6b" stretchType="RelativeToTallestObject" x="703" y="0" width="60" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="703" y="0" width="60" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{codigoPuntoVenta}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{codigoPuntoVenta}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="48cf7af6-3a32-4ffe-b440-3dd9faad34fd" stretchType="RelativeToTallestObject" x="763" y="0" width="60" height="15"/> <reportElement stretchType="RelativeToTallestObject" x="763" y="0" width="60" height="15"/>
<textElement> <textElement lineSpacing="Single">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{puntoVenta}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$F{puntoVenta}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</detail> </detail>
<noData> <noData>
<band height="50"> <band height="50">
<textField> <textField>
<reportElement uuid="6b9f63c1-76d9-4dd7-8fce-9bc0d91292af" x="0" y="24" width="831" height="26"/> <reportElement x="0" y="24" width="831" height="26"/>
<textElement markup="none"> <textElement lineSpacing="Single" markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression> <textFieldExpression class="java.lang.String"><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</noData> </noData>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-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="RelatorioCheckin" pageWidth="675" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="635" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="48d32af4-ba9f-41c2-91a5-5d2fe57e149c"> <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="RelatorioCheckin" pageWidth="675" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="635" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="48d32af4-ba9f-41c2-91a5-5d2fe57e149c">
<property name="ireport.zoom" value="1.4641000000000008"/> <property name="ireport.zoom" value="1.4641000000000008"/>
<property name="ireport.x" value="82"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/> <parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/> <parameter name="DATA_INICIAL" class="java.util.Date"/>
@ -9,6 +9,9 @@
<parameter name="CORRIDA_ID" class="java.lang.Long"/> <parameter name="CORRIDA_ID" class="java.lang.Long"/>
<parameter name="ORIGEN" class="java.lang.String"/> <parameter name="ORIGEN" class="java.lang.String"/>
<parameter name="IDS_BILHETEIROS" class="java.lang.String"/> <parameter name="IDS_BILHETEIROS" class="java.lang.String"/>
<parameter name="IS_CHECKIN_ABERTO" class="java.lang.Boolean"/>
<parameter name="nomb_empresa" class="java.lang.String"/>
<parameter name="nombUsuario" class="java.lang.String"/>
<queryString> <queryString>
<![CDATA[]]> <![CDATA[]]>
</queryString> </queryString>
@ -26,18 +29,74 @@
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<title> <title>
<band height="21" splitType="Stretch"> <band height="83" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <line>
<reportElement uuid="5ee43799-932b-4ce1-8056-df380a9050a8" mode="Transparent" x="0" y="0" width="338" height="20" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement x="0" y="80" width="619" height="1" uuid="b28df970-c219-4853-afeb-6821e0a44f04"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> </line>
<font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <textField>
<paragraph lineSpacing="Single"/> <reportElement mode="Opaque" x="0" y="0" width="476" height="30" backcolor="#D7D7D7" uuid="50c553a9-7292-44df-8b24-24eb14e98841"/>
<textElement markup="styled">
<font size="16" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<line> <textField>
<reportElement uuid="b28df970-c219-4853-afeb-6821e0a44f04" x="0" y="20" width="619" height="1"/> <reportElement x="0" y="31" width="130" height="16" uuid="3cbad5ad-ea6f-4718-b7e5-a98dc6be0188"/>
</line> <textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="130" y="31" width="505" height="16" uuid="6c12f1b5-cae1-4ea9-b674-703d0f3d2bdc"/>
<textFieldExpression><![CDATA[($P{DATA_INICIAL} != null ? new java.text.SimpleDateFormat("dd/MM/yyyy").format($P{DATA_INICIAL}) : "") +
" à " +
($P{DATA_FINAL} != null ? new java.text.SimpleDateFormat("dd/MM/yyyy").format($P{DATA_FINAL}) : "")]]></textFieldExpression>
</textField>
<textField>
<reportElement x="131" y="49" width="504" height="16" isRemoveLineWhenBlank="true" uuid="64d65c79-be80-4596-b84e-e2c3c3ddaa8a"/>
<textFieldExpression><![CDATA[$P{nombUsuario}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="49" width="130" height="16" isRemoveLineWhenBlank="true" uuid="cdd0af8e-575e-4afa-b68f-6d0812032d4b"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.usuario}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Opaque" x="577" y="15" width="29" height="15" backcolor="#D7D7D7" uuid="17fabb43-59cc-4375-86a8-793ff7a67f50"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Opaque" x="476" y="15" width="62" height="15" backcolor="#D7D7D7" uuid="e0a35762-56d1-4da2-a945-8ae4d5348bb7"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement mode="Opaque" x="538" y="0" width="97" height="15" backcolor="#D7D7D7" uuid="54f55cc3-21cb-482f-a58b-fca885e48517"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement mode="Opaque" x="606" y="15" width="29" height="15" backcolor="#D7D7D7" uuid="d0201aca-580e-4359-9503-c579a43dcccd"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Opaque" x="476" y="0" width="62" height="15" backcolor="#D7D7D7" uuid="1ac071ee-3dcd-427a-909f-9d39e40c6708"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement mode="Opaque" x="538" y="15" width="39" height="15" backcolor="#D7D7D7" uuid="fb1a5b0c-1e7e-443e-b0ff-db26c4ed289d"/>
<textElement textAlignment="Right"/>
</textField>
</band> </band>
</title> </title>
<pageHeader> <pageHeader>
@ -45,125 +104,125 @@
</pageHeader> </pageHeader>
<columnHeader> <columnHeader>
<band height="33" splitType="Stretch"> <band height="33" splitType="Stretch">
<textField> <textField isBlankWhenNull="false">
<reportElement uuid="e4282770-fa67-4c58-a5aa-92e4d6f27166" x="0" y="0" width="100" height="30"/> <reportElement x="0" y="0" width="100" height="30" isRemoveLineWhenBlank="true" uuid="e4282770-fa67-4c58-a5aa-92e4d6f27166"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{datail.voucher}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{datail.voucher}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isBlankWhenNull="true">
<reportElement uuid="1e0b20c0-f208-4853-8601-73cec6e1992e" x="100" y="0" width="134" height="30"/> <reportElement x="246" y="0" width="96" height="30" uuid="1e0b20c0-f208-4853-8601-73cec6e1992e"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{datail.origen}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{datail.origen}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isBlankWhenNull="false">
<reportElement uuid="32e830a3-6303-465c-85aa-12678fe6b80a" x="234" y="0" width="39" height="30"/> <reportElement x="100" y="0" width="42" height="30" uuid="32e830a3-6303-465c-85aa-12678fe6b80a"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{datail.servicio}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{datail.servicio}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="a5ac8565-1ca0-425b-9d25-97d26753e7ec" x="273" y="0" width="55" height="30" isPrintWhenDetailOverflows="true"/> <reportElement x="342" y="0" width="48" height="30" isPrintWhenDetailOverflows="true" uuid="d937b8b4-5e49-4d0d-a211-42e3d3fb45ba"/>
<textElement rotation="None" markup="none">
<font isBold="true" isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA[$R{datail.data.servicio}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d937b8b4-5e49-4d0d-a211-42e3d3fb45ba" x="328" y="0" width="48" height="30" isPrintWhenDetailOverflows="true"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{datail.data.checkin}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{datail.data.checkin}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="44e42972-eac1-40e6-ba0e-7c83b208d41b" x="376" y="0" width="115" height="30"/> <reportElement x="390" y="0" width="115" height="30" uuid="44e42972-eac1-40e6-ba0e-7c83b208d41b"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{datail.bilheteiro}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{datail.bilheteiro}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="29e15a6a-68ff-4f19-832f-ce0d7a7310ae" x="555" y="0" width="64" height="30" isPrintWhenDetailOverflows="true"/> <reportElement x="569" y="0" width="64" height="30" isPrintWhenDetailOverflows="true" uuid="29e15a6a-68ff-4f19-832f-ce0d7a7310ae"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{datail.data.remarcada}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{datail.data.remarcada}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="acc2f86e-4ee2-4e61-807f-27fd740db652" x="0" y="30" width="619" height="1"/> <reportElement x="0" y="30" width="619" height="1" uuid="acc2f86e-4ee2-4e61-807f-27fd740db652"/>
</line> </line>
<textField> <textField>
<reportElement uuid="28a7ce94-e2d1-4a68-a816-185b176ba0a8" x="491" y="0" width="64" height="30" isPrintWhenDetailOverflows="true"/> <reportElement x="505" y="0" width="64" height="30" isPrintWhenDetailOverflows="true" uuid="28a7ce94-e2d1-4a68-a816-185b176ba0a8"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{datail.cveusuario}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{datail.cveusuario}]]></textFieldExpression>
</textField> </textField>
<textField>
<reportElement x="148" y="0" width="89" height="30" isPrintWhenDetailOverflows="true" uuid="a5ac8565-1ca0-425b-9d25-97d26753e7ec"/>
<textElement rotation="None" markup="none">
<font isBold="true" isUnderline="false"/>
</textElement>
<textFieldExpression><![CDATA[$R{datail.data.servicio}]]></textFieldExpression>
</textField>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="23" splitType="Stretch"> <band height="23" splitType="Stretch">
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="false">
<reportElement uuid="82b42ca3-255a-4038-9730-35e2f9a1bb0f" x="0" y="0" width="100" height="20"/> <reportElement isPrintRepeatedValues="false" x="0" y="0" width="100" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="82b42ca3-255a-4038-9730-35e2f9a1bb0f"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numFolioSistema}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="c5cc5e04-b1fa-4ebc-b408-3810648fc7eb" x="100" y="0" width="134" height="20"/> <reportElement x="246" y="0" width="96" height="20" uuid="c5cc5e04-b1fa-4ebc-b408-3810648fc7eb"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{origen}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{origen}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="false">
<reportElement uuid="d4baaf3d-a171-4b29-8aa8-cef5b56a11b3" x="234" y="0" width="39" height="20"/> <reportElement x="100" y="0" width="42" height="20" uuid="d4baaf3d-a171-4b29-8aa8-cef5b56a11b3"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{corridaId}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{corridaId}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="acbbd64d-1fbd-4b4f-b7d5-5a11005ae98e" x="273" y="0" width="55" height="20"/> <reportElement x="342" y="0" width="48" height="20" uuid="1ce5d236-a684-450f-8e63-1523f0c7e103"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{feccorrida}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="1ce5d236-a684-450f-8e63-1523f0c7e103" x="328" y="0" width="48" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{dataCancelado}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataCancelado}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="64e2b043-f9cb-4211-852c-def2fed7ae2c" x="376" y="0" width="115" height="20"/> <reportElement x="390" y="0" width="115" height="20" uuid="64e2b043-f9cb-4211-852c-def2fed7ae2c"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{nombUsuario}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{nombUsuario}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="648d03b0-ee8a-4b2f-af9f-c33c4d01f40e" x="555" y="0" width="64" height="20"/> <reportElement x="569" y="0" width="64" height="20" uuid="648d03b0-ee8a-4b2f-af9f-c33c4d01f40e"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{dataRemarcacao}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataRemarcacao}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="80c86e43-26cc-428c-b2e5-99d685118a06" x="491" y="0" width="64" height="20"/> <reportElement x="505" y="0" width="64" height="20" uuid="80c86e43-26cc-428c-b2e5-99d685118a06"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{cveusuario}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{cveusuario}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement x="148" y="0" width="89" height="20" uuid="acbbd64d-1fbd-4b4f-b7d5-5a11005ae98e"/>
<textElement textAlignment="Left">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{feccorrida}]]></textFieldExpression>
</textField>
</band> </band>
</detail> </detail>
<columnFooter> <columnFooter>
@ -178,7 +237,7 @@
<noData> <noData>
<band height="38"> <band height="38">
<textField> <textField>
<reportElement uuid="c68d03cd-3b82-4f22-ba2a-6bb344fd3944" x="15" y="11" width="530" height="20"/> <reportElement x="0" y="11" width="530" height="20" uuid="c68d03cd-3b82-4f22-ba2a-6bb344fd3944"/>
<textElement markup="none"> <textElement markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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="RelatorioDepositos" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="65274c35-4f3f-4196-bd84-f042e9ac12ea"> <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="RelatorioDepositos" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="65274c35-4f3f-4196-bd84-f042e9ac12ea">
<property name="ireport.zoom" value="1.3310000000000006"/> <property name="ireport.zoom" value="1.3310000000000006"/>
<property name="ireport.x" value="70"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="38"/> <property name="ireport.y" value="6"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="pageHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
@ -370,7 +370,7 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{vrpendente}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{vrpendente}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement uuid="8b59222e-761c-4aba-9132-638c2b9932a9" stretchType="RelativeToTallestObject" x="485" y="0" width="70" height="17"/> <reportElement uuid="8b59222e-761c-4aba-9132-638c2b9932a9" stretchType="RelativeToTallestObject" x="485" y="0" width="70" height="17"/>
<box> <box>
<topPen lineWidth="0.5"/> <topPen lineWidth="0.5"/>
@ -382,6 +382,7 @@
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{numdeposito}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement uuid="4f651cd3-e07f-42d3-ba24-d0c2bcaa3460" stretchType="RelativeToTallestObject" x="0" y="0" width="65" height="17"/> <reportElement uuid="4f651cd3-e07f-42d3-ba24-d0c2bcaa3460" stretchType="RelativeToTallestObject" x="0" y="0" width="65" height="17"/>
@ -402,42 +403,42 @@
<summary> <summary>
<band height="72"> <band height="72">
<staticText> <staticText>
<reportElement uuid="b4440540-2f18-4b9e-94d1-285e376ba362" x="0" y="12" width="100" height="20"/> <reportElement uuid="b4440540-2f18-4b9e-94d1-285e376ba362" x="0" y="12" width="128" height="20"/>
<textElement> <textElement>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Total Depósitos]]></text> <text><![CDATA[Total Depósitos/Boletos]]></text>
</staticText> </staticText>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="a8212576-8b4a-4b7d-9777-a727d1a86556" x="101" y="12" width="178" height="20"/> <reportElement uuid="a8212576-8b4a-4b7d-9777-a727d1a86556" x="129" y="12" width="178" height="20"/>
<textElement> <textElement>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{TOTAL_DEPOSITOS}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{TOTAL_DEPOSITOS}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement uuid="53594ff0-8b6d-4259-bea4-70f76933e536" x="0" y="32" width="100" height="20"/> <reportElement uuid="53594ff0-8b6d-4259-bea4-70f76933e536" x="0" y="32" width="128" height="20"/>
<textElement> <textElement>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Total Fechamento]]></text> <text><![CDATA[Total Fechamento]]></text>
</staticText> </staticText>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="46b3f5bb-1a6e-47da-9285-5f5a5fc759f8" x="100" y="32" width="178" height="20"/> <reportElement uuid="46b3f5bb-1a6e-47da-9285-5f5a5fc759f8" x="129" y="32" width="178" height="20"/>
<textElement> <textElement>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{totalFechamento}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{totalFechamento}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement uuid="d746843f-a730-4bbb-9520-80954166d840" x="0" y="52" width="100" height="20"/> <reportElement uuid="d746843f-a730-4bbb-9520-80954166d840" x="0" y="52" width="128" height="20"/>
<textElement> <textElement>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Total Pendente]]></text> <text><![CDATA[Total Pendente]]></text>
</staticText> </staticText>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="5c04bbea-5e2e-4fcc-a965-4e91f5d8db76" x="100" y="52" width="178" height="20"/> <reportElement uuid="5c04bbea-5e2e-4fcc-a965-4e91f5d8db76" x="129" y="52" width="178" height="20"/>
<textElement> <textElement>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-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="RelatorioVendasComissao" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4"> <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="RelatorioVendasComissao" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
<property name="ireport.zoom" value="1.0980750000000008"/> <property name="ireport.zoom" value="1.0980750000000008"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="34"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<parameter name="fecInicio" class="java.lang.String"/> <parameter name="fecInicio" class="java.lang.String"/>
<parameter name="fecFinal" class="java.lang.String"/> <parameter name="fecFinal" class="java.lang.String"/>
@ -35,15 +35,15 @@
</groupHeader> </groupHeader>
<groupFooter> <groupFooter>
<band height="22"> <band height="22">
<textField pattern="¤ #,##0.00"> <textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
<reportElement uuid="d9967577-1a2d-4e8c-afc3-5aa8fa18ae63" x="722" y="0" width="79" height="20"/> <reportElement uuid="d9967577-1a2d-4e8c-afc3-5aa8fa18ae63" stretchType="RelativeToTallestObject" x="660" y="0" width="141" height="20"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{subtotal}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{subtotal}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement uuid="8028606d-ad70-4197-b011-d2ade8e44267" x="622" y="0" width="100" height="20"/> <reportElement uuid="8028606d-ad70-4197-b011-d2ade8e44267" x="560" y="0" width="100" height="20"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
@ -256,15 +256,15 @@
</pageFooter> </pageFooter>
<summary> <summary>
<band height="26" splitType="Stretch"> <band height="26" splitType="Stretch">
<textField pattern="¤ #,##0.00"> <textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
<reportElement uuid="d9967577-1a2d-4e8c-afc3-5aa8fa18ae63" x="722" y="6" width="79" height="20"/> <reportElement uuid="d9967577-1a2d-4e8c-afc3-5aa8fa18ae63" stretchType="RelativeToTallestObject" x="660" y="6" width="141" height="20"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{total}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{total}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement uuid="8028606d-ad70-4197-b011-d2ade8e44267" x="622" y="6" width="100" height="20"/> <reportElement uuid="8028606d-ad70-4197-b011-d2ade8e44267" x="560" y="6" width="100" height="20"/>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-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="relatorioFormaPagamentoAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="832cc8a2-6330-4063-9b36-f96514ae8283"> <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="relatorioFormaPagamentoAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="832cc8a2-6330-4063-9b36-f96514ae8283">
<property name="ireport.zoom" value="2.143588810000011"/> <property name="ireport.zoom" value="2.143588810000011"/>
<property name="ireport.x" value="458"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/> <parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/> <parameter name="DATA_FINAL" class="java.util.Date"/>
@ -103,75 +103,75 @@
</band> </band>
</pageHeader> </pageHeader>
<columnHeader> <columnHeader>
<band height="23"> <band height="37">
<textField> <textField>
<reportElement uuid="333a50a8-5d67-42b5-b3c6-2d70ceabfe25" x="0" y="0" width="66" height="20"/> <reportElement uuid="333a50a8-5d67-42b5-b3c6-2d70ceabfe25" x="0" y="0" width="66" height="36"/>
<textElement markup="none"> <textElement markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{DATA}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{DATA}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="29bb0167-21cd-401c-94d9-f94bb1e9b9e4" x="66" y="0" width="132" height="20"/> <reportElement uuid="29bb0167-21cd-401c-94d9-f94bb1e9b9e4" x="66" y="0" width="132" height="36"/>
<textElement textAlignment="Center" markup="none"> <textElement textAlignment="Center" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{AGENCIA}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{AGENCIA}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="9457e696-5c75-4983-98c3-9dc4fc54e976" x="198" y="0" width="87" height="20"/> <reportElement uuid="9457e696-5c75-4983-98c3-9dc4fc54e976" x="198" y="0" width="87" height="36"/>
<textElement textAlignment="Right" markup="none"> <textElement textAlignment="Right" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{FORMA_PAG}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{FORMA_PAG}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="ab54d7e9-29fd-42da-9721-07fe99bb8874" x="285" y="0" width="69" height="20"/> <reportElement uuid="ab54d7e9-29fd-42da-9721-07fe99bb8874" x="285" y="0" width="69" height="36"/>
<textElement textAlignment="Right" markup="none"> <textElement textAlignment="Right" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{VALOR}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{VALOR}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="fafe4849-b6d5-4a20-ab2c-bb3551337bbd" x="354" y="0" width="70" height="20"/> <reportElement uuid="fafe4849-b6d5-4a20-ab2c-bb3551337bbd" x="354" y="0" width="70" height="36"/>
<textElement textAlignment="Right" markup="none"> <textElement textAlignment="Right" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{PEDAGIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{PEDAGIO}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="52cf4306-6208-414e-8892-3085a69fa84a" x="424" y="0" width="77" height="20"/> <reportElement uuid="52cf4306-6208-414e-8892-3085a69fa84a" x="424" y="0" width="77" height="36"/>
<textElement textAlignment="Right" markup="none"> <textElement textAlignment="Right" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{SEGURO}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{SEGURO}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="be9f28a6-e16c-49af-a1ae-a806a4a835d8" x="613" y="0" width="60" height="20"/> <reportElement uuid="be9f28a6-e16c-49af-a1ae-a806a4a835d8" x="613" y="0" width="60" height="36"/>
<textElement textAlignment="Right" markup="none"> <textElement textAlignment="Right" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{TAXAS}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{TAXAS}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="218e15c9-18bd-4ec5-9ff1-36b5e016569e" x="673" y="0" width="67" height="20"/> <reportElement uuid="218e15c9-18bd-4ec5-9ff1-36b5e016569e" x="673" y="0" width="67" height="36"/>
<textElement textAlignment="Right" markup="none"> <textElement textAlignment="Right" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{TOTAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{TOTAL}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="33fdc3c8-28af-450b-9afb-bffbe50ff8b8" x="1" y="20" width="801" height="1"/> <reportElement uuid="33fdc3c8-28af-450b-9afb-bffbe50ff8b8" x="0" y="36" width="801" height="1"/>
</line> </line>
<textField> <textField>
<reportElement uuid="478182fa-9c5c-4e61-8719-e4b056b80585" x="740" y="0" width="62" height="20"/> <reportElement uuid="478182fa-9c5c-4e61-8719-e4b056b80585" x="740" y="0" width="62" height="36"/>
<textElement textAlignment="Right" markup="none"> <textElement textAlignment="Right" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{QTDE}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{QTDE}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="fd782db0-7497-4596-8ace-8adbd28b895a" x="501" y="0" width="112" height="20"/> <reportElement uuid="fd782db0-7497-4596-8ace-8adbd28b895a" x="501" y="0" width="112" height="36"/>
<textElement textAlignment="Center" markup="none"> <textElement textAlignment="Center" markup="none">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
@ -180,54 +180,56 @@
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="20" splitType="Stretch"> <band height="34" splitType="Stretch">
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="66455995-be07-4062-8234-ade8ccfd79c0" x="0" y="0" width="66" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="66455995-be07-4062-8234-ade8ccfd79c0" x="0" y="0" width="66" height="34" isPrintWhenDetailOverflows="true"/>
<textElement/> <textElement/>
<textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="151a46f2-5c54-4a0e-91c2-a49986a08cff" x="198" y="0" width="87" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="151a46f2-5c54-4a0e-91c2-a49986a08cff" x="198" y="0" width="87" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{FORMA_PAGAMENTO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{FORMA_PAGAMENTO}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab" x="66" y="0" width="132" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab" x="66" y="0" width="132" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center"/> <textElement textAlignment="Center">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{AGENCIA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{AGENCIA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="d2f490c1-e807-4243-a3e0-b86229a83c6b" x="285" y="0" width="69" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="d2f490c1-e807-4243-a3e0-b86229a83c6b" x="285" y="0" width="69" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="dcb305f9-8649-4440-a485-4ada6876b066" x="673" y="0" width="67" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="dcb305f9-8649-4440-a485-4ada6876b066" x="673" y="0" width="67" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TOTAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{TOTAL}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="acacd737-9c59-4893-ac3a-ab43c1909a69" x="740" y="0" width="62" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="acacd737-9c59-4893-ac3a-ab43c1909a69" x="740" y="0" width="62" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{QTDE}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{QTDE}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="a3119d26-2d10-40c5-98dc-bf0f6be3fc25" x="354" y="0" width="70" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="a3119d26-2d10-40c5-98dc-bf0f6be3fc25" x="354" y="0" width="70" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="ccad4f84-243a-47cf-904a-15c4ba7feee4" x="424" y="0" width="77" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="ccad4f84-243a-47cf-904a-15c4ba7feee4" x="424" y="0" width="77" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{SEGURO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SEGURO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="d098d054-0eef-474a-91d3-c7ea9090ab74" x="613" y="0" width="60" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="d098d054-0eef-474a-91d3-c7ea9090ab74" x="613" y="0" width="60" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TAXA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{TAXA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="48f4dece-76dc-4445-89f3-73c0537c8bf9" x="501" y="0" width="112" height="20" isPrintWhenDetailOverflows="true"/> <reportElement uuid="48f4dece-76dc-4445-89f3-73c0537c8bf9" x="501" y="0" width="112" height="34" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center"/> <textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{SEGURO_OPCIONAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SEGURO_OPCIONAL}]]></textFieldExpression>
</textField> </textField>

View File

@ -112,7 +112,11 @@
<textField> <textField>
<reportElement uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335" x="82" y="37" width="695" height="20"/> <reportElement uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335" x="82" y="37" width="695" height="20"/>
<textElement/> <textElement/>
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression> <textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) :
(
$P{fecInicioViagem} != null ? ($P{fecInicioViagem} + " à " + $P{fecFinalViagem}) : ""
)
)]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="31b4831f-a97b-44a1-a30f-ba93c667fa81" x="82" y="57" width="695" height="20" isRemoveLineWhenBlank="true"/> <reportElement uuid="31b4831f-a97b-44a1-a30f-ba93c667fa81" x="82" y="57" width="695" height="20" isRemoveLineWhenBlank="true"/>
@ -279,7 +283,7 @@
<textElement textAlignment="Center"/> <textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="82cfcbd9-ad4a-47e8-a166-e0a48c207387" stretchType="RelativeToTallestObject" x="319" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/> <reportElement uuid="82cfcbd9-ad4a-47e8-a166-e0a48c207387" stretchType="RelativeToTallestObject" x="319" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
<box> <box>
<bottomPen lineWidth="0.75"/> <bottomPen lineWidth="0.75"/>
@ -319,7 +323,7 @@
<textElement textAlignment="Center"/> <textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{descOrigem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descOrigem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="HH:mm" isBlankWhenNull="true">
<reportElement uuid="ab7a3319-6e43-4ed9-bb0e-114f3d072da8" stretchType="RelativeToTallestObject" x="401" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/> <reportElement uuid="ab7a3319-6e43-4ed9-bb0e-114f3d072da8" stretchType="RelativeToTallestObject" x="401" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
<box> <box>
<bottomPen lineWidth="0.75"/> <bottomPen lineWidth="0.75"/>

View File

@ -1051,7 +1051,7 @@
<textElement textAlignment="Right"> <textElement textAlignment="Right">
<font size="6"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{segOpc}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="8eb7e8a7-3443-4fcf-b10a-b135bf78b3f5" stretchType="RelativeToTallestObject" x="404" y="0" width="15" height="10" isPrintWhenDetailOverflows="true"/> <reportElement uuid="8eb7e8a7-3443-4fcf-b10a-b135bf78b3f5" stretchType="RelativeToTallestObject" x="404" y="0" width="15" height="10" isPrintWhenDetailOverflows="true"/>
@ -1093,7 +1093,7 @@
<textElement textAlignment="Right"> <textElement textAlignment="Right">
<font size="6"/> <font size="6"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{segOpc}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement uuid="afdc1c7a-72f8-4992-b747-97e4744034a1" stretchType="RelativeToTallestObject" x="145" y="0" width="30" height="10" isPrintWhenDetailOverflows="true"/> <reportElement uuid="afdc1c7a-72f8-4992-b747-97e4744034a1" stretchType="RelativeToTallestObject" x="145" y="0" width="30" height="10" isPrintWhenDetailOverflows="true"/>

View File

@ -19,7 +19,7 @@
<![CDATA[select cj.numseriepreimpresa, nvl(cj.empresacorrida_id, ma.marca_id) empresacorrida_id, <![CDATA[select cj.numseriepreimpresa, nvl(cj.empresacorrida_id, ma.marca_id) empresacorrida_id,
em.nombempresa, es.cveestado, cj.numfoliosistema, cj.fechorventa, cj.feccorrida, em.nombempresa, es.cveestado, cj.numfoliosistema, cj.fechorventa, cj.feccorrida,
cj.preciopagado cj.preciopagado
from caja cj, from boleto cj,
empresa em, empresa em,
punto_venta pv, punto_venta pv,
parada pa, parada pa,
@ -34,9 +34,11 @@
and pa.ciudad_id = ci.ciudad_id and pa.ciudad_id = ci.ciudad_id
and ci.estado_id = es.estado_id and ci.estado_id = es.estado_id
and nvl(cj.empresacorrida_id, ma.empresa_id) = $P{EMPRESA_ID} and nvl(cj.empresacorrida_id, ma.empresa_id) = $P{EMPRESA_ID}
and cj.indcancelacion = 0
and cj.motivocancelacion_id is null
$P!{LS_CATEGORIA} $P!{LS_CATEGORIA}
and trunc(cj.fechorventa) between trunc($P{DATA_INICIO}) and trunc($P{DATA_FINAL}) and trunc(cj.fechorventa) between trunc($P{DATA_INICIO}) and trunc($P{DATA_FINAL})
and ((cj.feccorrida is null) or ($P{PASSAGEM_ABERTA} = 'T')) $P!{PASSAGEM_ABERTA}
order by em.nombempresa, es.cveestado, cj.fechorventa]]> order by em.nombempresa, es.cveestado, cj.fechorventa]]>
</queryString> </queryString>
<field name="NUMSERIEPREIMPRESA" class="java.lang.String"/> <field name="NUMSERIEPREIMPRESA" class="java.lang.String"/>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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="RelatorioBPe" pageWidth="800" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="760" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <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="RelatorioBPe" pageWidth="800" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="760" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c49b5893-2989-4f8d-8645-45d4553bcf9d">
<property name="ireport.zoom" value="3.8906136901500026"/> <property name="ireport.zoom" value="2.1961500000000025"/>
<property name="ireport.x" value="993"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="529"/> <property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/> <property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
@ -42,144 +42,168 @@
<title> <title>
<band height="176" splitType="Stretch"> <band height="176" splitType="Stretch">
<staticText> <staticText>
<reportElement mode="Transparent" x="0" y="0" width="570" height="41" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="48387206-d35a-46c3-92bc-7337730b5b29" mode="Transparent" x="0" y="0" width="555" height="41" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[QUADRO DEMONSTRATIVO DO MOVIMENTO DE PASSAGEIROS]]></text> <text><![CDATA[QUADRO DEMONSTRATIVO DO MOVIMENTO DE PASSAGEIROS]]></text>
</staticText> </staticText>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="654" y="0" width="95" height="25" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="08f1d92b-4dee-433a-b066-f1b568988bce" mode="Transparent" x="654" y="0" width="95" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="570" y="25" width="84" height="16" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="98b19fb9-fbbf-4a0d-972d-4984bfba62b0" mode="Transparent" x="555" y="25" width="99" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Página " + $V{PAGE_NUMBER}+ " de " + $V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression><![CDATA["Página " + $V{PAGE_NUMBER}+ " de " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement x="-1" y="48" width="750" height="1"/> <reportElement uuid="0ef26664-c3c7-4239-b964-4dd4c07dc70e" x="-1" y="48" width="750" height="1"/>
</line> </line>
<line> <line>
<reportElement positionType="Float" x="-1" y="160" width="750" height="1"/> <reportElement uuid="75af562f-9dac-46dc-8b06-1e50896893d0" positionType="Float" x="-1" y="160" width="750" height="1"/>
</line> </line>
<staticText> <staticText>
<reportElement x="-1" y="49" width="63" height="22"/> <reportElement uuid="8816e3ed-08fc-44c4-9b5c-90065a97ea1f" x="-1" y="49" width="78" height="22"/>
<textElement lineSpacing="Single"> <textElement>
<font isBold="true"/> <font isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Empresa:]]></text> <text><![CDATA[Empresa:]]></text>
</staticText> </staticText>
<textField> <textField>
<reportElement x="62" y="49" width="509" height="22"/> <reportElement uuid="e4dcbf34-9a95-47d4-9d85-ef9c75ed8270" x="77" y="49" width="577" height="22"/>
<textElement lineSpacing="Single"/> <textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{EMPRESA}]]></textFieldExpression> <paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="71" width="251" height="20"/> <reportElement uuid="bbfa56eb-b0e4-4ce8-95ec-03fa5fecdaa5" x="0" y="71" width="306" height="20"/>
<textElement lineSpacing="Single"> <textElement>
<font isBold="true"/> <font isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Período: " + $P{DATA_DE} + " a " + $P{DATA_ATE}]]></textFieldExpression> <textFieldExpression><![CDATA["Período: " + $P{DATA_DE} + " a " + $P{DATA_ATE}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement x="0" y="133" width="50" height="20"/> <reportElement uuid="09cdf961-cdc2-4062-94e2-241e21a728b5" x="0" y="133" width="50" height="20"/>
<textElement lineSpacing="Single"> <textElement>
<font isBold="true"/> <font isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Linha:]]></text> <text><![CDATA[Linha:]]></text>
</staticText> </staticText>
<textField> <textField>
<reportElement x="150" y="133" width="425" height="20"/> <reportElement uuid="70f366bb-2104-429a-8899-66f853c0f260" x="150" y="133" width="405" height="20"/>
<textElement lineSpacing="Single"/> <textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{DESC_LINHAS_SELECIONADAS}]]></textFieldExpression> <paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DESC_LINHAS_SELECIONADAS}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement x="0" y="91" width="77" height="20"/> <reportElement uuid="2284285a-4769-4bc9-b48d-ea18d3a2b726" x="0" y="91" width="77" height="20"/>
<textElement lineSpacing="Single"> <textElement>
<font isBold="true"/> <font isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Tipo de Data:]]></text> <text><![CDATA[Tipo de Data:]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="77" y="91" width="73" height="20"/> <reportElement uuid="6650b65f-2a11-4a23-8afd-c1b2a46c2e47" x="77" y="91" width="73" height="20"/>
<textElement lineSpacing="Single"> <textElement>
<font isBold="false"/> <font isBold="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[SERVIÇO]]></text> <text><![CDATA[SERVIÇO]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="0" y="111" width="77" height="20"/> <reportElement uuid="251da91e-5f8e-452d-9ed9-4414e4d88cc5" x="0" y="111" width="77" height="20"/>
<textElement lineSpacing="Single"> <textElement>
<font isBold="true"/> <font isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Lugar Ofer:]]></text> <text><![CDATA[Lugar Ofer:]]></text>
</staticText> </staticText>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="77" y="113" width="498" height="20"/> <reportElement uuid="c023bf07-8aa7-4848-a922-a556dd64c576" x="77" y="113" width="478" height="20"/>
<textElement lineSpacing="Single"/> <textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{CANTASIENTOS}]]></textFieldExpression> <paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{CANTASIENTOS}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="50" y="133" width="100" height="20"/> <reportElement uuid="379fb4cf-7160-4ed9-b230-c5613786e420" x="50" y="133" width="100" height="20"/>
<textElement lineSpacing="Single"/> <textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{LINHAS}]]></textFieldExpression> <paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{LINHAS}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</title> </title>
<columnHeader> <columnHeader>
<band height="17"> <band height="17">
<staticText> <staticText>
<reportElement x="0" y="0" width="150" height="15"/> <reportElement uuid="f0c47ec0-d41c-4608-9e01-ee5052ebd24c" x="0" y="0" width="150" height="15"/>
<textElement textAlignment="Left" lineSpacing="Single" markup="none"> <textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Origem]]></text> <text><![CDATA[Origem]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="150" y="0" width="156" height="15"/> <reportElement uuid="d526bb87-3f60-4c72-bbc0-cb9f11bee23d" x="150" y="0" width="156" height="15"/>
<textElement textAlignment="Left" lineSpacing="Single" markup="none"> <textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Destino]]></text> <text><![CDATA[Destino]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="399" y="0" width="82" height="15"/> <reportElement uuid="da145fa4-768a-4cbc-9704-605b36cfc3bc" x="378" y="0" width="90" height="15"/>
<textElement textAlignment="Left" lineSpacing="Single" markup="none"> <textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Extensão KM]]></text> <text><![CDATA[Extensão KM]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="481" y="0" width="89" height="15"/> <reportElement uuid="cb75f5bc-97d3-4041-b4cb-07ef31a0b238" x="468" y="0" width="87" height="15"/>
<textElement textAlignment="Left" lineSpacing="Single" markup="none"> <textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Pagantes Ida]]></text> <text><![CDATA[Pagantes Ida]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="570" y="0" width="84" height="15"/> <reportElement uuid="cef96a7c-142c-400a-b65b-82c101fbd21e" x="555" y="0" width="99" height="15"/>
<textElement textAlignment="Left" lineSpacing="Single" markup="none"> <textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Pagantes Volta]]></text> <text><![CDATA[Pagantes Volta]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="306" y="0" width="93" height="15"/> <reportElement uuid="1554b801-f6ed-48dc-a16e-2f5ca8a8b71a" x="306" y="0" width="72" height="15"/>
<textElement textAlignment="Left" lineSpacing="Single" markup="none"> <textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Tarifa]]></text> <text><![CDATA[Tarifa]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="654" y="0" width="95" height="15"/> <reportElement uuid="e5150478-8a28-4de5-87e6-40281b3a55b6" x="654" y="0" width="95" height="15"/>
<textElement textAlignment="Center" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Total Receita]]></text> <text><![CDATA[Total Receita]]></text>
</staticText> </staticText>
@ -188,101 +212,114 @@
<detail> <detail>
<band height="25" splitType="Stretch"> <band height="25" splitType="Stretch">
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="0" y="0" width="150" height="15"/> <reportElement uuid="c2f2ed2f-8c42-402e-b606-ca76e7bd67e3" x="0" y="0" width="150" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{origem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="570" y="0" width="84" height="15"/> <reportElement uuid="1195949f-2f19-4935-844c-0c69123efe40" x="555" y="0" width="99" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{totalvolta}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{totalvolta}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="150" y="0" width="156" height="15"/> <reportElement uuid="41bad51e-a613-4ae6-9937-714a05155251" x="150" y="0" width="156" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{destino}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="399" y="0" width="82" height="15"/> <reportElement uuid="049bb44c-49f3-4d89-a213-1d16e30d94b4" x="378" y="0" width="90" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{km}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{km}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="481" y="0" width="89" height="15"/> <reportElement uuid="5ad76aa0-b16a-41ac-87ca-86bdea7bc612" x="468" y="0" width="87" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{totalida}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{totalida}]]></textFieldExpression>
</textField> </textField>
<textField pattern=" #,##0.00" isBlankWhenNull="true"> <textField pattern=" #,##0.00" isBlankWhenNull="true">
<reportElement x="306" y="0" width="93" height="15"/> <reportElement uuid="e203673e-3d97-4bed-9c04-e1e9e1bec06d" x="306" y="0" width="72" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{tarifa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
</textField> </textField>
<textField pattern=" #,##0.00" isBlankWhenNull="true"> <textField pattern=" #,##0.00" isBlankWhenNull="true">
<reportElement x="654" y="0" width="95" height="15"/> <reportElement uuid="183eaf3a-6104-46d3-8c8a-1de4c6f761bf" x="654" y="0" width="95" height="15"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{totalReceita}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{totalReceita}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</detail> </detail>
<columnFooter> <columnFooter>
<band height="27"> <band height="27">
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="399" y="0" width="82" height="15"/> <reportElement uuid="1eea79f0-7c7e-43ea-8a3c-a54ec8f9a086" x="378" y="0" width="90" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{SOMA_KM}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{SOMA_KM}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="481" y="0" width="89" height="15"/> <reportElement uuid="3a7823db-bc09-4097-8cbd-bb44c55eab67" x="468" y="0" width="87" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{SOMA_IDA}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{SOMA_IDA}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement x="570" y="0" width="84" height="15"/> <reportElement uuid="329785a2-cb47-4db5-ba70-06cb06509019" x="555" y="0" width="99" height="15"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{SOMA_VOLTA}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{SOMA_VOLTA}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement x="0" y="0" width="399" height="15"/> <reportElement uuid="4ddd9911-6763-4724-a5e3-c86a696a8abf" x="0" y="0" width="378" height="15"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font isBold="true"/> <font isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[TOTAL]]></text> <text><![CDATA[TOTAL]]></text>
</staticText> </staticText>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="654" y="0" width="95" height="15"/> <reportElement uuid="53fc346a-9a55-4bf3-8f5c-a9f5a01aa2a4" x="654" y="0" width="95" height="15"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="10"/> <font size="10"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{SOMA_TOTAL_RECEITA}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{SOMA_TOTAL_RECEITA}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</columnFooter> </columnFooter>
<noData> <noData>
<band height="50"> <band height="50">
<staticText> <staticText>
<reportElement x="0" y="24" width="654" height="26"/> <reportElement uuid="302dc2fd-ac13-424a-9b38-abcc21436bdd" x="0" y="24" width="654" height="26"/>
<textElement lineSpacing="Single" markup="none"> <textElement markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Não foi possivel obter dados com os parâmetros informados.]]></text> <text><![CDATA[Não foi possivel obter dados com os parâmetros informados.]]></text>
</staticText> </staticText>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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="RelatorioReceitaServico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021"> <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="RelatorioReceitaServico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="1.2100000000000002"/> <property name="ireport.zoom" value="1.2100000000000002"/>
<property name="ireport.x" value="594"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="146"/> <property name="ireport.y" value="70"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/> <parameter name="NOME_RELATORIO" class="java.lang.String"/>
@ -36,10 +36,10 @@
<variable name="TOTAL_TARIFA" class="java.math.BigDecimal" resetType="Group" resetGroup="data" calculation="Sum"> <variable name="TOTAL_TARIFA" class="java.math.BigDecimal" resetType="Group" resetGroup="data" calculation="Sum">
<variableExpression><![CDATA[$F{tarifa}]]></variableExpression> <variableExpression><![CDATA[$F{tarifa}]]></variableExpression>
</variable> </variable>
<variable name="TOTAL_TUT" class="java.math.BigDecimal" calculation="Sum"> <variable name="TOTAL_TUT" class="java.math.BigDecimal" resetType="Group" resetGroup="data" calculation="Sum">
<variableExpression><![CDATA[$F{tut}]]></variableExpression> <variableExpression><![CDATA[$F{tut}]]></variableExpression>
</variable> </variable>
<variable name="TOTAL_PEDAGIO" class="java.math.BigDecimal" calculation="Sum"> <variable name="TOTAL_PEDAGIO" class="java.math.BigDecimal" resetType="Group" resetGroup="data" calculation="Sum">
<variableExpression><![CDATA[$F{pedagio}]]></variableExpression> <variableExpression><![CDATA[$F{pedagio}]]></variableExpression>
</variable> </variable>
<variable name="bilhete_COUNT" class="java.lang.Integer" resetType="Group" resetGroup="data" calculation="Count"> <variable name="bilhete_COUNT" class="java.lang.Integer" resetType="Group" resetGroup="data" calculation="Count">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-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="RelatorioReceitaServico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021"> <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="RelatorioReceitaServico" pageWidth="882" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="842" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="1.2100000000000002"/> <property name="ireport.zoom" value="1.331000000000001"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
@ -29,6 +29,7 @@
<field name="passageiro" class="java.lang.String"/> <field name="passageiro" class="java.lang.String"/>
<field name="nrBilhete" class="java.lang.String"/> <field name="nrBilhete" class="java.lang.String"/>
<field name="preciobase" class="java.math.BigDecimal"/> <field name="preciobase" class="java.math.BigDecimal"/>
<field name="telefone" class="java.lang.String"/>
<variable name="totalizador" class="java.math.BigDecimal" calculation="Sum"> <variable name="totalizador" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{total}]]></variableExpression> <variableExpression><![CDATA[$F{total}]]></variableExpression>
</variable> </variable>
@ -45,9 +46,9 @@
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<pageHeader> <pageHeader>
<band height="82" splitType="Stretch"> <band height="65" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="11" y="0" width="257" height="35" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="1" y="0" width="699" height="28" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="15" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="15" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -55,7 +56,7 @@
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="3dca1764-758d-4e1c-80c0-85cc02e47813" mode="Transparent" x="11" y="35" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="3dca1764-758d-4e1c-80c0-85cc02e47813" mode="Transparent" x="1" y="28" width="49" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -63,7 +64,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="8948c0fc-e878-45e2-8505-7934add98ab9" mode="Transparent" x="150" y="35" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="8948c0fc-e878-45e2-8505-7934add98ab9" mode="Transparent" x="100" y="28" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -71,7 +72,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587" mode="Transparent" x="83" y="35" width="66" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587" mode="Transparent" x="50" y="28" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -79,7 +80,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="64632058-9466-479c-ae28-0a11c9ed2c7f" mode="Transparent" x="160" y="35" width="66" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="64632058-9466-479c-ae28-0a11c9ed2c7f" mode="Transparent" x="110" y="28" width="46" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -87,33 +88,30 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="554" y="0" width="122" height="25"/> <reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="700" y="0" width="57" height="13"/>
<textElement textAlignment="Right"> <textElement textAlignment="Left">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9" mode="Transparent" x="691" y="0" width="111" height="25" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9" mode="Transparent" x="757" y="0" width="85" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<line>
<reportElement uuid="bbf33a72-515f-42fc-8c79-e859aebca31d" x="0" y="54" width="802" height="5"/>
</line>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="571" y="27" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="700" y="13" width="57" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField> </textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false"> <textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="691" y="27" width="35" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="757" y="13" width="85" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -121,329 +119,410 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="468" y="42" width="208" height="12" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="700" y="28" width="57" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.impressorPor}]]></textFieldExpression>
</textField> </textField>
<line>
<reportElement uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf" x="0" y="77" width="802" height="5"/>
</line>
<textField> <textField>
<reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="59" width="802" height="14"/> <reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="51" width="842" height="14"/>
<box>
<topPen lineWidth="0.75"/>
<bottomPen lineWidth="0.75"/>
</box>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Middle">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="469acc35-aa0a-41d9-ad44-544cf484879a" mode="Transparent" x="757" y="28" width="85" height="14" 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"/>
</textElement>
<textFieldExpression><![CDATA[$P{USUARIO}]]></textFieldExpression>
</textField>
</band> </band>
</pageHeader> </pageHeader>
<columnHeader> <columnHeader>
<band height="61" splitType="Stretch"> <band height="12" splitType="Stretch">
<staticText> <staticText>
<reportElement uuid="5f9a0ea4-15d3-4bad-953a-0dc6f3f6ef51" x="1" y="33" width="48" height="28"/> <reportElement uuid="5f9a0ea4-15d3-4bad-953a-0dc6f3f6ef51" x="1" y="0" width="38" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Data]]></text> <text><![CDATA[Data]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="fa0a31b5-6a94-4b0c-b730-4b6ef8f2304c" x="49" y="33" width="51" height="28"/> <reportElement uuid="fa0a31b5-6a94-4b0c-b730-4b6ef8f2304c" x="39" y="0" width="51" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isBold="true" isItalic="false"/> <font size="7" isBold="true" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Serviço]]></text> <text><![CDATA[Serviço]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="a797bc17-1810-47b7-a3e1-510cc6403454" x="100" y="33" width="66" height="28"/> <reportElement uuid="a797bc17-1810-47b7-a3e1-510cc6403454" x="90" y="0" width="66" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isBold="false" isItalic="false"/> <font size="7" isBold="false" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Empresa]]></text> <text><![CDATA[Empresa]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="765ebd99-b6de-4c8e-910d-b3e5bf9db573" x="166" y="33" width="30" height="28"/> <reportElement uuid="765ebd99-b6de-4c8e-910d-b3e5bf9db573" x="156" y="0" width="30" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Origem]]></text> <text><![CDATA[Origem]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="2f3b9ac0-165c-4718-96c8-a37f005b5b82" x="196" y="33" width="33" height="28"/> <reportElement uuid="2f3b9ac0-165c-4718-96c8-a37f005b5b82" x="186" y="0" width="30" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Destino]]></text> <text><![CDATA[Destino]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="9eb87b55-da02-478a-b21d-c7b727dbaafe" x="229" y="33" width="68" height="28"/> <reportElement uuid="9eb87b55-da02-478a-b21d-c7b727dbaafe" x="216" y="0" width="68" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Classe]]></text> <text><![CDATA[Classe]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="fe1e6ace-6d95-4089-8f28-d926554bf65d" x="297" y="33" width="40" height="28"/> <reportElement uuid="52d26417-4766-44b3-aaa7-b468c124feda" x="361" y="0" width="34" height="12"/>
<textElement textAlignment="Left"> <box>
<font size="7" isItalic="false"/> <bottomPen lineWidth="0.75"/>
</textElement> </box>
<text><![CDATA[Tarifa]]></text>
</staticText>
<staticText>
<reportElement uuid="52d26417-4766-44b3-aaa7-b468c124feda" x="374" y="33" width="34" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[TUT]]></text> <text><![CDATA[TUT]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="3f6afcbf-9dfe-4f1b-b937-45dbc9ace8a2" x="408" y="33" width="41" height="28"/> <reportElement uuid="3f6afcbf-9dfe-4f1b-b937-45dbc9ace8a2" x="395" y="0" width="41" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false" isStrikeThrough="false"/> <font size="7" isItalic="false" isStrikeThrough="false"/>
</textElement> </textElement>
<text><![CDATA[Pedágio]]></text> <text><![CDATA[Pedágio]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="182474d6-668a-4847-9db6-ba65c41119aa" x="449" y="33" width="40" height="28"/> <reportElement uuid="182474d6-668a-4847-9db6-ba65c41119aa" x="436" y="0" width="40" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Total]]></text> <text><![CDATA[Total]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="a7b14fa8-3b89-4f4d-b265-63eb3d930b04" x="489" y="33" width="40" height="28"/> <reportElement uuid="a7b14fa8-3b89-4f4d-b265-63eb3d930b04" x="476" y="0" width="40" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Tipo]]></text> <text><![CDATA[Tipo]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="10f27b7d-5cc9-423c-a196-330c78cdb69e" x="529" y="33" width="73" height="28"/> <reportElement uuid="10f27b7d-5cc9-423c-a196-330c78cdb69e" x="516" y="0" width="73" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Agência]]></text> <text><![CDATA[Agência]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="f2097833-6bd3-4523-b457-44ed6cc4abd6" x="602" y="33" width="43" height="28"/> <reportElement uuid="f2097833-6bd3-4523-b457-44ed6cc4abd6" x="589" y="0" width="38" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Data]]></text> <text><![CDATA[Data]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="44b2bf55-871a-4eaa-97d4-74bee2a89769" x="678" y="33" width="57" height="28"/> <reportElement uuid="44b2bf55-871a-4eaa-97d4-74bee2a89769" x="660" y="0" width="77" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Passageiro]]></text> <text><![CDATA[Passageiro]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="2abbc372-a813-4da6-8ce1-e5901a15b430" x="735" y="33" width="39" height="28"/> <reportElement uuid="2abbc372-a813-4da6-8ce1-e5901a15b430" x="785" y="0" width="39" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Nr bilhete ]]></text> <text><![CDATA[Nr bilhete ]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="2bd47a58-e591-4b32-bdd4-fa43ece0c581" x="774" y="33" width="28" height="28"/> <reportElement uuid="2bd47a58-e591-4b32-bdd4-fa43ece0c581" x="824" y="0" width="18" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Status]]></text> <text><![CDATA[Status]]></text>
</staticText> </staticText>
<line>
<reportElement uuid="a11636cc-5ee1-44cc-8cd1-cbe2ebc47abb" x="0" y="56" width="802" height="5"/>
</line>
<staticText> <staticText>
<reportElement uuid="bceca474-7703-4bf0-a0da-d8e15b70aeca" x="645" y="33" width="33" height="28"/> <reportElement uuid="bceca474-7703-4bf0-a0da-d8e15b70aeca" x="627" y="0" width="33" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Hora]]></text> <text><![CDATA[Hora]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="39e49959-967f-4fd2-8b92-a0331dcce1e3" x="337" y="33" width="37" height="28"/> <reportElement uuid="39e49959-967f-4fd2-8b92-a0331dcce1e3" x="324" y="0" width="37" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<text><![CDATA[Original]]></text> <text><![CDATA[Original]]></text>
</staticText> </staticText>
<staticText>
<reportElement uuid="ba3a04df-c753-4e07-88b8-132742d097a0" x="737" y="0" width="48" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement>
<font size="7" isBold="true" isItalic="false"/>
</textElement>
<text><![CDATA[Telefone]]></text>
</staticText>
<staticText>
<reportElement uuid="fe1e6ace-6d95-4089-8f28-d926554bf65d" x="284" y="0" width="40" height="12"/>
<box>
<bottomPen lineWidth="0.75"/>
</box>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Tarifa]]></text>
</staticText>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="23" splitType="Stretch"> <band height="12" splitType="Stretch">
<textField> <textField>
<reportElement uuid="b15ada19-a1c0-4feb-9734-3a6c624bbfe6" x="49" y="0" width="51" height="20"/> <reportElement uuid="b15ada19-a1c0-4feb-9734-3a6c624bbfe6" x="39" y="0" width="51" height="12"/>
<textElement> <textElement>
<font size="7" isBold="true" isItalic="false"/> <font size="7" isBold="true" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="c35afacb-b160-4ace-b7be-c2e2f54ac1c0" x="100" y="0" width="66" height="20"/> <reportElement uuid="c35afacb-b160-4ace-b7be-c2e2f54ac1c0" x="90" y="0" width="66" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="fd8ae360-3ae2-4adc-8c3a-fcfb19551d22" x="166" y="0" width="30" height="20"/> <reportElement uuid="fd8ae360-3ae2-4adc-8c3a-fcfb19551d22" x="156" y="0" width="30" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="29ae3fa8-9db1-46c8-bcf7-cb9aa7bc6eb3" x="196" y="0" width="33" height="20"/> <reportElement uuid="29ae3fa8-9db1-46c8-bcf7-cb9aa7bc6eb3" x="186" y="0" width="30" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="7265d085-4188-44a0-8e04-e5efdb0d5ccf" x="229" y="0" width="68" height="20"/> <reportElement uuid="7265d085-4188-44a0-8e04-e5efdb0d5ccf" x="216" y="0" width="68" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{classe}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{classe}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="6430daa4-d318-4f4a-87ff-2ea4de9d492e" x="297" y="0" width="41" height="20"/> <reportElement uuid="6430daa4-d318-4f4a-87ff-2ea4de9d492e" x="284" y="0" width="41" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="49faea3b-2ce4-469a-b07c-3b4869aaa9e5" x="374" y="0" width="34" height="20"/> <reportElement uuid="49faea3b-2ce4-469a-b07c-3b4869aaa9e5" x="361" y="0" width="34" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{tut}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tut}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="16461919-04ea-48df-af5c-7f0d7dcb7fab" x="408" y="0" width="41" height="20"/> <reportElement uuid="16461919-04ea-48df-af5c-7f0d7dcb7fab" x="395" y="0" width="41" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="97be07ba-bdb1-4bf2-91af-554b580ee3fa" x="449" y="0" width="40" height="20"/> <reportElement uuid="97be07ba-bdb1-4bf2-91af-554b580ee3fa" x="436" y="0" width="40" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="8cf0c102-4e42-4f6d-8922-8edc808fdc0f" x="489" y="0" width="40" height="20"/> <reportElement uuid="8cf0c102-4e42-4f6d-8922-8edc808fdc0f" x="476" y="0" width="40" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="0ecedfc0-febb-40e0-b5ca-168b5a296646" x="529" y="0" width="73" height="20"/> <reportElement uuid="0ecedfc0-febb-40e0-b5ca-168b5a296646" x="516" y="0" width="73" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="8229beec-daa6-4357-a4c9-f475d7a873aa" x="602" y="0" width="43" height="20"/> <reportElement uuid="8229beec-daa6-4357-a4c9-f475d7a873aa" x="589" y="0" width="38" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataHoraCompra})]]></textFieldExpression> <textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataHoraCompra})]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="8e67c346-5c72-4a92-beee-9dd9ad647bb1" x="678" y="0" width="57" height="20"/> <reportElement uuid="8e67c346-5c72-4a92-beee-9dd9ad647bb1" x="660" y="0" width="77" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{passageiro}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{passageiro}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="9a639996-146c-42c9-a8fd-f947a59310f4" x="735" y="0" width="39" height="20"/> <reportElement uuid="9a639996-146c-42c9-a8fd-f947a59310f4" x="785" y="0" width="39" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{nrBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{nrBilhete}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa" x="0" y="0" width="49" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
</textField>
<textField> <textField>
<reportElement uuid="8d419689-a353-4332-8e39-222dde198168" x="645" y="0" width="33" height="20"/> <reportElement uuid="8d419689-a353-4332-8e39-222dde198168" x="627" y="0" width="33" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("HH:mm:ss").format($F{dataHoraCompra})]]></textFieldExpression> <textFieldExpression><![CDATA[new SimpleDateFormat("HH:mm:ss").format($F{dataHoraCompra})]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="48c368c2-dd11-4724-a5e9-b3f139464d4a" x="338" y="0" width="36" height="20"/> <reportElement uuid="48c368c2-dd11-4724-a5e9-b3f139464d4a" x="325" y="0" width="36" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{preciobase}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{preciobase}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="1f6449f5-835f-41f2-8c41-94eb91e54fa2" x="774" y="0" width="28" height="20"/> <reportElement uuid="1f6449f5-835f-41f2-8c41-94eb91e54fa2" x="824" y="0" width="18" height="12"/>
<textElement> <textElement>
<font size="7" isItalic="false"/> <font size="7" isItalic="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[""]]></textFieldExpression> <textFieldExpression><![CDATA[""]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa" x="1" y="0" width="38" height="12"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="7dedf3ee-5d5b-48e0-b56c-5fea86d1d80c" stretchType="RelativeToBandHeight" x="737" y="0" width="48" height="12"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{telefone}]]></textFieldExpression>
</textField>
</band> </band>
</detail> </detail>
<summary> <summary>
<band height="100" splitType="Stretch"> <band height="77" splitType="Stretch">
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="4bbf9db6-cc01-4cc0-98fa-7522eb890d4c" x="144" y="78" width="178" height="20"/> <reportElement uuid="4bbf9db6-cc01-4cc0-98fa-7522eb890d4c" x="186" y="60" width="98" height="14"/>
<textElement> <box leftPadding="1"/>
<textElement textAlignment="Right">
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{totalizador}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totalizador}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="381ba8fc-878f-4419-8c93-758a607e9ba3" x="144" y="18" width="178" height="20"/> <reportElement uuid="381ba8fc-878f-4419-8c93-758a607e9ba3" x="186" y="18" width="98" height="14"/>
<textElement/> <box leftPadding="1"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_TARIFA}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{TOTAL_TARIFA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="a36d2d34-3721-4796-93ec-3cf838aebf85" x="144" y="38" width="178" height="20"/> <reportElement uuid="a36d2d34-3721-4796-93ec-3cf838aebf85" x="186" y="32" width="98" height="14"/>
<textElement/> <box leftPadding="1"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_TUT}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{TOTAL_TUT}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement uuid="219227d5-1615-4876-a810-c6393957ccd0" x="144" y="58" width="178" height="20"/> <reportElement uuid="219227d5-1615-4876-a810-c6393957ccd0" x="186" y="46" width="98" height="14"/>
<textElement/> <box leftPadding="1"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement uuid="d4600e8d-457a-47cf-aa81-84b1231728fe" x="15" y="18" width="100" height="20"/> <reportElement uuid="d4600e8d-457a-47cf-aa81-84b1231728fe" x="1" y="18" width="185" height="14"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Tarifa]]></text> <text><![CDATA[Total Tarifa]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="5b0f4977-d53a-4fcb-a16f-88c1edd8493b" x="15" y="38" width="100" height="20"/> <reportElement uuid="5b0f4977-d53a-4fcb-a16f-88c1edd8493b" x="1" y="32" width="185" height="14"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Tut]]></text> <text><![CDATA[Total Tut]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="f6849b27-f317-458b-b4f3-8d96a150962e" x="15" y="58" width="100" height="20"/> <reportElement uuid="f6849b27-f317-458b-b4f3-8d96a150962e" x="1" y="46" width="185" height="14"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Pedágio]]></text> <text><![CDATA[Total Pedágio]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="9f5fda19-bdf2-4600-ba05-aa2ded9c6a89" x="15" y="79" width="100" height="20"/> <reportElement uuid="9f5fda19-bdf2-4600-ba05-aa2ded9c6a89" x="1" y="60" width="185" height="14"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Receita]]></text> <text><![CDATA[Total Receita]]></text>
</staticText> </staticText>
@ -452,8 +531,8 @@
<noData> <noData>
<band height="50"> <band height="50">
<textField> <textField>
<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="46" y="24" width="530" height="26"/> <reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="-1" y="0" width="843" height="50"/>
<textElement markup="none"> <textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>

View File

@ -2,7 +2,7 @@
<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"> <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="3.138428376721017"/> <property name="ireport.zoom" value="3.138428376721017"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="374"/> <property name="ireport.y" value="250"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table"> <style name="table">
<box> <box>
@ -39,13 +39,14 @@
<queryString> <queryString>
<![CDATA[SELECT SUB.*, <![CDATA[SELECT SUB.*,
(NVL(SUB.PASSAGEIROS,0) / DECODE(NVL(SUB.VIAGENS_TOTAL,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) AS PASSAGEIROS_MPA, (NVL(SUB.PASSAGEIROS,0) / DECODE(NVL(SUB.VIAGENS_TOTAL,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) AS PASSAGEIROS_MPA,
( ROUND(NVL(SUB.PASSAGEIROS_EQUIVALENTE,0), 2) / DECODE(NVL(SUB.VIAGENS_TOTAL,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) AS PASSAGEIROS_MPE, ( ROUND(NVL(SUB.PASSAGEIROS,0), 2) / DECODE(NVL(SUB.VIAGENS_TOTAL,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) AS PASSAGEIROS_MPE,
(NVL(SUB.RECEITA_TOTAL,0) / DECODE(NVL(SUB.KM_RODADO,0), 0, 1, NVL(SUB.KM_RODADO,0))) RECEITA_KM, (NVL(SUB.RECEITA_TOTAL,0) / DECODE(NVL(SUB.KM_RODADO,0), 0, 1, NVL(SUB.KM_RODADO,0))) RECEITA_KM,
(NVL(SUB.RECEITA_TOTAL,0) / DECODE(NVL(SUB.VIAGENS_TOTAL,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) AS RECEITA_VIAGEM, (NVL(SUB.RECEITA_TOTAL,0) / DECODE(NVL(SUB.VIAGENS_TOTAL,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) AS RECEITA_VIAGEM,
ROUND(((NVL(SUB.RECEITA_TOTAL,0) / DECODE(NVL(SUB.VIAGENS_TOTAL,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) / DECODE(NVL(SUB.TARIFA,0), 0, 1, NVL(SUB.TARIFA,0))), 2) AS EQ, ROUND(((NVL(RECEITA_TARIFA,0) / DECODE(NVL(RECEITA_TARIFA,0), 0, 1, NVL(SUB.VIAGENS_TOTAL,0))) / DECODE(NVL(SUB.TARIFA,0), 0, 1, NVL(SUB.TARIFA,0))), 2) AS EQ,
(ROUND(NVL(SUB.PASSAGEIROS_EQUIVALENTE,0), 2) * NVL(SUB.EXTENSAO_KM,0)) AS PAX_KM, --(ROUND(NVL(SUB.PASSAGEIROS,0), 2) * NVL(SUB.EXTENSAO_KM,0)) AS PAX_KM,
(NVL(SUB.ASSENTOS,0) * NVL(SUB.KM_RODADO,0)) AS PAX_OFERTADO, (NVL(SUB.ASSENTOS,0) * NVL(SUB.KM_RODADO,0)) AS PAX_OFERTADO,
((ROUND(NVL(SUB.PASSAGEIROS_EQUIVALENTE,0), 2) * NVL(SUB.EXTENSAO_KM,0)) / (NVL(SUB.ASSENTOS,0) * NVL(SUB.KM_RODADO,0))) * 100 AS IAP ((((SUB.PAX_KM) / (NVL(SUB.ASSENTOS,0) * NVL(SUB.KM_RODADO,0)))) * 100) AS IAP
--(((ROUND(NVL(SUB.PASSAGEIROS_EQUIVALENTE,0), 2) * NVL(SUB.EXTENSAO_KM,0)) / (NVL(SUB.ASSENTOS,0) * NVL(SUB.KM_RODADO,0)) ) * 100) AS IAP
FROM ( FROM (
@ -55,12 +56,16 @@ SUM(NVL(TAB.RECEITA_SEGURO,0)) AS RECEITA_SEGURO, SUM(NVL(TAB.RECEITA_BAGAGEM,0)
SUM(NVL(TAB.RECEITA_SEGURO_OUTROS,0)) AS RECEITA_SEGURO_OUTROS, SUM(NVL(TAB.RECEITA_TARIFA,0)) AS RECEITA_TARIFA, SUM(NVL(TAB.RECEITA_SEGURO_OUTROS,0)) AS RECEITA_SEGURO_OUTROS, SUM(NVL(TAB.RECEITA_TARIFA,0)) AS RECEITA_TARIFA,
SUM(NVL(TAB.RECEITA_PEDAGIO,0)) AS RECEITA_PEDAGIO, SUM(NVL(TAB.RECEITA_EMBARQUE,0)) AS RECEITA_EMBARQUE, SUM(NVL(TAB.PASSAGEIROS,0)) AS PASSAGEIROS, SUM(NVL(TAB.RECEITA_PEDAGIO,0)) AS RECEITA_PEDAGIO, SUM(NVL(TAB.RECEITA_EMBARQUE,0)) AS RECEITA_EMBARQUE, SUM(NVL(TAB.PASSAGEIROS,0)) AS PASSAGEIROS,
SUM(NVL(TAB.VIAGENS_EXTRA,0)) AS VIAGENS_EXTRA, SUM(NVL(TAB.VIAGENS,0)) AS VIAGENS, SUM(NVL(TAB.RECEITA_TOTAL,0)) AS RECEITA_TOTAL, SUM(NVL(TAB.VIAGENS_EXTRA,0)) AS VIAGENS_EXTRA, SUM(NVL(TAB.VIAGENS,0)) AS VIAGENS, SUM(NVL(TAB.RECEITA_TOTAL,0)) AS RECEITA_TOTAL,
SUM(NVL(TAB.VIAGENS_TOTAL,0)) AS VIAGENS_TOTAL, SUM(NVL(TAB.KM_RODADO,0)) AS KM_RODADO, SUM(NVL(TAB.PASSAGEIROS_EQUIVALENTE,0)) AS PASSAGEIROS_EQUIVALENTE SUM(NVL(TAB.VIAGENS_TOTAL,0)) AS VIAGENS_TOTAL, SUM(NVL(TAB.KM_RODADO,0)) AS KM_RODADO, SUM(NVL(TAB.PASSAGEIROS,0)) AS PASSAGEIROS_EQUIVALENTE,
SUM(NVL(TAB.PAX_KM,0)) AS PAX_KM
FROM (SELECT TAB1.*, FROM (SELECT TAB1.*,
(TAB1.RECEITA_TARIFA + RECEITA_SEGURO + RECEITA_EMBARQUE + RECEITA_PEDAGIO) RECEITA_TOTAL, (TAB1.RECEITA_TARIFA + RECEITA_SEGURO + RECEITA_EMBARQUE + RECEITA_PEDAGIO) RECEITA_TOTAL,
(NVL(TAB1.VIAGENS,0) + NVL(TAB1.VIAGENS_EXTRA,0)) VIAGENS_TOTAL, (NVL(TAB1.VIAGENS,0) + NVL(TAB1.VIAGENS_EXTRA,0)) VIAGENS_TOTAL,
((NVL(TAB1.VIAGENS,0) + NVL(TAB1.VIAGENS_EXTRA,0)) * NVL(TAB1.EXTENSAO_KM,0)) KM_RODADO, ((NVL(TAB1.VIAGENS,0) + NVL(TAB1.VIAGENS_EXTRA,0)) * NVL(TAB1.EXTENSAO_KM,0)) KM_RODADO,
TAB1.KM_REAL PAX_KM,
(SELECT SUM(NVL(PE.EQUIVALENTE,0)) (SELECT SUM(NVL(PE.EQUIVALENTE,0))
FROM (SELECT CO.FECCORRIDA, CO.RUTA_ID, BO.PRECIOBASE, ROUND((BO.NUMKMVIAJE * COUNT(1) / FROM (SELECT CO.FECCORRIDA, CO.RUTA_ID, BO.PRECIOBASE, ROUND((BO.NUMKMVIAJE * COUNT(1) /
(SELECT SUM(NVL(TR.CANTKMREAL,0)) FROM RUTA_COMBINACION RS, TRAMO TR WHERE RS.RUTA_ID = CO.RUTA_ID AND RS.TRAMO_ID = TR.TRAMO_ID)), 2) EQUIVALENTE (SELECT SUM(NVL(TR.CANTKMREAL,0)) FROM RUTA_COMBINACION RS, TRAMO TR WHERE RS.RUTA_ID = CO.RUTA_ID AND RS.TRAMO_ID = TR.TRAMO_ID)), 2) EQUIVALENTE
@ -71,6 +76,7 @@ FROM (SELECT TAB1.*,
AND (BO.MOTIVOCANCELACION_ID IS NULL OR BO.MOTIVOCANCELACION_ID = 0) AND (BO.MOTIVOCANCELACION_ID IS NULL OR BO.MOTIVOCANCELACION_ID = 0)
GROUP BY CO.FECCORRIDA, CO.RUTA_ID, BO.PRECIOBASE, BO.NUMKMVIAJE) PE GROUP BY CO.FECCORRIDA, CO.RUTA_ID, BO.PRECIOBASE, BO.NUMKMVIAJE) PE
WHERE PE.FECCORRIDA = TAB1.FECCORRIDA AND PE.RUTA_ID = TAB1.RUTA_ID) PASSAGEIROS_EQUIVALENTE WHERE PE.FECCORRIDA = TAB1.FECCORRIDA AND PE.RUTA_ID = TAB1.RUTA_ID) PASSAGEIROS_EQUIVALENTE
FROM (SELECT RT.RUTA_ID, FROM (SELECT RT.RUTA_ID,
RT.INDSENTIDOIDA, RT.INDSENTIDOIDA,
RT.NUMRUTA, RT.NUMRUTA,
@ -80,8 +86,14 @@ FROM (SELECT TAB1.*,
DA.CANTASIENTOS ASSENTOS, DA.CANTASIENTOS ASSENTOS,
RO.ROLOPERATIVO_ID, RO.ROLOPERATIVO_ID,
CASE WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN 'S' ELSE 'N' END INTERESTADUAL, CASE WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN 'S' ELSE 'N' END INTERESTADUAL,
NVL(GR.DESCGRUPO, 'Não Definido') GRUPO_LINHA, NVL(GR.DESCGRUPO, 'Não Definido') GRUPO_LINHA,
(SELECT SUM(NVL(RS.KMORIGINAL,0)) FROM RUTA_SECUENCIA RS, TRAMO TR WHERE RS.RUTA_ID = RT.RUTA_ID AND RS.TRAMO_ID = TR.TRAMO_ID AND RS.ACTIVO = 1) EXTENSAO_KM,
--(SELECT SUM(NVL(RS.KMORIGINAL,0)) FROM RUTA_SECUENCIA RS, TRAMO TR WHERE RS.RUTA_ID = RT.RUTA_ID AND RS.TRAMO_ID = TR.TRAMO_ID AND RS.ACTIVO = 1) EXTENSAO_KM,
TR.CANTKMREAL AS EXTENSAO_KM,
SUM(NVL(BL.NUMKMVIAJE,0)) KM_REAL,
NVL(SUM(NVL(BL.IMPORTESEGURO,0)), 0) RECEITA_SEGURO, NVL(SUM(NVL(BL.IMPORTESEGURO,0)), 0) RECEITA_SEGURO,
0 RECEITA_BAGAGEM, 0 RECEITA_BAGAGEM,
0 RECEITA_SEGURO_OUTROS, 0 RECEITA_SEGURO_OUTROS,
@ -132,9 +144,11 @@ FROM (SELECT TAB1.*,
AND BL.INDSTATUSOPERACION = 'F' AND BL.INDSTATUSOPERACION = 'F'
AND TF.VIGENCIATARIFA_ID = VT.VIGENCIATARIFA_ID AND TF.VIGENCIATARIFA_ID = VT.VIGENCIATARIFA_ID
AND VT.ACTIVO = 1 AND VT.ACTIVO = 1
AND BL.CATEGORIA_ID NOT IN (3)
AND CR.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND VT.FECFINVIGENCIA AND CR.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND VT.FECFINVIGENCIA
AND CR.FECCORRIDA BETWEEN $P{DATA_INICIAL} AND $P{DATA_FINAL} AND CR.FECCORRIDA BETWEEN $P{DATA_INICIAL} AND $P{DATA_FINAL}
AND CR.ACTIVO = 1 AND CR.ACTIVO = 1
AND BL.ACTIVO = 1
GROUP BY CS.CVECLASE, GROUP BY CS.CVECLASE,
RT.RUTA_ID, RT.RUTA_ID,
RT.NUMRUTA, RT.NUMRUTA,
@ -146,7 +160,15 @@ FROM (SELECT TAB1.*,
GR.DESCGRUPO, GR.DESCGRUPO,
CO.ESTADO_ID, CO.ESTADO_ID,
CD.ESTADO_ID, CD.ESTADO_ID,
RT.INDSENTIDOIDA) TAB1) TAB TR.CANTKMREAL,
RT.INDSENTIDOIDA) TAB1
GROUP BY TAB1.RUTA_ID,TAB1.INDSENTIDOIDA,TAB1.NUMRUTA,TAB1.FECCORRIDA,TAB1.DESCRUTA,
TAB1.TARIFA,TAB1.ASSENTOS,TAB1.ROLOPERATIVO_ID,TAB1.INTERESTADUAL,
TAB1.GRUPO_LINHA,TAB1.EXTENSAO_KM,TAB1.RECEITA_SEGURO,TAB1.RECEITA_BAGAGEM,
TAB1.RECEITA_SEGURO_OUTROS,TAB1.RECEITA_TARIFA,TAB1.RECEITA_PEDAGIO,TAB1.RECEITA_EMBARQUE,
TAB1.PASSAGEIROS,TAB1.VIAGENS_EXTRA,TAB1.VIAGENS,TAB1.CVE_CLASE_SERVICIO, TAB1.KM_REAL
) TAB
GROUP BY TAB.RUTA_ID, TAB.NUMRUTA, TAB.DESCRUTA, TAB.TARIFA, TAB.ASSENTOS, TAB.ROLOPERATIVO_ID, GROUP BY TAB.RUTA_ID, TAB.NUMRUTA, TAB.DESCRUTA, TAB.TARIFA, TAB.ASSENTOS, TAB.ROLOPERATIVO_ID,
TAB.INTERESTADUAL, TAB.GRUPO_LINHA, TAB.EXTENSAO_KM, TAB.CVE_CLASE_SERVICIO, TAB.INDSENTIDOIDA) SUB TAB.INTERESTADUAL, TAB.GRUPO_LINHA, TAB.EXTENSAO_KM, TAB.CVE_CLASE_SERVICIO, TAB.INDSENTIDOIDA) SUB
WHERE WHERE

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-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="Relatório Vendas Conexão por Linha" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <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="Relatório Vendas Conexão por Linha" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="78272a24-3862-4ccd-8519-ba449601ff69">
<property name="ireport.zoom" value="3.536921536500051"/> <property name="ireport.zoom" value="3.536921536500051"/>
<property name="ireport.x" value="818"/> <property name="ireport.x" value="818"/>
<property name="ireport.y" value="119"/> <property name="ireport.y" value="119"/>
@ -18,8 +18,8 @@
<field name="bilhete" class="java.lang.String"/> <field name="bilhete" class="java.lang.String"/>
<field name="descricaoLinha" class="java.lang.String"/> <field name="descricaoLinha" class="java.lang.String"/>
<field name="servico" class="java.lang.Integer"/> <field name="servico" class="java.lang.Integer"/>
<field name="codOrigem" class="java.lang.Integer"/> <field name="codOrigem" class="java.lang.String"/>
<field name="codDestino" class="java.lang.Integer"/> <field name="codDestino" class="java.lang.String"/>
<field name="descricaoOrigem" class="java.lang.String"/> <field name="descricaoOrigem" class="java.lang.String"/>
<field name="descricaoDestino" class="java.lang.String"/> <field name="descricaoDestino" class="java.lang.String"/>
<field name="nomeAgencia" class="java.lang.String"/> <field name="nomeAgencia" class="java.lang.String"/>
@ -30,7 +30,7 @@
<field name="situacaoCancelado" class="java.lang.String"/> <field name="situacaoCancelado" class="java.lang.String"/>
<field name="numeroAgencia" class="java.lang.Integer"/> <field name="numeroAgencia" class="java.lang.Integer"/>
<field name="numBpe" class="java.lang.Integer"/> <field name="numBpe" class="java.lang.Integer"/>
<field name="numLinha" class="java.lang.Integer"/> <field name="numLinha" class="java.lang.String"/>
<field name="classeServico" class="java.lang.String"/> <field name="classeServico" class="java.lang.String"/>
<field name="numoperacion" class="java.lang.String"/> <field name="numoperacion" class="java.lang.String"/>
<field name="cveusuario" class="java.lang.String"/> <field name="cveusuario" class="java.lang.String"/>
@ -46,404 +46,460 @@
<title> <title>
<band height="32"> <band height="32">
<textField> <textField>
<reportElement x="0" y="0" width="802" height="32"/> <reportElement uuid="cf19e107-c7c8-410c-8957-a0bd2259aa5c" x="0" y="0" width="802" height="32"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single"> <textElement textAlignment="Center" verticalAlignment="Middle">
<font size="18" isBold="true"/> <font size="18" isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.nome}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</title> </title>
<pageHeader> <pageHeader>
<band height="78"> <band height="78">
<textField> <textField>
<reportElement x="212" y="27" width="91" height="31"/> <reportElement uuid="5348885a-127d-42ee-9a31-9863ef4636ce" x="212" y="27" width="91" height="31"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.dataFinal}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataFinal}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="27" width="70" height="31"/> <reportElement uuid="4a051fb1-93b0-4129-8825-a217996f8467" x="0" y="27" width="70" height="31"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/> <font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.dataInicial}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataInicial}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy"> <textField pattern="dd/MM/yyyy">
<reportElement x="303" y="27" width="163" height="31" isPrintWhenDetailOverflows="true"/> <reportElement uuid="1003c077-29f1-4666-9991-9703c0c6fe80" x="303" y="27" width="163" height="31" isPrintWhenDetailOverflows="true"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10" isBold="false"/> <font size="10" isBold="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy"> <textField pattern="dd/MM/yyyy">
<reportElement x="70" y="27" width="72" height="31" isPrintWhenDetailOverflows="true"/> <reportElement uuid="50ae4da3-cc23-4f79-82de-9db43e1e521a" x="70" y="27" width="72" height="31" isPrintWhenDetailOverflows="true"/>
<textElement lineSpacing="Single"> <textElement>
<font size="10" isBold="false"/> <font size="10" isBold="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="212" y="0" width="360" height="27" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="b20e7461-2711-4ecb-a4e2-c276235b70a2" mode="Transparent" x="212" y="0" width="360" height="27" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="572" y="0" width="98" height="27"/> <reportElement uuid="647dbc53-46b2-401c-b6cb-72468aa7b911" x="572" y="0" width="98" height="27"/>
<textElement textAlignment="Right" verticalAlignment="Middle" lineSpacing="Single"> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="10" isBold="true"/> <font size="10" isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="670" y="0" width="132" height="27" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e7aa48d9-edf1-4ada-bf6d-5bc938ca91bc" mode="Transparent" x="670" y="0" width="132" height="27" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="378" y="58" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="45658d2d-7ea3-42a1-861f-18eb057f9515" mode="Transparent" x="378" y="58" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.dataEmbarque}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataEmbarque}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="0" y="58" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e3a2d72f-4054-481b-86f6-6377cde2259e" mode="Transparent" x="0" y="58" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.bilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.bilhete}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="466" y="58" width="19" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="31be8f80-62ab-4370-a062-1d8b77af1089" mode="Transparent" x="466" y="58" width="19" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.preco}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.preco}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="485" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="5db3bf2d-d0fa-4a5c-87db-94c7e4326bcb" mode="Transparent" x="485" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.taxaEmbarque}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.taxaEmbarque}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="240" y="58" width="63" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="7c8dff95-9ccb-4c5c-ba6c-16bd6f5a9b55" mode="Transparent" x="240" y="58" width="63" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.descricaoLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.descricaoLinha}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="70" y="58" width="72" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="93e5cfbb-551d-4a54-99f0-cf91cae4d056" mode="Transparent" x="70" y="58" width="72" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.origem}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="142" y="58" width="70" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="16298758-b85f-4b74-8672-9aa13081e942" mode="Transparent" x="142" y="58" width="70" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.destino}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="444" y="58" width="22" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="a883d3e2-6144-4fbe-bffb-0f73261e02c2" mode="Transparent" x="444" y="58" width="22" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.poltrona}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.poltrona}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="50" y="58" width="20" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="4c27a765-48a7-40a4-8312-d0b9a4f9fa79" mode="Transparent" x="50" y="58" width="20" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.bpe}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.bpe}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="212" y="58" width="28" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="79cccbb0-46c2-4103-a53a-fc7e57c5b583" mode="Transparent" x="212" y="58" width="28" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.numLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.numLinha}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="303" y="58" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="3853e99e-fb91-42a3-8cd0-eaf9d604155c" mode="Transparent" x="303" y="58" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.servico}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.servico}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="335" y="58" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="f1388ba9-1ac4-4727-a796-951d1def564f" mode="Transparent" x="335" y="58" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.classeServico}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.classeServico}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="414" y="58" width="30" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="b49c407d-5c18-4517-8f42-2cd7214cf45d" mode="Transparent" x="414" y="58" width="30" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.dataVenda}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.dataVenda}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="514" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="533f3beb-7b77-4f10-8313-07692539e8b7" mode="Transparent" x="514" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.pedagio}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="543" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="65f377c5-8d25-42da-aa80-ebcbd3011584" mode="Transparent" x="543" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.seguro}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.seguro}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="601" y="58" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="33664a4d-d451-4dc9-9322-4011c52558ce" mode="Transparent" x="601" y="58" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.numeroAgencia}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.numeroAgencia}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="627" y="58" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="9c103dba-be47-4d86-aeac-5de1f8ec5d50" mode="Transparent" x="627" y="58" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.nomeAgencia}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.nomeAgencia}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="670" y="58" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="38303905-fb7f-4e84-b9f1-bd6c489bf496" mode="Transparent" x="670" y="58" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.cveusuario}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.cveusuario}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="25" y="58" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="a0d17f3d-0143-4f1c-b94b-0f8144fbc316" mode="Transparent" x="25" y="58" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="5" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.subSerie}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.subSerie}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="696" y="58" width="38" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="40f337fc-eda0-4089-b93a-47411e64027a" mode="Transparent" x="696" y="58" width="38" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.IDCesta}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.IDCesta}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="734" y="58" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="c7b15e20-17cc-40c1-a0cc-31ad19bb6231" mode="Transparent" x="734" y="58" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.IDCadastroConexao}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.IDCadastroConexao}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="766" y="58" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="7985c3b5-07c5-4432-932f-54f94515a7e1" mode="Transparent" x="766" y="58" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.descricaoConexao}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.descricaoConexao}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="true"> <textField pattern="" isBlankWhenNull="true">
<reportElement mode="Transparent" x="572" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="e97a9895-77bd-4db7-853f-2a848daee6e3" mode="Transparent" x="572" y="58" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.descricaoDesconto}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.descricaoDesconto}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</pageHeader> </pageHeader>
<detail> <detail>
<band height="20"> <band height="20">
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="240" y="0" width="63" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="5d9dcab5-fb16-4c44-a1ac-4b96774b72c4" x="240" y="0" width="63" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{descricaoLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descricaoLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement x="378" y="0" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="4905830d-3dcb-4c76-9afe-74de416935cc" x="378" y="0" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{dataEmbarque}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataEmbarque}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement x="0" y="0" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="0cc4a486-b740-48e7-8f2a-e18c5eea0d31" x="0" y="0" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{bilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{bilhete}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="466" y="0" width="19" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="20dc3afd-bfb8-4e2c-85e3-428d8711034f" x="466" y="0" width="19" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{preco}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{preco}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="485" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="18f62d4c-d348-47b1-b303-59084c8fce2a" x="485" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{taxaEmbarque}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{taxaEmbarque}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="444" y="0" width="22" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="a9a8748b-7cf2-4680-8c40-d479bb4e1faa" x="444" y="0" width="22" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{poltrona}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
<reportElement x="50" y="0" width="20" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="e6652df5-0600-4280-b47c-137fd0ed53ba" x="50" y="0" width="20" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{numBpe}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numBpe}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
<reportElement x="70" y="0" width="17" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="b0fc4161-7cee-4704-8fd5-a5f52559da97" x="70" y="0" width="17" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{codOrigem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{codOrigem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="87" y="0" width="55" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="36e17553-3bdf-4d11-8e86-a7fe33d0a6d1" x="87" y="0" width="55" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{descricaoOrigem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descricaoOrigem}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
<reportElement x="142" y="0" width="19" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="bc597a26-f05a-4783-8273-9b9b1e71f2c6" x="142" y="0" width="19" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{codDestino}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{codDestino}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="161" y="0" width="51" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="666a8f42-4644-4d1e-b6f7-37da434a5209" x="161" y="0" width="51" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{descricaoDestino}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descricaoDestino}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
<reportElement x="212" y="0" width="28" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="b687835d-a644-4c51-b28f-50cb4eb0d4ca" x="212" y="0" width="28" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{numLinha}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numLinha}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="303" y="0" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="84911fa1-a90c-4522-acb6-440e3ff67481" x="303" y="0" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{servico}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="335" y="0" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="4993409c-6501-449a-b84c-8cb41ac5f1f6" x="335" y="0" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{classeServico}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{classeServico}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement x="414" y="0" width="30" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="67d22345-0bf6-4f13-aa7d-50c0318edf9e" x="414" y="0" width="30" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="5"/> <font size="5"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{dataVenda}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="514" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="9fe0ffa9-5eab-409e-8060-93598464156a" x="514" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{pedagio}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="543" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="5fc2b3fc-012e-4c58-b6a4-fd346683ff5b" x="543" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{seguro}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{seguro}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
<reportElement x="601" y="0" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="3ef0bd1d-1b65-4fe6-a429-c35d77e63fdf" x="601" y="0" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{numeroAgencia}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numeroAgencia}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="627" y="0" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="c009830f-edb0-407c-bbd4-39ce1d903a20" x="627" y="0" width="43" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{nomeAgencia}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{nomeAgencia}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement x="670" y="0" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="4dddd9a1-19ac-41d0-ba85-5a8c5d637530" x="670" y="0" width="26" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{cveusuario}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{cveusuario}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement x="25" y="0" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="e118b8f0-d452-4bef-83bc-bbb7f364401a" x="25" y="0" width="25" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{subSerie}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{subSerie}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement x="696" y="0" width="38" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="2ca17b0f-50c5-4403-af92-4abe706540be" x="696" y="0" width="38" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="5"/> <font size="5"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{numoperacion}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{numoperacion}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
<reportElement x="734" y="0" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="170ecd37-897b-4bf2-8fdc-3ec8452742d1" x="734" y="0" width="32" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{idCadastroConexao}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{idCadastroConexao}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement x="766" y="0" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="75fa870a-2532-4db6-a0c7-0adb709c4239" x="766" y="0" width="36" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{descricaoConexao}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descricaoConexao}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement x="572" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <reportElement uuid="3e5de2ce-0867-426c-b1bb-68451b51ee6b" x="572" y="0" width="29" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{descuento}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{descuento}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</detail> </detail>
@ -453,39 +509,42 @@
<pageFooter> <pageFooter>
<band height="9" splitType="Stretch"> <band height="9" splitType="Stretch">
<line> <line>
<reportElement x="0" y="0" width="802" height="1" isRemoveLineWhenBlank="true"/> <reportElement uuid="0b247e29-5d34-479d-8614-def156ebeb4d" x="0" y="0" width="802" height="1" isRemoveLineWhenBlank="true"/>
</line> </line>
</band> </band>
</pageFooter> </pageFooter>
<summary> <summary>
<band height="17" splitType="Stretch"> <band height="17" splitType="Stretch">
<textField> <textField>
<reportElement x="0" y="1" width="50" height="16"/> <reportElement uuid="293dc20c-cb39-4340-bd2c-c56990f344d7" x="0" y="1" width="50" height="16"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6" isBold="false" pdfFontName="Helvetica-Bold"/> <font size="6" isBold="false" pdfFontName="Helvetica-Bold"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{label.total}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="50" y="1" width="55" height="16"/> <reportElement uuid="de34f37f-9cdc-4185-9f79-fd5e80ac7cf9" x="50" y="1" width="55" height="16"/>
<textElement textAlignment="Center" lineSpacing="Single"> <textElement textAlignment="Center">
<font size="6"/> <font size="6"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{TOTAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{TOTAL}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement x="0" y="0" width="802" height="1" isRemoveLineWhenBlank="true"/> <reportElement uuid="c63c53e2-04c8-4bf6-930d-15464e6aa33c" x="0" y="0" width="802" height="1" isRemoveLineWhenBlank="true"/>
</line> </line>
</band> </band>
</summary> </summary>
<noData> <noData>
<band height="25"> <band height="25">
<textField> <textField>
<reportElement x="0" y="0" width="802" height="25"/> <reportElement uuid="f90b2747-6026-47a8-a0d8-2b2d747ee893" x="0" y="0" width="802" height="25"/>
<textElement textAlignment="Center" lineSpacing="Single" markup="none"> <textElement textAlignment="Center" markup="none">
<font size="12" isBold="true"/> <font size="12" isBold="true"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$R{msg.noData}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField> </textField>
</band> </band>
</noData> </noData>

View File

@ -10,11 +10,11 @@ public class RelatorioVendasConexaoRutaBean {
private BigDecimal seguro; private BigDecimal seguro;
private BigDecimal pedagio; private BigDecimal pedagio;
private String bilhete; private String bilhete;
private Integer numLinha; private String numLinha;
private String descricaoLinha; private String descricaoLinha;
private Integer codOrigem; private String codOrigem;
private String descricaoOrigem; private String descricaoOrigem;
private Integer codDestino; private String codDestino;
private String descricaoDestino; private String descricaoDestino;
private Integer servico; private Integer servico;
private String poltrona; private String poltrona;
@ -74,11 +74,11 @@ public class RelatorioVendasConexaoRutaBean {
this.bilhete = bilhete; this.bilhete = bilhete;
} }
public Integer getNumLinha() { public String getNumLinha() {
return numLinha; return numLinha;
} }
public void setNumLinha(Integer numLinha) { public void setNumLinha(String numLinha) {
this.numLinha = numLinha; this.numLinha = numLinha;
} }
@ -90,11 +90,11 @@ public class RelatorioVendasConexaoRutaBean {
this.descricaoLinha = descricaoLinha; this.descricaoLinha = descricaoLinha;
} }
public Integer getCodOrigem() { public String getCodOrigem() {
return codOrigem; return codOrigem;
} }
public void setCodOrigem(Integer codOrigem) { public void setCodOrigem(String codOrigem) {
this.codOrigem = codOrigem; this.codOrigem = codOrigem;
} }
@ -106,11 +106,11 @@ public class RelatorioVendasConexaoRutaBean {
this.descricaoOrigem = descricaoOrigem; this.descricaoOrigem = descricaoOrigem;
} }
public Integer getCodDestino() { public String getCodDestino() {
return codDestino; return codDestino;
} }
public void setCodDestino(Integer codDestino) { public void setCodDestino(String codDestino) {
this.codDestino = codDestino; this.codDestino = codDestino;
} }

View File

@ -8,13 +8,18 @@ import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import org.apache.log4j.Logger;
import com.rjconsultores.ventaboletos.rest.bean.ParamsSincronizarTramo; import com.rjconsultores.ventaboletos.rest.bean.ParamsSincronizarTramo;
import com.rjconsultores.ventaboletos.rest.service.SincronizarTramoService; import com.rjconsultores.ventaboletos.rest.service.SincronizarTramoService;
import com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional.GerarConexionPorRutaController;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext; import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
@Path("/sincronizarTramos") @Path("/sincronizarTramos")
public class SincronizarTramos { public class SincronizarTramos {
private static Logger log = Logger.getLogger(SincronizarTramos.class);
@POST @POST
@Consumes({ MediaType.APPLICATION_JSON }) @Consumes({ MediaType.APPLICATION_JSON })
@RolesAllowed("EMBARCADA") @RolesAllowed("EMBARCADA")
@ -25,6 +30,7 @@ public class SincronizarTramos {
try { try {
return Response.ok(service.buscarListaTramosPorListCorridas(params), MediaType.APPLICATION_JSON).build(); return Response.ok(service.buscarListaTramosPorListCorridas(params), MediaType.APPLICATION_JSON).build();
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e);
return Response.status(Response.Status.NOT_FOUND).entity(e.getMessage()).build(); return Response.status(Response.Status.NOT_FOUND).entity(e.getMessage()).build();
} }
} }

View File

@ -281,7 +281,7 @@ public class GridCombinacionTramoRutaCoeficiente extends Grid implements RowRend
boolean esTramoEditable = (secuenciaRutaTramoCoeficienteVO.getTramoId() == null); boolean esTramoEditable = (secuenciaRutaTramoCoeficienteVO.getTramoId() == null);
boolean esTramoServicioEditable = (secuenciaRutaTramoCoeficienteVO.getTramoServicioId() == null); boolean esTramoServicioEditable = (secuenciaRutaTramoCoeficienteVO.getTramoServicioId() == null);
boolean esTramoCoeficienteEditable = (secuenciaRutaTramoCoeficienteVO.getOrgaoTramoId() == null); boolean esTramoCoeficienteEditable = secuenciaRutaTramoCoeficienteVO.getClaseServicioRutaOrigemUtilizadaNaPesquisa() || (secuenciaRutaTramoCoeficienteVO.getOrgaoTramoId() == null);
// Cell Kms Real // Cell Kms Real
dKmsReal.setReadonly(!esTramoEditable); dKmsReal.setReadonly(!esTramoEditable);

View File

@ -5,6 +5,7 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos; package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Calendar; import java.util.Calendar;
import java.util.List; import java.util.List;
@ -19,9 +20,12 @@ import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Button; import org.zkoss.zul.Button;
import org.zkoss.zul.Checkbox; import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.api.Comboitem;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio; import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.enums.TipoClasseServicoBPe; import com.rjconsultores.ventaboletos.enums.TipoClasseServicoBPe;
import com.rjconsultores.ventaboletos.enums.TipoDescontoMonitrip;
import com.rjconsultores.ventaboletos.service.ClaseServicioService; import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
@ -50,38 +54,8 @@ public class EditarClaseServicioController extends MyGenericForwardComposer {
private Button btnApagar; private Button btnApagar;
private MyTextboxDecimal txtCoeficiente; private MyTextboxDecimal txtCoeficiente;
private Checkbox chkNaoVendeSeguroOpcional; private Checkbox chkNaoVendeSeguroOpcional;
private Combobox cmbDescontoMonitrip;
public ClaseServicio getClaseServicio() { private List<TipoClasseServicoBPe> lsTipoDescontoMonitrips;
return claseServicio;
}
public void setClaseServicio(ClaseServicio claseServicio) {
this.claseServicio = claseServicio;
}
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;
}
public MyTextboxDecimal getTxtCoeficiente() {
return txtCoeficiente;
}
public void setTxtCoeficiente(MyTextboxDecimal txtCoeficiente) {
this.txtCoeficiente = txtCoeficiente;
}
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
@ -89,7 +63,8 @@ public class EditarClaseServicioController extends MyGenericForwardComposer {
claseServicio = (ClaseServicio) Executions.getCurrent().getArg().get("claseServicio"); claseServicio = (ClaseServicio) Executions.getCurrent().getArg().get("claseServicio");
claseServicioList = (MyListbox) Executions.getCurrent().getArg().get("claseServicioList"); claseServicioList = (MyListbox) Executions.getCurrent().getArg().get("claseServicioList");
lsTipoDescontoMonitrips = Arrays.asList(TipoClasseServicoBPe.values());
lsTipoDescontoMonitrips = lsTipoDescontoMonitrips.subList(0, 7);
if (claseServicio.getClaseservicioId() == null) { if (claseServicio.getClaseservicioId() == null) {
btnApagar.setVisible(Boolean.FALSE); btnApagar.setVisible(Boolean.FALSE);
}else { }else {
@ -132,6 +107,12 @@ public class EditarClaseServicioController extends MyGenericForwardComposer {
claseServicio.setCoeficiente(null != txtCoeficiente.getText() && !"".equals(txtCoeficiente.getText()) ? new BigDecimal(txtCoeficiente.getText()) : null); claseServicio.setCoeficiente(null != txtCoeficiente.getText() && !"".equals(txtCoeficiente.getText()) ? new BigDecimal(txtCoeficiente.getText()) : null);
claseServicio.setIndNaoVendeSeguroOpcional(chkNaoVendeSeguroOpcional.isChecked()); claseServicio.setIndNaoVendeSeguroOpcional(chkNaoVendeSeguroOpcional.isChecked());
Comboitem cbDescontoMonitrip = cmbDescontoMonitrip.getSelectedItem();
claseServicio.setTipoDescontoMonitrip(null);
if(cbDescontoMonitrip != null) {
claseServicio.setTipoDescontoMonitrip((TipoClasseServicoBPe) cbDescontoMonitrip.getValue());
}
if (claseServicio.getClaseservicioId() == null) { if (claseServicio.getClaseservicioId() == null) {
claseServicioService.suscribir(claseServicio); claseServicioService.suscribir(claseServicio);
claseServicioList.addItem(claseServicio); claseServicioList.addItem(claseServicio);
@ -181,7 +162,56 @@ public class EditarClaseServicioController extends MyGenericForwardComposer {
} }
} }
public ClaseServicio getClaseServicio() {
return claseServicio;
}
public void setClaseServicio(ClaseServicio claseServicio) {
this.claseServicio = claseServicio;
}
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;
}
public MyTextboxDecimal getTxtCoeficiente() {
return txtCoeficiente;
}
public void setTxtCoeficiente(MyTextboxDecimal txtCoeficiente) {
this.txtCoeficiente = txtCoeficiente;
}
public List<TipoClasseServicoBPe> getTiposClasseServicoBPe() { public List<TipoClasseServicoBPe> getTiposClasseServicoBPe() {
return TipoClasseServicoBPe.getList(); return TipoClasseServicoBPe.getList();
} }
public Combobox getCmbDescontoMonitrip() {
return cmbDescontoMonitrip;
}
public void setCmbDescontoMonitrip(Combobox cmbDescontoMonitrip) {
this.cmbDescontoMonitrip = cmbDescontoMonitrip;
}
public List<TipoClasseServicoBPe> getLsTipoDescontoMonitrips() {
return lsTipoDescontoMonitrips;
}
public void setLsTipoDescontoMonitrips(List<TipoClasseServicoBPe> lsTipoDescontoMonitrips) {
this.lsTipoDescontoMonitrips = lsTipoDescontoMonitrips;
}
} }

View File

@ -52,6 +52,7 @@ public class EditarCoeficienteTarifaController extends MyGenericForwardComposer
if (coeficienteTarifa.getCoeficienteId() == null) { if (coeficienteTarifa.getCoeficienteId() == null) {
btnApagar.setVisible(Boolean.FALSE); btnApagar.setVisible(Boolean.FALSE);
} else { } else {
coeficienteTarifa.clonar();
txtCoeficiente.setValue(coeficienteTarifa.getCoeficiente().toString()); txtCoeficiente.setValue(coeficienteTarifa.getCoeficiente().toString());
} }

View File

@ -247,7 +247,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
private Checkbox chkIndImprimeVoucherPersonalizado; private Checkbox chkIndImprimeVoucherPersonalizado;
private Checkbox chkIndImpComprovanteDeReserva; private Checkbox chkIndImpComprovanteDeReserva;
private Checkbox chkIndEnviaDadosAgenciaBpe; private Checkbox chkIndEnviaDadosAgenciaBpe;
private Checkbox chkIndPrecoPorDemanda;
private Checkbox chkIndSegundaViaFechamentoCaixa; private Checkbox chkIndSegundaViaFechamentoCaixa;
private Checkbox chkIndExigeBpeExcessoBagagem; private Checkbox chkIndExigeBpeExcessoBagagem;
private Checkbox chkIndAlertaVDAPosHorarioViagem; private Checkbox chkIndAlertaVDAPosHorarioViagem;
@ -258,6 +257,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
private Checkbox chkIndNaoPermiteTrocaEntreEmpresa; private Checkbox chkIndNaoPermiteTrocaEntreEmpresa;
private Checkbox chkIndHabilitarVendaAbertoMovimentoCaixa; private Checkbox chkIndHabilitarVendaAbertoMovimentoCaixa;
private Checkbox cnhIndSeguroOpcionalW2Digital; private Checkbox cnhIndSeguroOpcionalW2Digital;
private Checkbox chkIndLimitaCategoriaPorCorrida;
private Checkbox chkIndNaoImprimeCupomEmbarqueVendaEmAberto; private Checkbox chkIndNaoImprimeCupomEmbarqueVendaEmAberto;
private Checkbox chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto; private Checkbox chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto;
@ -367,6 +367,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
private Textbox txtContractId; private Textbox txtContractId;
private byte[] certificado; private byte[] certificado;
private Tab tabSafer; private Tab tabSafer;
private Checkbox chkIndCheckinBloqueadoNoshow;
private Checkbox chkIndAgrupamentoLocalidadeConexao;
private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@" private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"; + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
@ -525,7 +527,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
chkIndAlteraPosicaoCamposDocCupomEmbarque.setChecked(BooleanUtils.toBoolean(empresa.getIndAltPosicaoCamposCupom())); chkIndAlteraPosicaoCamposDocCupomEmbarque.setChecked(BooleanUtils.toBoolean(empresa.getIndAltPosicaoCamposCupom()));
ckCampoCustomVoucher.setValue(empresa.getCampoCustomVoucher()); ckCampoCustomVoucher.setValue(empresa.getCampoCustomVoucher());
chkIndEnviaDadosAgenciaBpe.setChecked(BooleanUtils.toBoolean(empresa.getIndEnviaDadosAgenciaBpe())); chkIndEnviaDadosAgenciaBpe.setChecked(BooleanUtils.toBoolean(empresa.getIndEnviaDadosAgenciaBpe()));
chkIndPrecoPorDemanda.setChecked(BooleanUtils.toBoolean(empresa.getIndPrecoPorDemanda()));
chkIndSegundaViaFechamentoCaixa.setChecked(BooleanUtils.toBoolean(empresa.getIndSegundaViaFechamentoCaixa())); chkIndSegundaViaFechamentoCaixa.setChecked(BooleanUtils.toBoolean(empresa.getIndSegundaViaFechamentoCaixa()));
chkIndExigeBpeExcessoBagagem.setChecked(BooleanUtils.toBoolean(empresa.getIndExigeBpeExcessoBagagem())); chkIndExigeBpeExcessoBagagem.setChecked(BooleanUtils.toBoolean(empresa.getIndExigeBpeExcessoBagagem()));
chkIndMantemVdaCajaVdaEmbarcada.setChecked(BooleanUtils.toBoolean(empresa.getIndMantemVdaCajaVdaEmbarcada())); chkIndMantemVdaCajaVdaEmbarcada.setChecked(BooleanUtils.toBoolean(empresa.getIndMantemVdaCajaVdaEmbarcada()));
@ -539,6 +540,9 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
chkIndNaoImprimeCupomEmbarqueVendaEmAberto.setChecked(BooleanUtils.toBoolean(empresa.getIndNaoImprimeCupomEmbarqueVendaAberto())); chkIndNaoImprimeCupomEmbarqueVendaEmAberto.setChecked(BooleanUtils.toBoolean(empresa.getIndNaoImprimeCupomEmbarqueVendaAberto()));
chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto.setChecked(BooleanUtils.toBoolean(empresa.getIndNaoImprimeCupomEmbarqueConfirmacaoAberto())); chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto.setChecked(BooleanUtils.toBoolean(empresa.getIndNaoImprimeCupomEmbarqueConfirmacaoAberto()));
cnhIndSeguroOpcionalW2Digital.setChecked(BooleanUtils.toBoolean(empresa.getIndSeguroOpcionalW2Digital())); cnhIndSeguroOpcionalW2Digital.setChecked(BooleanUtils.toBoolean(empresa.getIndSeguroOpcionalW2Digital()));
chkIndLimitaCategoriaPorCorrida.setChecked(BooleanUtils.toBoolean(empresa.getIndLimitaCategoriaPorCorrida()));
chkIndCheckinBloqueadoNoshow.setChecked(BooleanUtils.toBoolean(empresa.getIndCheckinBloqueadoRemarcacao()));
chkIndAgrupamentoLocalidadeConexao.setChecked(BooleanUtils.toBoolean(empresa.getIndAgrupLocConexao()));
txtUrlBaseSeguro.setText(empresa.getUrlBaseEmpresaSeguro()); txtUrlBaseSeguro.setText(empresa.getUrlBaseEmpresaSeguro());
@ -773,7 +777,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
chkIndImpComprovanteDeReserva.getValue(); chkIndImpComprovanteDeReserva.getValue();
chkIndEnviaDadosAgenciaBpe.getValue(); chkIndEnviaDadosAgenciaBpe.getValue();
chkIndAlteraPosicaoCamposDocCupomEmbarque.getValue(); chkIndAlteraPosicaoCamposDocCupomEmbarque.getValue();
chkIndPrecoPorDemanda.getValue();
cmbCRT.getValue(); cmbCRT.getValue();
chkIndSegundaViaFechamentoCaixa.getValue(); chkIndSegundaViaFechamentoCaixa.getValue();
chkIndExigeBpeExcessoBagagem.getValue(); chkIndExigeBpeExcessoBagagem.getValue();
@ -788,6 +791,9 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
chkIndNaoImprimeCupomEmbarqueVendaEmAberto.getValue(); chkIndNaoImprimeCupomEmbarqueVendaEmAberto.getValue();
chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto.getValue(); chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto.getValue();
cnhIndSeguroOpcionalW2Digital.getValue(); cnhIndSeguroOpcionalW2Digital.getValue();
chkIndLimitaCategoriaPorCorrida.getValue();
chkIndCheckinBloqueadoNoshow.getValue();
txtIrkPadrao.getValue(); txtIrkPadrao.getValue();
rdCst00.getValue(); rdCst00.getValue();
@ -903,7 +909,6 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
empresa.setIndAltPosicaoCamposCupom(chkIndAlteraPosicaoCamposDocCupomEmbarque.isChecked()); empresa.setIndAltPosicaoCamposCupom(chkIndAlteraPosicaoCamposDocCupomEmbarque.isChecked());
empresa.setCampoCustomVoucher(ckCampoCustomVoucher.getValue()); empresa.setCampoCustomVoucher(ckCampoCustomVoucher.getValue());
empresa.setIndEnviaDadosAgenciaBpe(chkIndEnviaDadosAgenciaBpe.isChecked()); empresa.setIndEnviaDadosAgenciaBpe(chkIndEnviaDadosAgenciaBpe.isChecked());
empresa.setIndPrecoPorDemanda(chkIndPrecoPorDemanda.isChecked());
empresa.setIndSegundaViaFechamentoCaixa(chkIndSegundaViaFechamentoCaixa.isChecked()); empresa.setIndSegundaViaFechamentoCaixa(chkIndSegundaViaFechamentoCaixa.isChecked());
empresa.setIndExigeBpeExcessoBagagem(chkIndExigeBpeExcessoBagagem.isChecked()); empresa.setIndExigeBpeExcessoBagagem(chkIndExigeBpeExcessoBagagem.isChecked());
empresa.setIndMantemVdaCajaVdaEmbarcada(chkIndMantemVdaCajaVdaEmbarcada.isChecked()); empresa.setIndMantemVdaCajaVdaEmbarcada(chkIndMantemVdaCajaVdaEmbarcada.isChecked());
@ -918,6 +923,10 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
empresa.setIndNaoImprimeCupomEmbarqueVendaAberto(chkIndNaoImprimeCupomEmbarqueVendaEmAberto.isChecked()); empresa.setIndNaoImprimeCupomEmbarqueVendaAberto(chkIndNaoImprimeCupomEmbarqueVendaEmAberto.isChecked());
empresa.setIndNaoImprimeCupomEmbarqueConfirmacaoAberto(chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto.isChecked()); empresa.setIndNaoImprimeCupomEmbarqueConfirmacaoAberto(chkIndNaoImprimeCupomEmbarqueConfirmacaoDeAberto.isChecked());
empresa.setIndSeguroOpcionalW2Digital(cnhIndSeguroOpcionalW2Digital.isChecked()); empresa.setIndSeguroOpcionalW2Digital(cnhIndSeguroOpcionalW2Digital.isChecked());
empresa.setIndLimitaCategoriaPorCorrida(chkIndLimitaCategoriaPorCorrida.isChecked());
empresa.setIndCheckinBloqueadoRemarcacao(chkIndCheckinBloqueadoNoshow.isChecked());
empresa.setIndAgrupLocConexao(chkIndAgrupamentoLocalidadeConexao.isChecked());
if(rdCst00.isChecked()) { if(rdCst00.isChecked()) {
empresa.setCstGratuidade(TipoCstGratuidade.CST00); empresa.setCstGratuidade(TipoCstGratuidade.CST00);

View File

@ -95,6 +95,11 @@ public class EditarFormaPagoController extends MyGenericForwardComposer {
super.doAfterCompose(comp); super.doAfterCompose(comp);
busquedaFormaPagoController = (BusquedaFormaPagoController) Executions.getCurrent().getArg().get("busquedaFormaPagoController"); busquedaFormaPagoController = (BusquedaFormaPagoController) Executions.getCurrent().getArg().get("busquedaFormaPagoController");
formaPago = (FormaPago) Executions.getCurrent().getArg().get("formaPago"); formaPago = (FormaPago) Executions.getCurrent().getArg().get("formaPago");
if (formaPago.getFormapagoId() != null){
formaPago = formaPagoService.obtenerID(formaPago.getFormapagoId());
}
formaPagoList = (MyListbox) Executions.getCurrent().getArg().get("formaPagoList"); formaPagoList = (MyListbox) Executions.getCurrent().getArg().get("formaPagoList");
popularCombobox(); popularCombobox();
/* /*

View File

@ -17,6 +17,7 @@ import org.zkoss.zul.Button;
import org.zkoss.zul.Checkbox; import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Combobox; import org.zkoss.zul.Combobox;
import org.zkoss.zul.Radio; import org.zkoss.zul.Radio;
import org.zkoss.zul.Row;
import org.zkoss.zul.Textbox; import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.constantes.Constantes; import com.rjconsultores.ventaboletos.constantes.Constantes;
@ -77,6 +78,9 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
private Radio rdPenalizacionOrgaoConcedente; private Radio rdPenalizacionOrgaoConcedente;
private Checkbox chkIndtotalbilhete; private Checkbox chkIndtotalbilhete;
private Checkbox chkIndsempregerarapagar; private Checkbox chkIndsempregerarapagar;
private Checkbox chkIndOCDPorFormadePagamento;
private Row rowIndOCDPorFormadePagamento;
private Radio rdSomenteCartao; private Radio rdSomenteCartao;
private Radio rdTodasFormasPagamento; private Radio rdTodasFormasPagamento;
@ -121,6 +125,8 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
chkOCDTransferencia.setChecked(ocdParamCorrente.getIndOCDTransferencia() == null ? false : ocdParamCorrente.getIndOCDTransferencia()); chkOCDTransferencia.setChecked(ocdParamCorrente.getIndOCDTransferencia() == null ? false : ocdParamCorrente.getIndOCDTransferencia());
chkIndtotalbilhete.setChecked(ocdParamCorrente.getIndtotalbilhete() == null ? false : ocdParamCorrente.getIndtotalbilhete()); chkIndtotalbilhete.setChecked(ocdParamCorrente.getIndtotalbilhete() == null ? false : ocdParamCorrente.getIndtotalbilhete());
chkIndsempregerarapagar.setChecked(ocdParamCorrente.getIndsempregerarapagar() == null ? false : ocdParamCorrente.getIndsempregerarapagar()); chkIndsempregerarapagar.setChecked(ocdParamCorrente.getIndsempregerarapagar() == null ? false : ocdParamCorrente.getIndsempregerarapagar());
chkIndOCDPorFormadePagamento.setChecked(ocdParamCorrente.getIndOCDPorFormadePagamento() == null ? false : ocdParamCorrente.getIndOCDPorFormadePagamento());
rowIndOCDPorFormadePagamento.setVisible(!ocdParamCorrente.getIndOcdDinheiro());
txtPenalizacion.setDisabled(!ocdParamCorrente.getIndPenalizacionOCD()); txtPenalizacion.setDisabled(!ocdParamCorrente.getIndPenalizacionOCD());
txtTiempoLimitePenalizacion.setDisabled(!ocdParamCorrente.getIndPenalizacionOCD()); txtTiempoLimitePenalizacion.setDisabled(!ocdParamCorrente.getIndPenalizacionOCD());
ptoVtaOCDParamList.setItemRenderer(new RenderOCDPtoVtaParam()); ptoVtaOCDParamList.setItemRenderer(new RenderOCDPtoVtaParam());
@ -150,6 +156,19 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
rdTodasFormasPagamento.setChecked(ocdParamCorrente.getIndOcdDinheiro()); rdTodasFormasPagamento.setChecked(ocdParamCorrente.getIndOcdDinheiro());
} }
public void onClick$rdSomenteCartao(Event ev) throws InterruptedException {
if(rdSomenteCartao.isChecked()) {
rowIndOCDPorFormadePagamento.setVisible(true);
}
}
public void onClick$rdTodasFormasPagamento(Event ev) throws InterruptedException {
if(rdTodasFormasPagamento.isChecked()) {
rowIndOCDPorFormadePagamento.setVisible(false);
chkIndOCDPorFormadePagamento.setChecked(false);
}
}
public void onClick$btnApagar(Event ev) throws InterruptedException { public void onClick$btnApagar(Event ev) throws InterruptedException {
try { try {
int resp = Messagebox.show( int resp = Messagebox.show(
@ -205,6 +224,7 @@ public class EditarOCDParamController extends MyGenericForwardComposer {
ocdParamCorrente.setIndOCDTransferencia(chkOCDTransferencia.isChecked()); ocdParamCorrente.setIndOCDTransferencia(chkOCDTransferencia.isChecked());
ocdParamCorrente.setIndPenalizacionOCD(rdPenalizacionOCD.isChecked()); ocdParamCorrente.setIndPenalizacionOCD(rdPenalizacionOCD.isChecked());
ocdParamCorrente.setIndOcdDinheiro(rdTodasFormasPagamento.isChecked()); ocdParamCorrente.setIndOcdDinheiro(rdTodasFormasPagamento.isChecked());
ocdParamCorrente.setIndOCDPorFormadePagamento(chkIndOCDPorFormadePagamento.isChecked());
ocdParamCorrente.setIndtotalbilhete(chkIndtotalbilhete.isChecked()); ocdParamCorrente.setIndtotalbilhete(chkIndtotalbilhete.isChecked());
ocdParamCorrente.setIndsempregerarapagar(chkIndsempregerarapagar.isChecked()); ocdParamCorrente.setIndsempregerarapagar(chkIndsempregerarapagar.isChecked());

View File

@ -119,7 +119,6 @@ import com.rjconsultores.ventaboletos.entidad.Usuario;
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario; import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil; import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
import com.rjconsultores.ventaboletos.enums.TipoAntifraude; import com.rjconsultores.ventaboletos.enums.TipoAntifraude;
import com.rjconsultores.ventaboletos.enums.TipoCarteiraDigital;
import com.rjconsultores.ventaboletos.enums.TipoSocio; import com.rjconsultores.ventaboletos.enums.TipoSocio;
import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.exception.BusinessException;
import com.rjconsultores.ventaboletos.exception.IntegracionException; import com.rjconsultores.ventaboletos.exception.IntegracionException;
@ -144,6 +143,7 @@ import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaBloqueadaService; import com.rjconsultores.ventaboletos.service.PtovtaEmpresaBloqueadaService;
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaContaBancariaService; import com.rjconsultores.ventaboletos.service.PtovtaEmpresaContaBancariaService;
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService; import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService;
import com.rjconsultores.ventaboletos.service.PtovtaTitularService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService; import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService; import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService; import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
@ -249,6 +249,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private PtovtaAntifraudeService ptovtaAntifraudeService; private PtovtaAntifraudeService ptovtaAntifraudeService;
@Autowired @Autowired
private UsuarioUbicacionService usuarioUbicacionService; private UsuarioUbicacionService usuarioUbicacionService;
@Autowired
private PtovtaTitularService ptovtaTitularService;
private PuntoVenta puntoVenta; private PuntoVenta puntoVenta;
private Textbox txtCP; private Textbox txtCP;
@ -687,6 +689,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
if(puntoVenta.getTipoSocio() != null) { if(puntoVenta.getTipoSocio() != null) {
cmbTipoSocio.setValue(puntoVenta.getTipoSocio().toString()); cmbTipoSocio.setValue(puntoVenta.getTipoSocio().toString());
} }
if(puntoVenta.getTitularId() != null) {
puntoVenta.setTitularId(ptovtaTitularService.obtenerID(puntoVenta.getTitularId().getPtovtaTitularId()));;
}
} }
puntoVentaList = (MyListbox) Executions.getCurrent().getArg().get("puntoVentaList"); puntoVentaList = (MyListbox) Executions.getCurrent().getArg().get("puntoVentaList");

View File

@ -308,7 +308,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
@Override @Override
public void onEvent(Event event) throws Exception { public void onEvent(Event event) throws Exception {
CheckEvent checkEvent = (CheckEvent) event; CheckEvent checkEvent = (CheckEvent) event;
if (checkEvent.isChecked() && eventoFinanceiro.getLogconferenciaId() == null) { if (checkEvent.isChecked() && eventoFinanceiro.getLogconferenciaId() == null || eventoFinanceiro.getLogconferenciaId() == 0) {
gravarLogConferenciaEventoFinanceiro(eventoFinanceiro); gravarLogConferenciaEventoFinanceiro(eventoFinanceiro);
} else if (!checkEvent.isChecked() && eventoFinanceiro.getLogconferenciaId() != null) { } else if (!checkEvent.isChecked() && eventoFinanceiro.getLogconferenciaId() != null) {
removerLogConferenciaEventoFinanceiro(eventoFinanceiro); removerLogConferenciaEventoFinanceiro(eventoFinanceiro);

View File

@ -1001,7 +1001,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
if (!existe) { if (!existe) {
if (((Categoria) cmbCategorias.getSelectedItem().getValue()).getCategoriaId().equals(CategoriaCtrlServiceImpl.CATEGORIA_ADULTO)) { if (((Categoria) cmbCategorias.getSelectedItem().getValue()).getCategoriaId().equals(CategoriaCtrlServiceImpl.CATEGORIA_ADULTO)) {
categoriaCtrl = categoriaCtrlService.checarCategoriaAdulto(categoriaCtrl); categoriaCtrl = categoriaCtrlService.checarCategoriaAdulto(categoriaCtrl, rdVendeAbertoSim.isSelected(),
chkCancelaEmAberto.isChecked(), chkDevolveEmAberto.isChecked(), chkCancelaEmergencialEmAberto.isChecked(), chkTrocaTiturlidadeEmAberto.isChecked(), chkTrocaEmAberto.isChecked());
List<CategoriaDescuento> aux = lsCategoriaDescuento; List<CategoriaDescuento> aux = lsCategoriaDescuento;
lsCategoriaDescuento = categoriaCtrl.getCategoriaDescuentoList(); lsCategoriaDescuento = categoriaCtrl.getCategoriaDescuentoList();
categoriaDescuentoList.setData(lsCategoriaDescuento); categoriaDescuentoList.setData(lsCategoriaDescuento);

View File

@ -17,7 +17,6 @@ import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.CheckEvent; import org.zkoss.zk.ui.event.CheckEvent;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Button; import org.zkoss.zul.Button;
import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Messagebox; import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Radio; import org.zkoss.zul.Radio;
import org.zkoss.zul.Textbox; import org.zkoss.zul.Textbox;
@ -37,6 +36,8 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxCustom;
@Scope("prototype") @Scope("prototype")
public class EditarConfiguracionGeneralController extends MyGenericForwardComposer { public class EditarConfiguracionGeneralController extends MyGenericForwardComposer {
private static final long serialVersionUID = 4628168724521957944L;
@Autowired @Autowired
private ConstanteService constanteService; private ConstanteService constanteService;
private Constante constante; private Constante constante;
@ -51,7 +52,6 @@ public class EditarConfiguracionGeneralController extends MyGenericForwardCompos
private Radio radMantenimientoUsuarioNo; private Radio radMantenimientoUsuarioNo;
private Button btnApagar; private Button btnApagar;
private Button btnSalvar; private Button btnSalvar;
private Checkbox chkCaseSensitive;
public Button getBtnApagar() { public Button getBtnApagar() {
return btnApagar; return btnApagar;
@ -128,6 +128,7 @@ public class EditarConfiguracionGeneralController extends MyGenericForwardCompos
} }
@SuppressWarnings("deprecation")
public void onClick$btnSalvar(Event ev) { public void onClick$btnSalvar(Event ev) {
valorconstante.getValue(); valorconstante.getValue();
nombConstante.getValue(); nombConstante.getValue();

View File

@ -42,6 +42,7 @@ import com.rjconsultores.ventaboletos.entidad.ReservacionMercado;
import com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta; import com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta;
import com.rjconsultores.ventaboletos.service.CategoriaService; import com.rjconsultores.ventaboletos.service.CategoriaService;
import com.rjconsultores.ventaboletos.service.ClaseServicioService; import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.service.MarcaService; import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.ParadaService; import com.rjconsultores.ventaboletos.service.ParadaService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService; import com.rjconsultores.ventaboletos.service.PuntoVentaService;
@ -55,6 +56,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionRe
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionReservacionMarca; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionReservacionMarca;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionReservacionMercado; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionReservacionMercado;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionReservacionPuntoVenta; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionReservacionPuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
/** /**
* *
@ -266,6 +268,17 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
rCategoria.setCategoria((Categoria) cmbCategoria.getSelectedItem().getValue()); rCategoria.setCategoria((Categoria) cmbCategoria.getSelectedItem().getValue());
rCategoria.setFecmodif(Calendar.getInstance().getTime()); rCategoria.setFecmodif(Calendar.getInstance().getTime());
rCategoria.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); rCategoria.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
String CONSTANTE_GRATUIDADE_CRIANCA = buscarConstante("GRATUIDADE_CRIANCA");
CONSTANTE_GRATUIDADE_CRIANCA = CONSTANTE_GRATUIDADE_CRIANCA != null ? CONSTANTE_GRATUIDADE_CRIANCA : "";
if (CONSTANTE_GRATUIDADE_CRIANCA.equals(rCategoria.getCategoria().getCategoriaId().toString())) {
Messagebox.show(
Labels.getLabel("editarConfiguracionReservacionController.categoriaCriaca.value"),
Labels.getLabel("editarConfiguracionReservacionController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
return;
}
boolean existe = false; boolean existe = false;
for (ReservacionCategoria rc : lsReservacionCategoria) { for (ReservacionCategoria rc : lsReservacionCategoria) {
if (rc.getCategoria().equals(rCategoria.getCategoria()) && rc.getActivo()) { if (rc.getCategoria().equals(rCategoria.getCategoria()) && rc.getActivo()) {
@ -289,6 +302,11 @@ public class EditarConfiguracionReservacionController extends MyGenericForwardCo
} }
} }
private String buscarConstante(String nomeConstante) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
}
public void onClick$btnAdicionarClase(Event ev) throws InterruptedException { public void onClick$btnAdicionarClase(Event ev) throws InterruptedException {
if (cmbClase.getSelectedItem() == null) { if (cmbClase.getSelectedItem() == null) {
Messagebox.show( Messagebox.show(

View File

@ -5,7 +5,6 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional; package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -15,9 +14,9 @@ import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Combobox; import org.zkoss.zul.Combobox;
import com.rjconsultores.ventaboletos.entidad.Conexion;
import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.service.ConexionService; import com.rjconsultores.ventaboletos.service.ConexionService;
import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO; import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO;
@ -40,11 +39,13 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
private Combobox cmbParadaOrigem; private Combobox cmbParadaOrigem;
private Combobox cmbParadaDestino; private Combobox cmbParadaDestino;
private Checkbox chcAgrupado;
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);
conexionesList.setData(conexionService.buscarConexionesValidas()); conexionesList.setData(conexionService.buscarConexiones(true, null, null));
conexionesList.setItemRenderer(new RenderConexion()); conexionesList.setItemRenderer(new RenderConexion());
conexionesList.addEventListener("onDoubleClick", new EventListener() { conexionesList.addEventListener("onDoubleClick", new EventListener() {
@ -63,13 +64,13 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
args.put("conexionCtrlId", conexionCtrlId); args.put("conexionCtrlId", conexionCtrlId);
args.put("conexionesList", conexionesList); args.put("conexionesList", conexionesList);
// if(conexionCtrlId != null && conexionService.buscarPorConexionCtrl(conexionCtrlId).get(0).getRutaId() != null) { // if(conexionCtrlId != null && conexionService.buscarPorConexionCtrl(conexionCtrlId).get(0).getRutaId() != null) {
// openWindow("/gui/esquema_operacional/editarConexionRuta.zul", // openWindow("/gui/esquema_operacional/editarConexionRuta.zul",
// Labels.getLabel("editarConexionController.window.title"), args, MODAL); // Labels.getLabel("editarConexionController.window.title"), args, MODAL);
// }else { // }else {
// openWindow("/gui/esquema_operacional/editarConexion.zul", // openWindow("/gui/esquema_operacional/editarConexion.zul",
// Labels.getLabel("editarConexionController.window.title"), args, MODAL); // Labels.getLabel("editarConexionController.window.title"), args, MODAL);
// } // }
openWindow("/gui/esquema_operacional/editarConexion.zul", openWindow("/gui/esquema_operacional/editarConexion.zul",
Labels.getLabel("editarConexionController.window.title"), args, MODAL); Labels.getLabel("editarConexionController.window.title"), args, MODAL);
} }
@ -98,7 +99,7 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
Integer origemId = cmbParadaOrigem.getSelectedItem() != null ? ((Parada) cmbParadaOrigem.getSelectedItem().getValue()).getParadaId() : null; Integer origemId = cmbParadaOrigem.getSelectedItem() != null ? ((Parada) cmbParadaOrigem.getSelectedItem().getValue()).getParadaId() : null;
Integer destinoId = cmbParadaDestino.getSelectedItem() != null ? ((Parada) cmbParadaDestino.getSelectedItem().getValue()).getParadaId() : null; Integer destinoId = cmbParadaDestino.getSelectedItem() != null ? ((Parada) cmbParadaDestino.getSelectedItem().getValue()).getParadaId() : null;
conexionesList.setData(conexionService.buscarConexiones(origemId, destinoId)); conexionesList.setData(conexionService.buscarConexiones(chcAgrupado.isChecked(), origemId, destinoId));
} }

View File

@ -1,5 +1,8 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional; package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope; import org.springframework.context.annotation.Scope;
@ -9,14 +12,19 @@ import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.util.Clients; import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Messagebox; import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Textbox; import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.AgrupamentoParada; import com.rjconsultores.ventaboletos.entidad.AgrupamentoParada;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.exception.BusinessException;
import com.rjconsultores.ventaboletos.service.AgruparParadaService; import com.rjconsultores.ventaboletos.service.AgruparParadaService;
import com.rjconsultores.ventaboletos.service.ParadaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParada;
@Controller("editarCatalogoDeAgruparParadaController") @Controller("editarCatalogoDeAgruparParadaController")
@Scope("prototype") @Scope("prototype")
@ -29,11 +37,18 @@ public class EditarCatalogoDeAgruparParadaController extends MyGenericForwardCom
@Autowired @Autowired
private AgruparParadaService agruparParadaService; private AgruparParadaService agruparParadaService;
@Autowired
private ParadaService paradaService;
private AgrupamentoParada agrupamentoParada; private AgrupamentoParada agrupamentoParada;
private MyListbox agrupamentoParadaList; private MyListbox agrupamentoParadaList;
private static Logger log = Logger.getLogger(EditarCatalogoDeAgruparParadaController.class); private static Logger log = Logger.getLogger(EditarCatalogoDeAgruparParadaController.class);
private Textbox descAgrupamentoParada; private Textbox descAgrupamentoParada;
private Textbox cveAgrupamentoParada; private Textbox cveAgrupamentoParada;
private MyListbox localidadesListbox;
private List<Parada> lsLocalidades;
private List<Parada> lsLocalidadesAdicionar;
private List<Parada> lsLocalidadesApagar;
private Combobox cmbLocalidade;
public AgruparParadaService getAgruparParadaService() { public AgruparParadaService getAgruparParadaService() {
return agruparParadaService; return agruparParadaService;
@ -80,6 +95,15 @@ public class EditarCatalogoDeAgruparParadaController extends MyGenericForwardCom
super.doAfterCompose(comp); super.doAfterCompose(comp);
agrupamentoParada = (AgrupamentoParada) Executions.getCurrent().getArg().get("agrupamentoParada"); agrupamentoParada = (AgrupamentoParada) Executions.getCurrent().getArg().get("agrupamentoParada");
agrupamentoParadaList = (MyListbox) Executions.getCurrent().getArg().get("agrupamentoParadaList"); agrupamentoParadaList = (MyListbox) Executions.getCurrent().getArg().get("agrupamentoParadaList");
lsLocalidades = new ArrayList<Parada>();
localidadesListbox.setItemRenderer(new RenderParada());
if(agrupamentoParada !=null && agrupamentoParada.getAgrupamentoParadaId()!=null) {
lsLocalidades = paradaService.buscarPorAgrupamentoParadaId(agrupamentoParada);
}
localidadesListbox.setData(lsLocalidades);
lsLocalidadesApagar = new ArrayList<Parada>();
lsLocalidadesAdicionar = new ArrayList<Parada>();
} }
@ -89,6 +113,12 @@ public class EditarCatalogoDeAgruparParadaController extends MyGenericForwardCom
cveAgrupamentoParada.getValue(); cveAgrupamentoParada.getValue();
agruparParadaService.suscribirActualizar(agrupamentoParada); agruparParadaService.suscribirActualizar(agrupamentoParada);
agrupamentoParadaList.updateItem(agrupamentoParada); agrupamentoParadaList.updateItem(agrupamentoParada);
for (Parada parada : lsLocalidadesAdicionar) {
paradaService.suscribirActualizar(parada);
}
for (Parada parada : lsLocalidadesApagar) {
paradaService.suscribirActualizar(parada);
}
Messagebox.show( Messagebox.show(
Labels.getLabel("editarCatalogoDeAgruparParadaController.MSG.suscribirOK"), Labels.getLabel("editarCatalogoDeAgruparParadaController.MSG.suscribirOK"),
Labels.getLabel("editarCatalogoDeAgruparParadaController.window.title"), Labels.getLabel("editarCatalogoDeAgruparParadaController.window.title"),
@ -113,6 +143,10 @@ public class EditarCatalogoDeAgruparParadaController extends MyGenericForwardCom
if (resp == Messagebox.YES) { if (resp == Messagebox.YES) {
agruparParadaService.borrar(agrupamentoParada); agruparParadaService.borrar(agrupamentoParada);
for (Parada parada : lsLocalidades) {
parada.setAgrupamentoParada(null);
paradaService.suscribirActualizar(parada);
}
Messagebox.show( Messagebox.show(
Labels.getLabel("editarCatalogoDeAgruparParadaController.MSG.borrarOK"), Labels.getLabel("editarCatalogoDeAgruparParadaController.MSG.borrarOK"),
@ -132,4 +166,46 @@ public class EditarCatalogoDeAgruparParadaController extends MyGenericForwardCom
} }
} }
public void onClick$btnAdicionarLocalidade(Event ev) {
Comboitem selectedItem = cmbLocalidade.getSelectedItem();
if (selectedItem == null) {
return;
}
Parada parada = (Parada) selectedItem.getValue();
if(parada !=null) {
for (Parada paradaAux : lsLocalidades ) {
if (paradaAux.equals(parada)) {
return;
}
}
parada.setAgrupamentoParada(agrupamentoParada);
lsLocalidades.add(parada);
lsLocalidadesAdicionar.add(parada);
localidadesListbox.setData(lsLocalidades);
}
}
public void onClick$btnRemoverLocalidade(Event ev) throws InterruptedException {
Parada parada = (Parada) localidadesListbox.getSelected();
if (parada != null) {
lsLocalidades.remove(parada);
parada.setAgrupamentoParada(null);
if(lsLocalidadesAdicionar.contains(parada)) {
lsLocalidadesAdicionar.remove(parada);
}else {
lsLocalidadesApagar.add(parada);
}
localidadesListbox.setData(lsLocalidades);
}
}
} }

View File

@ -78,6 +78,7 @@ public class EditarCatalogoDeParadaController extends MyGenericForwardComposer {
private MyListbox codOrgaosConcedentesList; private MyListbox codOrgaosConcedentesList;
private Checkbox chkVendeTotem; private Checkbox chkVendeTotem;
private Checkbox chkVendeInternet; private Checkbox chkVendeInternet;
private Checkbox chkIntegracaoW2i;
private Combobox cmbAgruparParada;; private Combobox cmbAgruparParada;;
private List<TipoParada> lsTipoParadas; private List<TipoParada> lsTipoParadas;
@ -109,6 +110,8 @@ public class EditarCatalogoDeParadaController extends MyGenericForwardComposer {
chkVendeInternet.setChecked(parada.getIndVisibleInternet() == null ? false : parada.getIndVisibleInternet()); chkVendeInternet.setChecked(parada.getIndVisibleInternet() == null ? false : parada.getIndVisibleInternet());
chkIntegracaoW2i.setChecked(parada.getIndIntegracaoW2i());
lsNodo = nodoService.obtenerTodos(); lsNodo = nodoService.obtenerTodos();
if (parada.getParadaId() == null) { if (parada.getParadaId() == null) {
@ -149,6 +152,8 @@ public class EditarCatalogoDeParadaController extends MyGenericForwardComposer {
parada.setNodo(nodoCentral); parada.setNodo(nodoCentral);
parada.setIndVendeTotem(chkVendeTotem.isChecked()); parada.setIndVendeTotem(chkVendeTotem.isChecked());
parada.setIndVisibleInternet(chkVendeInternet.isChecked()); parada.setIndVisibleInternet(chkVendeInternet.isChecked());
parada.setIndIntegracaoW2i(chkIntegracaoW2i.isChecked());
if("".equals(cmbAgruparParada.getValue())){ if("".equals(cmbAgruparParada.getValue())){
parada.setAgrupamentoParada(null); parada.setAgrupamentoParada(null);
} }

View File

@ -216,12 +216,11 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
private Checkbox chkIndTribTarifaExcecao; private Checkbox chkIndTribTarifaExcecao;
private Checkbox chkIndTribTaxaEmbarqueExcecao; private Checkbox chkIndTribTaxaEmbarqueExcecao;
private Checkbox chkIndTribPedagioExcecao; private Checkbox chkIndTribPedagioExcecao;
private Checkbox chkIndPrecioPorDemanda; private Checkbox chkIndCST41;
private List<Parada> lsParadasExcecao; private List<Parada> lsParadasExcecao;
private List<RutaIcmsExcepcion> lsRutaIcmsExcepcions; private List<RutaIcmsExcepcion> lsRutaIcmsExcepcions;
private MyListbox rutaIcmsExcepcionsList; private MyListbox rutaIcmsExcepcionsList;
private Datebox precioDemandafecInicio;
private Datebox precioDemandaFecFim;
private List<RutaCombinacion> lsRutacComb; private List<RutaCombinacion> lsRutacComb;
private List<RutaEmbarqueDesembarque> lsRutaEmbarqueDesembarque = new ArrayList<RutaEmbarqueDesembarque>(); private List<RutaEmbarqueDesembarque> lsRutaEmbarqueDesembarque = new ArrayList<RutaEmbarqueDesembarque>();
@ -266,6 +265,7 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
if (ruta.getRutaId() != null) { if (ruta.getRutaId() != null) {
ruta = rutaService.obtenerID(ruta.getRutaId()); ruta = rutaService.obtenerID(ruta.getRutaId());
ruta.setClaseServicioRutaOrigem(ruta.getClaseServicio());
lsRutacComb = ruta.getRutaCombinacionList(); lsRutacComb = ruta.getRutaCombinacionList();
} }
@ -995,17 +995,6 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
return false; return false;
} }
if(chkIndPrecioPorDemanda.isChecked()) {
if(precioDemandafecInicio.getValue() == null || precioDemandaFecFim.getValue() == null) {
if(precioDemandafecInicio.getValue() == null) {
Clients.wrongValue(precioDemandafecInicio, Labels.getLabel("editarCatalogoDeRutaController.msg.validacion.vigencia.inicio"));
}
if(precioDemandaFecFim.getValue() == null) {
Clients.wrongValue(precioDemandaFecFim, Labels.getLabel("editarCatalogoDeRutaController.msg.validacion.vigencia.fim"));
}
return false;
}
}
return true; return true;
} }
@ -1034,6 +1023,32 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
} }
} }
private void atualizarTramosSequenciaTemporaria(RutaCombinacion rc) {
List<RutaSecuencia> lsRutaSec = ruta.getRutaSecuenciaList();
Tramo tramoRC = rc.getTramo();
Parada origemRC = rc.getTramo().getOrigem();
Parada destinoRC = rc.getTramo().getDestino();
Via viaRC = rc.getTramo().getVia();
for (RutaSecuencia rs : lsRutaSec) {
Parada origemRS = rs.getTramo().getOrigem();
Parada destinoRS = rs.getTramo().getDestino();
Via viaRS = rs.getTramo().getVia();
if ((origemRS.getParadaId().equals(origemRC.getParadaId()))
&& (destinoRS.getParadaId().equals(destinoRC.getParadaId()))
&& (!viaRS.getViaId().equals(viaRC.getViaId()))) {
List<RutaCombinacion> lsRutaCombinacionTemporaria = new ArrayList<RutaCombinacion>(ruta.getRutaCombinacionTemporariaList());
for (int i = 0; i < lsRutaCombinacionTemporaria.size(); i++) {
if (lsRutaCombinacionTemporaria.get(i).getRutacombinacionId() == rc.getRutacombinacionId()) {
ruta.getRutaCombinacionTemporariaList().get(i).setTramo(tramoRC);
rs.setTramo(tramoRC);
break;
}
}
}
}
}
public void onClick$btnSalvar(Event ev) throws InterruptedException { public void onClick$btnSalvar(Event ev) throws InterruptedException {
if (ruta.getIndRutaCancelada()) { if (ruta.getIndRutaCancelada()) {
Messagebox.show(Labels.getLabel("editarCatalogoDeRutaController.msg.linhaDesativada")); Messagebox.show(Labels.getLabel("editarCatalogoDeRutaController.msg.linhaDesativada"));
@ -1162,7 +1177,6 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
} }
ruta.setIndTelefoneObrigatorio(rdTelSi.isChecked()); ruta.setIndTelefoneObrigatorio(rdTelSi.isChecked());
ruta.setIndPrecioPorDemanda(chkIndPrecioPorDemanda.isChecked());
if (rdNumFidelidadSi.isChecked()) { if (rdNumFidelidadSi.isChecked()) {
ruta.setIndNumFidelidadObligatorio(Boolean.TRUE); ruta.setIndNumFidelidadObligatorio(Boolean.TRUE);
@ -1551,21 +1565,52 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
} }
public void defineSecaoDER(String secao, String idCombinacion) { public void defineSecaoDER(String secao, String idCombinacion) {
if(!ruta.getIsClone()) {
RutaCombinacion rc = carregarRutaCombinacionSelecionada(idCombinacion); RutaCombinacion rc = carregarRutaCombinacionSelecionada(idCombinacion);
rc.setCodigoDerPr(secao); rc.setCodigoDerPr(secao);
atualizarRutaCombinacion(rc); atualizarRutaCombinacion(rc);
}else {
List<RutaCombinacion> lsRutaCombinacionTemporaria = new ArrayList<RutaCombinacion>(ruta.getRutaCombinacionTemporariaList());
for(int i=0; i < lsRutaCombinacionTemporaria.size(); i ++) {
if(lsRutaCombinacionTemporaria.get(i).getRutacombinacionId()== Integer.parseInt(idCombinacion)) {
ruta.getRutaCombinacionTemporariaList().get(i).setCodigoDerPr(secao);;
break;
}
}
}
} }
public void vendeSiNo(String venda, String idCombinacion) { public void vendeSiNo(String venda, String idCombinacion) {
if(!ruta.getIsClone()) {
RutaCombinacion rc = carregarRutaCombinacionSelecionada(idCombinacion); RutaCombinacion rc = carregarRutaCombinacionSelecionada(idCombinacion);
rc.setIndventa(venda.equals(SIM)); rc.setIndventa(venda.equals(SIM));
atualizarRutaCombinacion(rc); atualizarRutaCombinacion(rc);
}else {
List<RutaCombinacion> lsRutaCombinacionTemporaria = new ArrayList<RutaCombinacion>(ruta.getRutaCombinacionTemporariaList());
for(int i=0; i < lsRutaCombinacionTemporaria.size(); i ++) {
if(lsRutaCombinacionTemporaria.get(i).getRutacombinacionId()== Integer.parseInt(idCombinacion)) {
ruta.getRutaCombinacionTemporariaList().get(i).setIndventa(venda.equals(SIM));
break;
}
}
}
} }
public void defineUsoDoPricing(String usaPrincing, String idCombinacion) { public void defineUsoDoPricing(String usaPrincing, String idCombinacion) {
if(!ruta.getIsClone()) {
RutaCombinacion rc = carregarRutaCombinacionSelecionada(idCombinacion); RutaCombinacion rc = carregarRutaCombinacionSelecionada(idCombinacion);
rc.setIndUsaPricing(usaPrincing.equals(SIM)); rc.setIndUsaPricing(usaPrincing.equals(SIM));
atualizarRutaCombinacion(rc); atualizarRutaCombinacion(rc);
}else {
List<RutaCombinacion> lsRutaCombinacionTemporaria = new ArrayList<RutaCombinacion>(ruta.getRutaCombinacionTemporariaList());
for(int i=0; i < lsRutaCombinacionTemporaria.size(); i ++) {
if(lsRutaCombinacionTemporaria.get(i).getRutacombinacionId()== Integer.parseInt(idCombinacion)) {
ruta.getRutaCombinacionTemporariaList().get(i).setIndUsaPricing(usaPrincing.equals(SIM));
break;
}
}
}
} }
private void atualizarRutaCombinacion(RutaCombinacion rc) { private void atualizarRutaCombinacion(RutaCombinacion rc) {
@ -1582,8 +1627,13 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
public void opcionVia(Via v, String idCombinacion) { public void opcionVia(Via v, String idCombinacion) {
RutaCombinacion rc = rutaCombinacionService.obtenerID(Integer.parseInt(idCombinacion)); RutaCombinacion rc = rutaCombinacionService.obtenerID(Integer.parseInt(idCombinacion));
rc.setTramo(tramoService.obtenerTramotPorOrigemDestinoVia(rc.getTramo().getOrigem(), rc.getTramo().getDestino(), v)); rc.setTramo(tramoService.obtenerTramotPorOrigemDestinoVia(rc.getTramo().getOrigem(), rc.getTramo().getDestino(), v));
if (!ruta.getIsClone()) {
rutaCombinacionService.actualizacion(rc); rutaCombinacionService.actualizacion(rc);
atualizarTramosSequencia(rc); atualizarTramosSequencia(rc);
} else {
atualizarTramosSequenciaTemporaria(rc);
}
} }
public void onClick$tabCombinacion(Event ev) throws SQLException { public void onClick$tabCombinacion(Event ev) throws SQLException {
@ -1618,6 +1668,9 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
if (!clone) { if (!clone) {
List<RutaCombinacion> rutaCombinacionsAntiga = rutaCombinacionService.obtenerPorRuta(ruta); List<RutaCombinacion> rutaCombinacionsAntiga = rutaCombinacionService.obtenerPorRuta(ruta);
ruta = Ruta.clone(ruta); ruta = Ruta.clone(ruta);
if (ruta.getIsClone()) {
ruta.setRutaCombinacionTemporariaList(new ArrayList<RutaCombinacion>(rutaCombinacionsAntiga));
}
ruta.setRutaId(null); ruta.setRutaId(null);
List<RutaCombinacion> rutaCombinacions = new ArrayList<RutaCombinacion>(); List<RutaCombinacion> rutaCombinacions = new ArrayList<RutaCombinacion>();
@ -1625,13 +1678,50 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
for (RutaCombinacion rc : rutaCombinacionsAntiga) { for (RutaCombinacion rc : rutaCombinacionsAntiga) {
RutaCombinacion newrc = (RutaCombinacion) rc.clone(); RutaCombinacion newrc = (RutaCombinacion) rc.clone();
newrc.setRuta(ruta); newrc.setRuta(ruta);
newrc.setRutacombinacionId(null);
rutaCombinacions.add(newrc); rutaCombinacions.add(newrc);
} }
ruta.setRutaCombinacionList(rutaCombinacions); ruta.setRutaCombinacionList(rutaCombinacions);
carregarParadaSecuencia(ruta.getRutaSecuenciaList()); carregarParadaSecuencia(ruta.getRutaSecuenciaList());
ArrayList<RutaEmbarqueDesembarque> lsRutaEmbarqueDesembarqueAux =new ArrayList<RutaEmbarqueDesembarque>(lsRutaEmbarqueDesembarque);
lsRutaEmbarqueDesembarque = new ArrayList<RutaEmbarqueDesembarque>();
for (RutaEmbarqueDesembarque re : lsRutaEmbarqueDesembarqueAux) {
RutaEmbarqueDesembarque r =new RutaEmbarqueDesembarque();
r.setParada(re.getParada());
r.setActivo(true);
r.setRuta(ruta);
r.setEmbarque(re.getEmbarque());
r.setDesembarque(re.getDesembarque());
r.setLocalDesembarqueEmbarque(re.getLocalDesembarqueEmbarque());
lsRutaEmbarqueDesembarque.add(r);
}
ruta.setLsRutaEmbarqueDesembarque(lsRutaEmbarqueDesembarque);
rutaEmbarqueDesembarqueListbox.setData(lsRutaEmbarqueDesembarque);
List<RutaIcmsExcepcion> lsRutaIcmsExcepcionAux =new ArrayList<RutaIcmsExcepcion>(lsRutaIcmsExcepcions);
lsRutaIcmsExcepcions = new ArrayList<RutaIcmsExcepcion>();
for (RutaIcmsExcepcion rc : lsRutaIcmsExcepcionAux) {
RutaIcmsExcepcion r =new RutaIcmsExcepcion();
r.setRuta(ruta);
r.setOrigen(rc.getOrigen());
r.setDestino(rc.getDestino());
r.setIndTribTarifa(rc.getIndTribTarifa());
r.setIndTribTaxaEmbarque(rc.getIndTribTaxaEmbarque());
r.setIndTribPedagio(rc.getIndTribPedagio());
r.setActivo(Boolean.TRUE);
r.setFecmodif(Calendar.getInstance().getTime());
r.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
r.setIndCST41(rc.getIndCST41());
lsRutaIcmsExcepcions.add(r);
}
ruta.setLsRutaIcmsExcepcions(lsRutaIcmsExcepcions);
rutaIcmsExcepcionsList.setData(lsRutaIcmsExcepcions);
Constraint constNumRuta = txtNumRuta.getConstraint(); Constraint constNumRuta = txtNumRuta.getConstraint();
txtNumRuta.setConstraint(""); txtNumRuta.setConstraint("");
ruta.setNumRuta(null); ruta.setNumRuta(null);
@ -1698,6 +1788,7 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
rutaTramoVO.setDescRuta(ruta.getDescruta()); rutaTramoVO.setDescRuta(ruta.getDescruta());
rutaTramoVO.setPrefixo(txtPrefixo.getValue()); rutaTramoVO.setPrefixo(txtPrefixo.getValue());
rutaTramoVO.setIndSentidoIda(radIda.isChecked()); rutaTramoVO.setIndSentidoIda(radIda.isChecked());
rutaTramoVO.setClaseServicioRutaOrigem(ruta.getClaseServicioRutaOrigem());
rutaTramoVO.setLsParadaSecuenciaCombinacaoLinhas(sequenciasAGerar); rutaTramoVO.setLsParadaSecuenciaCombinacaoLinhas(sequenciasAGerar);
@ -1875,8 +1966,8 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
rutaEmbarqueDesembarque.setRuta(ruta); rutaEmbarqueDesembarque.setRuta(ruta);
rutaEmbarqueDesembarque.setEmbarque(embarque); rutaEmbarqueDesembarque.setEmbarque(embarque);
rutaEmbarqueDesembarque.setDesembarque(desembarque); rutaEmbarqueDesembarque.setDesembarque(desembarque);
lsRutaEmbarqueDesembarque.add(rutaEmbarqueDesembarque);
rutaEmbarqueDesembarque.setLocalDesembarqueEmbarque(parada); rutaEmbarqueDesembarque.setLocalDesembarqueEmbarque(parada);
lsRutaEmbarqueDesembarque.add(rutaEmbarqueDesembarque);
ruta.setLsRutaEmbarqueDesembarque(lsRutaEmbarqueDesembarque); ruta.setLsRutaEmbarqueDesembarque(lsRutaEmbarqueDesembarque);
rutaEmbarqueDesembarqueListbox.setData(lsRutaEmbarqueDesembarque); rutaEmbarqueDesembarqueListbox.setData(lsRutaEmbarqueDesembarque);
@ -1958,6 +2049,7 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
rutaIcmsExcepcion.setActivo(Boolean.TRUE); rutaIcmsExcepcion.setActivo(Boolean.TRUE);
rutaIcmsExcepcion.setFecmodif(Calendar.getInstance().getTime()); rutaIcmsExcepcion.setFecmodif(Calendar.getInstance().getTime());
rutaIcmsExcepcion.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); rutaIcmsExcepcion.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
rutaIcmsExcepcion.setIndCST41(chkIndCST41.isChecked());
lsRutaIcmsExcepcions.add(rutaIcmsExcepcion); lsRutaIcmsExcepcions.add(rutaIcmsExcepcion);
ruta.setLsRutaIcmsExcepcions(lsRutaIcmsExcepcions); ruta.setLsRutaIcmsExcepcions(lsRutaIcmsExcepcions);
@ -2272,4 +2364,5 @@ public class EditarCatalogoDeRutaController extends MyGenericForwardComposer
Labels.getLabel("editarCatalogoDeRutaController.window.title"), Messagebox.OK, Messagebox.ERROR); Labels.getLabel("editarCatalogoDeRutaController.window.title"), Messagebox.OK, Messagebox.ERROR);
} }
} }
} }

View File

@ -40,6 +40,7 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
private Conexion conexion; private Conexion conexion;
private HashMap<Integer, ConexionConf> conexionConfHash; private HashMap<Integer, ConexionConf> conexionConfHash;
private List<ConexionDescuento> conexoesDescontoRemovidas; private List<ConexionDescuento> conexoesDescontoRemovidas;
private List<ConexionDescuento> conexoesDescontoRemovidasLocal;
@Autowired @Autowired
private ConexionDescuentoService conexionDescuentoService; private ConexionDescuentoService conexionDescuentoService;
@ -54,10 +55,10 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);
listBoxDesconto.setItemRenderer(new RenderConexionDescuento()); conexoesDescontoRemovidasLocal = new ArrayList<ConexionDescuento>();
recuperaParametros(); recuperaParametros();
iniciaCampos(); iniciaCampos();
listBoxDesconto.setItemRenderer(new RenderConexionDescuento());
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -71,6 +72,10 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
conexionConf = conexionConfHash.get(conexion.getNumgrupo()); conexionConf = conexionConfHash.get(conexion.getNumgrupo());
listBoxDesconto.setData(getConexoesDesconto()); listBoxDesconto.setData(getConexoesDesconto());
cmbClasseServicio.setModel(new ListModelList(claseServicioService.obtenerTodos())); cmbClasseServicio.setModel(new ListModelList(claseServicioService.obtenerTodos()));
for(ConexionDescuento c : conexoesDescontoRemovidas) {
listBoxDesconto.removeItem(c);
}
} }
private List<? extends Object> getConexoesDesconto() { private List<? extends Object> getConexoesDesconto() {
@ -99,6 +104,7 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
txtValorDesconto.setConstraint("no empty"); txtValorDesconto.setConstraint("no empty");
txtValorDescontoTasaEmbarque.setText(""); txtValorDescontoTasaEmbarque.setText("");
cmbClasseServicio.setSelectedIndex(-1); cmbClasseServicio.setSelectedIndex(-1);
conexion.getConexionesDescuentos().add(conexionDescuento);
} else { } else {
cmbClasseServicio.setSelectedIndex(-1); cmbClasseServicio.setSelectedIndex(-1);
Messagebox.show(Labels.getLabel("editarConexionConfController.MSG.classeRepetida"), Messagebox.show(Labels.getLabel("editarConexionConfController.MSG.classeRepetida"),
@ -119,7 +125,7 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
ConexionDescuento conexionDescuento = (ConexionDescuento) listBoxDesconto.getSelected(); ConexionDescuento conexionDescuento = (ConexionDescuento) listBoxDesconto.getSelected();
if (conexionDescuento.getIdConexionDescuento() != null) { if (conexionDescuento.getIdConexionDescuento() != null) {
conexionDescuento.setActivo(false); conexionDescuento.setActivo(false);
conexoesDescontoRemovidas.add(conexionDescuento); conexoesDescontoRemovidasLocal.add(conexionDescuento);
} }
listBoxDesconto.removeItem(conexionDescuento); listBoxDesconto.removeItem(conexionDescuento);
} }
@ -127,6 +133,12 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public void onClick$btnConfirmar(Event event) { public void onClick$btnConfirmar(Event event) {
conexionConfHash.put(conexion.getNumgrupo(), conexionConf); conexionConfHash.put(conexion.getNumgrupo(), conexionConf);
if(conexoesDescontoRemovidasLocal!=null && !conexoesDescontoRemovidasLocal.isEmpty()) {
for (ConexionDescuento conexionDescuento : conexoesDescontoRemovidasLocal) {
conexoesDescontoRemovidas.add(conexionDescuento);
}
}
conexion.setConexionesDescuentos(listBoxDesconto.getListData()); conexion.setConexionesDescuentos(listBoxDesconto.getListData());
closeWindow(); closeWindow();
} }

View File

@ -167,7 +167,7 @@ public class EditarConexionController extends MyGenericForwardComposer {
private Boolean verificarConexionContr(MyComboboxParada combo) throws InterruptedException { private Boolean verificarConexionContr(MyComboboxParada combo) throws InterruptedException {
if (origemCntrl != null if (origemCntrl != null
&& destinoCntrl != null && conexionCtrl == null && destinoCntrl != null && conexionCtrl == null
&& !conexionService.buscarConexiones(origemCntrl.getParadaId(), destinoCntrl.getParadaId()).isEmpty()) { && !conexionService.buscarConexiones(false, origemCntrl.getParadaId(), destinoCntrl.getParadaId()).isEmpty()) {
mostraMensagem(Labels.getLabel("editarConexionConfController.MSG.conexionCtrlExistente")); mostraMensagem(Labels.getLabel("editarConexionConfController.MSG.conexionCtrlExistente"));
combo.setSelectedIndex(-1); combo.setSelectedIndex(-1);
return false; return false;

View File

@ -193,7 +193,7 @@ public class EditarConexionRutaController extends MyGenericForwardComposer {
private Boolean verificarConexionContr(MyComboboxParada combo) throws InterruptedException { private Boolean verificarConexionContr(MyComboboxParada combo) throws InterruptedException {
if (origemCntrl != null if (origemCntrl != null
&& destinoCntrl != null && conexionCtrl == null && destinoCntrl != null && conexionCtrl == null
&& !conexionService.buscarConexiones(origemCntrl.getParadaId(), destinoCntrl.getParadaId()).isEmpty()) { && !conexionService.buscarConexiones(false, origemCntrl.getParadaId(), destinoCntrl.getParadaId()).isEmpty()) {
mostraMensagem(Labels.getLabel("editarConexionConfController.MSG.conexionCtrlExistente")); mostraMensagem(Labels.getLabel("editarConexionConfController.MSG.conexionCtrlExistente"));
combo.setSelectedIndex(-1); combo.setSelectedIndex(-1);
return false; return false;

View File

@ -304,6 +304,8 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
tramo.setConfRestricaoCanalVenta(confRestricaoCanalVenta); tramo.setConfRestricaoCanalVenta(confRestricaoCanalVenta);
tramo.setActivo(Boolean.TRUE); tramo.setActivo(Boolean.TRUE);
tramo.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
tramo.setFecmodif(Calendar.getInstance().getTime());
if(!lsConfRestricaoTramo.contains(tramo)) { if(!lsConfRestricaoTramo.contains(tramo)) {
lsConfRestricaoTramo.add(tramo); lsConfRestricaoTramo.add(tramo);
@ -353,6 +355,10 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
for (ConfRestricaoExcecao restricaoExcecao : listaAuxExcecao){ for (ConfRestricaoExcecao restricaoExcecao : listaAuxExcecao){
excecaoDataList.removeItem(restricaoExcecao); excecaoDataList.removeItem(restricaoExcecao);
restricaoExcecao.setConfRestricaoExcecaoId(null); restricaoExcecao.setConfRestricaoExcecaoId(null);
restricaoExcecao.setActivo(Boolean.TRUE);
restricaoExcecao.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
restricaoExcecao.setFecmodif(Calendar.getInstance().getTime());
ConfRestricaoTramo tramo = restricaoExcecao.getConfRestricaoTramo(); ConfRestricaoTramo tramo = restricaoExcecao.getConfRestricaoTramo();
if(tramo!= null) { if(tramo!= null) {
tramo.setConfRestricaoTramoId(null); tramo.setConfRestricaoTramoId(null);
@ -375,6 +381,10 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
for (ConfRestricaoPtovta restricaoPtovta : listaAuxPtoVta){ for (ConfRestricaoPtovta restricaoPtovta : listaAuxPtoVta){
confRestricaoPtovtaDataList.removeItem(restricaoPtovta); confRestricaoPtovtaDataList.removeItem(restricaoPtovta);
restricaoPtovta.setConfRestricaoPtovtaId(null); restricaoPtovta.setConfRestricaoPtovtaId(null);
restricaoPtovta.setActivo(Boolean.TRUE);
restricaoPtovta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
restricaoPtovta.setFecmodif(Calendar.getInstance().getTime());
restricaoPtovta.setConfRestricaoCanalVenta(confRestricaoCanalVentaNovo); restricaoPtovta.setConfRestricaoCanalVenta(confRestricaoCanalVentaNovo);
ConfRestricaoTramo tramo = restricaoPtovta.getConfRestricaoTramo(); ConfRestricaoTramo tramo = restricaoPtovta.getConfRestricaoTramo();
if(tramo!= null) { if(tramo!= null) {
@ -398,6 +408,10 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
confRestricaoTramoDataList.removeItem(restricaoTramo); confRestricaoTramoDataList.removeItem(restricaoTramo);
restricaoTramo.setConfRestricaoTramoId(null); restricaoTramo.setConfRestricaoTramoId(null);
restricaoTramo.setConfRestricaoCanalVenta(confRestricaoCanalVentaNovo); restricaoTramo.setConfRestricaoCanalVenta(confRestricaoCanalVentaNovo);
restricaoTramo.setActivo(Boolean.TRUE);
restricaoTramo.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
restricaoTramo.setFecmodif(Calendar.getInstance().getTime());
confRestricaoCanalVentaNovo.getLsConfRestricaoTramo().add(restricaoTramo); confRestricaoCanalVentaNovo.getLsConfRestricaoTramo().add(restricaoTramo);
confRestricaoTramoDataList.addItemNovo(restricaoTramo); confRestricaoTramoDataList.addItemNovo(restricaoTramo);
} }
@ -426,6 +440,10 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
return; return;
} }
if(cmbRuta.getSelectedItem() == null) {
confRestricaoCanalVenta.setRuta(null);
}
for (ConfRestricaoTramo confRestricaoTramo : lsConfRestricaoTramo) { for (ConfRestricaoTramo confRestricaoTramo : lsConfRestricaoTramo) {
if(validaOrigemEDestinoDaRuta(confRestricaoTramo.getOrigem(), confRestricaoTramo.getDestino())) { if(validaOrigemEDestinoDaRuta(confRestricaoTramo.getOrigem(), confRestricaoTramo.getDestino())) {
return; return;

View File

@ -233,6 +233,8 @@ public class EditarCorridaController extends MyGenericForwardComposer {
private Intbox txtNumCorridaExtraAuto; private Intbox txtNumCorridaExtraAuto;
private Combobox cmbRolOperativoServicoExtra; private Combobox cmbRolOperativoServicoExtra;
private Checkbox chkBloqueiaCorridaWebAposSaida;
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);
@ -455,6 +457,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
txtNumCorrida.setDisabled(false); txtNumCorrida.setDisabled(false);
txtNumCorrida.setText(""); txtNumCorrida.setText("");
txtNumCorrida.setConstraint("no empty"); txtNumCorrida.setConstraint("no empty");
chkCorridaExtra.setDisabled(Boolean.FALSE);
isClone = true; isClone = true;
esquemaCorrida.setEsquemacorridaId(null); esquemaCorrida.setEsquemacorridaId(null);
@ -750,6 +753,8 @@ public class EditarCorridaController extends MyGenericForwardComposer {
esquemaCorrida.setMinutosAutomacaoHEAte(txtMinutosAutomacaoATE.getValue() == null ? 0 : txtMinutosAutomacaoATE.getValue()); esquemaCorrida.setMinutosAutomacaoHEAte(txtMinutosAutomacaoATE.getValue() == null ? 0 : txtMinutosAutomacaoATE.getValue());
esquemaCorrida.setTaxaOcupacao(txtOcupacaoHorarioExtra.getValue() == null ? 0 : txtOcupacaoHorarioExtra.getValue() ); esquemaCorrida.setTaxaOcupacao(txtOcupacaoHorarioExtra.getValue() == null ? 0 : txtOcupacaoHorarioExtra.getValue() );
esquemaCorrida.setNumCorridaServicoExtra(txtNumCorridaExtraAuto.getValue()); esquemaCorrida.setNumCorridaServicoExtra(txtNumCorridaExtraAuto.getValue());
esquemaCorrida.setHorasalidaExtra(buscarHora(esquemaCorrida.getHorasalidaExtra()));
} }
if (porBloq.isChecked()) { if (porBloq.isChecked()) {
@ -766,6 +771,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
esquemaCorrida.setActivo(Boolean.TRUE); esquemaCorrida.setActivo(Boolean.TRUE);
esquemaCorrida.setFecmodif(Calendar.getInstance().getTime()); esquemaCorrida.setFecmodif(Calendar.getInstance().getTime());
esquemaCorrida.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); esquemaCorrida.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
esquemaCorrida.setIndBloqueiaWebAposSaida(chkBloqueiaCorridaWebAposSaida.isChecked());
esquemaCorrida.setDiagramaAutobusId(esquemaCorrida.getRolOperativo().getDiagramaAutobus().getDiagramaautobusId().intValue()); esquemaCorrida.setDiagramaAutobusId(esquemaCorrida.getRolOperativo().getDiagramaAutobus().getDiagramaautobusId().intValue());
@ -790,16 +796,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
} }
// nao gravar segundos: // nao gravar segundos:
GregorianCalendar gHoraSalida = new GregorianCalendar(); esquemaCorrida.setHorasalida(buscarHora(esquemaCorrida.getHorasalida()));
if (esquemaCorrida.getHorasalida() != null) {
gHoraSalida.setTime(esquemaCorrida.getHorasalida());
gHoraSalida.set(Calendar.SECOND, 0);
gHoraSalida.set(Calendar.MILLISECOND, 0);
gHoraSalida.set(Calendar.MONTH, 01);
gHoraSalida.set(Calendar.DAY_OF_MONTH, 01);
gHoraSalida.set(Calendar.YEAR, 1970);
esquemaCorrida.setHorasalida(gHoraSalida.getTime());
}
List<EsquemaCorrida> lsEC = Collections.EMPTY_LIST; List<EsquemaCorrida> lsEC = Collections.EMPTY_LIST;
@ -980,6 +977,22 @@ public class EditarCorridaController extends MyGenericForwardComposer {
} }
} }
private Date buscarHora(Date horasalidaExtra) {
if (horasalidaExtra != null) {
GregorianCalendar gHoraSalida = new GregorianCalendar();
gHoraSalida.setTime(horasalidaExtra);
gHoraSalida.set(Calendar.SECOND, 0);
gHoraSalida.set(Calendar.MILLISECOND, 0);
gHoraSalida.set(Calendar.MONTH, 01);
gHoraSalida.set(Calendar.DAY_OF_MONTH, 01);
gHoraSalida.set(Calendar.YEAR, 1970);
return gHoraSalida.getTime();
}
return null;
}
public void onClick$btnApagar(Event ev) { public void onClick$btnApagar(Event ev) {
try { try {
int resp = Messagebox.show(Labels.getLabel("editarConfiguracionCorridaController.MSG.borrarPergunta"), int resp = Messagebox.show(Labels.getLabel("editarConfiguracionCorridaController.MSG.borrarPergunta"),

View File

@ -27,16 +27,20 @@ import com.rjconsultores.ventaboletos.entidad.ConexionCtrl;
import com.rjconsultores.ventaboletos.entidad.ConexionRutaConf; import com.rjconsultores.ventaboletos.entidad.ConexionRutaConf;
import com.rjconsultores.ventaboletos.entidad.ConexionRutaExcepcionPtoVta; import com.rjconsultores.ventaboletos.entidad.ConexionRutaExcepcionPtoVta;
import com.rjconsultores.ventaboletos.entidad.ConexionRutaExcepcionTipoPtoVta; import com.rjconsultores.ventaboletos.entidad.ConexionRutaExcepcionTipoPtoVta;
import com.rjconsultores.ventaboletos.entidad.ConexionRutaLocalidadeRemovida;
import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.Ruta; import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.entidad.RutaCombinacion; import com.rjconsultores.ventaboletos.entidad.RutaCombinacion;
import com.rjconsultores.ventaboletos.entidad.RutaEmpresa;
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta; import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.service.ConexionRutaCombinacionService; import com.rjconsultores.ventaboletos.service.ConexionRutaCombinacionService;
import com.rjconsultores.ventaboletos.service.ConexionRutaConfService; import com.rjconsultores.ventaboletos.service.ConexionRutaConfService;
import com.rjconsultores.ventaboletos.service.ConexionRutaExcepcionPtoVtaService; import com.rjconsultores.ventaboletos.service.ConexionRutaExcepcionPtoVtaService;
import com.rjconsultores.ventaboletos.service.ConexionRutaExcepcionTipoPtoVtaService; import com.rjconsultores.ventaboletos.service.ConexionRutaExcepcionTipoPtoVtaService;
import com.rjconsultores.ventaboletos.service.ConexionRutaLocalidadeRemovidaService;
import com.rjconsultores.ventaboletos.service.ConexionRutaTramoCtrlService; import com.rjconsultores.ventaboletos.service.ConexionRutaTramoCtrlService;
import com.rjconsultores.ventaboletos.service.RutaEmpresaService;
import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService; import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.vo.parada.ConexionCtrlVO; import com.rjconsultores.ventaboletos.vo.parada.ConexionCtrlVO;
@ -47,6 +51,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConexionRuta; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConexionRuta;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConexionRutaRemoveSelecionada; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConexionRutaRemoveSelecionada;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEixoConexionRutaRemoveSelecionada;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderGeracaoConexionPorRuta; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderGeracaoConexionPorRuta;
@Controller("gerarConexionPorRutaController") @Controller("gerarConexionPorRutaController")
@ -71,6 +76,10 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
@Autowired @Autowired
ConexionRutaCombinacionService conexionRutaCombinacionService; ConexionRutaCombinacionService conexionRutaCombinacionService;
@Autowired
ConexionRutaLocalidadeRemovidaService conexionRutaLocalidadeRemovidaService;
@Autowired
RutaEmpresaService rutaEmpresaService;
private MyListbox localidadesOrigemlList; private MyListbox localidadesOrigemlList;
private MyListbox localidadesDestinoList; private MyListbox localidadesDestinoList;
private MyListbox localidadesDestinoLinhaCList; private MyListbox localidadesDestinoLinhaCList;
@ -87,11 +96,14 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
private MyListbox rutasBList; private MyListbox rutasBList;
private MyListbox rutasCList; private MyListbox rutasCList;
private MyListbox localidadesCombinadasList; private MyListbox localidadesCombinadasList;
private MyListbox localidadesComunsList; private MyListbox localidadesComunsABList;
private MyListbox localidadesComunsDestinoCList; private MyListbox localidadesComunsBCList;
private MyListbox listEspCanal; private MyListbox listEspCanal;
private MyListbox listPuntoVenta; private MyListbox listPuntoVenta;
private List<Parada> lsLocalidadesComuns; //Localidade a serem combinadas (pode excluir localidades a serem combinadas)
private List<Parada> lsLocalidadesComunsAB;
//Todas as localidades Localidade comuns entre A e B
private List<Parada> lsLocalidadesComunsABTodas;
private List<Parada> lsLocalidadesComunsLinhasBC; private List<Parada> lsLocalidadesComunsLinhasBC;
private Combobox cmbTipoPtovta; private Combobox cmbTipoPtovta;
private Combobox cmbPtovta; private Combobox cmbPtovta;
@ -100,11 +112,13 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
private Combobox cmbRutaC; private Combobox cmbRutaC;
private List<TipoPuntoVenta> lsTipoPtovta; private List<TipoPuntoVenta> lsTipoPtovta;
private List<Ruta> lsRutas;
private List<ConexionCtrl> conexoesCtrl; private List<ConexionCtrl> conexoesCtrl;
List<ParadaVOConexionRuta> localidadesGeradas; List<ParadaVOConexionRuta> localidadesGeradas;
private ConexionRutaConf conexionRutaConf; private ConexionRutaConf conexionRutaConf;
private MyListbox conexionRutaConfList; private MyListbox conexionRutaConfList;
private Boolean isConexaoPorAgrupamento;
private List<Parada> removerLocalidadesComumABList;
private List<Parada> adicionarLocalidadesComumABList;
private boolean isConexionGerada; private boolean isConexionGerada;
@ -112,27 +126,23 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);
lsLocalidadesComunsABTodas = new ArrayList<Parada>();
removerLocalidadesComumABList = new ArrayList<Parada>();
adicionarLocalidadesComumABList = new ArrayList<Parada>();
this.isConexionGerada = false; this.isConexionGerada = false;
txtTiempoMax.setConstraint("no empty"); txtTiempoMax.setConstraint("no empty");
txtTiempoMin.setConstraint("no empty"); txtTiempoMin.setConstraint("no empty");
txtDescricao.setConstraint("no empty"); txtDescricao.setConstraint("no empty");
lsRutas = rutaService.obtenerTodos();
lsTipoPtovta = tipoPuntoVentaService.obtenerTodos(); lsTipoPtovta = tipoPuntoVentaService.obtenerTodos();
conexionRutaConf = (ConexionRutaConf) Executions.getCurrent().getArg().get("conexionRutaConf"); conexionRutaConf = (ConexionRutaConf) Executions.getCurrent().getArg().get("conexionRutaConf");
conexionRutaConfList = (MyListbox) Executions.getCurrent().getArg().get("conexionRutaConfList"); conexionRutaConfList = (MyListbox) Executions.getCurrent().getArg().get("conexionRutaConfList");
Set<Parada> lsParadasOrigemA = new HashSet<Parada>();
Set<Parada> lsParadasTodasOrigemA = new HashSet<Parada>();
Set<Parada> lsParadasDestinoB = new HashSet<Parada>();
Set<Parada> lsParadasTodasDestinoB = new HashSet<Parada>();
Set<Parada> lsParadasDestinoC = new HashSet<Parada>();
Set<Parada> lsParadasTodasDestinoC = new HashSet<Parada>();
if (conexionRutaConf != null) { if (conexionRutaConf != null) {
btnSalvar.setDisabled(false); btnSalvar.setDisabled(false);
btnApagar.setDisabled(false); btnApagar.setDisabled(false);
@ -140,46 +150,24 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
txtTiempoMin.setValue(conexionRutaConf.getTiempoMin()); txtTiempoMin.setValue(conexionRutaConf.getTiempoMin());
txtTiempoMax.setValue(conexionRutaConf.getTiempoMax()); txtTiempoMax.setValue(conexionRutaConf.getTiempoMax());
for (ConexionRutaExcepcionPtoVta conexionRutaExcepcionPtoVta : conexionRutaRestricaoPtoVtaService.buscarPorConexionConf(conexionRutaConf)) {
listPuntoVenta.addItemNovo(conexionRutaExcepcionPtoVta.getPuntoVenta());
}
for (ConexionRutaExcepcionTipoPtoVta conexionRutaExcepcionTipoPtoVta: conexionRutaExcepcionTipoPtoVtaService.buscarPorConexionConf(conexionRutaConf)) { configuraExcecaoPorPontoVenda();
listEspCanal.addItemNovo(conexionRutaExcepcionTipoPtoVta.getTipoPtovta());
}
List<List<Ruta>> rutas = conexionRutaConfService.buscarRutasPorConexionConf(conexionRutaConf.getConexionRutaConfId()); configuraExcecaoPorTipoVenda();
List<Ruta> lsRutaA = rutas.get(0);
List<Ruta> lsRutaB = rutas.get(1);
List<Ruta> lsRutaC = rutas.get(2);
lsParadasOrigemA.addAll(conexionRutaTramoCtrlService.buscarLocalidadesOrigem(conexionRutaConf.getConexionRutaConfId())); configuraRutasPorEixo();
lsParadasDestinoB.addAll(conexionRutaTramoCtrlService.buscarLocalidadesDestino(conexionRutaConf.getConexionRutaConfId()));
lsParadasDestinoC.addAll(conexionRutaTramoCtrlService.buscarLocalidadesDestinoC(conexionRutaConf.getConexionRutaConfId()));
lsParadasTodasOrigemA.addAll(conexionRutaTramoCtrlService.buscarTodasLocalidadesOrigem(conexionRutaConf.getConexionRutaConfId())); isConexaoPorAgrupamento = validaConfAgrupamentoLocalidadeEmpresaLinhas();
lsParadasTodasOrigemA.removeAll(lsParadasOrigemA); //Eixo A
configuraLocalidadesEixoA();
lsParadasTodasDestinoB.addAll(conexionRutaTramoCtrlService.buscarTodasLocalidadesDestino(conexionRutaConf.getConexionRutaConfId())); //Eixo B
lsParadasTodasDestinoB.removeAll(lsParadasDestinoB); configuraLocalidadesEixoB();
lsParadasTodasDestinoC.addAll(conexionRutaTramoCtrlService.buscarTodasLocalidadesDestinoC(conexionRutaConf.getConexionRutaConfId())); //Eixo C
lsParadasTodasDestinoC.removeAll(lsParadasDestinoC); configuraLocalidadesEixoC();
localidadesLinhaASelecionadaList.setData(new ArrayList<Parada>(lsParadasOrigemA));
localidadesOrigemlList.setData(new ArrayList<Parada>(lsParadasTodasOrigemA));
localidadesLinhaBSelecionadaList.setData(new ArrayList<Parada>(lsParadasDestinoB));
localidadesDestinoList.setData(new ArrayList<Parada>(lsParadasTodasDestinoB));
localidadesLinhaCSelecionadaList.setData(new ArrayList<Parada>(lsParadasDestinoC));
localidadesDestinoLinhaCList.setData(new ArrayList<Parada>(lsParadasTodasDestinoC));
executarPesquisaLocalidadesOrigen();
executarPesquisaLocalidadesDestino();
executarPesquisaLocalidadesDestinoLinhasC();
rutasAList.setData(lsRutaA);
rutasBList.setData(lsRutaB);
rutasCList.setData(lsRutaC);
gerarCombinacao(true); gerarCombinacao(true);
}else{ }else{
@ -187,23 +175,61 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
btnApagar.setDisabled(true); btnApagar.setDisabled(true);
} }
localidadesLinhaASelecionadaList.setItemRenderer(new RenderConexionRutaRemoveSelecionada(new EventListener() { configuraRendererListaLocalidadesSelecionadasEixoA();
configuraRendererListaLocalidadesSelecionadasEixoB();
configuraRendererListaLocalidadesSelecionadasEixoC();
resultadoCombinacao.setSelected(false);
}
/**
* Valida se a epresa da linha está configurada para funcionar com agrupamento de localidade na conexão.
* @param rutaA
* @return
*/
private Boolean validaConfAgrupamentoLocalidadeEmpresaLinhas() {
List<Ruta> rutas = new ArrayList<Ruta>();
rutas.addAll(rutasAList.getListData());
rutas.addAll(rutasBList.getListData());
Boolean isConexaoPorAgrupamento = Boolean.FALSE;
if(rutas !=null) {
for (Ruta ruta : rutas) {
List<RutaEmpresa> rutaEmpresaList = rutaEmpresaService.obtenerPorRuta(ruta);
for (RutaEmpresa rutaEmpresa : rutaEmpresaList) {
if(rutaEmpresa.getEmpresa() !=null && Boolean.TRUE.equals(rutaEmpresa.getEmpresa().getIndAgrupLocConexao())) {
isConexaoPorAgrupamento = true;
break;
}
}
}
}
return isConexaoPorAgrupamento;
}
private void configuraRendererListaLocalidadesSelecionadasEixoC() {
localidadesLinhaCSelecionadaList.setItemRenderer(new RenderConexionRutaRemoveSelecionada(new EventListener() {
@Override @Override
public void onEvent(Event arg0) throws Exception { public void onEvent(Event arg0) throws Exception {
Parada conexionRutaVO = (Parada) arg0.getTarget().getAttribute("data"); Parada conexionRutaVO = (Parada) arg0.getTarget().getAttribute("data");
for (Object objectParada : localidadesLinhaASelecionadaList.getListData()) { for (Object objectParada : localidadesLinhaCSelecionadaList.getListData()) {
if (((Parada) objectParada).equals(conexionRutaVO)) { if (((Parada) objectParada).equals(conexionRutaVO)) {
localidadesLinhaASelecionadaList.removeItem(conexionRutaVO); localidadesLinhaCSelecionadaList.removeItem(conexionRutaVO);
if(!localidadesOrigemlList.getListData().contains(conexionRutaVO)) { if(!localidadesDestinoLinhaCList.getListData().contains(conexionRutaVO)) {
localidadesOrigemlList.addItemNovo(conexionRutaVO); localidadesDestinoLinhaCList.addItemNovo(conexionRutaVO);
} }
break; break;
} }
} }
} }
})); }));
}
private void configuraRendererListaLocalidadesSelecionadasEixoB() {
localidadesLinhaBSelecionadaList.setItemRenderer(new RenderConexionRutaRemoveSelecionada(new EventListener() { localidadesLinhaBSelecionadaList.setItemRenderer(new RenderConexionRutaRemoveSelecionada(new EventListener() {
@Override @Override
@ -222,26 +248,107 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
gerarLocalidadesComunsBC(); gerarLocalidadesComunsBC();
} }
})); }));
localidadesLinhaCSelecionadaList.setItemRenderer(new RenderConexionRutaRemoveSelecionada(new EventListener() { }
private void configuraRendererListaLocalidadesSelecionadasEixoA() {
localidadesLinhaASelecionadaList.setItemRenderer(new RenderConexionRutaRemoveSelecionada(new EventListener() {
@Override @Override
public void onEvent(Event arg0) throws Exception { public void onEvent(Event arg0) throws Exception {
Parada conexionRutaVO = (Parada) arg0.getTarget().getAttribute("data"); Parada conexionRutaVO = (Parada) arg0.getTarget().getAttribute("data");
for (Object objectParada : localidadesLinhaCSelecionadaList.getListData()) { for (Object objectParada : localidadesLinhaASelecionadaList.getListData()) {
if (((Parada) objectParada).equals(conexionRutaVO)) { if (((Parada) objectParada).equals(conexionRutaVO)) {
localidadesLinhaCSelecionadaList.removeItem(conexionRutaVO); localidadesLinhaASelecionadaList.removeItem(conexionRutaVO);
if(!localidadesDestinoLinhaCList.getListData().contains(conexionRutaVO)) { if(!localidadesOrigemlList.getListData().contains(conexionRutaVO)) {
localidadesDestinoLinhaCList.addItemNovo(conexionRutaVO); localidadesOrigemlList.addItemNovo(conexionRutaVO);
} }
break; break;
} }
} }
} }
})); }));
}
resultadoCombinacao.setSelected(false); /**
* Configura localidades eixo C
* @throws InterruptedException
*/
private void configuraLocalidadesEixoC() throws InterruptedException {
Set<Parada> lsParadasTodasPossiveisEixoC = new HashSet<Parada>();
Set<Parada> lsParadasCadastradasEixoC = new HashSet<Parada>();
lsParadasCadastradasEixoC.addAll(conexionRutaTramoCtrlService.buscarLocalidadesEixoC(conexionRutaConf.getConexionRutaConfId()));
lsParadasTodasPossiveisEixoC.addAll(conexionRutaTramoCtrlService.buscarTodasLocalidadesDestinoC(conexionRutaConf.getConexionRutaConfId()));
lsParadasTodasPossiveisEixoC.removeAll(lsParadasCadastradasEixoC);
localidadesLinhaCSelecionadaList.setData(new ArrayList<Parada>(lsParadasCadastradasEixoC));
localidadesDestinoLinhaCList.setData(new ArrayList<Parada>(lsParadasTodasPossiveisEixoC));
executarPesquisaLocalidadesDestinoLinhasC();
}
/**
* Configura localidades eixo B
* @throws InterruptedException
*/
private void configuraLocalidadesEixoB() throws InterruptedException {
Set<Parada> lsParadasTodasPossiveisEixoB = new HashSet<Parada>();
Set<Parada> lsParadasCadastradasEixoB = new HashSet<Parada>();
lsParadasCadastradasEixoB.addAll(conexionRutaTramoCtrlService.buscarLocalidadeEixoB(conexionRutaConf.getConexionRutaConfId()));
lsParadasTodasPossiveisEixoB.addAll(conexionRutaTramoCtrlService.buscarTodasLocalidadesDestino(conexionRutaConf.getConexionRutaConfId()));
lsParadasTodasPossiveisEixoB.removeAll(lsParadasCadastradasEixoB);
localidadesLinhaBSelecionadaList.setData(new ArrayList<Parada>(lsParadasCadastradasEixoB));
localidadesDestinoList.setData(new ArrayList<Parada>(lsParadasTodasPossiveisEixoB));
executarPesquisaLocalidadesDestino();
}
/**
* Configura localidades eixo A
* @throws InterruptedException
*/
private void configuraLocalidadesEixoA() throws InterruptedException {
Set<Parada> lsParadasTodasPossiveisEixoA = new HashSet<Parada>();
Set<Parada> lsParadasCadastradasEixoA = new HashSet<Parada>();
lsParadasCadastradasEixoA.addAll(conexionRutaTramoCtrlService.buscarLocalidadesEixoA(conexionRutaConf.getConexionRutaConfId()));
lsParadasTodasPossiveisEixoA.addAll(conexionRutaTramoCtrlService.buscarTodasLocalidadesOrigem(conexionRutaConf.getConexionRutaConfId()));
lsParadasTodasPossiveisEixoA.removeAll(lsParadasCadastradasEixoA);
localidadesLinhaASelecionadaList.setData(new ArrayList<Parada>(lsParadasCadastradasEixoA));
localidadesOrigemlList.setData(new ArrayList<Parada>(lsParadasTodasPossiveisEixoA));
executarPesquisaLocalidadesOrigen();
}
/**
* Configura as rutas (linhas) para cada eixo
*/
private void configuraRutasPorEixo() {
//Busca uma lista de linhas (rutas), esta lista contem 3 sub-listas (1 para cada eixo de conexão A, B e C)
List<List<Ruta>> rutas = conexionRutaConfService.buscarRutasPorConexionConf(conexionRutaConf.getConexionRutaConfId());
List<Ruta> lsRutaA = rutas.get(0);
List<Ruta> lsRutaB = rutas.get(1);
List<Ruta> lsRutaC = rutas.get(2);
rutasAList.setData(lsRutaA);
rutasBList.setData(lsRutaB);
rutasCList.setData(lsRutaC);
}
/**
* Configura a lista de exceções por tipo de venda (canal de venda)
*/
private void configuraExcecaoPorTipoVenda() {
//Busca a lista de exceções por tipo de venda (canal de venda)
List<ConexionRutaExcepcionTipoPtoVta> conexionRutaExcepcionTipoPtoVtaList = conexionRutaExcepcionTipoPtoVtaService.buscarPorConexionConf(conexionRutaConf);
for (ConexionRutaExcepcionTipoPtoVta conexionRutaExcepcionTipoPtoVta:conexionRutaExcepcionTipoPtoVtaList ) {
listEspCanal.addItemNovo(conexionRutaExcepcionTipoPtoVta.getTipoPtovta());
}
}
/**
* Configura a lista de exceções por ponto de venda
*/
private void configuraExcecaoPorPontoVenda() {
//Busca a lista de exceções por ponto de venda
List<ConexionRutaExcepcionPtoVta> conexionRutaExcepcionPtoVtaList = conexionRutaRestricaoPtoVtaService.buscarPorConexionConf(conexionRutaConf);
for (ConexionRutaExcepcionPtoVta conexionRutaExcepcionPtoVta : conexionRutaExcepcionPtoVtaList) {
listPuntoVenta.addItemNovo(conexionRutaExcepcionPtoVta.getPuntoVenta());
}
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -273,6 +380,9 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
conexionRutaConf = conexionRutaConfService.salvarConfiguracao(conexionRutaConf, canalVentas, puntoVentas, conexionRutaConf = conexionRutaConfService.salvarConfiguracao(conexionRutaConf, canalVentas, puntoVentas,
conexoesCtrl, lsConexionRutaCtrl, localidadesGeradas, conexoesCtrl, lsConexionRutaCtrl, localidadesGeradas,
isConexionGerada); isConexionGerada);
adicionaLocalidadesExcluidas();
removeLocalidadesExcluidas();
if(itemNovo) { if(itemNovo) {
conexionRutaConfList.addItemNovo(conexionRutaConf); conexionRutaConfList.addItemNovo(conexionRutaConf);
@ -287,6 +397,22 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
closeWindow(); closeWindow();
} }
private void removeLocalidadesExcluidas() {
if(adicionarLocalidadesComumABList !=null && !adicionarLocalidadesComumABList.isEmpty() ) {
for (Parada parada : adicionarLocalidadesComumABList) {
conexionRutaLocalidadeRemovidaService.removerPorParada(parada);
}
}
}
private void adicionaLocalidadesExcluidas() {
if(!removerLocalidadesComumABList.isEmpty()) {
for (Parada parada : removerLocalidadesComumABList) {
conexionRutaLocalidadeRemovidaService.suscribir(conexionRutaConf.getConexionRutaConfId(), parada.getParadaId());
}
}
}
public void onClick$btnApagar(Event ev) throws Exception { public void onClick$btnApagar(Event ev) throws Exception {
int resp = Messagebox.show( int resp = Messagebox.show(
@ -311,10 +437,59 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
executarPesquisaLocalidadesDestino(); executarPesquisaLocalidadesDestino();
} }
public void renderizarLinhasAB() {
localidadesComunsABList.setItemRenderer(new RenderEixoConexionRutaRemoveSelecionada(new EventListener() {
@Override
public void onEvent(Event arg0) throws Exception {
Parada conexionRutaVO = (Parada) arg0.getTarget().getAttribute("data");
List<Parada> localidadesComunsABListIter =new ArrayList<Parada>(lsLocalidadesComunsABTodas);
for (Parada paradaIter : localidadesComunsABListIter) {
//Caso parada seja a mesma ou seja uma parada do mesmo agrupamento remove.
if (paradaIter.equals(conexionRutaVO) || (paradaIter.getAgrupamentoParada()!=null && paradaIter.getAgrupamentoParada().equals(conexionRutaVO.getAgrupamentoParada()))) {
if(!Boolean.TRUE.equals(paradaIter.getIsParadaConexaoRutaExcluida())) {
localidadesComunsABList.removeItem(conexionRutaVO);
lsLocalidadesComunsAB.remove(paradaIter);
conexionRutaVO.setIsParadaConexaoRutaExcluida(Boolean.TRUE);
localidadesComunsABList.addItemNovo(conexionRutaVO);
removerLocalidadesComumABList.add(conexionRutaVO);
}else {
localidadesComunsABList.removeItem(conexionRutaVO);
conexionRutaVO.setIsParadaConexaoRutaExcluida(Boolean.FALSE);
localidadesComunsABList.addItemNovo(conexionRutaVO);
lsLocalidadesComunsAB.add(paradaIter);
adicionarLocalidadesComumABList.add(conexionRutaVO);
}
}
}
}
}));
}
public void renderizarLinhasBC() {
localidadesComunsBCList.setItemRenderer(new RenderEixoConexionRutaRemoveSelecionada(new EventListener() {
@Override
public void onEvent(Event arg0) throws Exception {
Parada conexionRutaVO = (Parada) arg0.getTarget().getAttribute("data");
for (Object objectParada : localidadesComunsBCList.getListData()) {
if (((Parada) objectParada).equals(conexionRutaVO)) {
localidadesComunsBCList.removeItem(conexionRutaVO);
lsLocalidadesComunsLinhasBC.remove(conexionRutaVO);
break;
}
}
}
}));
}
private void executarPesquisaLocalidadesOrigen() throws InterruptedException { private void executarPesquisaLocalidadesOrigen() throws InterruptedException {
localidadesCombinadasList.clear(); localidadesCombinadasList.clear();
localidadesComunsList.setModel(new ListModelList(new ArrayList<Parada>())); localidadesComunsABList.setModel(new ListModelList(new ArrayList<Parada>()));
try { try {
localidadesOrigemlList.setItemRenderer(new RenderConexionRuta(new EventListener() { localidadesOrigemlList.setItemRenderer(new RenderConexionRuta(new EventListener() {
@ -327,7 +502,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
localidadesLinhaASelecionadaList.addItemNovo(parada); localidadesLinhaASelecionadaList.addItemNovo(parada);
} else { } else {
for (Object objectParada : localidadesLinhaASelecionadaList.getListData()) { for (Object objectParada : localidadesLinhaASelecionadaList.getListData()) {
if (localidadesLinhaASelecionadaList.getListData().contains(parada) || (getLsLocalidadesComuns() != null && getLsLocalidadesComuns().contains(parada))) { if (localidadesLinhaASelecionadaList.getListData().contains(parada) || (lsLocalidadesComunsAB != null && lsLocalidadesComunsAB.contains(parada))) {
return; return;
} }
if (!((Parada) objectParada).equals(parada)) { if (!((Parada) objectParada).equals(parada)) {
@ -340,7 +515,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
} }
} }
})); }));
gerarLocalidadesComuns(); gerarLocalidadesComunsAB();
} catch (Exception e) { } catch (Exception e) {
log.error("", e); log.error("", e);
} }
@ -350,7 +525,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
private void executarPesquisaLocalidadesDestino() throws InterruptedException { private void executarPesquisaLocalidadesDestino() throws InterruptedException {
localidadesCombinadasList.clear(); localidadesCombinadasList.clear();
localidadesComunsDestinoCList.setModel(new ListModelList(new ArrayList<Parada>())); localidadesComunsBCList.setModel(new ListModelList(new ArrayList<Parada>()));
try { try {
localidadesDestinoList.setItemRenderer(new RenderConexionRuta(new EventListener() { localidadesDestinoList.setItemRenderer(new RenderConexionRuta(new EventListener() {
@ -363,7 +538,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
localidadesLinhaBSelecionadaList.addItemNovo(parada); localidadesLinhaBSelecionadaList.addItemNovo(parada);
} else { } else {
for (Object objectParada : localidadesLinhaBSelecionadaList.getListData()) { for (Object objectParada : localidadesLinhaBSelecionadaList.getListData()) {
if (localidadesLinhaBSelecionadaList.getListData().contains(parada) || (getLsLocalidadesComuns() != null && getLsLocalidadesComuns().contains(parada))) { if (localidadesLinhaBSelecionadaList.getListData().contains(parada) || (lsLocalidadesComunsAB != null && lsLocalidadesComunsAB.contains(parada))) {
return; return;
} }
if (!((Parada) objectParada).equals(parada)) { if (!((Parada) objectParada).equals(parada)) {
@ -411,7 +586,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
} }
} }
})); }));
gerarLocalidadesComuns(); gerarLocalidadesComunsBC();
} catch (Exception e) { } catch (Exception e) {
log.error("", e); log.error("", e);
} }
@ -431,20 +606,87 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
lsParadas = new HashSet<Parada>(localidadesOrigemlList.getListData()); lsParadas = new HashSet<Parada>(localidadesOrigemlList.getListData());
ArrayList<Parada> paradasDuplicadas = new ArrayList<Parada>(lsParadas); ArrayList<Parada> paradasDuplicadas = new ArrayList<Parada>(lsParadas);
paradasDuplicadas.retainAll(localidadesDestinoList.getListData()); paradasDuplicadas.retainAll(localidadesDestinoList.getListData());
validaLocalidadesExcluidas(lsParadas, paradasDuplicadas);
//Lista auxiliar usada para ser setada na Listview de localidades comuns A e B
List<Parada> lsLocalidadesComunsABAux = new ArrayList<Parada>();
List<Parada> lsLocalidadesAgrupamento = new ArrayList<Parada>();
localidadesLinhaASelecionadaList.getListData().removeAll(paradasDuplicadas); localidadesLinhaASelecionadaList.getListData().removeAll(paradasDuplicadas);
localidadesLinhaBSelecionadaList.getListData().removeAll(paradasDuplicadas); localidadesLinhaBSelecionadaList.getListData().removeAll(paradasDuplicadas);
if(lsLocalidadesComuns!=null) { if(lsLocalidadesComunsAB!=null) {
for (Parada parada : paradasDuplicadas) { adicionaParadasDuplicadas(paradasDuplicadas, lsLocalidadesComunsABAux, lsLocalidadesAgrupamento);
if(!lsLocalidadesComuns.contains(parada)){ }else {
lsLocalidadesComuns.add(parada); lsLocalidadesComunsAB = new ArrayList<Parada>(paradasDuplicadas);
} }
localidadesComunsABList.setData(lsLocalidadesComunsABAux);
renderizarLinhasAB();
}
/**
* Valida Localidades excluídas, caso encontre insere na tela botão adicionar, caso não encontre inserena tela o botão remover.
* @param lsParadas
* @param paradasDuplicadas
*/
private void validaLocalidadesExcluidas(Set<Parada> lsParadas, ArrayList<Parada> paradasDuplicadas) {
if(paradasDuplicadas!=null && !paradasDuplicadas.isEmpty()) {
List<ConexionRutaLocalidadeRemovida> ConexionRutaLocalidadeRemovidaList = conexionRutaLocalidadeRemovidaService.obtenerPorParadaList(paradasDuplicadas);
if(ConexionRutaLocalidadeRemovidaList !=null) {
ArrayList<Parada> paradasDuplicadasAux = new ArrayList<Parada>(lsParadas);
for (ConexionRutaLocalidadeRemovida conexionRutaLocalidadeRemovida : ConexionRutaLocalidadeRemovidaList) {
for (Parada parada : paradasDuplicadasAux) {
if(conexionRutaLocalidadeRemovida.getParadaId()!=null && conexionRutaLocalidadeRemovida.getParadaId().intValue() ==parada.getParadaId().intValue()) {
paradasDuplicadas.remove(parada);
parada.setIsParadaConexaoRutaExcluida(Boolean.TRUE);
paradasDuplicadas.add(parada);
}
}
}
}
}
}
private void adicionaParadasDuplicadas(ArrayList<Parada> paradasDuplicadas, List<Parada> lsLocalidadesComunsABAux, List<Parada> lsLocalidadesAgrupamento) {
for (Parada parada : paradasDuplicadas) {
if(!lsLocalidadesComunsAB.contains(parada)){
if(parada.getAgrupamentoParada()!=null && Boolean.TRUE.equals(isConexaoPorAgrupamento)) {
try {
validaParadaAgrupamento(lsLocalidadesAgrupamento, lsLocalidadesComunsABAux, parada);
} catch (CloneNotSupportedException e) {
log.error("Erro ao clonar objeto Parada: " + parada.toString(), e);
continue;
} }
}else { }else {
lsLocalidadesComuns = new ArrayList<Parada>(paradasDuplicadas); lsLocalidadesComunsABAux.add(parada);
} }
localidadesComunsList.setModel(new ListModelList(lsLocalidadesComuns)); lsLocalidadesComunsABTodas.add(parada);
if(!Boolean.TRUE.equals(parada.getIsParadaConexaoRutaExcluida())) {
lsLocalidadesComunsAB.add(parada);
}
}
}
}
private void validaParadaAgrupamento(List<Parada> lsLocalidadesAgrupamento , List<Parada> lsLocalidadesComunsABAux, Parada parada) throws CloneNotSupportedException {
Parada paradaAux = new Parada();
paradaAux = (Parada) parada.clone();
paradaAux.setDescparada(parada.getAgrupamentoParada().getDescAgrupamentoParada());
paradaAux.setCveparada(parada.getAgrupamentoParada().getCveAgrupamentoParada());
//Caso agrupamento já adicionado na lista não aparece na listview para não duplicar
//mas é adicionado de localidades comuns de classe normalmente, apenas na listeview (tela que não irá aparecer).
Boolean isAdicionaParadaListView = Boolean.TRUE;
for (Parada paradaAgrupamento : lsLocalidadesAgrupamento) {
if( paradaAux.getAgrupamentoParada().equals(paradaAgrupamento.getAgrupamentoParada())) {
isAdicionaParadaListView = Boolean.FALSE;
}
}
if(isAdicionaParadaListView) {
lsLocalidadesAgrupamento.add(parada);
lsLocalidadesComunsABAux.add(paradaAux);
}
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -463,7 +705,8 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
}else { }else {
lsLocalidadesComunsLinhasBC = new ArrayList<Parada>(paradasDuplicadas); lsLocalidadesComunsLinhasBC = new ArrayList<Parada>(paradasDuplicadas);
} }
localidadesComunsDestinoCList.setModel(new ListModelList(lsLocalidadesComunsLinhasBC)); localidadesComunsBCList.setData(new ListModelList(lsLocalidadesComunsLinhasBC));
renderizarLinhasBC();
} }
@ -474,7 +717,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
} }
public void onClick$btnCombinarTrechos(Event ev) throws InterruptedException { public void onClick$btnCombinarTrechos(Event ev) throws InterruptedException {
if (lsLocalidadesComuns == null || lsLocalidadesComuns.isEmpty()) { if (lsLocalidadesComunsAB == null || lsLocalidadesComunsAB.isEmpty()) {
Messagebox.show(Labels.getLabel("editarConexionPorRutaController.MSG.selecionarConexion"), Messagebox.show(Labels.getLabel("editarConexionPorRutaController.MSG.selecionarConexion"),
Labels.getLabel("editarConexionPorRutaController.window.title"), Labels.getLabel("editarConexionPorRutaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION); Messagebox.OK, Messagebox.INFORMATION);
@ -649,6 +892,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
} }
} }
@SuppressWarnings("unchecked")
public void onClick$btnNovoRutaB(Event ev) throws InterruptedException { public void onClick$btnNovoRutaB(Event ev) throws InterruptedException {
if (!validarLinhaJaSelecionada()) { if (!validarLinhaJaSelecionada()) {
@ -672,7 +916,6 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
if(rutaB.getRutaId() == -1){ if(rutaB.getRutaId() == -1){
rutasBList.clear(); rutasBList.clear();
}else { }else {
@SuppressWarnings("unchecked")
List<Ruta> canaisVenta = rutasBList.getListData(); List<Ruta> canaisVenta = rutasBList.getListData();
for (Ruta rutaAux : canaisVenta) { for (Ruta rutaAux : canaisVenta) {
if(rutaB.getRutaId() == -1){ if(rutaB.getRutaId() == -1){
@ -723,6 +966,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
} }
} }
} }
@SuppressWarnings("unchecked")
public void onClick$btnNovoRutaC(Event ev) throws InterruptedException { public void onClick$btnNovoRutaC(Event ev) throws InterruptedException {
@ -747,7 +991,6 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
if(rutaC.getRutaId() == -1){ if(rutaC.getRutaId() == -1){
rutasCList.clear(); rutasCList.clear();
}else { }else {
@SuppressWarnings("unchecked")
List<Ruta> canaisVenta = rutasCList.getListData(); List<Ruta> canaisVenta = rutasCList.getListData();
for (Ruta rutaAux : canaisVenta) { for (Ruta rutaAux : canaisVenta) {
if(rutaC.getRutaId() == -1){ if(rutaC.getRutaId() == -1){
@ -796,13 +1039,7 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
} }
} }
} }
public List<Ruta> getLsRutas() {
return lsRutas;
}
public void setLsRutas(List<Ruta> lsRutas) {
this.lsRutas = lsRutas;
}
/** /**
* @return the lsPtovata * @return the lsPtovata
*/ */
@ -822,13 +1059,6 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
Messagebox.show(msg, Labels.getLabel("editarConexionController.window.title"), Messagebox.OK, Messagebox.INFORMATION); Messagebox.show(msg, Labels.getLabel("editarConexionController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
} }
public List<Parada> getLsLocalidadesComuns() {
return lsLocalidadesComuns;
}
public void setLsLocalidadesComuns(List<Parada> lsLocalidadesComuns) {
this.lsLocalidadesComuns = lsLocalidadesComuns;
}
public List<Parada> getLsLocalidadesComunsLinhasBC() { public List<Parada> getLsLocalidadesComunsLinhasBC() {
return lsLocalidadesComunsLinhasBC; return lsLocalidadesComunsLinhasBC;
@ -862,9 +1092,9 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
} else { } else {
this.isConexionGerada = true; this.isConexionGerada = true;
if(rutasEixoC.isEmpty()) { if(rutasEixoC.isEmpty()) {
conexionRutaCombinacionService.gerarCombinacionEntre2Eixos(listParada1,rutasEixoA, rutasEixoB, getLsLocalidadesComuns(), listParada4, rutasEixoA, rutasEixoB, localidadesGeradas, conexoesCtrlVO ); conexionRutaCombinacionService.gerarCombinacionEntre2Eixos(listParada1,rutasEixoA, rutasEixoB, lsLocalidadesComunsAB, listParada4, rutasEixoA, rutasEixoB, localidadesGeradas, conexoesCtrlVO );
} else { } else {
conexionRutaCombinacionService.gerarCombinacionEntre3Eixos(listParada1,rutasEixoA, rutasEixoB, getLsLocalidadesComuns(), listParada4,listParadasC, rutasEixoA, rutasEixoB,rutasEixoC,localidadesGeradas, conexoesCtrlVO ); conexionRutaCombinacionService.gerarCombinacionEntre3Eixos(listParada1,rutasEixoA, rutasEixoB, lsLocalidadesComunsAB, listParada4,listParadasC, rutasEixoA, rutasEixoB,rutasEixoC,localidadesGeradas, conexoesCtrlVO );
} }
for (ConexionCtrlVO conexionCtrlVO : conexoesCtrlVO) { for (ConexionCtrlVO conexionCtrlVO : conexoesCtrlVO) {

View File

@ -88,7 +88,9 @@ public class GerarCombinacionTramoRutaController extends MyGenericForwardCompose
rutaDB.setClaseServicio(clase); rutaDB.setClaseServicio(clase);
if (rutaDB.getRutaId() == null) { if (rutaDB.getRutaId() == null) {
rutaDB.setIsClone(true); if(!ruta.getIsClone()){
rutaDB.setIsCadastro(true);
}
rutaDB = salvarNovaRuta(rutaDB); rutaDB = salvarNovaRuta(rutaDB);
} }

View File

@ -18,6 +18,7 @@ import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Datebox; import org.zkoss.zul.Datebox;
import org.zkoss.zul.Filedownload; import org.zkoss.zul.Filedownload;
import org.zkoss.zul.Radiogroup;
import org.zkoss.zul.Textbox; import org.zkoss.zul.Textbox;
import com.rjconsultores.integracaoreceitadespesa.BGMApplication; import com.rjconsultores.integracaoreceitadespesa.BGMApplication;
@ -43,6 +44,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
private Datebox datInicial; private Datebox datInicial;
private Datebox datFinal; private Datebox datFinal;
private Textbox txtArquivo; private Textbox txtArquivo;
private Radiogroup rgLayout;
@Autowired @Autowired
private ConstanteService constanteService; private ConstanteService constanteService;
@ -87,6 +89,8 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
private void executarRelatorio() throws Exception { private void executarRelatorio() throws Exception {
Integer puntoVentaId = ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId(); Integer puntoVentaId = ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId();
Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId(); Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId();
String layoutRelatorio = rgLayout.getSelectedItem().getValue();
Connection con = dataSource.getConnection(); Connection con = dataSource.getConnection();
String fileZip = BGMApplication.getInstance().executaExportacao( String fileZip = BGMApplication.getInstance().executaExportacao(
@ -100,7 +104,8 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()), ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()),
false, false,
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_COD_RECEITA_FIXO_BGM.getDescricao()), ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_COD_RECEITA_FIXO_BGM.getDescricao()),
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_RECEITA_DESPESAS_OURO_PRATA.getDescricao())); ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_RECEITA_DESPESAS_OURO_PRATA.getDescricao()),
layoutRelatorio.equals("NOVO"));
if(this.getPathExternoGravacaoArquivo() != null){ if(this.getPathExternoGravacaoArquivo() != null){
Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"), Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"),

View File

@ -6,6 +6,7 @@ import java.util.Map;
import javax.sql.DataSource; import javax.sql.DataSource;
import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope; import org.springframework.context.annotation.Scope;
@ -25,6 +26,7 @@ import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado; import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPe; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPe;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBpeNumeracaoReuso;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPeRejeitadoEnvioContingencia; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPeRejeitadoEnvioContingencia;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
@ -100,6 +102,7 @@ public class RelatorioBPeController extends MyGenericForwardComposer {
filtro.append("UF: "); filtro.append("UF: ");
String estadosIds = ""; String estadosIds = "";
String UFs = ""; String UFs = "";
String empresasIds = "";
List<Object> lsEstadosSelecionados = estadoList.getItensSelecionados(); List<Object> lsEstadosSelecionados = estadoList.getItensSelecionados();
if (!lsEstadosSelecionados.isEmpty()) { if (!lsEstadosSelecionados.isEmpty()) {
@ -119,14 +122,29 @@ public class RelatorioBPeController extends MyGenericForwardComposer {
filtro.append(UFs).append(";"); filtro.append(UFs).append(";");
filtro.append("Empresa: "); filtro.append("Empresa: ");
if (cmbEmpresa.getSelectedItem() == null && rdbGroup.getSelectedItem().getValue().equals("NR")) {
for (int i = 0; i < lsEmpresa.size(); i++) {
Empresa empresa = (Empresa) lsEmpresa.get(i);
if(!BooleanUtils.toBoolean(empresa.getIndReaproveitarNumBPeRejeitado())){
empresasIds = empresasIds + empresa.getEmpresaId() + ",";
}
}
empresasIds = empresasIds.substring(0, empresasIds.length() - 1);
parametros.put("EMPRESA_ID", empresasIds);
filtro.append(" Todas; ");
}else{
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem(); Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) { if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue(); Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId()); parametros.put("EMPRESA_ID", String.valueOf(empresa.getEmpresaId()));
filtro.append(empresa.getNombempresa()).append(";"); filtro.append(empresa.getNombempresa()).append(";");
} else { } else {
filtro.append(" Todas; "); filtro.append(" Todas; ");
} }
}
filtro.append(" Status: ").append(rdbGroup.getSelectedItem().getLabel()).append("; "); filtro.append(" Status: ").append(rdbGroup.getSelectedItem().getLabel()).append("; ");
parametros.put("STATUS", rdbGroup.getSelectedItem().getValue()); parametros.put("STATUS", rdbGroup.getSelectedItem().getValue());
@ -151,7 +169,10 @@ public class RelatorioBPeController extends MyGenericForwardComposer {
Relatorio relatorio = null; Relatorio relatorio = null;
if(rdbGroup.getSelectedItem().getValue().equals("RC") || rdbGroup.getSelectedItem().getValue().equals("R")) { if(rdbGroup.getSelectedItem().getValue().equals("RC") || rdbGroup.getSelectedItem().getValue().equals("R")) {
relatorio = new RelatorioBPeRejeitadoEnvioContingencia(parametros, dataSourceRead.getConnection()); relatorio = new RelatorioBPeRejeitadoEnvioContingencia(parametros, dataSourceRead.getConnection());
} else { } else if(rdbGroup.getSelectedItem().getValue().equals("NR")) {
relatorio = new RelatorioBpeNumeracaoReuso(parametros, dataSourceRead.getConnection());
}
else {
relatorio = new RelatorioBPe(parametros, dataSourceRead.getConnection()); relatorio = new RelatorioBPe(parametros, dataSourceRead.getConnection());
} }
@ -163,7 +184,29 @@ public class RelatorioBPeController extends MyGenericForwardComposer {
} }
private boolean validar() { private boolean validar() {
try { try {
if(rdbGroup.getSelectedItem().getValue().equals("NR")){
if (cmbEmpresa.getSelectedItem() != null) {
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
if(BooleanUtils.toBoolean(empresa.getIndReaproveitarNumBPeRejeitado())){
Messagebox.show(Labels.getLabel("relatorioBPeController.MSG.NaoPermitirReusoBPE"),
Labels.getLabel("relatorioBPeController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
return false;
}
}
}
if(rdbGroup.getSelectedItem().getValue().equals("T")){
List<Object> lsEstadosSelecionados = estadoList.getItensSelecionados();
if ((lsEstadosSelecionados.isEmpty()) || (!lsEstadosSelecionados.isEmpty() && lsEstadosSelecionados.size() > 1)) {
Messagebox.show(Labels.getLabel("relatorioBPeController.MSG.NaoPermitirTodasOpcoesEstado"),
Labels.getLabel("relatorioBPeController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
return false;
}
}
txtChBpe.getValue(); txtChBpe.getValue();
txtNumBpe.getValue(); txtNumBpe.getValue();

View File

@ -1,5 +1,6 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -15,6 +16,7 @@ import org.zkoss.zul.Datebox;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBaixasVendasInternet; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBaixasVendasInternet;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBaixasVendasInternetSintetico; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBaixasVendasInternetSintetico;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@ -33,20 +35,32 @@ public class RelatorioBaixasVendasInternetController extends MyGenericForwardCom
public void onClick$btnExecutarRelatorio(Event ev) throws Exception { public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
Map<String, Object> args = new HashMap<String, Object>(); Map<String, Object> args = new HashMap<String, Object>();
String title = null;
PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue(); PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
Date datInicial = null;
if (this.fecInicio.getValue() != null) {
datInicial = DateUtil.inicioFecha(this.fecInicio.getValue());
}
Date datFinal = null;
if (this.fecFinal.getValue() != null) {
datFinal = DateUtil.fimFecha(this.fecFinal.getValue());
}
if (puntoVenta != null && puntoVenta.getPuntoventaId() != null && puntoVenta.getPuntoventaId() != -1) { if (puntoVenta != null && puntoVenta.getPuntoventaId() != null && puntoVenta.getPuntoventaId() != -1) {
RelatorioBaixasVendasInternet relatorio = new RelatorioBaixasVendasInternet(dataSourceRead.getConnection(), fecInicio.getValue(), fecFinal.getValue(), puntoVenta); RelatorioBaixasVendasInternet relatorio = new RelatorioBaixasVendasInternet(dataSourceRead.getConnection(), datInicial, datFinal, puntoVenta);
args.put("relatorio", relatorio); args.put("relatorio", relatorio);
openWindow("/component/reportView.zul", title = Labels.getLabel("indexController.mniRelatorioBaixasVendasInternet.label");
Labels.getLabel("indexController.mniRelatorioBaixasVendasInternet.label"), args, MODAL);
} else { } else {
// criar o relatorio sintetico com a outra consulta // criar o relatorio sintetico com a outra consulta
RelatorioBaixasVendasInternetSintetico relatorio = new RelatorioBaixasVendasInternetSintetico(dataSourceRead.getConnection(), fecInicio.getValue(), fecFinal.getValue()); RelatorioBaixasVendasInternetSintetico relatorio = new RelatorioBaixasVendasInternetSintetico(dataSourceRead.getConnection(), datInicial, datFinal);
args.put("relatorio", relatorio); args.put("relatorio", relatorio);
openWindow("/component/reportView.zul", title = Labels.getLabel("indexController.mniRelatorioBaixasVendasInternetSintetico.label");
Labels.getLabel("indexController.mniRelatorioBaixasVendasInternetSintetico.label"), args, MODAL);
} }
openWindow("/component/reportView.zul", title, args, MODAL);
} }
} }

View File

@ -27,6 +27,7 @@ import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.Usuario; import com.rjconsultores.ventaboletos.entidad.Usuario;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCheckin; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCheckin;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@ -52,10 +53,11 @@ public class RelatorioCheckinController extends MyGenericForwardComposer {
private transient PagedListWrapper<Usuario> plwUsuario; private transient PagedListWrapper<Usuario> plwUsuario;
private MyListbox usuarioList; private MyListbox usuarioList;
private MyListbox usuarioSelList; private MyListbox usuarioSelList;
private MyComboboxParada cmbParadaOrigem; private MyComboboxParada cmbParadaOrigem;
private MyComboboxParadaCve cmbParadaOrigemCve; private MyComboboxParadaCve cmbParadaOrigemCve;
@Autowired @Autowired
private DataSource dataSourceRead; private DataSource dataSourceRead;
@ -133,7 +135,10 @@ public class RelatorioCheckinController extends MyGenericForwardComposer {
parametros.put("DATA_FINAL", datFinal.getValue()); parametros.put("DATA_FINAL", datFinal.getValue());
parametros.put("ORIGEN_ID", origenId); parametros.put("ORIGEN_ID", origenId);
parametros.put("ORIGEN", origen); parametros.put("ORIGEN", origen);
parametros.put("NOME_RELATORIO", Labels.getLabel("indexController.mniRelatorioCheckin.label")); parametros.put("nombUsuario", UsuarioLogado.getUsuarioLogado().getNombusuario().toString());
String nomeRelatorio = Labels.getLabel("indexController.mniRelatorioCheckin.label");
parametros.put("NOME_RELATORIO", nomeRelatorio);
String usuariosIds = ""; String usuariosIds = "";
for (int i = 0; i < lsUsuariosSelecionados.size(); i++) { for (int i = 0; i < lsUsuariosSelecionados.size(); i++) {

View File

@ -21,10 +21,12 @@ import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Categoria; import com.rjconsultores.ventaboletos.entidad.Categoria;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import com.rjconsultores.ventaboletos.entidad.Ruta; import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.exception.BusinessException;
import com.rjconsultores.ventaboletos.service.CategoriaService; import com.rjconsultores.ventaboletos.service.CategoriaService;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
import com.rjconsultores.ventaboletos.service.RelatorioAgepanService; import com.rjconsultores.ventaboletos.service.RelatorioAgepanService;
import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
@ -48,6 +50,8 @@ public class RelatorioGratuidadeAGEPANController extends MyGenericForwardCompose
private RutaService rutaService; private RutaService rutaService;
@Autowired @Autowired
private RelatorioAgepanService relatorioAgepanService; private RelatorioAgepanService relatorioAgepanService;
@Autowired
private OrgaoConcedenteService orgaoConcedenteService;
private Datebox datInicialVenda; private Datebox datInicialVenda;
private Datebox datFinalVenda; private Datebox datFinalVenda;
@ -64,6 +68,8 @@ public class RelatorioGratuidadeAGEPANController extends MyGenericForwardCompose
private List<Categoria> listSelectedTipoGratuidade; private List<Categoria> listSelectedTipoGratuidade;
private Integer orgaoConcendenteAgepan =null;
public void onClick$btnRemoveTipoGratuidade(Event ev) throws InterruptedException { public void onClick$btnRemoveTipoGratuidade(Event ev) throws InterruptedException {
Categoria categoria = (Categoria) selectedTipoGratuidadeList.getSelectedItem().getValue(); Categoria categoria = (Categoria) selectedTipoGratuidadeList.getSelectedItem().getValue();
listSelectedTipoGratuidade.remove(categoria); listSelectedTipoGratuidade.remove(categoria);
@ -195,6 +201,8 @@ public class RelatorioGratuidadeAGEPANController extends MyGenericForwardCompose
parametros.put("nomb_empresa", "Todas" ); parametros.put("nomb_empresa", "Todas" );
} }
parametros.put("orgaoConcendenteAgepanId", orgaoConcendenteAgepan );
try { try {
InputStream arquivo = relatorioAgepanService.gerarArquivoGratuidadeAgepan(parametros); InputStream arquivo = relatorioAgepanService.gerarArquivoGratuidadeAgepan(parametros);
@ -221,6 +229,13 @@ public class RelatorioGratuidadeAGEPANController extends MyGenericForwardCompose
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);
List<OrgaoConcedente> lsOrgaosConcedentes = orgaoConcedenteService.buscar("%AGEPAN%");
if (lsOrgaosConcedentes.isEmpty()) {
Messagebox.show(Labels.getLabel("MSG.Error").concat(" - ").concat("Orgão Concendente AGEPAN não cadastrado"),
Labels.getLabel("relatorioGratuidadeAGEPANController.window.title"),
Messagebox.OK, Messagebox.ERROR);
} else {
orgaoConcendenteAgepan = lsOrgaosConcedentes.get(0).getOrgaoConcedenteId();
lsEmpresas = empresaService.obtenerTodos(); lsEmpresas = empresaService.obtenerTodos();
lsCategorias = categoriaService.obtenerTodos(); lsCategorias = categoriaService.obtenerTodos();
listSelectedTipoGratuidade = new ArrayList<Categoria>(); listSelectedTipoGratuidade = new ArrayList<Categoria>();
@ -228,6 +243,7 @@ public class RelatorioGratuidadeAGEPANController extends MyGenericForwardCompose
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario()); linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario()); linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
} }
}
public List<Categoria> getLsCategorias() { public List<Categoria> getLsCategorias() {
return lsCategorias; return lsCategorias;

View File

@ -38,6 +38,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchOb
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper; import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderClienteSimples; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderClienteSimples;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioLinhaHorario; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioLinhaHorario;
import com.trg.search.Filter;
@Controller("relatorioGratuidadeAGRController") @Controller("relatorioGratuidadeAGRController")
@Scope("prototype") @Scope("prototype")
@ -108,22 +109,6 @@ public class RelatorioGratuidadeAGRController extends MyGenericForwardComposer {
linhaListSelList.addItemNovo(linhaList.getSelected()); linhaListSelList.addItemNovo(linhaList.getSelected());
} }
public MyListbox getSelectedTipoGratuidadeList() {
return selectedTipoGratuidadeList;
}
public void setSelectedTipoGratuidadeList(MyListbox selectedTipoGratuidadeList) {
this.selectedTipoGratuidadeList = selectedTipoGratuidadeList;
}
public List<Categoria> getListSelectedTipoGratuidade() {
return listSelectedTipoGratuidade;
}
public void setListSelectedTipoGratuidade(List<Categoria> listSelectedTipoGratuidade) {
this.listSelectedTipoGratuidade = listSelectedTipoGratuidade;
}
private void executarPesquisaLinha() { private void executarPesquisaLinha() {
String palavraPesquisaRuta = txtPalavraPesquisaLinha.getText(); String palavraPesquisaRuta = txtPalavraPesquisaLinha.getText();
@ -263,7 +248,11 @@ public class RelatorioGratuidadeAGRController extends MyGenericForwardComposer {
HibernateSearchObject<Cliente> clienteBusqueda = HibernateSearchObject<Cliente> clienteBusqueda =
new HibernateSearchObject<Cliente>(Cliente.class, pagingCliente.getPageSize()); new HibernateSearchObject<Cliente>(Cliente.class, pagingCliente.getPageSize());
if(txtCliente.getValue() != null && !txtCliente.getValue().equals("") ){ if(txtCliente.getValue() != null && !txtCliente.getValue().equals("") ){
clienteBusqueda.addFilterILike("nombcliente", txtCliente.getValue() + "%"); Filter filterNome = new Filter("nombcliente", txtCliente.getValue() + "%", Filter.OP_ILIKE);
Filter filterCpf = new Filter("numIdentificaUno", txtCliente.getValue() + "%", Filter.OP_ILIKE);
Filter filterCpf2 = new Filter("numIdentificaDos", txtCliente.getValue() + "%", Filter.OP_ILIKE);
clienteBusqueda.addFilterOr( filterNome, filterCpf, filterCpf2 );
clienteBusqueda.addFilterEqual("activo", Boolean.TRUE); clienteBusqueda.addFilterEqual("activo", Boolean.TRUE);
clienteBusqueda.addSortAsc("nombcliente"); clienteBusqueda.addSortAsc("nombcliente");
@ -391,4 +380,20 @@ public class RelatorioGratuidadeAGRController extends MyGenericForwardComposer {
this.pagingCliente = pagingCliente; this.pagingCliente = pagingCliente;
} }
public MyListbox getSelectedTipoGratuidadeList() {
return selectedTipoGratuidadeList;
}
public void setSelectedTipoGratuidadeList(MyListbox selectedTipoGratuidadeList) {
this.selectedTipoGratuidadeList = selectedTipoGratuidadeList;
}
public List<Categoria> getListSelectedTipoGratuidade() {
return listSelectedTipoGratuidade;
}
public void setListSelectedTipoGratuidade(List<Categoria> listSelectedTipoGratuidade) {
this.listSelectedTipoGratuidade = listSelectedTipoGratuidade;
}
} }

View File

@ -214,9 +214,9 @@ public class RelatorioPassageirosViajarController extends MyGenericForwardCompos
parametros.put("DATA_INICIO", datInicial.getValue()); parametros.put("DATA_INICIO", datInicial.getValue());
parametros.put("DATA_FINAL", datFinal.getValue()); parametros.put("DATA_FINAL", datFinal.getValue());
String passagemAberta = ""; String passagemAberta = " and (cj.feccorrida is null and cj.corrida_id is null) ";
if (!chkPassageiroAberto.isChecked()) { if (!chkPassageiroAberto.isChecked()) {
passagemAberta = "T"; passagemAberta = " and (cj.feccorrida is not null and cj.corrida_id is not null) ";
} }
parametros.put("PASSAGEM_ABERTA", passagemAberta); parametros.put("PASSAGEM_ABERTA", passagemAberta);
Empresa e = (Empresa) cmbEmpresa.getSelectedItem().getValue(); Empresa e = (Empresa) cmbEmpresa.getSelectedItem().getValue();

View File

@ -1,6 +1,5 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.Calendar;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -124,16 +123,13 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
ex.printStackTrace(); ex.printStackTrace();
} }
} else } else {
{
Relatorio relatorio; Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder(); StringBuilder filtro = new StringBuilder();
if (null != txtCorridaId.getValue() && !("".equals(txtCorridaId.getValue()))) if (null != txtCorridaId.getValue() && !("".equals(txtCorridaId.getValue()))){
{
filtro.append("Serviço: "); filtro.append("Serviço: ");
filtro.append(txtCorridaId.getValue() + "; "); filtro.append(txtCorridaId.getValue() + "; ");
parametros.put("CORRIDA_ID", txtCorridaId.getValue()); parametros.put("CORRIDA_ID", txtCorridaId.getValue());
@ -142,19 +138,6 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
parametros.put("CORRIDA_ID", null); parametros.put("CORRIDA_ID", null);
} }
filtro.append("Início período: ");
Calendar cal = Calendar.getInstance();
cal.setTime(datInicial.getValue());
filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR) + "; ");
filtro.append("Fim período: ");
cal.setTime(datFinal.getValue());
filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR) + "; ");
parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue()); parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue());
parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue()); parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue());
@ -164,8 +147,7 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
if (origem.getParadaId() != -1) { if (origem.getParadaId() != -1) {
parametros.put("ORIGEN_ID", origem.getParadaId()); parametros.put("ORIGEN_ID", origem.getParadaId());
filtro.append("Origem: " + origem.getCveparada() + "; "); filtro.append("Origem: " + origem.getCveparada() + "; ");
} } else {
else {
parametros.put("ORIGEN_ID", null); parametros.put("ORIGEN_ID", null);
filtro.append("Origem: Todas; "); filtro.append("Origem: Todas; ");
} }
@ -177,8 +159,7 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
Comboitem cbiDestino = cmbParadaDestino.getSelectedItem(); Comboitem cbiDestino = cmbParadaDestino.getSelectedItem();
if (cbiDestino != null) { if (cbiDestino != null) {
Parada destino = (Parada) cbiDestino.getValue(); Parada destino = (Parada) cbiDestino.getValue();
if (destino.getParadaId() != -1) if (destino.getParadaId() != -1) {
{
parametros.put("DESTINO_ID", destino.getParadaId()); parametros.put("DESTINO_ID", destino.getParadaId());
filtro.append("Destino: " + destino.getCveparada() + "; "); filtro.append("Destino: " + destino.getCveparada() + "; ");
} else { } else {
@ -206,8 +187,7 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
if (clase.getClaseservicioId() == -1) { if (clase.getClaseservicioId() == -1) {
parametros.put("CLASESERVICIO_ID", ""); parametros.put("CLASESERVICIO_ID", "");
filtro.append("Classe: " + clase.getDescclase() + "; "); filtro.append("Classe: " + clase.getDescclase() + "; ");
} } else {
else {
parametros.put("CLASESERVICIO_ID", clase.getClaseservicioId()); parametros.put("CLASESERVICIO_ID", clase.getClaseservicioId());
} }
filtro.append("Classe: " + clase.getDescclase() + "; "); filtro.append("Classe: " + clase.getDescclase() + "; ");

View File

@ -28,6 +28,7 @@ import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta; import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.entidad.Usuario; import com.rjconsultores.ventaboletos.entidad.Usuario;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasCartoes; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasCartoes;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasCartoesAlternativo;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService; import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.utilerias.DateUtil; import com.rjconsultores.ventaboletos.utilerias.DateUtil;
@ -40,7 +41,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject; import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper; import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVentaSimple;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTipoPuntoVenta; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTipoPuntoVenta;
import com.trg.search.Filter; import com.trg.search.Filter;
@ -89,14 +89,13 @@ public class RelatorioVendasCartoesController extends MyGenericForwardComposer {
* *
*/ */
@SuppressWarnings({ "rawtypes", "unchecked" }) @SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception { private void executarRelatorio(boolean isLayoutAlternatico) throws Exception {
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
if (dataInicial.getValue() == null) {
if(dataInicial.getValue() == null){
return; return;
} }
if(dataFinal.getValue() == null){ if (dataFinal.getValue() == null) {
return; return;
} }
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioVendasCartoesController.window.title")); parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioVendasCartoesController.window.title"));
@ -124,7 +123,7 @@ public class RelatorioVendasCartoesController extends MyGenericForwardComposer {
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem(); Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) { if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue(); Empresa empresa = (Empresa) itemEmpresa.getValue();
if(empresa.getEmpresaId() > -1) { if (empresa.getEmpresaId() > -1) {
parametros.put("EMPRESA", empresa); parametros.put("EMPRESA", empresa);
parametros.put("NOME_EMPRESA", empresa.getNombempresa()); parametros.put("NOME_EMPRESA", empresa.getNombempresa());
filtro.append(empresa.getNombempresa()); filtro.append(empresa.getNombempresa());
@ -134,48 +133,56 @@ public class RelatorioVendasCartoesController extends MyGenericForwardComposer {
} else { } else {
filtro.append("Todas"); filtro.append("Todas");
} }
Comboitem itemPuntoVenta = cmbPuntoVenta.getSelectedItem(); Comboitem itemPuntoVenta = cmbPuntoVenta.getSelectedItem();
if (itemPuntoVenta != null) { if (itemPuntoVenta != null) {
PuntoVenta puntoVenta = (PuntoVenta) itemPuntoVenta.getValue(); PuntoVenta puntoVenta = (PuntoVenta) itemPuntoVenta.getValue();
if(puntoVenta.getPuntoventaId() > -1) { if (puntoVenta.getPuntoventaId() > -1) {
parametros.put("PUNTOVENTA", puntoVenta); parametros.put("PUNTOVENTA", puntoVenta);
parametros.put("NOME_AGENCIA", puntoVenta.getNombpuntoventa()); parametros.put("NOME_AGENCIA", puntoVenta.getNombpuntoventa());
} else { } else {
parametros.put("NOME_AGENCIA", "Todas"); parametros.put("NOME_AGENCIA", "Todas");
} }
}else { } else {
parametros.put("NOME_AGENCIA", "Todas"); parametros.put("NOME_AGENCIA", "Todas");
} }
Comboitem cbiUsuario = cmbUsuario.getSelectedItem(); Comboitem cbiUsuario = cmbUsuario.getSelectedItem();
if (cbiUsuario != null) { if (cbiUsuario != null) {
Usuario usuario = (Usuario) cbiUsuario.getValue(); Usuario usuario = (Usuario) cbiUsuario.getValue();
if(usuario.getUsuarioId() > -1) { if (usuario.getUsuarioId() > -1) {
parametros.put("USUARIO", usuario); parametros.put("USUARIO", usuario);
parametros.put("NOME_USUARIO", usuario.getNombUsuarioCompleto()); parametros.put("NOME_USUARIO", usuario.getNombUsuarioCompleto());
} else { } else {
parametros.put("NOME_USUARIO", "Todos"); parametros.put("NOME_USUARIO", "Todos");
} }
}else { } else {
parametros.put("NOME_USUARIO", "Todos"); parametros.put("NOME_USUARIO", "Todos");
} }
Comboitem itemEstacion = cmbEstacion.getSelectedItem(); Comboitem itemEstacion = cmbEstacion.getSelectedItem();
if (itemEstacion != null) { if (itemEstacion != null) {
Estacion estacion = (Estacion) itemEstacion.getValue(); Estacion estacion = (Estacion) itemEstacion.getValue();
if(estacion.getEstacionId() > -1) { if (estacion.getEstacionId() > -1) {
parametros.put("ESTACION", estacion); parametros.put("ESTACION", estacion);
parametros.put("ESTACAO", estacion.getDescestacion()); parametros.put("ESTACAO", estacion.getDescestacion());
} } else {
else {
parametros.put("ESTACAO", "Todas"); parametros.put("ESTACAO", "Todas");
} }
}else { } else {
parametros.put("ESTACAO", "Todas"); parametros.put("ESTACAO", "Todas");
} }
parametros.put("DATA_INICIAL", DateUtil.getStringDate(dataInicial.getValue(), "dd/MM/yyyy")); parametros.put("DATA_INICIAL", DateUtil.getStringDate(dataInicial.getValue(), "dd/MM/yyyy"));
parametros.put("DATA_FINAL", DateUtil.getStringDate(dataFinal.getValue(), "dd/MM/yyyy")); parametros.put("DATA_FINAL", DateUtil.getStringDate(dataFinal.getValue(), "dd/MM/yyyy"));
parametros.put("FILTROS", filtro.toString()); parametros.put("FILTROS", filtro.toString());
Relatorio relatorio = new RelatorioVendasCartoes(parametros, dataSourceRead.getConnection(), radioDataVenda.isSelected()); Relatorio relatorio = null;
if (isLayoutAlternatico) {
relatorio = new RelatorioVendasCartoesAlternativo(parametros, dataSourceRead.getConnection(), radioDataVenda.isSelected());
} else {
relatorio = new RelatorioVendasCartoes(parametros, dataSourceRead.getConnection(), radioDataVenda.isSelected());
}
Map args = new HashMap(); Map args = new HashMap();
args.put("relatorio", relatorio); args.put("relatorio", relatorio);
@ -184,7 +191,6 @@ public class RelatorioVendasCartoesController extends MyGenericForwardComposer {
Labels.getLabel("relatorioVendasCartoesController.window.title"), args, MODAL); Labels.getLabel("relatorioVendasCartoesController.window.title"), args, MODAL);
} }
public void onClick$btnPesquisa(Event ev) { public void onClick$btnPesquisa(Event ev) {
executarPesquisa(); executarPesquisa();
} }
@ -211,27 +217,26 @@ public class RelatorioVendasCartoesController extends MyGenericForwardComposer {
} }
} }
} }
public void onClick$btnExecutarRelatorio(Event ev) throws Exception{
executarRelatorio(); public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio(false);
}
public void onClick$btnExecutarRelatorioAlternativo(Event ev) throws Exception {
executarRelatorio(true);
} }
public void onDoubleClick$tipoPuntoVentaList(Event ev) { public void onDoubleClick$tipoPuntoVentaList(Event ev) {
TipoPuntoVenta puntoVentaSel = (TipoPuntoVenta) tipoPuntoVentaList.getSelected(); TipoPuntoVenta puntoVentaSel = (TipoPuntoVenta) tipoPuntoVentaList.getSelected();
tipoPuntoVentaSelList.addItemNovo(puntoVentaSel); tipoPuntoVentaSelList.addItemNovo(puntoVentaSel);
} }
public void onDoubleClick$tipoPuntoVentaSelList(Event ev) { public void onDoubleClick$tipoPuntoVentaSelList(Event ev) {
TipoPuntoVenta puntoVentaSel = (TipoPuntoVenta) tipoPuntoVentaSelList.getSelected(); TipoPuntoVenta puntoVentaSel = (TipoPuntoVenta) tipoPuntoVentaSelList.getSelected();
tipoPuntoVentaSelList.removeItem(puntoVentaSel); tipoPuntoVentaSelList.removeItem(puntoVentaSel);
} }
private void limparPesquisaTipoAgencia() { private void limparPesquisaTipoAgencia() {
tipoPuntoVentaList.clearSelection(); tipoPuntoVentaList.clearSelection();
lsTipoPuntoVenta.clear(); lsTipoPuntoVenta.clear();
this.bbPesquisaPuntoVenta.setValue(""); this.bbPesquisaPuntoVenta.setValue("");
@ -245,7 +250,6 @@ public class RelatorioVendasCartoesController extends MyGenericForwardComposer {
limparPesquisaTipoAgencia(); limparPesquisaTipoAgencia();
} }
public void setDatInicial(Datebox datInicial) { public void setDatInicial(Datebox datInicial) {
this.dataInicial = datInicial; this.dataInicial = datInicial;
} }

View File

@ -160,7 +160,7 @@ public class RelatorioW2IController extends MyGenericForwardComposer {
List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData())); List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
if (lsPuntoVentaSelecionados.isEmpty()) { if (lsPuntoVentaSelecionados.isEmpty()) {
puntoVentas = "Todas"; puntoVentas = "Todas";
puntoVentaIds = "Todas"; puntoVentaIds = "-1";
} else { } else {
for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) { for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) {
PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i); PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i);

View File

@ -2,8 +2,13 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -13,11 +18,18 @@ import org.zkoss.util.resource.Labels;
import org.zkoss.zhtml.Messagebox; import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox; import org.zkoss.zul.Datebox;
import org.zkoss.zul.Paging; import org.zkoss.zul.Paging;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.LogAuditoria; import com.rjconsultores.ventaboletos.entidad.LogAuditoria;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPe;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPeRejeitadoEnvioContingencia;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBpeNumeracaoReuso;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioLogAuditoria;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.LogAuditoriaService; import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
import com.rjconsultores.ventaboletos.utilerias.DateUtil; import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
@ -31,6 +43,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderLogAuditoria;
import com.trg.search.Filter; import com.trg.search.Filter;
import br.com.rjconsultores.auditador.enums.AuditadorTipoAlteracao; import br.com.rjconsultores.auditador.enums.AuditadorTipoAlteracao;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
@Controller("busquedaLogAuditoriaController") @Controller("busquedaLogAuditoriaController")
@Scope("prototype") @Scope("prototype")
@ -63,6 +76,8 @@ public class BusquedaLogAuditoriaController extends MyGenericForwardComposer {
private MyTextbox txtValorNovo; private MyTextbox txtValorNovo;
private MyTextbox txtValorAnterior; private MyTextbox txtValorAnterior;
private MyTextbox txtIdAuditado; private MyTextbox txtIdAuditado;
@Autowired
private DataSource dataSourceRead;
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
@ -79,7 +94,7 @@ public class BusquedaLogAuditoriaController extends MyGenericForwardComposer {
return lsEmpresa; return lsEmpresa;
} }
private void refreshLista() { private void refreshLista(boolean isGerarRelatorio) throws Exception {
HibernateSearchObject<LogAuditoria> sistemaBusqueda = new HibernateSearchObject<LogAuditoria>(LogAuditoria.class, pagingLogAuditoria.getPageSize()); HibernateSearchObject<LogAuditoria> sistemaBusqueda = new HibernateSearchObject<LogAuditoria>(LogAuditoria.class, pagingLogAuditoria.getPageSize());
Date dataInicio = dtInicio.getValue(); Date dataInicio = dtInicio.getValue();
@ -134,20 +149,89 @@ public class BusquedaLogAuditoriaController extends MyGenericForwardComposer {
sistemaBusqueda.addFilterEqual("activo", Boolean.TRUE); sistemaBusqueda.addFilterEqual("activo", Boolean.TRUE);
plwLogAuditoria.init(sistemaBusqueda, logAuditoriaList, pagingLogAuditoria); plwLogAuditoria.init(sistemaBusqueda, logAuditoriaList, pagingLogAuditoria);
if (logAuditoriaList.getData().length == 0) { if (logAuditoriaList.getData().length == 0) {
if(isGerarRelatorio){
throw new Exception(Labels.getLabel("MSG.ningunRegistroRelatorio"));
}else{
try { try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),Labels.getLabel("busquedaLogAuditoriaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
Labels.getLabel("busquedaLogAuditoriaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
log.error("", ex); log.error("", ex);
} }
} }
}
} }
public void onClick$btnPesquisa(Event ev) { public void onClick$btnPesquisa(Event ev) throws Exception {
refreshLista(); refreshLista(false);
}
@SuppressWarnings("unchecked")
public void onClick$btnGerarRelatorio(Event ev) throws Exception {
try {
refreshLista(true);
} catch (Exception e) {
Messagebox.show(e.getMessage(), Labels.getLabel("busquedaLogAuditoriaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
return;
}
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
parametros.put("DATA_INICIAL", (java.util.Date) dtInicio.getValue());
parametros.put("DATA_FINAL", (java.util.Date) dtFim.getValue());
parametros.put("NOME_RELATORIO", Labels.getLabel("busquedaLogAuditoriaController.window.title"));
parametros.put("USUARIO_ID", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario());
filtro.append("Empresa: ");
Comboitem item = null;
if (cmbEmpresa.getSelectedItem() != null) {
item = cmbEmpresa.getSelectedItem();
if (item != null) {
Empresa empresa = (Empresa) item.getValue();
filtro.append(empresa.getNombempresa()).append(";");
}
} else {
filtro.append(" Todas; ");
}
if (cmbTela.getSelectedItem() != null) {
item = cmbTela.getSelectedItem();
if (item != null) {
filtro.append(cmbTela.getValue()).append(";");
}
} else {
filtro.append(" Todas; ");
}
if (cmbTipoAlteracao.getSelectedItem() != null) {
item = cmbTipoAlteracao.getSelectedItem();
if (item != null) {
filtro.append(cmbTipoAlteracao.getValue()).append(";");
}
} else {
filtro.append(" Todas; ");
}
parametros.put("FILTROS", filtro.toString());
Relatorio relatorio = null;
relatorio = new RelatorioLogAuditoria(parametros, dataSourceRead.getConnection(), logAuditoriaList.getListData());
@SuppressWarnings("rawtypes")
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul", Labels.getLabel("busquedaLogAuditoriaController.window.title"), args, MODAL);
} }
public List<AuditadorTipoAlteracao> getTipoAlteracaoList() { public List<AuditadorTipoAlteracao> getTipoAlteracaoList() {

View File

@ -97,8 +97,8 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
jobIntegracaoSap(); jobIntegracaoSap();
} }
executeFlyway(); // executeFlyway();
customToDatabase(); // customToDatabase();
imageToDatabase(); imageToDatabase();
} }
@ -112,7 +112,7 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
log.info("Executando Flyway..."); log.info("Executando Flyway...");
try{ /* try{
final Flyway flyway = new Flyway(); final Flyway flyway = new Flyway();
flyway.setDataSource(getDataSoure()); flyway.setDataSource(getDataSoure());
@ -125,7 +125,7 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
}catch(Throwable t){ }catch(Throwable t){
log.error("Erro ao executar o flyway",t); log.error("Erro ao executar o flyway",t);
} }
*/
log.info("Flyway executado."); log.info("Flyway executado.");
} }
@ -305,10 +305,10 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
log.info("Horario de integraçao com sap : " + hora[0] + ":" + hora[1]); log.info("Horario de integraçao com sap : " + hora[0] + ":" + hora[1]);
Trigger trigger = TriggerUtils.makeDailyTrigger("integracaoSapTrigger", hora[0], hora[1]); // Trigger trigger = TriggerUtils.makeDailyTrigger("integracaoSapTrigger", hora[0], hora[1]);
// TESTE TRIGGER // TESTE TRIGGER
// Trigger trigger = TriggerUtils.makeImmediateTrigger("integracaoSapTrigger", 1, 1000); Trigger trigger = TriggerUtils.makeImmediateTrigger("integracaoSapTrigger", 1, 1000);
trigger.setName("integracaoSapTrigger"); trigger.setName("integracaoSapTrigger");

View File

@ -1,39 +1,20 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad; package com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.xml.bind.DatatypeConverter;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpResponse;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.auth.BasicScheme;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.zkoss.util.resource.Labels; import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.util.Clients; import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Messagebox; import org.zkoss.zul.Messagebox;
import com.nimbusds.jose.JOSEException;
import com.nimbusds.jose.JWSAlgorithm;
import com.nimbusds.jose.JWSHeader;
import com.nimbusds.jose.JWSObject;
import com.nimbusds.jose.Payload;
import com.nimbusds.jose.crypto.MACSigner;
import com.nimbusds.jwt.JWTClaimsSet;
import com.rjconsultores.ventaboletos.service.ConstanteService; import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.web.utilerias.api.ApiCallRunnable;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext; import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
public class ItemMenuLimparCacheLocalidadesAPI extends DefaultItemMenuSistema { public class ItemMenuLimparCacheLocalidadesAPI extends DefaultItemMenuSistema {
private static Logger log = Logger.getLogger(ItemMenuLimparCacheLocalidadesAPI.class); private static Logger log = Logger.getLogger(ItemMenuLimparCacheLocalidadesAPI.class);
private static final String secret = "#KO&Fm4_k.sU9M8`6Mx'F\\\"H:*Qxu]6F4r,)JmZ2Jwafd)I.2[RET'1:)VQ6mG9,";
private static final int minutesExpireToken = 10;
public ItemMenuLimparCacheLocalidadesAPI() { public ItemMenuLimparCacheLocalidadesAPI() {
super("indexController.mniLimparCacheLocalidadesAPI.label"); super("indexController.mniLimparCacheLocalidadesAPI.label");
@ -75,10 +56,10 @@ public class ItemMenuLimparCacheLocalidadesAPI extends DefaultItemMenuSistema {
if (tenant != null) { if (tenant != null) {
url = url.replaceAll("\\[.*?\\]", ""); url = url.replaceAll("\\[.*?\\]", "");
} }
String urlOriginal = url; String urlBase = url;
url = montarUrlRequest(url); url = montarUrlRequest(url);
ThreadCache cache = new ThreadCache(url, tenant, urlOriginal); ApiCallRunnable cache = new ApiCallRunnable(url, tenant, urlBase);
Thread thread = new Thread(cache); Thread thread = new Thread(cache);
thread.start(); thread.start();
thread.join(); thread.join();
@ -115,104 +96,4 @@ public class ItemMenuLimparCacheLocalidadesAPI extends DefaultItemMenuSistema {
return constante == null ? null : constante.split("\\|"); return constante == null ? null : constante.split("\\|");
} }
private String getToken() throws JOSEException {
long ttlMillis = minutesExpireToken * 60000;
long nowMillis = System.currentTimeMillis();
long expMillis = nowMillis + ttlMillis;
JWTClaimsSet claims = new JWTClaimsSet.Builder()
.claim("sub", new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date()))
.claim("userId", "adm")
.claim("role", "ROLE_TOKEN")
.claim("exp", expMillis)
.build();
JWSObject jwsObject = new JWSObject(new JWSHeader(JWSAlgorithm.HS256),
new Payload(claims.toJSONObject()));
jwsObject.sign(new MACSigner(DatatypeConverter.parseBase64Binary(secret)));
return jwsObject.serialize();
}
public class ThreadCache implements Runnable {
private final String url;
private final String tenant;
private String retorno;
private String urlOriginal;
public String getUrl() {
return url;
}
public String getTenant() {
return tenant;
}
public String getRetorno() {
return retorno;
}
public void setRetorno(String retorno) {
this.retorno = retorno;
}
public String getUrlOriginal() {
return urlOriginal;
}
public void setUrlOriginal(String urlOriginal) {
this.urlOriginal = urlOriginal;
}
public ThreadCache(String url, String tenant, String urlOriginal) {
this.url = url;
this.tenant = tenant;
this.urlOriginal = urlOriginal;
}
public void run() {
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(url);
UsernamePasswordCredentials creds = null;
try {
creds = new UsernamePasswordCredentials("internal", getToken());
request.addHeader(new BasicScheme().authenticate(creds, request));
if (tenant != null) {
request.addHeader("x-tenant-id", tenant);
}
HttpResponse response = client.execute(request);
if (response != null && response.getStatusLine() != null) {
log.info(String.format(":: Response Status Code %d ::", response.getStatusLine().getStatusCode()));
}
Integer codigoRetorno = (response != null && response.getStatusLine() != null) ? response.getStatusLine().getStatusCode() : null;
retorno = montarMensagemRetorno(tenant, urlOriginal, codigoRetorno, null);
} catch (Exception e) {
retorno = montarMensagemRetorno(tenant, urlOriginal, null, e.getMessage());
log.error("Ocorreu um erro ao executar a requisição de limpar cache de localidade da API", e);
}
}
}
private String montarMensagemRetorno(String tenant, String url, Integer codigoRetorno, String mensagemErro) {
StringBuilder mensagemRetorno = new StringBuilder();
mensagemRetorno.append("ULR -> ").append(url).append("\n");
mensagemRetorno.append("tenant -> ").append(tenant).append("\n");
if (mensagemErro == null) {
mensagemRetorno.append("Resposta -> ").append((codigoRetorno != null && codigoRetorno.equals(200)) ? "Solicitação de limpeza de cache executada com sucesso, código " + codigoRetorno : "Erro ao enviar solicitação, código " + codigoRetorno);
} else {
mensagemRetorno.append("Resposta -> ").append(mensagemErro);
}
return mensagemRetorno.toString();
}
} }

View File

@ -148,7 +148,6 @@ analitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.MenuA
analitico.item=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.ItemMenuAnalitico analitico.item=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.ItemMenuAnalitico
analitico.gerenciais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.SubMenuGerenciais analitico.gerenciais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.SubMenuGerenciais
analitico.gerenciais.segundaVia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioSegundaVia analitico.gerenciais.segundaVia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioSegundaVia
analitico.gerenciais.relatorioBPe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPe
analitico.gerenciais.cadastroClientes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCadastroClientes analitico.gerenciais.cadastroClientes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCadastroClientes
analitico.gerenciais.historicoClientes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioHistoricoClientes analitico.gerenciais.historicoClientes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioHistoricoClientes
analitico.gerenciais.aidfDetalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAidfDetalhado analitico.gerenciais.aidfDetalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAidfDetalhado
@ -164,6 +163,9 @@ analitico.gerenciais.tabPreco=com.rjconsultores.ventaboletos.web.utilerias.menu.
analitico.gerenciais.trip=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemRelatorioTripulacao analitico.gerenciais.trip=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemRelatorioTripulacao
analitico.gerenciais.relatorioImpressaoPosterior=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioImpressaoPosterior analitico.gerenciais.relatorioImpressaoPosterior=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioImpressaoPosterior
analitico.gerenciais.relatorioHistoricoCompras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioPosicaoVendaBilheteIdoso analitico.gerenciais.relatorioHistoricoCompras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioPosicaoVendaBilheteIdoso
analitico.gerenciais.relatoriobpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.bpe.SubMenuRelatorioBpe
analitico.gerenciais.relatoriobpe.relatorioBPe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPe
analitico.gerenciais.relatoriobpe.BPeSubstituido=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPeSubstituido
analitico.gerenciais.operacionais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.operacionais.SubMenuRelatorioOperacionais analitico.gerenciais.operacionais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.operacionais.SubMenuRelatorioOperacionais
analitico.gerenciais.operacionais.aproveitamento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamento analitico.gerenciais.operacionais.aproveitamento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamento
analitico.gerenciais.operacionais.resumoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoLinhas analitico.gerenciais.operacionais.resumoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoLinhas
@ -262,6 +264,8 @@ analitico.integracion.integracaoAntiFraude=com.rjconsultores.ventaboletos.web.ut
analitico.integracion.bgm=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.integracion.bgm.SubMenuBgm analitico.integracion.bgm=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.integracion.bgm.SubMenuBgm
analitico.integracion.bgm.arquivo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioArquivoBGM analitico.integracion.bgm.arquivo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioArquivoBGM
analitico.integracion.bgm.erro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioErrosIntegracaoBGM analitico.integracion.bgm.erro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioErrosIntegracaoBGM
analitico.integracion.retornoBancario=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioRetornoBancario
analitico.integracion.cteos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCteos
analitico.integracion.receitasDespesasDiversas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioReceitasDespesasDiversas analitico.integracion.receitasDespesasDiversas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioReceitasDespesasDiversas
analitico.integracion.logReceitasDespesasDiversas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuLogReceitasDespesasDiversas analitico.integracion.logReceitasDespesasDiversas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuLogReceitasDespesasDiversas
analitico.integracion.exportacaoFiscal=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.impressaofiscal.SubMenuExportacaoFiscal analitico.integracion.exportacaoFiscal=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.impressaofiscal.SubMenuExportacaoFiscal
@ -300,7 +304,9 @@ seguridad.painelBpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.segur
seguridad.contingencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuContingencia seguridad.contingencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuContingencia
seguridad.reenvioBpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuReenvioBPe seguridad.reenvioBpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuReenvioBPe
seguridad.reenvioBpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuExtrairBPeXml seguridad.reenvioBpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuExtrairBPeXml
seguridad.limparCacheLocalidadesAPI=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuLimparCacheLocalidadesAPI seguridad.menuAPI=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.MenuAPI
seguridad.menuAPI.limparCacheLocalidadesAPI=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuLimparCacheLocalidadesAPI
seguridad.menuAPI.limparCacheEmbarcadaAPI=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuLimparCacheEmbarcadaAPI
seguridad.logAuditoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuLogAuditoria seguridad.logAuditoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuLogAuditoria
pasajerofrecuente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.MenuPasajeroFrecuente pasajerofrecuente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.MenuPasajeroFrecuente
pasajerofrecuente.cliente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuCliente pasajerofrecuente.cliente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuCliente

View File

@ -75,7 +75,7 @@ public class RenderConexion implements ListitemRenderer {
setStyle(lc, conexionConf); setStyle(lc, conexionConf);
lc.setParent(lstm); lc.setParent(lstm);
lc = new Listcell(conexion.getGrupo().toString()); lc = new Listcell(conexion.isBuscaAgruapada() ? " - " : conexion.getGrupo().toString());
setStyle(lc, conexionConf); setStyle(lc, conexionConf);
lc.setParent(lstm); lc.setParent(lstm);

Some files were not shown because too many files have changed in this diff Show More