Sincronização com trunk
parent
945bf825ef
commit
ed20d8286c
|
@ -0,0 +1,225 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
public class RelatorioBPeSubstituido extends Relatorio {
|
||||
|
||||
public RelatorioBPeSubstituido(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
|
||||
public void initDados() throws Exception {
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
String sql = getSql(parametros);
|
||||
|
||||
Date dtInicio = (Date) parametros.get("DATA_INICIO");
|
||||
Date dtFim = (Date) parametros.get("DATA_FIM");
|
||||
|
||||
NamedParameterStatement ps = new NamedParameterStatement(conexao, sql.toString());
|
||||
if(dtInicio != null && dtFim != null) {
|
||||
ps.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
||||
ps.setString("dataFinal", DateUtil.getStringDate(dtFim, "dd/MM/yyyy") + " 23:59:59");
|
||||
}
|
||||
|
||||
ps.setString("empresa_id", (String) parametros.get("EMPRESA_ID") );
|
||||
|
||||
ResultSet rset = ps.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("cod_origem_venda", rset.getString("cod_origem_venda"));
|
||||
dataResult.put("cod_destino_venda", rset.getString("cod_destino_venda"));
|
||||
dataResult.put("desc_origem_venda", rset.getString("desc_origem_venda"));
|
||||
dataResult.put("desc_destino_venda", rset.getString("desc_destino_venda"));
|
||||
dataResult.put("cod_origem_remarcado", rset.getString("cod_origem_remarcado"));
|
||||
dataResult.put("cod_destino_remarcado", rset.getString("cod_destino_remarcado"));
|
||||
dataResult.put("desc_origem_remarcado", rset.getString("desc_origem_remarcado"));
|
||||
dataResult.put("desc_destino_remarcado", rset.getString("desc_destino_remarcado"));
|
||||
dataResult.put("tpp_venda", rset.getBigDecimal("tpp_venda"));
|
||||
dataResult.put("tpp_remarcado", rset.getBigDecimal("tpp_remarcado"));
|
||||
dataResult.put("bilhete_venda", rset.getString("bilhete_venda"));
|
||||
dataResult.put("bilhete_remarcado", rset.getString("bilhete_remarcado"));
|
||||
dataResult.put("assento_venda", rset.getString("assento_venda"));
|
||||
dataResult.put("assento_remarcado", rset.getString("assento_remarcado"));
|
||||
dataResult.put("data_viagem", rset.getDate("data_viagem"));
|
||||
dataResult.put("data_viagem_remarcado", rset.getDate("data_viagem_remarcado"));
|
||||
dataResult.put("tarifa_venda", rset.getBigDecimal("tarifa_venda"));
|
||||
dataResult.put("tarifa_remarcado", rset.getBigDecimal("tarifa_remarcado"));
|
||||
dataResult.put("desconto_venda", rset.getBigDecimal("desconto_venda"));
|
||||
dataResult.put("multa", rset.getBigDecimal("multa"));
|
||||
dataResult.put("valor_passagem_venda", rset.getBigDecimal("valor_passagem_venda"));
|
||||
dataResult.put("valor_passagem_remarcado", rset.getBigDecimal("valor_passagem_remarcado"));
|
||||
dataResult.put("taxa_embarque_venda", rset.getBigDecimal("taxa_embarque_venda"));
|
||||
dataResult.put("taxa_embarque_remarcado", rset.getBigDecimal("taxa_embarque_remarcado"));
|
||||
dataResult.put("seguro_venda", rset.getBigDecimal("seguro_venda"));
|
||||
dataResult.put("seguro_remarcado", rset.getBigDecimal("seguro_remarcado"));
|
||||
dataResult.put("pedagio_venda", rset.getBigDecimal("pedagio_venda"));
|
||||
dataResult.put("pedagio_remarcado", rset.getBigDecimal("pedagio_remarcado"));
|
||||
dataResult.put("cliente_venda", rset.getString("cliente_venda"));
|
||||
dataResult.put("cliente_remarcado", rset.getString("cliente_remarcado"));
|
||||
dataResult.put("tipo_documento_venda", rset.getString("tipo_documento_venda"));
|
||||
dataResult.put("tipo_documento_remarcado", rset.getString("tipo_documento_remarcado"));
|
||||
dataResult.put("documento_venda", rset.getString("documento_venda"));
|
||||
dataResult.put("documento_remarcado", rset.getString("documento_remarcado"));
|
||||
dataResult.put("servico_venda", rset.getString("servico_venda"));
|
||||
dataResult.put("servico_remarcado", rset.getString("servico_remarcado"));
|
||||
dataResult.put("data_venda", rset.getDate("data_venda"));
|
||||
dataResult.put("data_remarcacao", rset.getDate("data_remarcacao"));
|
||||
dataResult.put("agencia_venda", rset.getString("agencia_venda"));
|
||||
dataResult.put("agencia_remarcado", rset.getString("agencia_remarcado"));
|
||||
dataResult.put("chbpe_original", rset.getString("chbpe_original"));
|
||||
dataResult.put("chbpe_remarcado", rset.getString("chbpe_remarcado"));
|
||||
dataResult.put("num_bpe_original", rset.getString("num_bpe_original"));
|
||||
dataResult.put("num_bpe_remarcado", rset.getString("num_bpe_remarcado"));
|
||||
dataResult.put("numserie_original", rset.getString("numserie_original"));
|
||||
dataResult.put("numserie_remarcado", rset.getString("numserie_remarcado"));
|
||||
dataResult.put("qrcode_original", rset.getString("qrcode_original"));
|
||||
dataResult.put("qrcode_remarcado", rset.getString("qrcode_remarcado"));
|
||||
dataResult.put("valor_total_venda", rset.getBigDecimal("valor_total_venda"));
|
||||
dataResult.put("valor_total_remarcado", rset.getBigDecimal("valor_total_remarcado"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSql(Map<String, Object> parametros) {
|
||||
|
||||
StringBuilder sql = new StringBuilder(1400);
|
||||
|
||||
String estados = (String) parametros.get("ESTADOS_ID");
|
||||
String empresaId = (String) parametros.get("EMPRESA_ID");
|
||||
String puntoVentaId = (String) parametros.get("PUNTOVENTA_ID");
|
||||
|
||||
sql.append(" SELECT ");
|
||||
sql.append(" origem.cveparada cod_origem_venda, ");
|
||||
sql.append(" destino.cveparada cod_destino_venda, ");
|
||||
sql.append(" origem.descparada desc_origem_venda, ");
|
||||
sql.append(" destino.descparada desc_destino_venda, ");
|
||||
sql.append(" po.cveparada cod_origem_remarcado, ");
|
||||
sql.append(" pd.cveparada cod_destino_remarcado, ");
|
||||
sql.append(" po.descparada desc_origem_remarcado, ");
|
||||
sql.append(" pd.descparada desc_destino_remarcado, ");
|
||||
sql.append(" coalesce(original.importetpp, 0) tpp_venda, ");
|
||||
sql.append(" coalesce(remarcado.importetpp, 0) tpp_remarcado, ");
|
||||
sql.append(" remarcado.numfoliosistema bilhete_remarcado, ");
|
||||
sql.append(" remarcado.fechorviaje data_viagem_remarcado, ");
|
||||
sql.append(" remarcado.numasiento assento_remarcado, ");
|
||||
sql.append(" original.numasiento assento_venda, ");
|
||||
sql.append(" original.numfoliosistema bilhete_venda, ");
|
||||
sql.append(" original.fechorviaje data_viagem, ");
|
||||
sql.append(" coalesce(original.preciobase, 0) tarifa_venda, ");
|
||||
sql.append(" coalesce(original.preciopricing, 0) desconto_venda, ");
|
||||
sql.append(" coalesce(original.preciopagado, 0) valor_passagem_venda, ");
|
||||
sql.append(" coalesce(remarcado.preciopagado, 0) valor_passagem_remarcado, ");
|
||||
sql.append(" coalesce(remarcado.preciobase, 0) tarifa_remarcado, ");
|
||||
sql.append(" coalesce(original.importetaxaembarque, 0) taxa_embarque_venda, ");
|
||||
sql.append(" coalesce(remarcado.importetaxaembarque, 0) taxa_embarque_remarcado, ");
|
||||
sql.append(" coalesce(original.importeseguro, 0) seguro_venda, ");
|
||||
sql.append(" coalesce(remarcado.importeseguro, 0) seguro_remarcado, ");
|
||||
sql.append(" coalesce(original.importepedagio, 0) pedagio_venda, ");
|
||||
sql.append(" coalesce(remarcado.importepedagio, 0) pedagio_remarcado, ");
|
||||
sql.append(" original.nombpasajero cliente_venda, ");
|
||||
sql.append(" remarcado.nombpasajero cliente_remarcado, ");
|
||||
sql.append(" original.desctipodoc tipo_documento_remarcado, ");
|
||||
sql.append(" remarcado.desctipodoc tipo_documento_venda, ");
|
||||
sql.append(" remarcado.descnumdoc documento_remarcado, ");
|
||||
sql.append(" original.descnumdoc documento_venda, ");
|
||||
sql.append(" original.corrida_id servico_venda, ");
|
||||
sql.append(" remarcado.corrida_id servico_remarcado, ");
|
||||
sql.append(" remarcado.fechorventa data_remarcacao, ");
|
||||
sql.append(" original.fechorventa data_venda, ");
|
||||
sql.append(" ptv.nombpuntoventa agencia_venda, ");
|
||||
sql.append(" ptr.nombpuntoventa agencia_remarcado, ");
|
||||
sql.append(" bpe.chbpe chbpe_original, ");
|
||||
sql.append(" original.num_bpe num_bpe_original, ");
|
||||
sql.append(" original.numserie_bpe numserie_original, ");
|
||||
sql.append(" bpe.qrcode qrcode_original, ");
|
||||
sql.append(" bper.chbpe chbpe_remarcado, ");
|
||||
sql.append(" remarcado.num_bpe num_bpe_remarcado, ");
|
||||
sql.append(" coalesce(remarcado.numserie_bpe, '1') numserie_remarcado, ");
|
||||
sql.append(" bper.qrcode qrcode_remarcado, ");
|
||||
sql.append(" ( select ");
|
||||
sql.append(" coalesce(impingreso, 0) ");
|
||||
sql.append(" FROM evento_extra ");
|
||||
sql.append(" WHERE boleto_id = remarcado.boleto_id ");
|
||||
sql.append(" ) AS multa, ");
|
||||
sql.append(" ( ");
|
||||
sql.append(" SELECT ");
|
||||
sql.append(" SUM(coalesce(bfpv.importe, 0)) ");
|
||||
sql.append(" FROM ");
|
||||
sql.append(" boleto_formapago bfpv ");
|
||||
sql.append(" WHERE ");
|
||||
sql.append(" bfpv.boleto_id = original.boleto_id ");
|
||||
sql.append(" AND bfpv.activo = 1 ");
|
||||
sql.append(" ) AS valor_total_venda, ");
|
||||
sql.append(" ( ");
|
||||
sql.append(" SELECT ");
|
||||
sql.append(" SUM(coalesce(bfpr.importe, 0)) ");
|
||||
sql.append(" FROM ");
|
||||
sql.append(" boleto_formapago bfpr ");
|
||||
sql.append(" WHERE ");
|
||||
sql.append(" bfpr.boleto_id = remarcado.boleto_id ");
|
||||
sql.append(" AND bfpr.activo = 1 ");
|
||||
sql.append(" ) AS valor_total_remarcado ");
|
||||
sql.append(" FROM ");
|
||||
sql.append(" bpe bpe ");
|
||||
sql.append(" INNER JOIN boleto original ON original.boleto_id = bpe.boleto_id AND bpe.activo = 1 ");
|
||||
sql.append(" INNER JOIN BPE bper on bper.bpesubstituicao_id = bpe.bpe_id and bper.activo = 1 ");
|
||||
sql.append(" INNER JOIN boleto remarcado ON remarcado.boleto_id = bper.boleto_id ");
|
||||
sql.append(" INNER JOIN parada origem ON origem.parada_id = original.origen_id ");
|
||||
sql.append(" INNER JOIN parada destino ON destino.parada_id = original.destino_id ");
|
||||
sql.append(" INNER JOIN parada po ON po.parada_id = remarcado.origen_id ");
|
||||
sql.append(" INNER JOIN parada pd ON pd.parada_id = remarcado.destino_id ");
|
||||
sql.append(" INNER JOIN punto_venta ptv ON ptv.puntoventa_id = original.puntoventa_id ");
|
||||
sql.append(" INNER JOIN punto_venta ptr ON ptr.puntoventa_id = remarcado.puntoventa_id ");
|
||||
sql.append(" INNER JOIN empresa e ON remarcado.empresacorrida_id = e.empresa_id ");
|
||||
sql.append(" INNER JOIN empresa ev ON original.empresacorrida_id = ev.empresa_id ");
|
||||
sql.append(" INNER JOIN ruta rr ON remarcado.ruta_id = rr.ruta_id ");
|
||||
sql.append(" INNER JOIN ruta ro ON original.ruta_id = ro.ruta_id ");
|
||||
sql.append(" ");
|
||||
sql.append(" WHERE ");
|
||||
sql.append(" bpe.CODSTAT IN ('100', '102') ");
|
||||
sql.append(" AND bper.BPE_ID IS NOT NULL ");
|
||||
|
||||
if (empresaId != null) {
|
||||
sql.append(" AND original.empresacorrida_id = :empresa_id ");
|
||||
}
|
||||
|
||||
if (puntoVentaId != null) {
|
||||
sql.append(" AND original.puntoventa_id IN ( " + puntoVentaId + " ) ");
|
||||
}
|
||||
|
||||
if (estados != null) {
|
||||
sql.append(" AND bpe.uf IN ( " + estados + " )");
|
||||
}
|
||||
|
||||
sql.append(" AND coalesce(original.fechorventa_h, original.fechorventa) >= to_date(:dataInicio, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
sql.append(" AND coalesce(original.fechorventa_h, original.fechorventa) <= to_date(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
sql.append(" ORDER BY ");
|
||||
sql.append(" agencia_remarcado, data_remarcacao ");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,146 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioBpeNumeracaoReusoBean;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioBpeNumeracaoReuso extends Relatorio {
|
||||
|
||||
private List<RelatorioBpeNumeracaoReusoBean> lsDadosRelatorio;
|
||||
|
||||
public RelatorioBpeNumeracaoReuso(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
|
||||
public void initDados() throws Exception {
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
String sql = getSql(parametros);
|
||||
|
||||
Date dtInicio = (Date) parametros.get("DATA_INICIO");
|
||||
Date dtFim = (Date) parametros.get("DATA_FIM");
|
||||
|
||||
NamedParameterStatement ps = new NamedParameterStatement(conexao, sql.toString());
|
||||
if(dtInicio != null && dtFim != null) {
|
||||
ps.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
||||
ps.setString("dataFinal", DateUtil.getStringDate(dtFim, "dd/MM/yyyy") + " 23:59:59");
|
||||
}
|
||||
|
||||
ResultSet rset = ps.executeQuery();
|
||||
lsDadosRelatorio = new ArrayList<RelatorioBpeNumeracaoReusoBean>();
|
||||
|
||||
while (rset.next()) {
|
||||
RelatorioBpeNumeracaoReusoBean bean = new RelatorioBpeNumeracaoReusoBean();
|
||||
bean.setEstado(rset.getString("estado"));
|
||||
bean.setSerieBPE(rset.getString("serieBPE"));
|
||||
bean.setNumeroBPE( rset.getInt("numeroBPE"));
|
||||
lsDadosRelatorio.add(bean);
|
||||
}
|
||||
buscarInicialFinalPorUf();
|
||||
setLsDadosRelatorio(lsDadosRelatorio);
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSql(Map<String, Object> parametros) {
|
||||
|
||||
|
||||
String estados = (String) parametros.get("ESTADOS_ID");
|
||||
String empresaId = (String) parametros.get("EMPRESA_ID");
|
||||
Date dtInicio = (Date) parametros.get("DATA_INICIO");
|
||||
Date dtFim = (Date) parametros.get("DATA_FIM");
|
||||
|
||||
String sql = getSql( estados, empresaId, dtInicio, dtFim);
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
private String getSql(String estados, String empresaId, Date dtInicio, Date dtFim) {
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
|
||||
sql.append("select tabela.estado as estado , tabela.serieBPE as serieBPE, to_number(tabela.numeroBPE) as numeroBPE, estadoId as estadoId from ( select (to_number(bol.num_bpe) + 1) as numeroBPE, BOL.NUMSERIE_BPE as serieBPE, E.NOMBESTADO as estado, e.estado_id as estadoId ");
|
||||
sql.append(" FROM BOLETO bol ");
|
||||
sql.append(" LEFT outer JOIN BOLETO r on bol.num_bpe + 1 = r.num_bpe ");
|
||||
sql.append(" inner join parada origem on origem.parada_id = bol.origen_id ");
|
||||
sql.append(" inner join ciudad cidade on cidade.ciudad_id = origem.ciudad_id ");
|
||||
sql.append(" inner join estado e on (e.estado_id = cidade.estado_id) ");
|
||||
if (empresaId != null) {
|
||||
sql.append(" AND bol.EMPRESACORRIDA_ID IN( " + empresaId + " ) ");
|
||||
}
|
||||
if (estados != null) {
|
||||
sql.append(" AND e.ESTADO_ID IN ( " + estados + " )");
|
||||
}
|
||||
sql.append(" and bol.fechorventa between to_date(:dataInicio,'dd/MM/yyyy hh24:mi:ss') and to_date(:dataFinal,'dd/MM/yyyy hh24:mi:ss') ");
|
||||
sql.append(" minus ");
|
||||
sql.append("select to_number(bol.num_bpe) as numeroBPE , BOL.NUMSERIE_BPE as serieBPE, E.NOMBESTADO as estado, e.estado_id as estadoId ");
|
||||
sql.append(" FROM BOLETO bol ");
|
||||
sql.append(" inner join parada origem on origem.parada_id = bol.origen_id ");
|
||||
sql.append(" inner join ciudad cidade on cidade.ciudad_id = origem.ciudad_id ");
|
||||
sql.append(" inner join estado e on (e.estado_id = cidade.estado_id) ");
|
||||
if (empresaId != null) {
|
||||
sql.append(" AND bol.EMPRESACORRIDA_ID IN( " + empresaId + " ) ");
|
||||
}
|
||||
if (estados != null) {
|
||||
sql.append(" AND e.ESTADO_ID IN ( " + estados + " )");
|
||||
}
|
||||
sql.append(" ) tabela ");
|
||||
sql.append(" group by tabela.estado, tabela.serieBPE, numeroBPE, estadoId ");
|
||||
sql.append(" ORDER BY tabela.estado, tabela.serieBPE, tabela.numeroBPE ASC ");
|
||||
return sql.toString();
|
||||
}
|
||||
public void setLsDadosRelatorio(List<RelatorioBpeNumeracaoReusoBean> lsDadosRelatorio) {
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
}
|
||||
private void buscarInicialFinalPorUf() {
|
||||
|
||||
String estado = "";
|
||||
List<Integer> bpes = new ArrayList<Integer>();
|
||||
Map<String, String> estados = converterListaParaMap(lsDadosRelatorio);
|
||||
|
||||
for (Map.Entry<String, String> entry : estados.entrySet()) {
|
||||
estado = entry.getValue();
|
||||
if(estado != null){
|
||||
for (RelatorioBpeNumeracaoReusoBean relatorio2 : lsDadosRelatorio) {
|
||||
if(estado.equals(relatorio2.getEstado())){
|
||||
bpes.add(relatorio2.getNumeroBPE());
|
||||
}
|
||||
}
|
||||
for (RelatorioBpeNumeracaoReusoBean relatorio2 : lsDadosRelatorio) {
|
||||
if(estado.equals(relatorio2.getEstado())){
|
||||
relatorio2.setFinalAutorizado(bpes.get(bpes.size()-1));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, String> converterListaParaMap(List<RelatorioBpeNumeracaoReusoBean> list) {
|
||||
Map<String, String> map = new HashMap<String,String>();
|
||||
for (RelatorioBpeNumeracaoReusoBean relatorio : list) {
|
||||
map.put(relatorio.getEstado(), relatorio.getEstado());
|
||||
}
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,160 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioCheckinAbertoBean;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioCheckinAberto extends Relatorio {
|
||||
|
||||
public static final String DATA_INICIO_SERVICO = "DATA_INICIO_SERVICO";
|
||||
public static final String DATA_FIM_SERVICO = "DATA_FIM_SERVICO";
|
||||
public static final String DATA_INICIO_ENCERRAMENTO = "DATA_INICIO_ENCERRAMENTO";
|
||||
public static final String DATA_FIM_ENCERRAMENTO = "DATA_FIM_ENCERRAMENTO";
|
||||
private List<RelatorioCheckinAbertoBean> lsDadosRelatorio;
|
||||
|
||||
public RelatorioCheckinAberto(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
String dataInicioServico = null;
|
||||
if (parametros.containsKey(DATA_INICIO_SERVICO)) {
|
||||
dataInicioServico = parametros.get(DATA_INICIO_SERVICO).toString() + " 00:00";
|
||||
}
|
||||
|
||||
String dataFimServico = null;
|
||||
if (parametros.containsKey(DATA_FIM_SERVICO)) {
|
||||
dataFimServico = parametros.get(DATA_FIM_SERVICO).toString() + " 23:59";
|
||||
}
|
||||
|
||||
String dataInicioEncerramento = null;
|
||||
if (parametros.containsKey(DATA_INICIO_ENCERRAMENTO)) {
|
||||
dataInicioEncerramento = parametros.get(DATA_INICIO_ENCERRAMENTO).toString() + " 00:00";
|
||||
}
|
||||
|
||||
String dataFimEncerramento = null;
|
||||
if (parametros.containsKey(DATA_FIM_ENCERRAMENTO)) {
|
||||
dataFimEncerramento = parametros.get(DATA_FIM_ENCERRAMENTO).toString() + " 23:59";
|
||||
}
|
||||
|
||||
Integer empresa_id = (Integer) parametros.get("empresa_id");
|
||||
Integer localidade_id = (Integer) parametros.get("localidade_id");
|
||||
|
||||
String sql = getSql(dataInicioServico, dataFimServico, dataInicioEncerramento, dataFimEncerramento, empresa_id, localidade_id);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||
|
||||
if (dataInicioServico != null && dataFimServico != null) {
|
||||
stmt.setString("dataInicioServico", dataInicioServico);
|
||||
stmt.setString("dataFimServico", dataFimServico);
|
||||
}
|
||||
|
||||
if (dataInicioEncerramento != null && dataFimEncerramento != null) {
|
||||
stmt.setString("dataInicioEncerramento", dataInicioEncerramento);
|
||||
stmt.setString("dataFimEncerramento", dataFimEncerramento);
|
||||
}
|
||||
|
||||
if (empresa_id != null) {
|
||||
stmt.setInt("empresa_id", empresa_id);
|
||||
}
|
||||
|
||||
if (localidade_id != null) {
|
||||
stmt.setInt("localidade_id", localidade_id);
|
||||
}
|
||||
|
||||
ResultSet rs = stmt.executeQuery();
|
||||
|
||||
lsDadosRelatorio = new ArrayList<RelatorioCheckinAbertoBean>();
|
||||
|
||||
SimpleDateFormat formatadorData = new SimpleDateFormat("dd/MM/yyyy");
|
||||
SimpleDateFormat formatadorDataHora = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
||||
|
||||
while (rs.next()) {
|
||||
RelatorioCheckinAbertoBean bean = new RelatorioCheckinAbertoBean();
|
||||
bean.setServico(rs.getInt("servico"));
|
||||
bean.setDataServico(formatadorData.format(rs.getDate("data_servico")));
|
||||
bean.setLocalidade(rs.getString("localidade"));
|
||||
//bean.setUsuario(rs.getString("usuario"));
|
||||
|
||||
lsDadosRelatorio.add(bean);
|
||||
}
|
||||
|
||||
if (lsDadosRelatorio.size() > 0) {
|
||||
setLsDadosRelatorio(lsDadosRelatorio);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
if (parametros.containsKey(DATA_INICIO_SERVICO) && parametros.containsKey(DATA_FIM_SERVICO)) {
|
||||
this.parametros.put("PERIODO_SERVICO", parametros.get(DATA_INICIO_SERVICO) + " à " + parametros.get(DATA_FIM_SERVICO));
|
||||
}
|
||||
|
||||
if (parametros.containsKey(DATA_INICIO_ENCERRAMENTO) && parametros.containsKey(DATA_FIM_ENCERRAMENTO)) {
|
||||
this.parametros.put("PERIODO_ENCERRAMENTO", parametros.get(DATA_INICIO_ENCERRAMENTO) + " à " + parametros.get(DATA_FIM_ENCERRAMENTO));
|
||||
}
|
||||
}
|
||||
|
||||
private void setLsDadosRelatorio(List<RelatorioCheckinAbertoBean> lsDadosRelatorio) {
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
}
|
||||
|
||||
private String getSql(String dataInicioServico, String dataFimServico, String dataInicioEncerramento, String dataFimEncerramento, Integer empresa_id, Integer localidade_id) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("select c.corrida_id as servico, ");
|
||||
sb.append("c.feccorrida as data_servico, ");
|
||||
sb.append("p.cveparada || ' - ' || p.descparada as localidade, ");
|
||||
sb.append("cc.fechorcerrado as data_encerramento ");
|
||||
sb.append("from corrida c ");
|
||||
sb.append("join parada p on p.parada_id = c.origen_id ");
|
||||
sb.append("left join checkin_cerrado cc on (c.corrida_id = cc.corrida_id and c.feccorrida=cc.feccorrida ) ");
|
||||
|
||||
|
||||
if (empresa_id!=null) {
|
||||
sb.append("join marca m on m.marca_id = c.marca_id ");
|
||||
}
|
||||
|
||||
sb.append("where c.activo = 1 ");
|
||||
|
||||
sb.append(" and cc.corrida_id is null ");
|
||||
|
||||
if (dataInicioServico != null && dataFimServico != null) {
|
||||
sb.append("and c.feccorrida between to_date(:dataInicioServico, 'dd/mm/yyyy hh24:mi') and to_date(:dataFimServico, 'dd/mm/yyyy hh24:mi') ");
|
||||
}
|
||||
|
||||
if (dataInicioEncerramento != null && dataFimEncerramento != null) {
|
||||
sb.append("and c.feccorrida between to_date(:dataInicioEncerramento, 'dd/mm/yyyy hh24:mi') and to_date(:dataFimEncerramento, 'dd/mm/yyyy hh24:mi') ");
|
||||
}
|
||||
|
||||
if (empresa_id != null) {
|
||||
sb.append("and m.empresa_id = :empresa_id ");
|
||||
}
|
||||
|
||||
if (localidade_id != null) {
|
||||
sb.append("and p.parada_id = :localidade_id ");
|
||||
}
|
||||
|
||||
sb.append("order by 2, 1, 4, 3");
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,124 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
public class RelatorioCteos extends Relatorio {
|
||||
|
||||
public RelatorioCteos(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
|
||||
public void initDados() throws Exception {
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
String sql = getSql(parametros);
|
||||
|
||||
Date dtInicio = (Date) parametros.get("DATA_INICIO");
|
||||
Date dtFim = (Date) parametros.get("DATA_FIM");
|
||||
|
||||
NamedParameterStatement ps = new NamedParameterStatement(conexao, sql.toString());
|
||||
if(dtInicio != null && dtFim != null) {
|
||||
ps.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
||||
ps.setString("dataFinal", DateUtil.getStringDate(dtFim, "dd/MM/yyyy") + " 23:59:59");
|
||||
}
|
||||
|
||||
ResultSet rset = ps.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("empresa_id", rset.getString("empresa_id"));
|
||||
dataResult.put("nombempresa", rset.getString("nombempresa"));
|
||||
dataResult.put("dtvenda", rset.getString("dtvenda"));
|
||||
dataResult.put("num_bpe", rset.getString("num_bpe"));
|
||||
dataResult.put("origem", rset.getString("origem"));
|
||||
dataResult.put("destino", rset.getString("destino"));
|
||||
dataResult.put("uforigem", rset.getString("uforigem"));
|
||||
dataResult.put("ufdestino", rset.getString("ufdestino"));
|
||||
dataResult.put("dtviagem", rset.getString("dtviagem"));
|
||||
dataResult.put("valor", rset.getBigDecimal("valor"));
|
||||
dataResult.put("chbpe", rset.getString("chbpe"));
|
||||
dataResult.put("protocolo", rset.getString("protocolo"));
|
||||
dataResult.put("num_bpe", rset.getString("num_bpe"));
|
||||
dataResult.put("numserie_bpe", rset.getString("numserie_bpe"));
|
||||
dataResult.put("evento", rset.getString("evento"));
|
||||
dataResult.put("qtd", rset.getString("qtd"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSql(Map<String, Object> parametros) {
|
||||
|
||||
StringBuilder sql = new StringBuilder(1400);
|
||||
|
||||
String estados = (String) parametros.get("ESTADOS_ID");
|
||||
String empresaId = (String) parametros.get("EMPRESA_ID");
|
||||
|
||||
sql.append(" SELECT ");
|
||||
sql.append(" ep.empresa_id, ");
|
||||
sql.append(" ep.nombempresa , ");
|
||||
sql.append(" to_char(coalesce(bpe.dt_venda, bol.fechorventa), 'dd/mm/yyyy') AS dtvenda, ");
|
||||
sql.append(" bol.num_bpe, ");
|
||||
sql.append(" coalesce(bol.numserie_bpe, '1') AS numserie_bpe, ");
|
||||
sql.append(" to_char(bol.fechorviaje, 'dd/mm/yyyy HH24:MI') AS dtviagem, ");
|
||||
sql.append(" bpe.chbpe, ");
|
||||
sql.append(" ori.descparada AS origem, ");
|
||||
sql.append(" e.cveestado AS uforigem, ");
|
||||
sql.append(" dest.descparada AS destino, ");
|
||||
sql.append(" desta.cveestado AS ufdestino, ");
|
||||
sql.append(" 'EXCESSO BAGAGEM' AS evento, ");
|
||||
sql.append(" 1 AS qtd, ");
|
||||
sql.append(" coalesce(bpe.valorpago, bol.preciopagado) AS valor, ");
|
||||
sql.append(" bpe.nprot AS protocolo ");
|
||||
sql.append(" FROM ");
|
||||
sql.append(" bpe bpe ");
|
||||
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 marca ma ON bol.marca_id = ma.marca_id ");
|
||||
sql.append(" LEFT JOIN empresa ep ON ma.empresa_id = ep.empresa_id ");
|
||||
sql.append(" LEFT JOIN parada ori ON bol.origen_id = ori.parada_id ");
|
||||
sql.append(" LEFT JOIN parada dest ON bol.destino_id = dest.parada_id ");
|
||||
sql.append(" LEFT JOIN ciudad dcit on dest.ciudad_id = dcit.ciudad_id ");
|
||||
sql.append(" LEFT JOIN estado desta ON dcit.estado_id = desta.estado_id ");
|
||||
sql.append(" WHERE ");
|
||||
sql.append(" e.activo = 1 ");
|
||||
sql.append(" and bpe.codstat = 135 ");
|
||||
sql.append(" AND bpe.tipoevento = 110117 ");
|
||||
|
||||
if (empresaId != null) {
|
||||
sql.append(" AND ep.EMPRESA_ID IN ( " + empresaId + " ) ");
|
||||
}
|
||||
|
||||
if (estados != null) {
|
||||
sql.append(" AND e.ESTADO_ID IN ( " + estados + " )");
|
||||
}
|
||||
|
||||
sql.append(" AND coalesce(bol.fechorventa_h, bol.fechorventa) >= to_date(:dataInicio, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
sql.append(" AND coalesce(bol.fechorventa_h, bol.fechorventa) <= to_date(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
sql.append(" ORDER BY ");
|
||||
sql.append(" ep.empresa_id,dtvenda, origem ");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.LogAuditoria;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.LogAuditoriaBean;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioLogAuditoria extends RelatorioDemandas {
|
||||
public RelatorioLogAuditoria(Map<String, Object> parametros, Connection conexao, List list) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
List<LogAuditoriaBean> listaBean = new ArrayList<LogAuditoriaBean>();
|
||||
|
||||
for (Object object : list) {
|
||||
LogAuditoria log = (LogAuditoria)object;
|
||||
LogAuditoriaBean bean = new LogAuditoriaBean();
|
||||
|
||||
bean.setIdAuditado(log.getIdAuditado());
|
||||
bean.setCampoAlterado(log.getCampoAlterado());
|
||||
bean.setEmpresa(log.getEmpresa() != null ? log.getEmpresa().getNombempresa() : "");
|
||||
bean.setUsuario(log.getUsuario() != null ? log.getUsuario().getNombusuario() : "");
|
||||
bean.setClasseAlterada(log.getClasseAlterada());
|
||||
bean.setClassePrincipal(log.getClassePrincipal());
|
||||
bean.setTela(log.getTela());
|
||||
bean.setDataAlteracao(log.getFecmodif());
|
||||
bean.setCampoAlterado(log.getCampoAlterado());
|
||||
bean.setValorAtual(log.getValorNovo());
|
||||
bean.setValorAnterior(log.getValorAnterior());
|
||||
bean.setTipoAlteracao(log.getTipoAlteracao());
|
||||
listaBean.add(bean);
|
||||
}
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(listaBean));
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,240 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasCartoesBean;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioVendasCartoesAlternativo extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioVendasCartoesAlternativo.class);
|
||||
|
||||
List<RelatorioVendasCartoesBean> list = null;
|
||||
|
||||
public RelatorioVendasCartoesAlternativo(Map<String, Object> parametros, Connection conexao, final Boolean buscarPorDataDaVenda) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
|
||||
public void initDados() throws Exception {
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
NamedParameterStatement stmt = null;
|
||||
ResultSet rset = null;
|
||||
|
||||
String dataInicial = parametros.get("DATA_INICIAL").toString() + " 00:00:00";
|
||||
String dataFinal = parametros.get("DATA_FINAL").toString() + " 23:59:59";
|
||||
Empresa empresa = (Empresa) parametros.get("EMPRESA");
|
||||
PuntoVenta puntoVenta = (PuntoVenta) parametros.get("PUNTOVENTA");
|
||||
Usuario usuario = (Usuario) parametros.get("USUARIO");
|
||||
Estacion estacao = (Estacion) parametros.get("ESTACION");
|
||||
String tipoAgencias = (String) parametros.get("TIPOPUNTOVENTA");
|
||||
|
||||
String sql = getSql(dataInicial, dataFinal, empresa, puntoVenta, tipoAgencias, usuario, estacao, buscarPorDataDaVenda);
|
||||
|
||||
log.info("query=" + sql);
|
||||
|
||||
try {
|
||||
stmt = new NamedParameterStatement(conexao, sql);
|
||||
|
||||
if (empresa != null) {
|
||||
stmt.setInt("empresaId", empresa.getEmpresaId());
|
||||
}
|
||||
if (puntoVenta != null) {
|
||||
stmt.setInt("puntoventaId", puntoVenta.getPuntoventaId());
|
||||
}
|
||||
if (dataInicial != null) {
|
||||
stmt.setString("dataInicial", dataInicial);
|
||||
}
|
||||
if (dataFinal != null) {
|
||||
stmt.setString("dataFinal", dataFinal);
|
||||
}
|
||||
if (estacao != null) {
|
||||
stmt.setInt("estacionId", estacao.getEstacionId());
|
||||
}
|
||||
if (usuario != null) {
|
||||
stmt.setInt("usuarioId", usuario.getUsuarioId());
|
||||
}
|
||||
|
||||
rset = stmt.executeQuery();
|
||||
|
||||
list = new ArrayList<RelatorioVendasCartoesBean>();
|
||||
BigDecimal valorTotal = BigDecimal.ZERO;
|
||||
while (rset.next()) {
|
||||
|
||||
RelatorioVendasCartoesBean bean = new RelatorioVendasCartoesBean();
|
||||
|
||||
bean.setDataVenda(rset.getDate("dataVenda"));
|
||||
bean.setDataOperacao(rset.getString("dataOperacao") != null ? DateUtil.getDateFromString(rset.getString("dataOperacao"), "ddMMyy") : null);
|
||||
bean.setDescPagamento(rset.getString("descPagamento") != null ? rset.getString("descPagamento") : null);
|
||||
bean.setValor(rset.getBigDecimal("valor") != null ? rset.getBigDecimal("valor") : null);
|
||||
bean.setAutorizacao(rset.getString("autorizacao") != null ? rset.getString("autorizacao") : null);
|
||||
bean.setQtdParcelas(rset.getInt("qtdParcelas"));
|
||||
|
||||
valorTotal = valorTotal.add(bean.getValor() != null ? bean.getValor() : BigDecimal.ZERO);
|
||||
bean.setValorTotal(valorTotal);
|
||||
|
||||
list.add(bean);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
} finally {
|
||||
if (rset != null && !rset.isClosed()) {
|
||||
rset.close();
|
||||
}
|
||||
if (stmt != null && !stmt.isClosed()) {
|
||||
stmt.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(list));
|
||||
}
|
||||
|
||||
// private RelatorioVendasCartoesBean calcTotalValor(RelatorioVendasCartoesBean bean) {
|
||||
// BigDecimal valorTotal = bean.getValorTotal().add(bean.getValorTotal());
|
||||
// bean.setValorTotal(valorTotal);
|
||||
// return bean;
|
||||
// }
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSql(String dataInicial, String dataFinal, Empresa empresa, PuntoVenta puntoVenta, String tipoAgencias, Usuario usuario, Estacion estacion, Boolean buscarPorDataDaVenda) {
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.append("SELECT caja.descpago as descPagamento,");
|
||||
sb.append(" to_char(caja.dataoperacao, 'ddMMyyyy') as dataOperacao,");
|
||||
sb.append(" caja.autorizacao as autorizacao,");
|
||||
sb.append(" coalesce(caja.qtdparcelas, 1) as qtdParcelas ,");
|
||||
sb.append(" trunc(caja.datavenda) as dataVenda, ");
|
||||
sb.append(" sum(caja.preco) as valor ");
|
||||
sb.append("FROM");
|
||||
sb.append(" (SELECT fp.descpago AS descpago,");
|
||||
sb.append(" ct.fecoperacion AS dataoperacao,");
|
||||
sb.append(" ct.numautorizacion AS autorizacao,");
|
||||
sb.append(" ct.cantparcelas AS qtdparcelas,");
|
||||
sb.append(" c.fechorventa AS datavenda,");
|
||||
sb.append(" case when c.motivocancelacion_id is null then cfp.importe else cfp.importe * -1 end AS preco");
|
||||
sb.append(" FROM caja c");
|
||||
sb.append(" INNER JOIN caja_formapago cfp ON c.caja_id=cfp.caja_id AND cfp.activo = 1 ");
|
||||
sb.append(" INNER JOIN marca ma on ma.marca_id = c.marca_id ");
|
||||
sb.append(" INNER JOIN forma_pago fp ON cfp.formapago_id=fp.formapago_id");
|
||||
sb.append(" LEFT JOIN caja_det_pago cdp ON (c.caja_id = cdp.caja_id and cdp.cajaformapago_id = cfp.cajaformapago_id)");
|
||||
sb.append(" LEFT JOIN caja_tarjeta ct ON (ct.cajadetpago_id = cdp.cajadetpago_id)");
|
||||
sb.append(" INNER JOIN punto_venta pt ON (pt.puntoventa_id = c.puntoventa_id) ");
|
||||
sb.append(" WHERE c.indreimpresion = 0 ");
|
||||
|
||||
if (empresa != null) {
|
||||
sb.append("and ma.empresa_id = :empresaId ");
|
||||
}
|
||||
|
||||
if (puntoVenta != null) {
|
||||
sb.append("AND c.puntoventa_id = :puntoventaId ");
|
||||
}
|
||||
|
||||
if (estacion != null) {
|
||||
sb.append("AND c.estacion_id = :estacionId ");
|
||||
}
|
||||
|
||||
if (usuario != null) {
|
||||
sb.append(" and c.usuario_id = :usuarioId ");
|
||||
}
|
||||
|
||||
if (dataInicial != null && buscarPorDataDaVenda) {
|
||||
sb.append("AND c.fechorventa >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
} else if (dataInicial != null && !buscarPorDataDaVenda) {
|
||||
sb.append("AND c.feccorte >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
}
|
||||
|
||||
if (dataFinal != null && buscarPorDataDaVenda) {
|
||||
sb.append("AND c.fechorventa <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
} else if (dataInicial != null && !buscarPorDataDaVenda) {
|
||||
sb.append("AND c.feccorte <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
}
|
||||
|
||||
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 c.activo = 1 ");
|
||||
|
||||
sb.append(" UNION ");
|
||||
sb.append(" SELECT ");
|
||||
sb.append(" fp.descpago as descpago, ");
|
||||
sb.append(" ct.fecoperacion as dataoperacao, ");
|
||||
sb.append(" ct.numautorizacion as autorizacao, ");
|
||||
sb.append(" coalesce(ct.cantparcelas, 1) as qtdparcelas, ");
|
||||
sb.append(" coalesce(c.fechorventa, cd.fechorvta) as datavenda, ");
|
||||
sb.append(" case when cdp.importe < 0 and fp.formapago_id in (3, 2) then 0 else cdp.importe end as preco ");
|
||||
sb.append(" FROM caja_diversos cd ");
|
||||
sb.append(" JOIN caja_diversos_pago cdp on cdp.cajadiversos_id = cd.cajadiversos_id ");
|
||||
sb.append(" INNER JOIN forma_pago fp on fp.formapago_id = cdp.formapago_id ");
|
||||
sb.append(" INNER JOIN evento_extra ee on ee.eventoextra_id = cd.eventoextra_id ");
|
||||
sb.append(" LEFT JOIN boleto c on c.boleto_id = ee.boleto_id ");
|
||||
sb.append(" LEFT JOIN caja_tarjeta ct on ( cdp.cajatarjeta_id = ct.cajatarjeta_id) ");
|
||||
sb.append(" WHERE cd.activo = 1 ");
|
||||
sb.append(" AND (ee.boleto_id is null or ee.boleto_id = c.boleto_id) ");
|
||||
sb.append(" AND fp.formapago_id in (3, 2) ");
|
||||
|
||||
if (empresa != null) {
|
||||
sb.append("and ee.empresa_id = :empresaId ");
|
||||
}
|
||||
|
||||
if (puntoVenta != null) {
|
||||
sb.append("AND cd.puntoventa_id = :puntoventaId ");
|
||||
}
|
||||
|
||||
if (estacion != null) {
|
||||
sb.append("AND cd.estacion_id = :estacionId ");
|
||||
}
|
||||
|
||||
if (usuario != null) {
|
||||
sb.append(" AND cd.usuario_id = :usuarioId ");
|
||||
}
|
||||
|
||||
if (dataInicial != null && buscarPorDataDaVenda) {
|
||||
sb.append(" AND cd.fechorvta >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
} else if (dataInicial != null && !buscarPorDataDaVenda) {
|
||||
sb.append(" AND cd.feccorte >= TO_DATE(:dataInicial, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
}
|
||||
|
||||
if (dataFinal != null && buscarPorDataDaVenda) {
|
||||
sb.append(" AND cd.fechorvta <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
} else if (dataInicial != null && !buscarPorDataDaVenda) {
|
||||
sb.append(" AND cd.feccorte <= TO_DATE(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') ");
|
||||
}
|
||||
|
||||
sb.append(tipoAgencias.equals("-1") || tipoAgencias.equals("TODAS") ? "" : " and pt.tipoptovta_id not in (" + tipoAgencias + ") ");
|
||||
sb.append(" ) caja ");
|
||||
|
||||
sb.append("GROUP BY caja.descpago,");
|
||||
sb.append(" to_char(caja.dataoperacao, 'ddMMyyyy'),");
|
||||
sb.append(" caja.autorizacao,");
|
||||
sb.append(" caja.qtdparcelas,");
|
||||
sb.append(" trunc(caja.datavenda) ");
|
||||
sb.append("ORDER BY caja.descpago, trunc(caja.datavenda), caja.autorizacao");
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório BPe Substituído
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.puntoventa=Agência
|
||||
label.nomeVendaAgencia=Agência Atendimento
|
||||
label.nomeAgenciaEmissao=Agência Emissão
|
||||
label.documento=Doc.
|
||||
label.dataRemarcacao=Data Rem.
|
||||
label.dataVenda=Data Venda
|
||||
label.dataServico=Data Serv.
|
||||
label.origem= Origem
|
||||
label.destino=Destino
|
||||
label.codOrigem= Cod.O
|
||||
label.codDestino=Cod.D
|
||||
label.formaPagamento=Forma Pag.
|
||||
label.servico=Servi.
|
||||
label.poltrona= Poltrona
|
||||
label.dataInicial=Data Inicial:
|
||||
label.dataFinal=Data Final:
|
||||
label.empresa=Empresa:
|
||||
label.agencia=Agência:
|
||||
label.situacao=Situacao
|
||||
label.bilhete=Bilhete
|
||||
label.bilheteiro=Bilheteiro
|
||||
label.valorDiferenca=Diferenca
|
||||
label.valorMulta=Multa
|
||||
label.tarifa=Tarifa
|
||||
label.tarifaVenda=Tarifa Venda
|
||||
label.seguro=Seguro
|
||||
label.pedagio=Pedagio
|
||||
label.taxaEmbarque=Taxa Emb.
|
||||
label.cliente=Cliente
|
||||
label.bilheteOriginal=Bilhete Original
|
||||
label.bilheteRemarcado=Bilhete Remarcado
|
||||
label.linha=Linha
|
||||
label.horaServico=Horário
|
||||
label.chave=CH.BPe
|
||||
label.numBpe=Nº BPe
|
||||
label.tipoDocumento=Tp.Doc
|
||||
label.tipoVenda=Tp.Venda
|
||||
label.tipoPassagem=Tp.Pass
|
||||
label.percentualDesconto=Perc.Desc
|
||||
label.valorTotal=Vlr.Tot.Cob
|
||||
label.valorPassagem=Vlr.Passagem
|
||||
label.tpp=TPP
|
||||
label.siglaTipoPassagem=Sig.Tp.Pas
|
|
@ -0,0 +1,55 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório BPe Substituído
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.puntoventa=Agência
|
||||
label.nomeVendaAgencia=Agência Atendimento
|
||||
label.nomeAgenciaEmissao=Agência Emissão
|
||||
label.documento=Doc.
|
||||
label.dataRemarcacao=Data Rem.
|
||||
label.dataVenda=Data Venda
|
||||
label.dataServico=Data Serv.
|
||||
label.origem= Origem
|
||||
label.destino=Destino
|
||||
label.codOrigem= Cod.O
|
||||
label.codDestino=Cod.D
|
||||
label.formaPagamento=Forma Pag.
|
||||
label.servico=Servi.
|
||||
label.poltrona= Poltrona
|
||||
label.dataInicial=Data Inicial:
|
||||
label.dataFinal=Data Final:
|
||||
label.empresa=Empresa:
|
||||
label.agencia=Agência:
|
||||
label.situacao=Situacao
|
||||
label.bilhete=Bilhete
|
||||
label.valorDiferenca=Diferenca
|
||||
label.valorMulta=Multa
|
||||
label.tarifa=Tarifa
|
||||
label.tarifaVenda=Tarifa Venda
|
||||
label.seguro=Seguro
|
||||
label.pedagio=Pedagio
|
||||
label.taxaEmbarque=Taxa Emb.
|
||||
label.cliente=Cliente
|
||||
label.bilheteOriginal=Bilhete Original
|
||||
label.bilheteRemarcado=Bilhete Remarcado
|
||||
label.linha=Linha
|
||||
label.horaServico=Horário
|
||||
label.chave=CH.BPe
|
||||
label.numBpe=Nº BPe
|
||||
label.tipoDocumento=Tp.Doc
|
||||
label.tipoVenda=Tp.Venda
|
||||
label.tipoPassagem=Tp.Pass
|
||||
label.percentualDesconto=Perc.Desc
|
||||
label.valorTotal=Vlr.Tot.Cob
|
||||
label.valorPassagem=Vlr.Passagem
|
||||
label.tpp=TPP
|
||||
label.siglaTipoPassagem=Sig.Tp.Pas
|
|
@ -0,0 +1,32 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
|
||||
label.dataVenda=Data Venda
|
||||
label.horaVenda=Hora Venda
|
||||
label.origem=Origem
|
||||
label.destino=Destino
|
||||
label.dataViagem=Data Viagem
|
||||
label.valorBPe=Valor
|
||||
label.origemPV= Loc. Venda
|
||||
label.valortarifa=Tarifa
|
||||
label.valortaxa=Taxa
|
||||
label.valorpedagio=Pedágio
|
||||
label.valorseguro=Seguro
|
||||
label.valoroutros=Outros
|
||||
label.chaveAcesso=Chave Acesso
|
||||
label.protocolo=Protocolo
|
||||
label.numBPe=Núm. BPe
|
||||
label.serie=Série
|
||||
label.status=Status
|
||||
label.obs=Observação
|
||||
header.filtro.total=Total Geral:
|
|
@ -0,0 +1,32 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
header.filtro.total=Total Geral:
|
||||
|
||||
label.dataVenda=Data Venda
|
||||
label.horaVenda=Hora Venda
|
||||
label.origem=Origem
|
||||
label.destino=Destino
|
||||
label.dataViagem=Data Viagem
|
||||
label.valorBPe=Valor
|
||||
label.origemPV= Loc. Venda
|
||||
label.valortarifa=Tarifa
|
||||
label.valortaxa=Taxa
|
||||
label.valorpedagio=Pedágio
|
||||
label.valorseguro=Seguro
|
||||
label.valoroutros=Outros
|
||||
label.chaveAcesso=Chave Acesso
|
||||
label.protocolo=Protocolo
|
||||
label.numBPe=Núm. BPe
|
||||
label.serie=Série
|
||||
label.status=Status
|
||||
label.obs=Observação
|
|
@ -0,0 +1,18 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
msg.a=à
|
||||
|
||||
#Labels header
|
||||
header.data.hora=Data/Hora\:
|
||||
header.pagina=Página\:
|
||||
header.periodo.servico=Período Serviço\:
|
||||
header.periodo.encerramento=Período Encerramento\:
|
||||
header.empresa=Empresa\:
|
||||
|
||||
#Labels detail
|
||||
detail.servico=Serviço
|
||||
detail.data.servico=Data Serviço
|
||||
detail.localidade=Localidade
|
||||
detail.data.encerramento=Data Encerramento
|
||||
detail.usuario.operacao=Usuário da Operação
|
||||
detail.imei=Dispositivo
|
|
@ -0,0 +1,18 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
msg.a=à
|
||||
|
||||
#Labels header
|
||||
header.data.hora=Data/Hora\:
|
||||
header.pagina=Página\:
|
||||
header.periodo.servico=Período Serviço\:
|
||||
header.periodo.encerramento=Período Encerramento\:
|
||||
header.empresa=Empresa\:
|
||||
|
||||
#Labels detail
|
||||
detail.servico=Serviço
|
||||
detail.data.servico=Data Serviço
|
||||
detail.localidade=Origem do Serviço
|
||||
detail.data.encerramento=Data Encerramento
|
||||
detail.usuario.operacao=Usuário da Operação
|
||||
detail.imei=Dispositivo
|
|
@ -0,0 +1,27 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
header.filtro.total=Total Geral:
|
||||
|
||||
label.dataVenda=Data Bpe
|
||||
label.origem=Origem
|
||||
label.destino=Destino
|
||||
label.dataViagem=Data Viagem
|
||||
label.valorBPe=Valor
|
||||
label.chaveAcesso=Chave Acesso
|
||||
label.protocolo=Protocolo
|
||||
label.numBPe=Núm. BPe
|
||||
label.serie=Série
|
||||
label.empresaId=Cod. Empresa
|
||||
label.nomeEmpresa=Empresa
|
||||
label.evento=Evento
|
||||
label.qtd=Qtd.
|
|
@ -0,0 +1,28 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
header.filtro.total=Total Geral:
|
||||
|
||||
label.dataVenda=Data Bpe
|
||||
label.origem=Origem
|
||||
label.destino=Destino
|
||||
label.dataViagem=Data Viagem
|
||||
label.valorBPe=Valor
|
||||
label.chaveAcesso=Chave Acesso
|
||||
label.protocolo=Protocolo
|
||||
label.numBPe=Núm. BPe
|
||||
label.serie=Série
|
||||
label.empresaId=Cod. Empre.
|
||||
label.nomeEmpresa=Empresa
|
||||
label.evento=Evento
|
||||
label.qtd=Qtd.
|
||||
label.serie=Série
|
|
@ -0,0 +1,19 @@
|
|||
TITULO = Relatório Log de Auditoria
|
||||
PERIODO = PERÍODO
|
||||
header.data.hora=Data/Hora\:
|
||||
cabecalho.impressorPor=Impresso por
|
||||
|
||||
DATA_ALTERACAO = DATA ATLERAÇÃO
|
||||
ID_AUDITADO = ID AUDITADO
|
||||
EMPRESA = EMPRESA
|
||||
USUARIO = USUARIO
|
||||
TIPO_ALTERACAO = TIPO ALTERAÇÃO
|
||||
TELA = TELA
|
||||
CAMPO_ALTERADO = CAMPO ALTERADO
|
||||
VALOR_ATUAL = VALOR ATUAL
|
||||
VALOR_ANTERIOR = VALOR ANTERIOR
|
||||
CLASSE_ALTERADA = CLASSE ALTERADA
|
||||
CLASSE_PRINCIPAL = CLASSE PRINCIPAL
|
||||
|
||||
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
|
@ -0,0 +1,19 @@
|
|||
TITULO = Relatório Log de Auditoria
|
||||
PERIODO = PERÍODO
|
||||
header.data.hora=Data/Hora\:
|
||||
cabecalho.impressorPor=Impresso por
|
||||
|
||||
DATA_ALTERACAO = DATA ATLERAÇÃO
|
||||
ID_AUDITADO = ID AUDITADO
|
||||
EMPRESA = EMPRESA
|
||||
USUARIO = USUARIO
|
||||
TIPO_ALTERACAO = TIPO ALTERAÇÃO
|
||||
TELA = TELA
|
||||
CAMPO_ALTERADO = CAMPO ALTERADO
|
||||
VALOR_ATUAL = VALOR ATUAL
|
||||
VALOR_ANTERIOR = VALOR ANTERIOR
|
||||
CLASSE_ALTERADA = CLASSE ALTERADA
|
||||
CLASSE_PRINCIPAL = CLASSE PRINCIPAL
|
||||
|
||||
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
|
@ -0,0 +1,35 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
msg.a=à
|
||||
|
||||
#Labels header
|
||||
header.titulo.relatorio=Relatório Vendas de Cartões
|
||||
header.periodo=Per\u00EDodo\:
|
||||
header.data.hora=Data/Hora\:
|
||||
header.pagina=P\u00E1gina\:
|
||||
header.filtro=Filtro\:
|
||||
header.filtro.servico=Servi\u00E7o\:
|
||||
header.filtro.empresa=Empresa:
|
||||
header.filtro.agencia=Agência:
|
||||
header.filtro.estacao=Estação:
|
||||
header.filtro.bilheteiro=Bilheteiro:
|
||||
header.filtro.grupo=Grupo de Linhas\:
|
||||
|
||||
#Labels detail
|
||||
|
||||
detail.dataOperacao=Data Operação
|
||||
detail.dataVenda=Data Venda
|
||||
detail.autorizacao=Autorização
|
||||
detail.qtdParcelas=Quantidade Parcelas
|
||||
detail.valorTotal=Valor Total
|
||||
detail.valor=Valor R$
|
||||
|
||||
#Group
|
||||
|
||||
group.total=Total Geral:
|
||||
sub.total=Sub Total:
|
||||
total.debito=Total Débito:
|
||||
total.credito=Total Crédito:
|
||||
linhas=Linhas
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
msg.a=à
|
||||
|
||||
#Labels header
|
||||
header.titulo.relatorio=Relatório Vendas de Cartões
|
||||
header.periodo=Per\u00EDodo\:
|
||||
header.data.hora=Data/Hora\:
|
||||
header.pagina=P\u00E1gina\:
|
||||
header.filtro=Filtro\:
|
||||
header.filtro.servico=Servi\u00E7o\:
|
||||
header.filtro.empresa=Empresa:
|
||||
header.filtro.agencia=Agência:
|
||||
header.filtro.estacao=Estação:
|
||||
header.filtro.bilheteiro=Bilheteiro:
|
||||
header.filtro.grupo=Grupo de Linhas\:
|
||||
|
||||
#Labels detail
|
||||
|
||||
detail.dataOperacao=Data Operação
|
||||
detail.dataVenda=Data Venda
|
||||
detail.autorizacao=Autorização
|
||||
detail.qtdParcelas=Quantidade Parcelas
|
||||
detail.valorTotal=Valor Total
|
||||
detail.valor=Valor R$
|
||||
|
||||
#Group
|
||||
|
||||
group.total=Total Geral:
|
||||
sub.total=Sub Total:
|
||||
total.debito=Total Débito:
|
||||
total.credito=Total Crédito:
|
||||
linhas=Linhas
|
||||
|
||||
|
Binary file not shown.
|
@ -0,0 +1,781 @@
|
|||
<?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="Relatorio BPe Substituido" pageWidth="2452" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="2452" leftMargin="0" rightMargin="0" topMargin="20" bottomMargin="20" uuid="6d46a2d2-555e-4b7f-944f-b25c672e5feb">
|
||||
<property name="ireport.zoom" value="0.39568933780028165"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<parameter name="usuario" class="java.lang.String"/>
|
||||
<parameter name="nome_relatorio" class="java.lang.String"/>
|
||||
<parameter name="FILTROS" class="java.lang.String"/>
|
||||
<parameter name="usuario_nome" class="java.lang.String"/>
|
||||
<field name="cod_origem_venda" class="java.lang.String"/>
|
||||
<field name="cod_origem_remarcado" class="java.lang.String"/>
|
||||
<field name="cod_destino_venda" class="java.lang.String"/>
|
||||
<field name="cod_destino_remarcado" class="java.lang.String"/>
|
||||
<field name="desc_origem_venda" class="java.lang.String"/>
|
||||
<field name="desc_origem_remarcado" class="java.lang.String"/>
|
||||
<field name="desc_destino_venda" class="java.lang.String"/>
|
||||
<field name="desc_destino_remarcado" class="java.lang.String"/>
|
||||
<field name="tpp_venda" class="java.math.BigDecimal"/>
|
||||
<field name="tpp_remarcado" class="java.math.BigDecimal"/>
|
||||
<field name="bilhete_venda" class="java.lang.String"/>
|
||||
<field name="bilhete_remarcado" class="java.lang.String"/>
|
||||
<field name="assento_venda" class="java.lang.String"/>
|
||||
<field name="assento_remarcado" class="java.lang.String"/>
|
||||
<field name="data_viagem" class="java.util.Date"/>
|
||||
<field name="data_viagem_remarcado" class="java.util.Date"/>
|
||||
<field name="tarifa_venda" class="java.math.BigDecimal"/>
|
||||
<field name="tarifa_remarcado" class="java.math.BigDecimal"/>
|
||||
<field name="desconto_venda" class="java.math.BigDecimal"/>
|
||||
<field name="multa" class="java.math.BigDecimal"/>
|
||||
<field name="valor_passagem_venda" class="java.math.BigDecimal"/>
|
||||
<field name="valor_passagem_remarcado" class="java.math.BigDecimal"/>
|
||||
<field name="taxa_embarque_venda" class="java.math.BigDecimal"/>
|
||||
<field name="taxa_embarque_remarcado" class="java.math.BigDecimal"/>
|
||||
<field name="seguro_venda" class="java.math.BigDecimal"/>
|
||||
<field name="seguro_remarcado" class="java.math.BigDecimal"/>
|
||||
<field name="pedagio_venda" class="java.math.BigDecimal"/>
|
||||
<field name="pedagio_remarcado" class="java.math.BigDecimal"/>
|
||||
<field name="cliente_venda" class="java.lang.String"/>
|
||||
<field name="cliente_remarcado" class="java.lang.String"/>
|
||||
<field name="tipo_documento_venda" class="java.lang.String"/>
|
||||
<field name="tipo_documento_remarcado" class="java.lang.String"/>
|
||||
<field name="documento_venda" class="java.lang.String"/>
|
||||
<field name="documento_remarcado" class="java.lang.String"/>
|
||||
<field name="servico_venda" class="java.lang.String"/>
|
||||
<field name="servico_remarcado" class="java.lang.String"/>
|
||||
<field name="forma_pago_venda" class="java.lang.String"/>
|
||||
<field name="data_venda" class="java.util.Date"/>
|
||||
<field name="data_remarcacao" class="java.util.Date"/>
|
||||
<field name="agencia_venda" class="java.lang.String"/>
|
||||
<field name="agencia_remarcado" class="java.lang.String"/>
|
||||
<field name="chbpe_original" class="java.lang.String"/>
|
||||
<field name="num_bpe_original" class="java.lang.String"/>
|
||||
<field name="chbpe_remarcado" class="java.lang.String"/>
|
||||
<field name="num_bpe_remarcado" class="java.lang.String"/>
|
||||
<field name="numserie_original" class="java.lang.String"/>
|
||||
<field name="numserie_remarcado" class="java.lang.String"/>
|
||||
<field name="qrcode_original" class="java.lang.String"/>
|
||||
<field name="qrcode_remarcado" class="java.lang.String"/>
|
||||
<field name="valor_total_venda" class="java.math.BigDecimal"/>
|
||||
<field name="valor_total_remarcado" class="java.math.BigDecimal"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="93">
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="49ab1647-150e-479d-a1d6-1911439f9372" mode="Transparent" x="107" y="82" width="54" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.dataRemarcacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="36adfbd2-baef-4050-b4dd-b2c17cec1f8f" mode="Transparent" x="248" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.origem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="dabaae73-0430-44ac-b5ca-07bb8943d1e1" mode="Transparent" x="379" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.destino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="7105fabd-e019-4de6-bb8b-6ac0d194c121" mode="Transparent" x="0" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.agencia}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="24600b7b-f380-4bd5-8d27-9c7e29cb9a59" mode="Transparent" x="486" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.poltrona}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="16f23967-8aa7-4eeb-8138-3587989cc6cd" mode="Transparent" x="514" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.bilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="e17fff3d-04bd-4ce0-86a6-81785d6045ed" mode="Transparent" x="1086" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.tarifa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="70a4673b-db31-4291-be71-17255ce1c03f" mode="Transparent" x="1119" y="82" width="38" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.seguro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="6495c82f-0698-4a95-ac7a-3c6838c5269c" mode="Transparent" x="1157" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.pedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="8d9bd3b8-178e-4e33-a047-35fc979993f7" mode="Transparent" x="161" y="82" width="63" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.dataServico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="d7f6fbb0-f726-4dca-8903-4f19fc26462e" mode="Opaque" x="0" y="67" width="1242" height="15" backcolor="#33CC00"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Bilhete Remarcado]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="03422950-8ba2-4ba7-8f65-447c3458253e" mode="Opaque" x="1242" y="67" width="1209" height="15" backcolor="#FFFF00"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Bilhete Original]]></text>
|
||||
</staticText>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="236d0e6f-34ca-45f4-a6a4-adf15b284342" mode="Transparent" x="547" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.numBpe}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="06be7125-9ea5-4635-a8ad-24e1a3945351" mode="Transparent" x="771" y="82" width="171" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.cliente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="b0058a06-fa48-44f8-b740-1b9559ddc266" mode="Transparent" x="942" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.tipoDocumento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="93f28873-6879-483a-89ac-45deb0248a4f" mode="Transparent" x="975" y="82" width="45" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.documento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="7eb33017-a1c9-490e-bf3e-247f53d1a553" mode="Transparent" x="575" y="82" width="196" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.chave}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="6264791d-5f03-4d0f-8440-63e81e60fde3" mode="Transparent" x="1020" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.valorPassagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="451020ec-55a8-449a-a276-3405eb82cc50" mode="Transparent" x="1051" y="82" width="35" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.valorTotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="e5b4dab9-d599-4174-96d6-b1484925b103" mode="Transparent" x="1188" y="82" width="21" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.tpp}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="bb591b6f-5e16-4dbe-942f-11b4bfc0864b" mode="Transparent" x="1209" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.valorMulta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="8471eaf2-18d7-44c4-9825-950f797e4c54" mode="Transparent" x="224" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.codOrigem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="c841ad4a-de72-4bd2-9171-15ef10523696" mode="Transparent" x="355" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.codDestino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="d9f2f9b3-255b-4e61-8ced-75a973ce41d0" mode="Transparent" x="0" y="0" width="2158" height="46" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{nome_relatorio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="dc20d664-f848-4aae-bc5c-3424007aaed3" x="2158" y="0" width="211" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="4b441767-c36f-4834-9377-5d99b4a1cc9c" mode="Transparent" x="2158" y="15" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
|
||||
<reportElement uuid="52bfc867-bd17-427f-93fd-2f454dfaebba" mode="Transparent" x="2371" y="0" width="80" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="162d6c25-279f-4642-b541-2d46b24382d9" mode="Transparent" x="2425" y="15" width="26" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="00f6b2c3-d2d1-4a8d-bde4-b83b029ab508" x="0" y="46" width="2451" height="21"/>
|
||||
<box leftPadding="2">
|
||||
<topPen lineWidth="0.75"/>
|
||||
<bottomPen lineWidth="0.75"/>
|
||||
</box>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="1607d941-f50d-4023-a70d-7c34b3969260" stretchType="RelativeToBandHeight" mode="Transparent" x="2158" y="31" width="293" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{usuario_nome}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="543ab691-bfc2-4de1-84ed-5110c0154332" mode="Transparent" x="2399" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.pedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="a0f4dfbc-b79c-47f6-a3c1-1011d1f30970" mode="Transparent" x="1756" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.bilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="5e2918f3-1195-4044-9ecd-20eb2e500bc4" mode="Transparent" x="2262" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.valorPassagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="98855d07-a57a-4fde-b42c-1fa516de7d43" mode="Transparent" x="2328" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.tarifa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="014faa80-f886-4629-9fbc-f1de7942259e" mode="Transparent" x="1817" y="82" width="196" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.chave}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="e8c02a9e-1919-49f4-b3a9-1e7a8b425afc" mode="Transparent" x="2013" y="82" width="171" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.cliente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="fc93fe5b-3b99-4a6e-b7e3-af2190acd700" mode="Transparent" x="1728" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.poltrona}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="ae2a0538-0666-49ec-b2a5-a460fde316b7" mode="Transparent" x="1621" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.destino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="7d8318f7-2d57-48ce-9b29-9eb5e2b6c184" mode="Transparent" x="1466" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.codOrigem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="a8e97f17-f1a9-4b5b-a78c-699e39bbad54" mode="Transparent" x="2293" y="82" width="35" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.valorTotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="3a1326ee-27a1-46ea-b0ec-7076da1f746c" mode="Transparent" x="1349" y="82" width="54" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.dataRemarcacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="0df0e1eb-7899-4a89-b1ab-bd96b0bf458b" mode="Transparent" x="2430" y="82" width="21" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.tpp}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="80a01629-4b9e-4e3d-b94e-c8eebda58465" mode="Transparent" x="2184" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.tipoDocumento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="b623608f-cdaa-4672-ae99-3cf70628d61a" mode="Transparent" x="1490" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.origem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="4d24353a-42f9-41e4-a5b1-3597c45a5c93" mode="Transparent" x="2217" y="82" width="45" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.documento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="0dd69179-4670-460c-b474-50f068a207fa" mode="Transparent" x="2361" y="82" width="38" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" 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[$R{label.seguro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="a115ad10-6cc8-4f5e-bef2-7577c9cf1038" mode="Transparent" x="1403" y="82" width="63" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.dataServico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="1e7cbf6c-3ecd-40b3-a0a4-f8649e36d353" mode="Transparent" x="1597" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.codDestino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="dc8189f7-334c-46e1-911a-7960ab828d75" mode="Transparent" x="1242" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.agencia}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="277aa553-fd1c-45e1-a306-f992d10741d4" mode="Transparent" x="1789" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" 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[$R{label.numBpe}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<columnHeader>
|
||||
<band/>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="12" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="188aba5c-65a6-455f-a337-d0e9025ab395" x="379" y="0" width="107" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{desc_destino_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="ad1ffaa8-6c48-4316-ba3c-ea68579af300" x="0" y="0" width="107" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{agencia_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="351f3898-a7da-4c65-be07-207950117d7b" x="486" y="0" width="28" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{assento_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="f4d3141f-4aca-49ef-a810-564c5cd3565c" x="514" y="0" width="33" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{bilhete_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="9867507c-a05b-4313-ba1d-0842f790cff6" x="1086" y="0" width="33" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tarifa_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="e32342d7-c1fa-424f-8865-e80e667788d7" x="1119" y="0" width="38" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{seguro_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="0b436521-6f5b-4b54-bc27-e6a321c8a0d4" x="1157" y="0" width="31" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{pedagio_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="d0154000-94db-4469-85b9-d33ee160e3f9" x="107" y="0" width="54" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{data_remarcacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
|
||||
<reportElement uuid="21c97b2e-6584-46e1-b601-c5fcd0174d43" x="161" y="0" width="63" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{data_viagem_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="57e97f89-e79d-47ab-b986-c08049f307bd" x="224" y="0" width="24" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cod_origem_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="23322dcb-5a35-4882-9c3b-e1675513f913" x="248" y="0" width="107" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{desc_origem_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="e4ba80ac-8138-41a8-a6e5-b4d4c67b61fd" x="355" y="0" width="24" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cod_destino_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="70b6b514-dd22-4dc4-8b92-ae264bf38f5f" x="547" y="0" width="28" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{num_bpe_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="4e53dfb4-b9f5-443d-9739-4198827d2658" x="771" y="0" width="171" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cliente_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="5d3bf3af-776c-46dd-b3cb-8d3cbc656d52" x="942" y="0" width="33" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipo_documento_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="56a32965-8cd3-4c78-9cb1-ac723d2be44c" x="975" y="0" width="45" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{documento_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" hyperlinkType="Reference">
|
||||
<reportElement uuid="4cfbe246-1243-4b37-92e6-24663001abe1" x="575" y="0" width="196" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{chbpe_remarcado}]]></textFieldExpression>
|
||||
<hyperlinkReferenceExpression><![CDATA[$F{qrcode_remarcado}]]></hyperlinkReferenceExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="46c0ecf4-aa5a-41fe-9d9e-966bf4aead34" x="1020" y="0" width="31" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valor_passagem_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="21829d9d-0434-49f8-8dd2-ade3e4109d1b" x="1051" y="0" width="35" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valor_total_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="bc16d8c8-114a-4ad9-a0c5-8cf00d5d8d00" x="1209" y="0" width="33" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{multa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="78937ff7-1c27-430d-9f19-7736b3f5acbc" x="1188" y="0" width="21" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tpp_remarcado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="71b82b23-5439-4dd4-8571-3caafb700706" x="1242" y="0" width="107" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{agencia_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="f1e656f6-25d4-4f2d-87d3-ea6817eec7be" x="2430" y="0" width="21" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tpp_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="fd9b9621-628a-4265-ab04-9435a35e1c24" x="2293" y="0" width="35" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valor_total_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="6ea8cf27-0913-43db-9159-a9e03b829fee" x="1756" y="0" width="33" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{bilhete_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="3877091a-38e2-4441-9f3d-bef31afdd559" x="1466" y="0" width="24" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cod_origem_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="56f5e4ca-ffcf-4248-a03f-871e95eaa52e" x="1349" y="0" width="54" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{data_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" hyperlinkType="Reference">
|
||||
<reportElement uuid="a2c4714a-5cc0-479c-b3fc-a422b6b20d6a" x="1817" y="0" width="196" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{chbpe_original}]]></textFieldExpression>
|
||||
<hyperlinkReferenceExpression><![CDATA[$F{qrcode_original}]]></hyperlinkReferenceExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="af9d9047-00db-4d99-8cc6-a178e749be05" x="1789" y="0" width="28" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{num_bpe_original}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="3051cc68-b476-4740-9690-1e75162b4287" x="2399" y="0" width="31" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{pedagio_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="02917d1d-1f59-4dbb-963b-b05f1a70a0be" x="2328" y="0" width="33" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tarifa_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="9e5f2136-1d24-46a3-8578-e102fead4ef1" x="2217" y="0" width="45" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{documento_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="4ea81a44-b415-41da-bd24-71b1cd0dc1f3" x="1621" y="0" width="107" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{desc_destino_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="7bb13f0f-1ba3-4392-ad22-3e58f44716b0" x="1597" y="0" width="24" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cod_destino_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="cc2774ca-9955-44e1-aeca-4bc765375ed7" x="1490" y="0" width="107" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{desc_origem_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="92867cd7-9ecf-4840-b81f-cb0e2e08da09" x="2262" y="0" width="31" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valor_passagem_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="78753735-b64f-476e-8831-9fc29a31b112" x="1728" y="0" width="28" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{assento_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="b0c51f4d-8948-4419-a1cb-1289feca77ae" x="2013" y="0" width="171" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cliente_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="b6e5fea0-0b81-40d1-bcfc-e672ceca39f9" x="2361" y="0" width="38" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{seguro_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
|
||||
<reportElement uuid="624dec62-b25e-4669-a544-d2719f2f2b26" x="1403" y="0" width="63" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{data_viagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="e782977f-a4e2-4b20-b316-e3dfd2f692e5" x="2184" y="0" width="33" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipo_documento_venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<summary>
|
||||
<band height="18" splitType="Stretch"/>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="25">
|
||||
<textField>
|
||||
<reportElement uuid="8971a82a-4eed-47d8-a07a-da902b442824" x="0" y="0" width="2451" height="25"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,240 @@
|
|||
<?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" columnCount="8" printOrder="Horizontal" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="100" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
|
||||
<property name="ireport.zoom" value="1.7715610000000075"/>
|
||||
<property name="ireport.x" 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.1" value="columnHeader"/>
|
||||
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
|
||||
<parameter name="DATA_INICIAL" class="java.util.Date"/>
|
||||
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||
<parameter name="USUARIO" class="java.lang.String"/>
|
||||
<parameter name="FILTROS" class="java.lang.String"/>
|
||||
<parameter name="ESTADOS_ID" class="java.lang.String"/>
|
||||
<parameter name="inicialAutorizado" class="java.util.Collection"/>
|
||||
<parameter name="finalAutorizado" class="java.lang.Integer"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="estado" class="java.lang.String"/>
|
||||
<field name="numeroBPE" class="java.lang.Integer"/>
|
||||
<field name="serieBPE" class="java.lang.String"/>
|
||||
<field name="finalAutorizado" class="java.lang.Integer"/>
|
||||
<variable name="bilhete_COUNT" class="java.lang.Integer" resetType="Group" resetGroup="estado" calculation="Count">
|
||||
<variableExpression><![CDATA[$F{numeroBPE}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_BILHETES_GERAL" class="java.lang.Integer" incrementType="Group" incrementGroup="estado" calculation="Sum">
|
||||
<variableExpression><![CDATA[$V{bilhete_COUNT}]]></variableExpression>
|
||||
<initialValueExpression><![CDATA[]]></initialValueExpression>
|
||||
</variable>
|
||||
<variable name="inicio" class="java.lang.Integer" resetType="None" incrementType="Group" incrementGroup="estado" calculation="Lowest">
|
||||
<variableExpression><![CDATA[$F{numeroBPE}]]></variableExpression>
|
||||
<initialValueExpression><![CDATA[]]></initialValueExpression>
|
||||
</variable>
|
||||
<variable name="fim" class="java.lang.Integer" incrementType="Group" incrementGroup="estado" calculation="Highest">
|
||||
<variableExpression><![CDATA[$F{numeroBPE}]]></variableExpression>
|
||||
<initialValueExpression><![CDATA[$F{numeroBPE}]]></initialValueExpression>
|
||||
</variable>
|
||||
<group name="estado">
|
||||
<groupExpression><![CDATA[$P{ESTADOS_ID}.equals("") ? null : $F{estado}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="46">
|
||||
<staticText>
|
||||
<reportElement uuid="2abbc372-a813-4da6-8ce1-e5901a15b430" x="0" y="26" width="97" height="20"/>
|
||||
<textElement>
|
||||
<font size="11" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Número BPE ]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="b3502755-0bd7-4f2a-92da-9b978a6a1f05" x="0" y="0" width="97" height="20"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="11" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Estado:]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="6c12b027-87a2-4a76-a291-1874b37595ea" x="97" y="0" width="102" height="20">
|
||||
<printWhenExpression><![CDATA[!$P{ESTADOS_ID}.equals("")]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement>
|
||||
<font size="10" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{estado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="62d2b85b-9b75-453a-8d3d-e90136f0ce98" x="199" y="1" width="62" height="19"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="11" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Série:]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="b62df4a9-ba4b-4cb5-b7e8-ec69c20e0189" x="261" y="1" width="87" height="19">
|
||||
<printWhenExpression><![CDATA[!$P{ESTADOS_ID}.equals("")]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement>
|
||||
<font size="11" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{serieBPE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="c804ad70-880e-4aaf-b321-0da2bb917c1a" x="261" y="26" width="87" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$V{inicio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="c9a2844a-5957-46e0-b08a-8dd909d5dce6" x="199" y="26" width="62" height="20"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="11" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Nº Inicial:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="1a592966-8259-4762-94e9-d27da948da93" x="348" y="26" width="71" height="20"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="11" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Nº Final:]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="1d8c442d-ba8a-419e-9445-25690fcfc14b" x="419" y="26" width="135" height="20" printWhenGroupChanges="estado"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{finalAutorizado}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band height="31">
|
||||
<printWhenExpression><![CDATA[!$P{ESTADOS_ID}.equals("")]]></printWhenExpression>
|
||||
<textField>
|
||||
<reportElement uuid="159f0892-ce02-41a2-9c6b-e7b25ce4012a" x="702" y="8" width="100" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="11"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{bilhete_COUNT}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="e3d729bc-7c1b-4196-ba3c-c2422ba28ead" x="554" y="8" width="148" height="20"/>
|
||||
<textElement>
|
||||
<font size="11" isItalic="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total de Documentos]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement uuid="e46ceea6-b4ea-4951-8a2e-ee9969f84e91" x="0" y="1" width="801" height="1"/>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement uuid="c8484e52-e7f5-41e7-9c15-408458302a2e" x="0" y="28" width="801" height="1"/>
|
||||
</line>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<pageHeader>
|
||||
<band height="82" splitType="Stretch">
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="0" y="0" width="554" height="42" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="554" y="0" width="137" height="25"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<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"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="bbf33a72-515f-42fc-8c79-e859aebca31d" x="0" y="59" width="802" height="1"/>
|
||||
</line>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="554" y="25" width="137" height="17" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="691" y="25" width="111" height="17" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="554" y="42" width="248" height="17" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf" x="0" y="81" width="802" height="1"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="59" width="832" height="14"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="11"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<detail>
|
||||
<band height="26" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement uuid="9a639996-146c-42c9-a8fd-f947a59310f4" x="0" y="10" width="97" height="16"/>
|
||||
<textElement>
|
||||
<font size="10" isItalic="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numeroBPE}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<summary>
|
||||
<band height="21" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement uuid="8f64fd0a-a820-4ad6-8fc8-cb6d4f8e9831" x="554" y="0" width="148" height="21"/>
|
||||
<textElement>
|
||||
<font size="11" isItalic="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total Geral de Documentos]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="36133c4b-460e-4642-b827-053d0a247a18" x="702" y="0" width="100" height="21"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="11"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_BILHETES_GERAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="50">
|
||||
<textField>
|
||||
<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="0" y="24" width="802" height="26"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,168 @@
|
|||
<?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="RelatorioEncerramentoCheckin" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="0e8aff42-5ba8-48ac-9950-da8178561888">
|
||||
<property name="ireport.zoom" value="1.7715610000000017"/>
|
||||
<property name="ireport.x" value="26"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<parameter name="TITULO" class="java.lang.String"/>
|
||||
<parameter name="PERIODO_SERVICO" class="java.lang.String"/>
|
||||
<parameter name="PERIODO_ENCERRAMENTO" class="java.lang.String"/>
|
||||
<parameter name="EMPRESA" class="java.lang.String"/>
|
||||
<field name="servico" class="java.lang.Integer"/>
|
||||
<field name="dataServico" class="java.lang.String"/>
|
||||
<field name="localidade" class="java.lang.String"/>
|
||||
<field name="dataEncerramento" class="java.lang.String"/>
|
||||
<field name="usuario" class="java.lang.String"/>
|
||||
<field name="imei" class="java.lang.String"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="82" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement x="0" y="76" width="555" height="1" uuid="481b2107-ee62-4815-8a89-8435d34384c8"/>
|
||||
</line>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="111" y="40" width="444" height="15" uuid="63ce47a3-7e94-42a2-8325-eceef777fbe2"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{PERIODO_ENCERRAMENTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="0" y="40" width="111" height="15" uuid="46ecd1c0-ef3e-4274-9094-1b2dbed2fc43"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$R{header.periodo.encerramento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="454" y="0" width="44" height="10" uuid="33327397-2913-4d10-a128-6e18a85a33c7"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="0" y="56" width="111" height="15" uuid="17a5536e-1cf6-48d8-91ad-53d8148af1d6"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="482" y="14" width="44" height="10" uuid="be33ee08-3388-45c3-a0b0-29f482d37076"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.pagina} + "" + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement x="111" y="56" width="444" height="15" uuid="48f1a994-4bbe-4b8e-948f-81542fa792c3"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement x="111" y="24" width="444" height="15" uuid="7f5ee01d-f86d-49a4-a2a1-f1c671621ef0"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{PERIODO_SERVICO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="0" y="0" width="454" height="20" uuid="9bc31956-04ad-43d0-bcee-08f7b5bf1145"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="0" y="24" width="111" height="15" uuid="4a51f623-fe84-4f71-8bfe-271f36619eb1"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$R{header.periodo.servico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="499" y="0" width="56" height="10" uuid="34f65212-5ae5-4077-b4d8-64d55f0289a9"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report">
|
||||
<reportElement x="526" y="14" width="29" height="10" uuid="7883d71b-800c-4367-8c86-e8df1c9a8c35"/>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[" de " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="17" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement x="0" y="14" width="555" height="1" uuid="cd1b96dd-2097-4af7-a025-7962bc5d7bee"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="86" height="14" uuid="61efe86a-3f69-4010-ad07-57ade030c3c3"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.servico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="86" y="0" width="94" height="14" uuid="dbf216e4-6896-4a81-8391-6a51b2703155"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.data.servico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="180" y="0" width="133" height="14" uuid="7812f684-2bdd-4642-84f2-426c0fa9f826"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.localidade}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="11" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="86" height="10" uuid="6ef05dfb-fea9-451c-a45a-1dc3f766af84"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToBandHeight" x="86" y="0" width="94" height="10" uuid="bb3d4047-5bea-4a27-8fbe-0f3ffc8e2c61"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataServico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToBandHeight" x="180" y="0" width="133" height="10" uuid="75f7f9d7-1565-4fb2-81ae-2155c588c756"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{localidade}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<summary>
|
||||
<band splitType="Stretch"/>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="20">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="555" height="20" uuid="6320f11e-df43-4140-8144-55d84dc92ce6"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,333 @@
|
|||
<?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="1130" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="1090" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f">
|
||||
<property name="ireport.zoom" value="1.0980750000000004"/>
|
||||
<property name="ireport.x" value="350"/>
|
||||
<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.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.columns" value="true"/>
|
||||
<style name="zebrado">
|
||||
<conditionalStyle>
|
||||
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2==1]]></conditionExpression>
|
||||
<style backcolor="#CCCCCC"/>
|
||||
</conditionalStyle>
|
||||
</style>
|
||||
<parameter name="USUARIO" class="java.lang.String"/>
|
||||
<parameter name="NOME_RELATORIO" 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="empresa_id" class="java.lang.String"/>
|
||||
<field name="origem" class="java.lang.String"/>
|
||||
<field name="destino" class="java.lang.String"/>
|
||||
<field name="dtviagem" class="java.lang.String"/>
|
||||
<field name="valor" class="java.math.BigDecimal"/>
|
||||
<field name="chbpe" class="java.lang.String"/>
|
||||
<field name="num_bpe" class="java.lang.String"/>
|
||||
<field name="numserie_bpe" class="java.lang.String"/>
|
||||
<field name="nombempresa" class="java.lang.String"/>
|
||||
<field name="evento" class="java.lang.String"/>
|
||||
<field name="qtd" class="java.lang.String"/>
|
||||
<field name="protocolo" class="java.lang.String"/>
|
||||
<field name="uforigem" class="java.lang.String"/>
|
||||
<field name="ufdestino" class="java.lang.String"/>
|
||||
<variable name="totalValor" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{valor}]]></variableExpression>
|
||||
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
|
||||
</variable>
|
||||
<title>
|
||||
<band height="93" splitType="Stretch">
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="da52f710-3882-4beb-ba6f-870e03f6800d" mode="Transparent" x="0" y="0" width="798" height="57" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="2f4f1314-9363-4e6d-822f-c85c1890998b" mode="Transparent" x="1065" y="25" width="25" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="c8a70b8d-369e-48ae-a911-a5d9692316f7" stretchType="RelativeToBandHeight" mode="Transparent" x="798" y="42" width="292" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
|
||||
<reportElement uuid="ad4bbfb8-582d-4aa2-904d-8dfe60e54442" mode="Transparent" x="1009" y="0" width="80" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="8601bf20-f5f8-4fed-9445-7adfe580d236" mode="Transparent" x="798" y="25" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<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"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b48a0903-0b2a-4ae5-ae04-811d097a9f91" x="798" y="0" width="211" height="25"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="aff6535e-c25b-4f31-ad3a-baacc52e4974" x="-1" y="57" width="1091" height="21"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.75"/>
|
||||
<bottomPen lineWidth="0.75"/>
|
||||
</box>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<columnHeader>
|
||||
<band height="15">
|
||||
<textField>
|
||||
<reportElement uuid="2d8bc8b7-05a7-493a-ac4f-52f7f39cfa8b" x="0" y="0" width="65" height="15"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.empresaId}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="aae9977c-b656-4daf-8b9f-8fd3248542e3" x="65" y="0" width="200" height="15"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.nomeEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="38753499-ea21-4051-aaa0-a8cdc36e087d" x="265" y="0" width="42" height="15"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="3998308e-b9fe-465e-b251-47d19d7c4ddd" x="349" y="0" width="70" height="15"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="924ae914-4074-4746-97c0-b11119029cc0" x="1033" y="0" width="56" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.valorBPe}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="f9f9f464-c0da-4d85-ad06-06567943eaa8" x="703" y="0" width="221" height="15"/>
|
||||
<box leftPadding="5"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.chaveAcesso}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="8080038d-0253-4fe8-a21b-75c7257d81c5" x="307" y="0" width="42" height="15"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="6eb33a55-1523-4031-9157-04b92fd09603" x="1009" y="0" width="24" height="15"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.qtd}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="fa7c03df-c59f-4e31-96fa-8a508c19746d" x="419" y="0" width="56" height="15"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.numBPe}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="6cb48779-f12f-4422-bdcc-faba0f0bc6d2" x="924" y="0" width="85" height="15"/>
|
||||
<box leftPadding="5"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.protocolo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="e065ba85-3603-4e9b-bb55-4fc881056597" x="505" y="0" width="90" height="15"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="1bd2f4a5-8270-46b1-a46b-0863c3f21dcd" x="595" y="0" width="108" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.evento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="abec744e-661d-407e-b21b-92cedc682316" x="475" y="0" width="30" height="15"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.serie}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="e29821d0-e770-43f3-a6a2-082204e4a2c4" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="65" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa_id}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="b8ccaac1-5267-48a0-b637-b595f74b73a7" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="65" y="0" width="200" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nombempresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="2a28ff64-e39c-456c-9dc0-514a15406ed2" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="265" y="0" width="42" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{uforigem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="319b345c-ad14-4025-8fd3-3e34e8cacd54" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="307" y="0" width="42" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{ufdestino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="e6244540-af1b-4d94-8b0f-d2c3e501db61" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="349" y="0" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dtvenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="6e5187d9-591a-42ab-a394-3f990ea8adc1" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="1033" y="0" width="56" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="fe71d802-0ba0-4336-b76a-f72a37b23075" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="475" y="0" width="30" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numserie_bpe}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="07f16df1-fd27-46ba-9262-835eb8dddc96" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="419" y="0" width="56" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{num_bpe}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="8082048d-bc65-4b71-8322-309ffc7b2113" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="505" y="0" width="90" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dtviagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="26b1a9e1-ab12-4222-82a3-6aa531243cbc" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="595" y="0" width="108" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{evento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="fcf89d79-a930-4db6-b165-a9709729e9b3" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="703" y="0" width="221" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{chbpe}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="dc340bdd-44e4-4f4e-9b44-62411cb46d66" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="924" y="0" width="85" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{protocolo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="c51bed7c-2724-4cfb-8799-da09f22bd439" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="1009" y="0" width="24" height="15" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{qtd}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<lastPageFooter>
|
||||
<band/>
|
||||
</lastPageFooter>
|
||||
<summary>
|
||||
<band height="18">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="95d7aa90-90da-4ddb-b63d-16a69e4996aa" stretchType="RelativeToTallestObject" x="798" y="0" width="126" height="18"/>
|
||||
<box leftPadding="0">
|
||||
<leftPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Bottom" markup="styled">
|
||||
<font fontName="SansSerif" size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.filtro.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="933b9f19-86f6-40c1-a117-ac27ada061b7" stretchType="RelativeToTallestObject" x="924" y="0" width="165" height="18"/>
|
||||
<box>
|
||||
<leftPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right" verticalAlignment="Bottom" markup="styled">
|
||||
<font fontName="SansSerif" size="10" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{totalValor}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="29">
|
||||
<textField>
|
||||
<reportElement uuid="6b9f63c1-76d9-4dd7-8fce-9bc0d91292af" x="0" y="0" width="1090" height="29"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,267 @@
|
|||
<?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">
|
||||
<property name="ireport.zoom" value="6.1159090448414934"/>
|
||||
<property name="ireport.x" value="3899"/>
|
||||
<property name="ireport.y" value="102"/>
|
||||
<parameter name="DATA_INICIAL" class="java.util.Date"/>
|
||||
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||
<parameter name="NOME_USUARIO" class="java.lang.String"/>
|
||||
<parameter name="USUARIO_ID" class="java.lang.String"/>
|
||||
<queryString language="SQL">
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="dataAlteracao" class="java.util.Date"/>
|
||||
<field name="idAuditado" class="java.lang.String"/>
|
||||
<field name="empresa" class="java.lang.String"/>
|
||||
<field name="usuario" class="java.lang.String"/>
|
||||
<field name="tipoAlteracao" class="java.lang.String"/>
|
||||
<field name="tela" class="java.lang.String"/>
|
||||
<field name="campoAlterado" class="java.lang.String"/>
|
||||
<field name="valorAtual" class="java.lang.String"/>
|
||||
<field name="valorAnterior" class="java.lang.String"/>
|
||||
<field name="classeAlterada" class="java.lang.String"/>
|
||||
<field name="classePrincipal" class="java.lang.String"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<pageHeader>
|
||||
<band height="41">
|
||||
<textField>
|
||||
<reportElement uuid="3152d9c0-592e-4136-b3d8-2a674e779468" mode="Opaque" x="0" y="20" width="94" height="20" backcolor="#CCCCCC"/>
|
||||
<textElement markup="none">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{PERIODO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="50b8071e-9e65-49d2-bd12-b9354502caf3" mode="Opaque" x="0" y="0" width="561" height="20" backcolor="#CCCCCC"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TITULO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="07dfa225-148c-4de6-a428-3c91f83c4081" mode="Opaque" x="94" y="20" width="128" height="20" backcolor="#CCCCCC"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="3948e59f-21d8-47c8-8077-a57af30605c5" mode="Opaque" x="222" y="20" width="339" height="20" backcolor="#CCCCCC"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="7e62b5c0-9626-4774-b650-1dc0906be19d" x="1" y="40" width="801" height="1"/>
|
||||
</line>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement uuid="eeee2daa-07e2-427c-9b9a-9fdb48f7a4ea" mode="Opaque" x="640" y="0" width="162" height="20" backcolor="#CDCDCD"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="dd78670d-f524-42f3-b915-eec9faf69a27" mode="Opaque" x="561" y="20" width="139" height="20" backcolor="#CDCDCD"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="d7f6f595-b82b-4a05-9433-9313538db864" mode="Opaque" x="700" y="20" width="102" height="20" backcolor="#CDCDCD"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{USUARIO_ID}+"-"+$P{NOME_USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="d219b329-181b-4ef6-b4f6-b624acb75988" mode="Opaque" x="561" y="0" width="79" height="20" backcolor="#CDCDCD"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="29">
|
||||
<textField>
|
||||
<reportElement uuid="333a50a8-5d67-42b5-b3c6-2d70ceabfe25" x="0" y="0" width="94" height="28"/>
|
||||
<textElement markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{DATA_ALTERACAO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="29bb0167-21cd-401c-94d9-f94bb1e9b9e4" x="94" y="0" width="51" height="28"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{ID_AUDITADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="9457e696-5c75-4983-98c3-9dc4fc54e976" x="145" y="0" width="77" height="28"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{EMPRESA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="ab54d7e9-29fd-42da-9721-07fe99bb8874" x="222" y="0" width="55" height="28"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="fafe4849-b6d5-4a20-ab2c-bb3551337bbd" x="277" y="0" width="77" height="28"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TIPO_ALTERACAO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="52cf4306-6208-414e-8892-3085a69fa84a" x="354" y="0" width="70" height="28"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{TELA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="be9f28a6-e16c-49af-a1ae-a806a4a835d8" x="501" y="0" width="60" height="28"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{VALOR_ATUAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="218e15c9-18bd-4ec5-9ff1-36b5e016569e" x="561" y="0" width="79" height="28"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{VALOR_ANTERIOR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="33fdc3c8-28af-450b-9afb-bffbe50ff8b8" x="1" y="28" width="801" height="1"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement uuid="478182fa-9c5c-4e61-8719-e4b056b80585" x="640" y="0" width="60" height="28"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{CLASSE_ALTERADA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="fd782db0-7497-4596-8ace-8adbd28b895a" x="424" y="0" width="77" height="28"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{CAMPO_ALTERADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b34da1e3-7c52-4ae7-88a4-503b181eeb79" x="700" y="0" width="102" height="28"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{CLASSE_PRINCIPAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="37" splitType="Stretch">
|
||||
<textField pattern="dd/MM/yyyy HH.mm" isBlankWhenNull="true">
|
||||
<reportElement uuid="66455995-be07-4062-8234-ade8ccfd79c0" x="1" y="0" width="93" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataAlteracao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="151a46f2-5c54-4a0e-91c2-a49986a08cff" x="145" y="0" width="77" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab" x="94" y="0" width="51" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{idAuditado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d2f490c1-e807-4243-a3e0-b86229a83c6b" x="222" y="0" width="55" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{usuario}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="dcb305f9-8649-4440-a485-4ada6876b066" x="561" y="0" width="79" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorAnterior}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="acacd737-9c59-4893-ac3a-ab43c1909a69" x="640" y="0" width="60" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{classeAlterada}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="a3119d26-2d10-40c5-98dc-bf0f6be3fc25" x="277" y="0" width="77" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipoAlteracao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="ccad4f84-243a-47cf-904a-15c4ba7feee4" x="354" y="0" width="70" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tela}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="48f4dece-76dc-4445-89f3-73c0537c8bf9" x="424" y="0" width="77" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{campoAlterado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d098d054-0eef-474a-91d3-c7ea9090ab74" x="501" y="0" width="60" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorAtual}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="182eb372-ed63-41a3-bf16-bfe1c4a97cd7" x="700" y="0" width="102" height="37" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{classePrincipal}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band/>
|
||||
</columnFooter>
|
||||
<lastPageFooter>
|
||||
<band/>
|
||||
</lastPageFooter>
|
||||
<summary>
|
||||
<band height="50">
|
||||
<line>
|
||||
<reportElement uuid="29cf051d-d1b2-4744-932b-9e8adb6b254d" x="1" y="0" width="801" height="1"/>
|
||||
</line>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="45">
|
||||
<textField>
|
||||
<reportElement uuid="6c28de84-ceae-409b-bde5-04f66cb9a805" x="1" y="12" width="801" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,268 @@
|
|||
<?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="RelatorioVendasCartoesAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativoAlternativo" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ae2cbb01-bc79-4d18-8206-3b59273fe793">
|
||||
<property name="ireport.zoom" value="4.177248169415656"/>
|
||||
<property name="ireport.x" value="2573"/>
|
||||
<property name="ireport.y" value="78"/>
|
||||
<parameter name="NOMBEMPRESA" class="java.lang.String"/>
|
||||
<parameter name="DATA_INICIAL" class="java.lang.String">
|
||||
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||
</parameter>
|
||||
<parameter name="DATA_FINAL" class="java.lang.String"/>
|
||||
<parameter name="LINHA_FILTRO" class="java.lang.String"/>
|
||||
<parameter name="SERVICO_FILTRO" class="java.lang.String"/>
|
||||
<parameter name="TOTAL_PASSAGENS" class="java.math.BigDecimal"/>
|
||||
<parameter name="DESCGRUPO" class="java.lang.String"/>
|
||||
<parameter name="NOME_EMPRESA" class="java.lang.String"/>
|
||||
<parameter name="ESTACAO" class="java.lang.String"/>
|
||||
<parameter name="NOME_USUARIO" class="java.lang.String"/>
|
||||
<parameter name="NOME_AGENCIA" class="java.lang.String"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="valorTotal" class="java.math.BigDecimal"/>
|
||||
<field name="descPagamento" class="java.lang.String"/>
|
||||
<field name="dataOperacao" class="java.util.Date"/>
|
||||
<field name="autorizacao" class="java.lang.String"/>
|
||||
<field name="qtdParcelas" class="java.lang.Integer"/>
|
||||
<field name="dataVenda" class="java.util.Date"/>
|
||||
<field name="valor" class="java.math.BigDecimal"/>
|
||||
<variable name="total_group" class="java.math.BigDecimal" resetType="Group" resetGroup="groupRuta" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{valorTotal}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{valor}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_TIPO_CARTAO" class="java.math.BigDecimal" resetType="Group" resetGroup="groupRuta" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{valor}]]></variableExpression>
|
||||
</variable>
|
||||
<group name="groupRuta">
|
||||
<groupExpression><![CDATA[$F{descPagamento}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="19">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="0" y="0" width="179" height="16" uuid="f1171f5c-2175-4176-82b0-c1a31f78f1d3"/>
|
||||
<textElement>
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{descPagamento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="0" width="803" height="1" uuid="b6bdef50-f793-4c23-b188-505c0fb7bf18"/>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="0" y="15" width="802" height="1" uuid="6e1204b5-dc16-40df-b592-9046e0b31a14"/>
|
||||
</line>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band height="25">
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="0" width="803" height="1" uuid="8dd18564-6d32-4232-a0fd-f39054849109"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="0" y="1" width="218" height="23" uuid="a7c33cf2-944b-4bd1-bb55-72ab698cc599"/>
|
||||
<textElement>
|
||||
<font size="12" isBold="true" isItalic="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{descPagamento}.equals("CRÉDITO") ? $R{total.credito} : $R{total.debito}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="349" y="1" width="38" height="10" uuid="27802809-5617-44e5-a89b-cc64e8bde961"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{total_group}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="648" y="1" width="132" height="23" uuid="b3279060-d361-41c6-bc5c-a02d9d08774c"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_TIPO_CARTAO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="110" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="20" width="349" height="20" uuid="2523431f-2c2c-4a2b-a34f-785b8ea8f9dd"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="15"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.titulo.relatorio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="40" width="112" height="20" uuid="9bb1d24c-1a5c-4281-b900-d35779e00807"/>
|
||||
<textElement>
|
||||
<font size="12"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.periodo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="648" y="0" width="56" height="20" uuid="77235663-6b8a-411f-89be-24b315b65adb"/>
|
||||
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="704" y="20" width="52" height="20" uuid="cf1bcbcf-84b8-4d90-bbc7-22d9c7186952"/>
|
||||
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="704" y="0" width="98" height="20" uuid="efdae9bf-3550-4620-acd0-20c9c7b0e3b1"/>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="756" y="20" width="24" height="20" uuid="4070d457-cdcc-434e-8e50-5494a05815f9"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report">
|
||||
<reportElement x="780" y="20" width="22" height="20" uuid="26156964-8733-4ad1-96fd-2ae8414636b7"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="60" width="802" height="1" uuid="27a77abc-db13-4836-9261-8208f3825802"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="0" y="61" width="780" height="20" uuid="06a43567-1fd2-4c86-a0cc-443618ddf965"/>
|
||||
<textElement>
|
||||
<font size="11"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.filtro} + $R{header.filtro.empresa} + " ( " + $P{NOME_EMPRESA} + " ) " + $R{header.filtro.agencia} + " ( " + $P{NOME_AGENCIA} + " ) " + $R{header.filtro.estacao} + " ( " + $P{ESTACAO} + " ) "+ $R{header.filtro.bilheteiro} + " ( " + $P{NOME_USUARIO} + " ) "]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="85" width="803" height="1" uuid="48a39edc-ed2a-40cb-8bfb-6e97bcb9088a"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="0" y="86" width="179" height="23" uuid="c0f124b2-3691-4f49-9b86-69d76f249584"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.dataOperacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="179" y="86" width="170" height="23" uuid="5faeb20b-f423-4bfa-bb2e-1f4f4aed6627"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.autorizacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="349" y="86" width="131" height="23" uuid="824877eb-7028-4256-9503-7045d7eaee3c"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.qtdParcelas}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="480" y="86" width="168" height="23" uuid="b9d303b2-5ea9-4cf0-845b-142089ac8f4d"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.dataVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="480" y="86" width="300" height="23" uuid="c5d483c4-89a2-4724-ad57-731676551f0f"/>
|
||||
<textElement textAlignment="Right" markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.valor}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="112" y="40" width="237" height="20" uuid="cb391edc-e0b3-4fbb-a58f-f26191bc1c16"/>
|
||||
<textElement>
|
||||
<font size="12"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{DATA_INICIAL} + " a " + $P{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="648" y="0" width="132" height="15" uuid="80a57c70-9f34-49b9-86f9-14bb27c462ca"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement x="480" y="0" width="168" height="15" uuid="70f7c504-926b-4c12-ae8a-5c7fe4a9e45f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement x="0" y="0" width="179" height="15" uuid="ec2db54b-37be-4aba-95a3-d2e3067ee3e5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataOperacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement x="179" y="1" width="170" height="14" uuid="9e67df94-d0f8-4a04-86c0-4862a331d448"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{autorizacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement x="349" y="1" width="131" height="14" uuid="e2737ee4-a6ee-4f1f-9a57-974c926a5d0d"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{qtdParcelas}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<lastPageFooter>
|
||||
<band/>
|
||||
</lastPageFooter>
|
||||
<summary>
|
||||
<band height="22" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="1" width="112" height="21" uuid="6813f5a3-1810-4b53-82ea-3df08df9548f"/>
|
||||
<textElement>
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{group.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="0" width="803" height="1" uuid="d9792af6-b583-4b6e-bb69-7edd7f78fdfa"/>
|
||||
</line>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="648" y="1" width="132" height="21" uuid="7ef31b82-e8a2-4baa-821a-174d5ca113fe"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="20">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="780" height="20" uuid="3429e199-e682-4e28-b2ce-1bc9f2d031b2"/>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -0,0 +1,107 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class LogAuditoriaBean {
|
||||
|
||||
private String idAuditado;
|
||||
private String empresa;
|
||||
private String valorAnterior;
|
||||
private String valorAtual;
|
||||
private String campoAlterado;
|
||||
private String classeAlterada;
|
||||
private String classePrincipal;
|
||||
private String tela;
|
||||
private String tipoAlteracao;
|
||||
private Date dataAlteracao;
|
||||
private String usuario;
|
||||
|
||||
public String getIdAuditado() {
|
||||
return idAuditado;
|
||||
}
|
||||
|
||||
public void setIdAuditado(String idAuditado) {
|
||||
this.idAuditado = idAuditado;
|
||||
}
|
||||
|
||||
public String getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(String empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public String getValorAnterior() {
|
||||
return valorAnterior;
|
||||
}
|
||||
|
||||
public void setValorAnterior(String valorAnterior) {
|
||||
this.valorAnterior = valorAnterior;
|
||||
}
|
||||
|
||||
public String getValorAtual() {
|
||||
return valorAtual;
|
||||
}
|
||||
|
||||
public void setValorAtual(String valorAtual) {
|
||||
this.valorAtual = valorAtual;
|
||||
}
|
||||
|
||||
public String getCampoAlterado() {
|
||||
return campoAlterado;
|
||||
}
|
||||
|
||||
public void setCampoAlterado(String campoAlterado) {
|
||||
this.campoAlterado = campoAlterado;
|
||||
}
|
||||
|
||||
public String getClasseAlterada() {
|
||||
return classeAlterada;
|
||||
}
|
||||
|
||||
public void setClasseAlterada(String classeAlterada) {
|
||||
this.classeAlterada = classeAlterada;
|
||||
}
|
||||
|
||||
public String getClassePrincipal() {
|
||||
return classePrincipal;
|
||||
}
|
||||
|
||||
public void setClassePrincipal(String classePrincipal) {
|
||||
this.classePrincipal = classePrincipal;
|
||||
}
|
||||
|
||||
public String getTela() {
|
||||
return tela;
|
||||
}
|
||||
|
||||
public void setTela(String tela) {
|
||||
this.tela = tela;
|
||||
}
|
||||
|
||||
public String getTipoAlteracao() {
|
||||
return tipoAlteracao;
|
||||
}
|
||||
|
||||
public void setTipoAlteracao(String tipoAlteracao) {
|
||||
this.tipoAlteracao = tipoAlteracao;
|
||||
}
|
||||
|
||||
public Date getDataAlteracao() {
|
||||
return dataAlteracao;
|
||||
}
|
||||
|
||||
public void setDataAlteracao(Date dataAlteracao) {
|
||||
this.dataAlteracao = dataAlteracao;
|
||||
}
|
||||
|
||||
public String getUsuario() {
|
||||
return usuario;
|
||||
}
|
||||
|
||||
public void setUsuario(String usuario) {
|
||||
this.usuario = usuario;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
public class RelatorioBpeNumeracaoReusoBean {
|
||||
|
||||
private Integer numeroBPE;
|
||||
private Integer finalAutorizado;
|
||||
private String estado;
|
||||
private String serieBPE;
|
||||
|
||||
public Integer getFinalAutorizado() {
|
||||
return finalAutorizado;
|
||||
}
|
||||
|
||||
public void setFinalAutorizado(Integer finalAutorizado) {
|
||||
this.finalAutorizado = finalAutorizado;
|
||||
}
|
||||
|
||||
public String getEstado() {
|
||||
return estado;
|
||||
}
|
||||
|
||||
public void setEstado(String estado) {
|
||||
this.estado = estado;
|
||||
}
|
||||
|
||||
public Integer getNumeroBPE() {
|
||||
return numeroBPE;
|
||||
}
|
||||
|
||||
public void setNumeroBPE(Integer numeroBPE) {
|
||||
this.numeroBPE = numeroBPE;
|
||||
}
|
||||
|
||||
public String getSerieBPE() {
|
||||
return serieBPE;
|
||||
}
|
||||
|
||||
public void setSerieBPE(String serieBPE) {
|
||||
this.serieBPE = serieBPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((estado == null) ? 0 : estado.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
RelatorioBpeNumeracaoReusoBean other = (RelatorioBpeNumeracaoReusoBean) obj;
|
||||
if (estado == null) {
|
||||
if (other.estado != null)
|
||||
return false;
|
||||
} else if (!estado.equals(other.estado))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
public class RelatorioCheckinAbertoBean {
|
||||
|
||||
private Integer servico;
|
||||
private String dataServico;
|
||||
private String localidade;
|
||||
private String dataEncerramento;
|
||||
private String usuario;
|
||||
private String imei;
|
||||
|
||||
public Integer getServico() {
|
||||
return servico;
|
||||
}
|
||||
|
||||
public void setServico(Integer servico) {
|
||||
this.servico = servico;
|
||||
}
|
||||
|
||||
public String getDataServico() {
|
||||
return dataServico;
|
||||
}
|
||||
|
||||
public void setDataServico(String dataServico) {
|
||||
this.dataServico = dataServico;
|
||||
}
|
||||
|
||||
public String getLocalidade() {
|
||||
return localidade;
|
||||
}
|
||||
|
||||
public void setLocalidade(String localidade) {
|
||||
this.localidade = localidade;
|
||||
}
|
||||
|
||||
public String getDataEncerramento() {
|
||||
return dataEncerramento;
|
||||
}
|
||||
|
||||
public void setDataEncerramento(String dataEncerramento) {
|
||||
this.dataEncerramento = dataEncerramento;
|
||||
}
|
||||
|
||||
public String getUsuario() {
|
||||
return usuario;
|
||||
}
|
||||
|
||||
public void setUsuario(String usuario) {
|
||||
this.usuario = usuario;
|
||||
}
|
||||
|
||||
public String getImei() {
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setImei(String imei) {
|
||||
this.imei = imei;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,319 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Bandbox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPeSubstituido;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEstadoSimple;
|
||||
import com.trg.search.Filter;
|
||||
|
||||
@Controller("relatorioBPeSubstituidoController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioBPeSubstituidoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Datebox dtInicio;
|
||||
private Datebox dtFim;
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private MyListbox estadoList;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private List<Estado> lsEstado;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private EstadoService estadoService;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||
private ArrayList<PuntoVenta> lsNumPuntoVenta = new ArrayList<PuntoVenta>();
|
||||
private MyListbox puntoVentaList;
|
||||
private Paging pagingPuntoVenta;
|
||||
private Bandbox bbPesquisaPuntoVenta;
|
||||
private Textbox txtPalavraPesquisa;
|
||||
private MyListbox puntoVentaSelList;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
lsEstado = estadoService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
estadoList.setItemRenderer(new RenderEstadoSimple());
|
||||
estadoList.setData(lsEstado);
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void executarRelatorio() throws Exception {
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
StringBuilder filtro = new StringBuilder();
|
||||
|
||||
if (!validar()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dtInicio.getValue() != null && dtFim.getValue() != null) {
|
||||
filtro.append("Data: ")
|
||||
.append(DateUtil.getStringDate(dtInicio.getValue(), "dd/MM/yyyy"))
|
||||
.append(" - ")
|
||||
.append(DateUtil.getStringDate(dtFim.getValue(), "dd/MM/yyyy"))
|
||||
.append(";");
|
||||
parametros.put("DATA_INICIO", (java.util.Date) dtInicio.getValue());
|
||||
parametros.put("DATA_FIM", (java.util.Date) dtFim.getValue());
|
||||
}
|
||||
|
||||
parametros.put("nome_relatorio", Labels.getLabel("relatorioBPeSubstituidoController.window.title"));
|
||||
parametros.put("usuario", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
parametros.put("usuario_nome", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||
|
||||
filtro.append("UF: ");
|
||||
String estadosIds = "";
|
||||
String UFs = "";
|
||||
List<Object> lsEstadosSelecionados = estadoList.getItensSelecionados();
|
||||
|
||||
if (!lsEstadosSelecionados.isEmpty()) {
|
||||
for (int i = 0; i < lsEstadosSelecionados.size(); i++) {
|
||||
Estado estado = (Estado) lsEstadosSelecionados.get(i);
|
||||
UFs = UFs + estado.getCveestado() + ",";
|
||||
estadosIds = estadosIds + estado.getCodibge() + ",";
|
||||
}
|
||||
|
||||
estadosIds = estadosIds.substring(0, estadosIds.length() - 1);
|
||||
UFs = UFs.substring(0, UFs.length() - 1);
|
||||
parametros.put("ESTADOS_ID", estadosIds);
|
||||
filtro.append(UFs).append(";");
|
||||
} else {
|
||||
filtro.append("Todos; ");
|
||||
}
|
||||
|
||||
filtro.append("Agência: ");
|
||||
String pvIds = "";
|
||||
String PVs = "";
|
||||
lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
||||
|
||||
if (lsNumPuntoVenta.size() > 0) {
|
||||
for (PuntoVenta p : lsNumPuntoVenta) {
|
||||
PVs = PVs + p.getNombpuntoventa() + ",";
|
||||
pvIds = pvIds + p.getPuntoventaId() + ",";
|
||||
}
|
||||
|
||||
pvIds = pvIds.substring(0, pvIds.length() - 1);
|
||||
PVs = PVs.substring(0, PVs.length() - 1);
|
||||
parametros.put("PUNTOVENTA_ID", pvIds);
|
||||
filtro.append(PVs).append(";");
|
||||
} else {
|
||||
filtro.append("Todas; ");
|
||||
}
|
||||
|
||||
|
||||
filtro.append("Empresa: ");
|
||||
if (cmbEmpresa.getSelectedItem() == null ) {
|
||||
filtro.append(" Todas; ");
|
||||
}else{
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
if (itemEmpresa != null) {
|
||||
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||
parametros.put("EMPRESA_ID", String.valueOf(empresa.getEmpresaId()));
|
||||
filtro.append(empresa.getNombempresa()).append(";");
|
||||
} else {
|
||||
filtro.append(" Todas; ");
|
||||
}
|
||||
}
|
||||
|
||||
parametros.put("FILTROS", filtro.toString());
|
||||
|
||||
Relatorio relatorio = new RelatorioBPeSubstituido(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("relatorioBPeSubstituidoController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private boolean validar() {
|
||||
|
||||
try {
|
||||
if (dtInicio.getValue() == null || dtFim.getValue() == null) {
|
||||
Messagebox.show(Labels.getLabel("relatorioBPeSubstituidoController.data.obrigatoria"),
|
||||
Labels.getLabel("relatorioBPeSubstituidoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(dtInicio.getValue().after(dtFim.getValue())){
|
||||
Messagebox.show(Labels.getLabel("relatorioBPeSubstituidoController.MSG.dataInicialMaiorFinal"),
|
||||
Labels.getLabel("relatorioBPeSubstituidoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return false;
|
||||
}
|
||||
|
||||
} catch (InterruptedException ex) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
public void onDoubleClick$puntoVentaList(Event ev) {
|
||||
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaList.getSelected();
|
||||
puntoVentaSelList.addItemNovo(puntoVentaSel);
|
||||
}
|
||||
|
||||
public void onDoubleClick$puntoVentaSelList(Event ev) {
|
||||
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaSelList.getSelected();
|
||||
puntoVentaSelList.removeItem(puntoVentaSel);
|
||||
}
|
||||
|
||||
public void onSelect$puntoVentaList(Event ev) {
|
||||
}
|
||||
|
||||
public void onClick$btnLimpar(Event ev) {
|
||||
limparPesquisaAgencia();
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
executarPesquisa();
|
||||
}
|
||||
|
||||
private void executarPesquisa() {
|
||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
|
||||
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class,
|
||||
pagingPuntoVenta.getPageSize());
|
||||
|
||||
puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")));
|
||||
|
||||
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
|
||||
|
||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||
|
||||
if (puntoVentaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void limparPesquisaAgencia() {
|
||||
puntoVentaList.clearSelection();
|
||||
|
||||
lsNumPuntoVenta.clear();
|
||||
this.bbPesquisaPuntoVenta.setValue("");
|
||||
}
|
||||
|
||||
public Datebox getDtInicio() {
|
||||
return dtInicio;
|
||||
}
|
||||
|
||||
public void setDtInicio(Datebox dtInicio) {
|
||||
this.dtInicio = dtInicio;
|
||||
}
|
||||
|
||||
public Datebox getDtFim() {
|
||||
return dtFim;
|
||||
}
|
||||
|
||||
public void setDtFim(Datebox dtFim) {
|
||||
this.dtFim = dtFim;
|
||||
}
|
||||
|
||||
public MyComboboxEstandar getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public MyListbox getEstadoList() {
|
||||
return estadoList;
|
||||
}
|
||||
|
||||
public void setEstadoList(MyListbox estadoList) {
|
||||
this.estadoList = estadoList;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||
this.lsEmpresa = lsEmpresa;
|
||||
}
|
||||
|
||||
public List<Estado> getLsEstado() {
|
||||
return lsEstado;
|
||||
}
|
||||
|
||||
public void setLsEstado(List<Estado> lsEstado) {
|
||||
this.lsEstado = lsEstado;
|
||||
}
|
||||
|
||||
public EmpresaService getEmpresaService() {
|
||||
return empresaService;
|
||||
}
|
||||
|
||||
public void setEmpresaService(EmpresaService empresaService) {
|
||||
this.empresaService = empresaService;
|
||||
}
|
||||
|
||||
public DataSource getDataSourceRead() {
|
||||
return dataSourceRead;
|
||||
}
|
||||
|
||||
public void setDataSourceRead(DataSource dataSourceRead) {
|
||||
this.dataSourceRead = dataSourceRead;
|
||||
}
|
||||
|
||||
public EstadoService getEstadoService() {
|
||||
return estadoService;
|
||||
}
|
||||
|
||||
public void setEstadoService(EstadoService estadoService) {
|
||||
this.estadoService = estadoService;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,140 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCheckinAberto;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioEncerramentoCheckin;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MensagensUtils;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
//Mantis 15199
|
||||
|
||||
@Controller("relatorioEncerramentoCheckinController")
|
||||
@Scope("prototype")
|
||||
@SuppressWarnings("serial")
|
||||
public class RelatorioCheckinEnacerramentoAbertoController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
private Datebox dataInicioServico;
|
||||
private Datebox dataFimServico;
|
||||
private Datebox dataInicioEncerramento;
|
||||
private Datebox dataFimEncerramento;
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private MyComboboxParada cmbLocalidade;
|
||||
private List<Empresa> lsEmpresas;
|
||||
private Checkbox chcEncerrado;
|
||||
private Checkbox chcAberto;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
lsEmpresas = empresaService.obtenerTodos();
|
||||
chcEncerrado.setChecked(Boolean.TRUE);
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
private void executarRelatorio() throws Exception {
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
|
||||
// Datas
|
||||
putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO, this.dataInicioServico.getValue());
|
||||
putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_FIM_SERVICO, this.dataFimServico.getValue());
|
||||
putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO, this.dataInicioEncerramento.getValue());
|
||||
putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO, this.dataFimEncerramento.getValue());
|
||||
|
||||
// Validação datas
|
||||
if (parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_SERVICO) || !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO) && parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_SERVICO)) {
|
||||
MensagensUtils.showMessageInformation(Labels.getLabel("relatorioEncerramentoCheckinController.data.servico.obrigatoria"), Labels.getLabel("relatorioEncerramentoCheckinController.window.title"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO) || !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO) && parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO)) {
|
||||
MensagensUtils.showMessageInformation(Labels.getLabel("relatorioEncerramentoCheckinController.data.encerramento.obrigatoria"), Labels.getLabel("relatorioEncerramentoCheckinController.window.title"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_SERVICO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO)) {
|
||||
MensagensUtils.showMessageInformation(Labels.getLabel("relatorioEncerramentoCheckinController.data.obrigatoria"), Labels.getLabel("relatorioEncerramentoCheckinController.window.title"));
|
||||
return;
|
||||
}
|
||||
|
||||
// Empresa
|
||||
if (cmbEmpresa.getSelectedIndex() != -1) {
|
||||
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
parametros.put("empresa_id", empresa.getEmpresaId());
|
||||
parametros.put("EMPRESA", empresa.getNombempresa());
|
||||
} else {
|
||||
parametros.put("EMPRESA", "TODAS");
|
||||
}
|
||||
|
||||
// Localidade
|
||||
if (cmbLocalidade.getSelectedIndex() != -1) {
|
||||
parametros.put("localidade_id", ((Parada) cmbLocalidade.getSelectedItem().getValue()).getParadaId());
|
||||
}
|
||||
|
||||
Relatorio relatorio = null;
|
||||
if(chcEncerrado.isChecked()) {
|
||||
parametros.put("TITULO", Labels.getLabel("relatorioEncerramentoCheckinController.window.title"));
|
||||
relatorio = new RelatorioEncerramentoCheckin(parametros, dataSourceRead.getConnection());
|
||||
}else {
|
||||
parametros.put("TITULO", Labels.getLabel("relatorioCheckinAbertoController.window.title"));
|
||||
relatorio = new RelatorioCheckinAberto(parametros, dataSourceRead.getConnection());
|
||||
}
|
||||
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
if(chcEncerrado.isChecked()) {
|
||||
openWindow("/component/reportView.zul", Labels.getLabel("relatorioEncerramentoCheckinController.window.title"), args, MODAL);
|
||||
}else {
|
||||
openWindow("/component/reportView.zul", Labels.getLabel("relatorioCheckinAbertoController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void putParametrosDate(Map<String, Object> parametros, String nomeParametro, Date data) {
|
||||
if (data != null) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||
parametros.put(nomeParametro, sdf.format(data));
|
||||
}
|
||||
}
|
||||
|
||||
// gets/sets
|
||||
public List<Empresa> getLsEmpresas() {
|
||||
return lsEmpresas;
|
||||
}
|
||||
|
||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,243 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCteos;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEstadoUf;
|
||||
|
||||
@Controller("relatorioCteosController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioCteosController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Datebox dtInicio;
|
||||
private Datebox dtFim;
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private Combobox cmbPuntoVenta;
|
||||
private MyListbox estadoList;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private List<Estado> lsEstado;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private EstadoService estadoService;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
lsEstado = estadoService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
estadoList.setItemRenderer(new RenderEstadoUf());
|
||||
estadoList.setData(lsEstado);
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void executarRelatorio() throws Exception {
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
StringBuilder filtro = new StringBuilder();
|
||||
|
||||
if (!validar()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dtInicio.getValue() != null && dtFim.getValue() != null) {
|
||||
filtro.append("Data: ")
|
||||
.append(DateUtil.getStringDate(dtInicio.getValue(), "dd/MM/yyyy"))
|
||||
.append(" - ")
|
||||
.append(DateUtil.getStringDate(dtFim.getValue(), "dd/MM/yyyy"))
|
||||
.append(";");
|
||||
parametros.put("DATA_INICIO", (java.util.Date) dtInicio.getValue());
|
||||
parametros.put("DATA_FIM", (java.util.Date) dtFim.getValue());
|
||||
}
|
||||
|
||||
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioCteosController.window.title"));
|
||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||
|
||||
filtro.append("UF: ");
|
||||
String estadosIds = "";
|
||||
String UFs = "";
|
||||
List<Object> lsEstadosSelecionados = estadoList.getItensSelecionados();
|
||||
|
||||
if (!lsEstadosSelecionados.isEmpty()) {
|
||||
for (int i = 0; i < lsEstadosSelecionados.size(); i++) {
|
||||
Estado estado = (Estado) lsEstadosSelecionados.get(i);
|
||||
UFs = UFs + estado.getCveestado() + ",";
|
||||
estadosIds = estadosIds + estado.getEstadoId() + ",";
|
||||
}
|
||||
|
||||
estadosIds = estadosIds.substring(0, estadosIds.length() - 1);
|
||||
UFs = UFs.substring(0, UFs.length() - 1);
|
||||
parametros.put("ESTADOS_ID", estadosIds);
|
||||
} else {
|
||||
filtro.append("Todos ");
|
||||
}
|
||||
|
||||
filtro.append(UFs).append(";");
|
||||
|
||||
filtro.append("Empresa: ");
|
||||
|
||||
|
||||
if (cmbEmpresa.getSelectedItem() == null ) {
|
||||
filtro.append(" Todas; ");
|
||||
}else{
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
if (itemEmpresa != null) {
|
||||
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||
parametros.put("EMPRESA_ID", String.valueOf(empresa.getEmpresaId()));
|
||||
filtro.append(empresa.getNombempresa()).append(";");
|
||||
} else {
|
||||
filtro.append(" Todas; ");
|
||||
}
|
||||
}
|
||||
|
||||
parametros.put("FILTROS", filtro.toString());
|
||||
|
||||
Relatorio relatorio = new RelatorioCteos(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("relatorioCteosController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private boolean validar() {
|
||||
|
||||
try {
|
||||
if (dtInicio.getValue() == null || dtFim.getValue() == null) {
|
||||
Messagebox.show(Labels.getLabel("relatorioCteosController.data.obrigatoria"),
|
||||
Labels.getLabel("relatorioCteosController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(dtInicio.getValue().after(dtFim.getValue())){
|
||||
Messagebox.show(Labels.getLabel("relatorioCteosController.MSG.dataInicialMaiorFinal"),
|
||||
Labels.getLabel("relatorioCteosController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return false;
|
||||
}
|
||||
|
||||
} catch (InterruptedException ex) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
public Datebox getDtInicio() {
|
||||
return dtInicio;
|
||||
}
|
||||
|
||||
public void setDtInicio(Datebox dtInicio) {
|
||||
this.dtInicio = dtInicio;
|
||||
}
|
||||
|
||||
public Datebox getDtFim() {
|
||||
return dtFim;
|
||||
}
|
||||
|
||||
public void setDtFim(Datebox dtFim) {
|
||||
this.dtFim = dtFim;
|
||||
}
|
||||
|
||||
public MyComboboxEstandar getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public Combobox getCmbPuntoVenta() {
|
||||
return cmbPuntoVenta;
|
||||
}
|
||||
|
||||
public void setCmbPuntoVenta(Combobox cmbPuntoVenta) {
|
||||
this.cmbPuntoVenta = cmbPuntoVenta;
|
||||
}
|
||||
|
||||
public MyListbox getEstadoList() {
|
||||
return estadoList;
|
||||
}
|
||||
|
||||
public void setEstadoList(MyListbox estadoList) {
|
||||
this.estadoList = estadoList;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||
this.lsEmpresa = lsEmpresa;
|
||||
}
|
||||
|
||||
public List<Estado> getLsEstado() {
|
||||
return lsEstado;
|
||||
}
|
||||
|
||||
public void setLsEstado(List<Estado> lsEstado) {
|
||||
this.lsEstado = lsEstado;
|
||||
}
|
||||
|
||||
public EmpresaService getEmpresaService() {
|
||||
return empresaService;
|
||||
}
|
||||
|
||||
public void setEmpresaService(EmpresaService empresaService) {
|
||||
this.empresaService = empresaService;
|
||||
}
|
||||
|
||||
public DataSource getDataSourceRead() {
|
||||
return dataSourceRead;
|
||||
}
|
||||
|
||||
public void setDataSourceRead(DataSource dataSourceRead) {
|
||||
this.dataSourceRead = dataSourceRead;
|
||||
}
|
||||
|
||||
public EstadoService getEstadoService() {
|
||||
return estadoService;
|
||||
}
|
||||
|
||||
public void setEstadoService(EstadoService estadoService) {
|
||||
this.estadoService = estadoService;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.remessa;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.media.Media;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Filedownload;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.UploadEvent;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.ImportacaoRetornoBancarioService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
@Controller("importarRetornoBancarioController")
|
||||
@Scope("prototype")
|
||||
public class ImportarRetornoBancarioController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ImportacaoRetornoBancarioService importacaoRetornoBancarioService;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
lsEmpresa = new ArrayList<Empresa>();
|
||||
lsEmpresa.addAll(empresaService.obtenerTodos());
|
||||
}
|
||||
|
||||
public void onUpload(UploadEvent event) throws IOException, InterruptedException {
|
||||
final String resultado;
|
||||
|
||||
if (cmbEmpresa.getSelectedItem() == null){
|
||||
Messagebox.show(Labels.getLabel("relatorioRetornoBancario.MSG.erroSemEmpresa"),
|
||||
Labels.getLabel("importarClientesController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
Media media = event.getMedia();
|
||||
if(media.getName().toLowerCase().endsWith(".ret")){
|
||||
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
ByteArrayInputStream bais = new ByteArrayInputStream( media.getByteData()) ;
|
||||
resultado = importacaoRetornoBancarioService.lerArquivo(bais, empresa);
|
||||
}else{
|
||||
Messagebox.show(Labels.getLabel("relatorioRetornoBancario.MSG.extensaoInvalida"),
|
||||
Labels.getLabel("importarRetornoBancarioController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
if (resultado.startsWith("Arquivo Processado com sucesso")) {
|
||||
Messagebox.show("Arquivo Processado com sucesso",
|
||||
Labels.getLabel("importarRetornoBancarioController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}else if (resultado.startsWith("Arquivo Processado com ressalvas")) {
|
||||
Messagebox.show("Arquivo Processado com ressalvas",
|
||||
Labels.getLabel("importarRetornoBancarioController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
} else {
|
||||
Messagebox.show(resultado,
|
||||
Labels.getLabel("importarRetornoBancarioController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
Messagebox.show("Deseja baixar arquivo com detalhes do processamento?",
|
||||
Labels.getLabel("importarRetornoBancarioController.window.title"),
|
||||
Messagebox.OK | Messagebox.CANCEL,
|
||||
Messagebox.QUESTION,
|
||||
new org.zkoss.zk.ui.event.EventListener(){
|
||||
public void onEvent(Event e){
|
||||
if(Messagebox.ON_OK.equals(e.getName())){
|
||||
InputStream is = new ByteArrayInputStream(resultado.getBytes());
|
||||
Filedownload.save(is, "application/txt", "detalhe_processamento.txt");
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||
this.lsEmpresa = lsEmpresa;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.api;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.DatatypeConverter;
|
||||
|
||||
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 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;
|
||||
|
||||
public class ApiCallRunnable implements Runnable {
|
||||
|
||||
private static Logger log = Logger.getLogger(ApiCallRunnable.class);
|
||||
private static final int minutesExpireToken = 10;
|
||||
private static final String secret = "#KO&Fm4_k.sU9M8`6Mx'F\\\"H:*Qxu]6F4r,)JmZ2Jwafd)I.2[RET'1:)VQ6mG9,";
|
||||
|
||||
private final String url;
|
||||
private final String tenant;
|
||||
private String retorno;
|
||||
private String urlBase;
|
||||
|
||||
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 getUrlBase() {
|
||||
return urlBase;
|
||||
}
|
||||
|
||||
public void setUrlBase(String urlBase) {
|
||||
this.urlBase = urlBase;
|
||||
}
|
||||
|
||||
public ApiCallRunnable(String url, String tenant, String urlOriginal) {
|
||||
this.url = url;
|
||||
this.tenant = tenant;
|
||||
this.urlBase = 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 :: Headers = %s", response.getStatusLine().getStatusCode(),Arrays.toString(response.getAllHeaders())));
|
||||
}
|
||||
|
||||
Integer codigoRetorno = (response != null && response.getStatusLine() != null) ? response.getStatusLine().getStatusCode() : null;
|
||||
|
||||
retorno = montarMensagemRetorno(tenant, urlBase, codigoRetorno, null);
|
||||
|
||||
} catch (Exception e) {
|
||||
retorno = montarMensagemRetorno(tenant, urlBase, 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();
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.bpe;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class SubMenuRelatorioBpe extends DefaultItemMenuSistema {
|
||||
|
||||
public SubMenuRelatorioBpe() {
|
||||
super("indexController.mniRelatoriosBpe.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioBPeSubstituido extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioBPeSubstituido() {
|
||||
super("indexController.mniRelatorioBPeSubstituido.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOBPESUBSTITUIDO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioBPeSubstituido.zul",
|
||||
Labels.getLabel("relatorioBPeSubstituidoController.window.title"), getArgs(), desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioCteos extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioCteos() {
|
||||
super("indexController.mniRelatorioCteos.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOCTEOS";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioCteos.zul",
|
||||
Labels.getLabel("relatorioCteosController.window.title"), getArgs(), desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioRetornoBancario extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioRetornoBancario() {
|
||||
super("indexController.mniRelatorioRetornoBancario.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIORETORNOBANCARIO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/importarRetornoBancario.zul",
|
||||
Labels.getLabel("relatorioRetornoBancario.window.title"), getArgs(), desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
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.spring.AppContext;
|
||||
|
||||
public class ItemMenuLimparCacheEmbarcadaAPI extends DefaultItemMenuSistema {
|
||||
private static Logger log = Logger.getLogger(ItemMenuLimparCacheEmbarcadaAPI.class);
|
||||
|
||||
|
||||
public ItemMenuLimparCacheEmbarcadaAPI() {
|
||||
super("indexController.mniLimparCacheEmbarcadaAPI.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.RECARREGARCACHEEMBARCADASINCRONIZACAOAPI";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
|
||||
try {
|
||||
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("limparCacheEmbarcadaAPI.message.pergunta"),
|
||||
Labels.getLabel("limparCacheEmbarcadaAPI.title"), Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
||||
String[] urls = getURLSAPI();
|
||||
|
||||
if (urls == null || urls.length == 0) {
|
||||
Clients.alert(org.zkoss.util.resource.Labels.getLabel("limparCacheEmbarcadaAPI.message.naoconfigurado"),
|
||||
org.zkoss.util.resource.Labels.getLabel("limparCacheEmbarcadaAPI.title"), Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
for (String url : urls) {
|
||||
|
||||
if (StringUtils.isBlank(url) || url.contains("|")) {
|
||||
Clients.alert(org.zkoss.util.resource.Labels.getLabel("limparCacheEmbarcadaAPI.message.naoconfigurado"),
|
||||
org.zkoss.util.resource.Labels.getLabel("limparCacheEmbarcadaAPI.title"), Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
String tenant = StringUtils.substringBetween(url, "[", "]");
|
||||
if (tenant != null) {
|
||||
url = url.replaceAll("\\[.*?\\]", "");
|
||||
}
|
||||
String urlBase = url;
|
||||
url = montarUrlRequest(url);
|
||||
|
||||
ApiCallRunnable cache = new ApiCallRunnable(url, tenant, urlBase);
|
||||
Thread thread = new Thread(cache);
|
||||
thread.start();
|
||||
thread.join();
|
||||
|
||||
Clients.alert(cache.getRetorno(), org.zkoss.util.resource.Labels.getLabel("limparCacheEmbarcadaAPI.title"), Messagebox.INFORMATION);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
Clients.alert(e.getMessage(),
|
||||
org.zkoss.util.resource.Labels.getLabel("limparCacheEmbarcadaAPI.title"), Messagebox.ERROR);
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private String montarUrlRequest(String url) {
|
||||
|
||||
url = url.toLowerCase();
|
||||
|
||||
if (!url.endsWith("/")) {
|
||||
url += "/";
|
||||
}
|
||||
|
||||
return url.concat("adm/limparCacheSincronizacaoTramos");
|
||||
}
|
||||
|
||||
private String[] getURLSAPI() {
|
||||
ApplicationContext appContext = AppContext.getApplicationContext();
|
||||
ConstanteService constanteService = (ConstanteService) appContext.getBean("constanteService");
|
||||
String constante = constanteService.buscarURLAPIEmb();
|
||||
|
||||
if (StringUtils.isBlank(constante)){
|
||||
log.debug("Não foi encontrado a constante específica para a API da Embarcada. Será buscado o endereço da api de Venda");
|
||||
|
||||
constante = constanteService.buscarURLAPI();
|
||||
}
|
||||
|
||||
return constante == null ? null : constante.split("\\|");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class MenuAPI extends DefaultItemMenuSistema {
|
||||
|
||||
public MenuAPI() {
|
||||
super("indexController.mniAPI.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.API";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Valdevir
|
||||
*/
|
||||
public class RenderEixoConexionRutaRemoveSelecionada implements ListitemRenderer {
|
||||
|
||||
private EventListener listenerGenerico;
|
||||
|
||||
public RenderEixoConexionRutaRemoveSelecionada(EventListener listenerGenerico) {
|
||||
super();
|
||||
this.listenerGenerico = listenerGenerico;
|
||||
}
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
Listcell lc = new Listcell(parada.getDescparada().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell();
|
||||
|
||||
if(!Boolean.TRUE.equals(parada.getIsParadaConexaoRutaExcluida())) {
|
||||
Button btnRemoverPermissao = new Button();
|
||||
btnRemoverPermissao.setAttribute("data", o);
|
||||
btnRemoverPermissao.addEventListener("onClick", listenerGenerico);
|
||||
btnRemoverPermissao.setImage("/gui/img/remove.png");
|
||||
lc.appendChild(btnRemoverPermissao);
|
||||
|
||||
}else {
|
||||
Button btnAddPermissao = new Button();
|
||||
btnAddPermissao.setAttribute("data", o);
|
||||
btnAddPermissao.addEventListener("onClick", listenerGenerico);
|
||||
btnAddPermissao.setImage("/gui/img/add.png");
|
||||
lc.appendChild(btnAddPermissao);
|
||||
}
|
||||
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", parada);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
|
||||
public class RenderParada implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
Listcell lc = new Listcell(parada.getCveparada() + " - " + parada.getDescparada());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", parada);
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue