fixes bug#AL-4336
parent
2352dfd8fe
commit
4291b248cd
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.147.3</version>
|
||||
<version>1.148.0</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -38,6 +38,76 @@ public class RelatorioBilhetesVendidos extends Relatorio {
|
|||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
StringBuilder sql = getSQL(parametros);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
|
||||
if (parametros.get(DATA_INICIAL) != null && parametros.get(DATA_FINAL) != null){
|
||||
stmt.setTimestamp(DATA_INICIAL, new Timestamp(DateUtil.inicioFecha((Date) parametros.get(DATA_INICIAL)).getTime()));
|
||||
stmt.setTimestamp(DATA_FINAL, new Timestamp(DateUtil.fimFecha((Date) parametros.get(DATA_FINAL)).getTime()));
|
||||
|
||||
}
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("NUMERO_PASSAGEM", rset.getString("NUMERO_PASSAGEM"));
|
||||
if (rset.getString("SERIE") != null) {
|
||||
if (rset.getString("SERIE").split("-").length == 1) {
|
||||
dataResult.put("SERIE", rset.getString("SERIE"));
|
||||
} else {
|
||||
dataResult.put("SERIE", rset.getString("SERIE").split("-")[0]);
|
||||
dataResult.put("SUB_SERIE", rset.getString("SERIE").split("-")[1]);
|
||||
}
|
||||
}
|
||||
dataResult.put("CVEBILHETEIRO", rset.getString("CVEBILHETEIRO"));
|
||||
dataResult.put("CVEBILHETEIRO_CANCELADO", rset.getString("CVEBILHETEIRO_CANCELADO"));
|
||||
dataResult.put("IMPRESSAO_POSTERIOR", rset.getString("IMPRESSAO_POSTERIOR"));
|
||||
dataResult.put("PRE_IMPRESSO", rset.getString("PRE_IMPRESSO"));
|
||||
dataResult.put("COD_ORIGEM", rset.getString("COD_ORIGEM"));
|
||||
dataResult.put("ORIGEM", rset.getString("ORIGEM"));
|
||||
dataResult.put("COD_DESTINO", rset.getString("COD_DESTINO"));
|
||||
dataResult.put("DESTINO", rset.getString("DESTINO"));
|
||||
dataResult.put("NOME_AGENCIA", rset.getString("NOME_AGENCIA"));
|
||||
dataResult.put("COD_AGENCIA", rset.getString("COD_AGENCIA"));
|
||||
dataResult.put(DATA_VENDA, rset.getDate(DATA_VENDA));
|
||||
dataResult.put("DATA_EMISSAO", rset.getDate("DATA_EMISSAO"));
|
||||
dataResult.put("DATA_VIAGEM", rset.getDate("DATA_VIAGEM"));
|
||||
dataResult.put("SERVICO", rset.getString("SERVICO"));
|
||||
dataResult.put("HORA", rset.getString("HORA"));
|
||||
dataResult.put("NUMASIENTO", rset.getString("NUMASIENTO"));
|
||||
dataResult.put("CATEGORIA", rset.getString("CATEGORIA"));
|
||||
dataResult.put("SENTIDO", rset.getInt("SENTIDO"));
|
||||
dataResult.put("COD_LINHA", rset.getString("COD_LINHA"));
|
||||
dataResult.put("DESC_LINHA", rset.getString("DESC_LINHA"));
|
||||
if (rset.getString("STATUS_PASSAGEM") != null) {
|
||||
dataResult.put("STATUS_PASSAGEM", IndStatusBoleto.valueOf(rset.getString("STATUS_PASSAGEM")).getValue());
|
||||
}
|
||||
dataResult.put("TARIFA", rset.getString("TARIFA"));
|
||||
dataResult.put("TX_EMBARQUE", rset.getString("TX_EMBARQUE"));
|
||||
dataResult.put("PEDAGIO", rset.getString("PEDAGIO"));
|
||||
dataResult.put("SEGURO", rset.getString("SEGURO"));
|
||||
dataResult.put("BILHETEIRO", rset.getString("BILHETEIRO"));
|
||||
dataResult.put("BILHETEIRO_CANCELAMENTO", rset.getString("BILHETEIRO_CANCELAMENTO"));
|
||||
dataResult.put("PASSAGEIRO", rset.getString("PASSAGEIRO"));
|
||||
dataResult.put("DOC", rset.getString("DOC"));
|
||||
dataResult.put("LOCALIZADOR", rset.getString("LOCALIZADOR"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
private StringBuilder getSQL(Map<String, Object> parametros) {
|
||||
StringBuilder sql = new StringBuilder();
|
||||
|
||||
if (parametros.get("IDAVOLTA").equals("1")) {
|
||||
|
@ -242,70 +312,7 @@ public class RelatorioBilhetesVendidos extends Relatorio {
|
|||
sql.append(" CATEGORIA, ");
|
||||
sql.append(" IMPRESSAO_POSTERIOR, ");
|
||||
sql.append(" SERVICO ");
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
|
||||
if (parametros.get(DATA_INICIAL) != null && parametros.get(DATA_FINAL) != null){
|
||||
stmt.setTimestamp(DATA_INICIAL, new Timestamp(DateUtil.inicioFecha((Date) parametros.get(DATA_INICIAL)).getTime()));
|
||||
stmt.setTimestamp(DATA_FINAL, new Timestamp(DateUtil.fimFecha((Date) parametros.get(DATA_FINAL)).getTime()));
|
||||
|
||||
}
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("NUMERO_PASSAGEM", rset.getString("NUMERO_PASSAGEM"));
|
||||
if (rset.getString("SERIE") != null) {
|
||||
if (rset.getString("SERIE").split("-").length == 1) {
|
||||
dataResult.put("SERIE", rset.getString("SERIE"));
|
||||
} else {
|
||||
dataResult.put("SERIE", rset.getString("SERIE").split("-")[0]);
|
||||
dataResult.put("SUB_SERIE", rset.getString("SERIE").split("-")[1]);
|
||||
}
|
||||
}
|
||||
dataResult.put("CVEBILHETEIRO", rset.getString("CVEBILHETEIRO"));
|
||||
dataResult.put("CVEBILHETEIRO_CANCELADO", rset.getString("CVEBILHETEIRO_CANCELADO"));
|
||||
dataResult.put("IMPRESSAO_POSTERIOR", rset.getString("IMPRESSAO_POSTERIOR"));
|
||||
dataResult.put("PRE_IMPRESSO", rset.getString("PRE_IMPRESSO"));
|
||||
dataResult.put("COD_ORIGEM", rset.getString("COD_ORIGEM"));
|
||||
dataResult.put("ORIGEM", rset.getString("ORIGEM"));
|
||||
dataResult.put("COD_DESTINO", rset.getString("COD_DESTINO"));
|
||||
dataResult.put("DESTINO", rset.getString("DESTINO"));
|
||||
dataResult.put("NOME_AGENCIA", rset.getString("NOME_AGENCIA"));
|
||||
dataResult.put("COD_AGENCIA", rset.getString("COD_AGENCIA"));
|
||||
dataResult.put(DATA_VENDA, rset.getDate(DATA_VENDA));
|
||||
dataResult.put("DATA_EMISSAO", rset.getDate("DATA_EMISSAO"));
|
||||
dataResult.put("DATA_VIAGEM", rset.getDate("DATA_VIAGEM"));
|
||||
dataResult.put("SERVICO", rset.getString("SERVICO"));
|
||||
dataResult.put("HORA", rset.getString("HORA"));
|
||||
dataResult.put("NUMASIENTO", rset.getString("NUMASIENTO"));
|
||||
dataResult.put("CATEGORIA", rset.getString("CATEGORIA"));
|
||||
dataResult.put("SENTIDO", rset.getInt("SENTIDO"));
|
||||
dataResult.put("COD_LINHA", rset.getString("COD_LINHA"));
|
||||
dataResult.put("DESC_LINHA", rset.getString("DESC_LINHA"));
|
||||
if (rset.getString("STATUS_PASSAGEM") != null) {
|
||||
dataResult.put("STATUS_PASSAGEM", IndStatusBoleto.valueOf(rset.getString("STATUS_PASSAGEM")).getValue());
|
||||
}
|
||||
dataResult.put("TARIFA", rset.getString("TARIFA"));
|
||||
dataResult.put("TX_EMBARQUE", rset.getString("TX_EMBARQUE"));
|
||||
dataResult.put("PEDAGIO", rset.getString("PEDAGIO"));
|
||||
dataResult.put("SEGURO", rset.getString("SEGURO"));
|
||||
dataResult.put("BILHETEIRO", rset.getString("BILHETEIRO"));
|
||||
dataResult.put("BILHETEIRO_CANCELAMENTO", rset.getString("BILHETEIRO_CANCELAMENTO"));
|
||||
dataResult.put("PASSAGEIRO", rset.getString("PASSAGEIRO"));
|
||||
dataResult.put("DOC", rset.getString("DOC"));
|
||||
dataResult.put("LOCALIZADOR", rset.getString("LOCALIZADOR"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
return sql;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -0,0 +1,353 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Timestamp;
|
||||
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.IndStatusBoleto;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
/**
|
||||
* @author Thiago
|
||||
*
|
||||
*/
|
||||
public class RelatorioBilhetesVendidosFiltroFormaPagamento extends Relatorio {
|
||||
|
||||
|
||||
private static final String DATA_VENDA = "DATA_VENDA";
|
||||
private static final String DATA_FINAL = "DATA_FINAL";
|
||||
private static final String DATA_INICIAL = "DATA_INICIAL";
|
||||
private static final String TIPO_DATA = "TIPO_DATA";
|
||||
private static final String FORMA_PAGO = "FORMAPAGO_ID";
|
||||
|
||||
public RelatorioBilhetesVendidosFiltroFormaPagamento(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
StringBuilder sql = getSQL(parametros);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
|
||||
if (parametros.get(DATA_INICIAL) != null && parametros.get(DATA_FINAL) != null){
|
||||
stmt.setTimestamp(DATA_INICIAL, new Timestamp(DateUtil.inicioFecha((Date) parametros.get(DATA_INICIAL)).getTime()));
|
||||
stmt.setTimestamp(DATA_FINAL, new Timestamp(DateUtil.fimFecha((Date) parametros.get(DATA_FINAL)).getTime()));
|
||||
}
|
||||
if(parametros.get(FORMA_PAGO) != null) {
|
||||
stmt.setInt("FORMAPAGO_ID", Integer.valueOf(parametros.get(FORMA_PAGO).toString()));
|
||||
}
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("NUMERO_PASSAGEM", rset.getString("NUMERO_PASSAGEM"));
|
||||
if (rset.getString("SERIE") != null) {
|
||||
if (rset.getString("SERIE").split("-").length == 1) {
|
||||
dataResult.put("SERIE", rset.getString("SERIE"));
|
||||
} else {
|
||||
dataResult.put("SERIE", rset.getString("SERIE").split("-")[0]);
|
||||
dataResult.put("SUB_SERIE", rset.getString("SERIE").split("-")[1]);
|
||||
}
|
||||
}
|
||||
dataResult.put("CVEBILHETEIRO", rset.getString("CVEBILHETEIRO"));
|
||||
dataResult.put("CVEBILHETEIRO_CANCELADO", rset.getString("CVEBILHETEIRO_CANCELADO"));
|
||||
dataResult.put("IMPRESSAO_POSTERIOR", rset.getString("IMPRESSAO_POSTERIOR"));
|
||||
dataResult.put("PRE_IMPRESSO", rset.getString("PRE_IMPRESSO"));
|
||||
dataResult.put("COD_ORIGEM", rset.getString("COD_ORIGEM"));
|
||||
dataResult.put("ORIGEM", rset.getString("ORIGEM"));
|
||||
dataResult.put("COD_DESTINO", rset.getString("COD_DESTINO"));
|
||||
dataResult.put("DESTINO", rset.getString("DESTINO"));
|
||||
dataResult.put("NOME_AGENCIA", rset.getString("NOME_AGENCIA"));
|
||||
dataResult.put("COD_AGENCIA", rset.getString("COD_AGENCIA"));
|
||||
dataResult.put(DATA_VENDA, rset.getDate(DATA_VENDA));
|
||||
dataResult.put("DATA_EMISSAO", rset.getDate("DATA_EMISSAO"));
|
||||
dataResult.put("DATA_VIAGEM", rset.getDate("DATA_VIAGEM"));
|
||||
dataResult.put("SERVICO", rset.getString("SERVICO"));
|
||||
dataResult.put("HORA", rset.getString("HORA"));
|
||||
dataResult.put("NUMASIENTO", rset.getString("NUMASIENTO"));
|
||||
dataResult.put("CATEGORIA", rset.getString("CATEGORIA"));
|
||||
dataResult.put("SENTIDO", rset.getInt("SENTIDO"));
|
||||
dataResult.put("COD_LINHA", rset.getString("COD_LINHA"));
|
||||
dataResult.put("DESC_LINHA", rset.getString("DESC_LINHA"));
|
||||
if (rset.getString("STATUS_PASSAGEM") != null) {
|
||||
dataResult.put("STATUS_PASSAGEM", IndStatusBoleto.valueOf(rset.getString("STATUS_PASSAGEM")).getValue());
|
||||
}
|
||||
dataResult.put("TARIFA", rset.getString("TARIFA"));
|
||||
dataResult.put("TX_EMBARQUE", rset.getString("TX_EMBARQUE"));
|
||||
dataResult.put("PEDAGIO", rset.getString("PEDAGIO"));
|
||||
dataResult.put("SEGURO", rset.getString("SEGURO"));
|
||||
dataResult.put("BILHETEIRO", rset.getString("BILHETEIRO"));
|
||||
dataResult.put("BILHETEIRO_CANCELAMENTO", rset.getString("BILHETEIRO_CANCELAMENTO"));
|
||||
dataResult.put("PASSAGEIRO", rset.getString("PASSAGEIRO"));
|
||||
dataResult.put("DOC", rset.getString("DOC"));
|
||||
dataResult.put("LOCALIZADOR", rset.getString("LOCALIZADOR"));
|
||||
dataResult.put("FORMA_PAGAMENTO", rset.getString("FORMA_PAGAMENTO"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
private StringBuilder getSQL(Map<String, Object> parametros) {
|
||||
StringBuilder sql = new StringBuilder();
|
||||
|
||||
if (parametros.get("IDAVOLTA").equals("1")) {
|
||||
sql.append(" select ");
|
||||
sql.append(" u.CVEUSUARIO CVEBILHETEIRO, ");
|
||||
sql.append(" uc.CVEUSUARIO CVEBILHETEIRO_CANCELADO, ");
|
||||
sql.append(" B.indstatusboleto IMPRESSAO_POSTERIOR, ");
|
||||
sql.append(" B.NUMFOLIOSISTEMA NUMERO_PASSAGEM, ");
|
||||
sql.append(" B.NUMSERIEPREIMPRESA SERIE, ");
|
||||
sql.append(" B.NUMSERIEPREIMPRESA SUB_SERIE, ");
|
||||
sql.append(" B.NUMFOLIOPREIMPRESO PRE_IMPRESSO, ");
|
||||
sql.append(" p_origen.PARADA_ID COD_ORIGEM, ");
|
||||
sql.append(" p_origen.DESCPARADA ORIGEM, ");
|
||||
sql.append(" p_destino.PARADA_ID COD_DESTINO, ");
|
||||
sql.append(" p_destino.DESCPARADA DESTINO, ");
|
||||
sql.append(" pv.NUMPUNTOVENTA COD_AGENCIA, ");
|
||||
sql.append(" pv.NOMBPUNTOVENTA NOME_AGENCIA, ");
|
||||
sql.append(" CASE WHEN B.indstatusboleto = 'E' THEN utilizado.fechorventa_h ELSE B.fechorventa_h END DATA_VENDA, ");
|
||||
sql.append(" CASE WHEN b.fechorventa is null THEN utilizado.fechorventa ELSE b.fechorventa_h END DATA_EMISSAO, ");
|
||||
sql.append(" B.fechorviaje DATA_VIAGEM, ");
|
||||
sql.append(" B.CORRIDA_ID SERVICO, ");
|
||||
sql.append(" to_char(B.fechorviaje, 'hh24:mi:ss') HORA, ");
|
||||
sql.append(" B.NUMASIENTO NUMASIENTO, ");
|
||||
sql.append(" ct.DESCCATEGORIA CATEGORIA, ");
|
||||
sql.append(" R.INDSENTIDOIDA SENTIDO, ");
|
||||
sql.append(" R.NUMRUTA COD_LINHA, ");
|
||||
sql.append(" R.DESCRUTA DESC_LINHA, ");
|
||||
sql.append(" CASE WHEN b.MOTIVOCANCELACION_ID IS NULL THEN 'V' ELSE 'C' END STATUS_PASSAGEM, ");
|
||||
sql.append(" B.PRECIOPAGADO TARIFA, ");
|
||||
sql.append(" B.IMPORTETAXAEMBARQUE TX_EMBARQUE, ");
|
||||
sql.append(" B.IMPORTEPEDAGIO PEDAGIO, ");
|
||||
sql.append(" B.IMPORTESEGURO SEGURO, ");
|
||||
sql.append(" u.NOMBUSUARIO BILHETEIRO, ");
|
||||
sql.append(" uc.NOMBUSUARIO BILHETEIRO_CANCELAMENTO, ");
|
||||
sql.append(" B.NOMBPASAJERO AS PASSAGEIRO, ");
|
||||
sql.append(" B.DESCNUMDOC AS DOC, ");
|
||||
sql.append(" COALESCE(b.NUMOPERACION, bo.NUMOPERACION) AS LOCALIZADOR, ");
|
||||
sql.append("(SELECT LISTAGG(formaPago.DESCPAGO, ',') WITHIN GROUP (ORDER BY formaPago.DESCPAGO) ");
|
||||
sql.append("FROM CAJA caja2 ");
|
||||
sql.append("INNER JOIN CAJA_FORMAPAGO cajaFormaPago ON cajaFormaPago.CAJA_ID = caja2.CAJA_ID ");
|
||||
sql.append("INNER JOIN FORMA_PAGO formaPago ON formaPago.FORMAPAGO_ID = cajaFormaPago.FORMAPAGO_ID ");
|
||||
sql.append("WHERE caja2.CAJA_ID = b.CAJA_ID) AS FORMA_PAGAMENTO ");
|
||||
sql.append(" FROM caja B ");
|
||||
sql.append(" LEFT JOIN boleto bo ON (bo.boleto_id = b.transacaooriginal_id AND b.indstatusboleto = 'C') ");
|
||||
sql.append(" JOIN RUTA R ON R.RUTA_ID = B.RUTA_ID ");
|
||||
sql.append(" JOIN PUNTO_VENTA pv on B.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
||||
sql.append(" JOIN USUARIO u on u.USUARIO_ID = B.USUARIO_ID ");
|
||||
sql.append(" LEFT JOIN USUARIO uc ON uc.USUARIO_ID = bo.USUARIO_ID ");
|
||||
sql.append(" JOIN PARADA p_origen on p_origen.PARADA_ID = B.ORIGEN_ID ");
|
||||
sql.append(" JOIN PARADA p_destino on p_destino.PARADA_ID = B.DESTINO_ID ");
|
||||
sql.append(" JOIN CATEGORIA ct on ct.CATEGORIA_ID = B.CATEGORIA_ID ");
|
||||
sql.append(" JOIN CLASE_SERVICIO cs on cs.CLASESERVICIO_ID = B.CLASESERVICIO_ID ");
|
||||
sql.append(" JOIN MARCA m on m.marca_id = b.marca_id ");
|
||||
sql.append(" JOIN CAJA_FORMAPAGO cajaFormaPago ON cajaFormaPago.CAJA_ID = b.CAJA_ID ");
|
||||
sql.append(" JOIN FORMA_PAGO formaPago ON formaPago.FORMAPAGO_ID = cajaFormaPago.FORMAPAGO_ID ");
|
||||
sql.append(" left join ciudad co ON co.ciudad_id = p_origen.ciudad_id ");
|
||||
sql.append(" left join estado est ON est.estado_id = co.estado_id ");
|
||||
sql.append(" LEFT JOIN boleto utilizado ON (utilizado.boleto_id = b.transacaooriginal_id AND b.INDSTATUSBOLETO = 'E') ");
|
||||
|
||||
sql.append(" WHERE ");
|
||||
sql.append(" (b.indreimpresion = 0 OR b.INDSTATUSBOLETO = 'E') ");
|
||||
sql.append(" and m.EMPRESA_ID = :EMPRESA_ID ");
|
||||
if (parametros.get(DATA_INICIAL) != null && parametros.get(DATA_FINAL) != null) {
|
||||
if (parametros.get(TIPO_DATA) != null) {
|
||||
if ((parametros.get(TIPO_DATA).toString().equals(DATA_VENDA))) {
|
||||
sql.append(" and b.FECHORVENTA_H >= :DATA_INICIAL ");
|
||||
sql.append(" and b.FECHORVENTA_H <= :DATA_FINAL ");
|
||||
}
|
||||
|
||||
if ((parametros.get(TIPO_DATA).toString().equals("DATA_EMISSAO"))) {
|
||||
sql.append(" and utilizado.FECHORVENTA >= :DATA_INICIAL ");
|
||||
sql.append(" and utilizado.FECHORVENTA <= :DATA_FINAL ");
|
||||
}
|
||||
|
||||
if ((parametros.get(TIPO_DATA).toString().equals("DATA_VIAGEM"))) {
|
||||
sql.append(" and b.FECCORRIDA >= :DATA_INICIAL ");
|
||||
sql.append(" and b.FECCORRIDA <= :DATA_FINAL ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (parametros.get("NUMPUNTOVENTA") != null && !parametros.get("NUMPUNTOVENTA").equals("-1")) {
|
||||
sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
|
||||
}
|
||||
|
||||
if (parametros.get("MOEDA_ID") != null) {
|
||||
sql.append(" and NVL(B.MONEDA_ID, 1) = "+parametros.get("MOEDA_ID") );
|
||||
}
|
||||
|
||||
if (parametros.get("ESTADO_ID") != null && !parametros.get("ESTADO_ID").equals("-1")) {
|
||||
sql.append(" and est.estado_id = " + parametros.get("ESTADO_ID").toString() + "");
|
||||
}
|
||||
|
||||
sql.append(" AND b.INDVIAJEREDONDO = 1 ");
|
||||
if(parametros.get(FORMA_PAGO) != null && !parametros.get(FORMA_PAGO).equals("-1")) {
|
||||
sql.append(" and formaPago.FORMAPAGO_ID =:FORMAPAGO_ID ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (parametros.get("STATUS").toString().contains("C")||parametros.get("STATUS").toString().contains("V")) {
|
||||
if (parametros.get("IDAVOLTA").equals("1")) {
|
||||
sql.append(" UNION ALL ");
|
||||
}
|
||||
sql.append(" select ");
|
||||
sql.append(" u.CVEUSUARIO CVEBILHETEIRO, ");
|
||||
sql.append(" uc.CVEUSUARIO CVEBILHETEIRO_CANCELADO, ");
|
||||
sql.append(" B.indstatusboleto IMPRESSAO_POSTERIOR, ");
|
||||
sql.append(" B.NUMFOLIOSISTEMA NUMERO_PASSAGEM, ");
|
||||
sql.append(" B.NUMSERIEPREIMPRESA SERIE, ");
|
||||
sql.append(" B.NUMSERIEPREIMPRESA SUB_SERIE, ");
|
||||
sql.append(" B.NUMFOLIOPREIMPRESO PRE_IMPRESSO, ");
|
||||
sql.append(" p_origen.PARADA_ID COD_ORIGEM, ");
|
||||
sql.append(" p_origen.DESCPARADA ORIGEM, ");
|
||||
sql.append(" p_destino.PARADA_ID COD_DESTINO, ");
|
||||
sql.append(" p_destino.DESCPARADA DESTINO, ");
|
||||
sql.append(" pv.NUMPUNTOVENTA COD_AGENCIA, ");
|
||||
sql.append(" pv.NOMBPUNTOVENTA NOME_AGENCIA, ");
|
||||
sql.append(" CASE WHEN B.indstatusboleto = 'E' THEN utilizado.fechorventa_h ELSE B.fechorventa_h END DATA_VENDA, ");
|
||||
sql.append(" CASE WHEN b.fechorventa is null THEN utilizado.fechorventa ELSE b.fechorventa_h END DATA_EMISSAO, ");
|
||||
sql.append(" B.fechorviaje DATA_VIAGEM, ");
|
||||
sql.append(" B.CORRIDA_ID SERVICO, ");
|
||||
sql.append(" to_char(B.fechorviaje, 'hh24:mi:ss') HORA, ");
|
||||
sql.append(" B.NUMASIENTO NUMASIENTO, ");
|
||||
sql.append(" ct.DESCCATEGORIA CATEGORIA, ");
|
||||
sql.append(" R.INDSENTIDOIDA SENTIDO, ");
|
||||
sql.append(" R.NUMRUTA COD_LINHA, ");
|
||||
sql.append(" R.DESCRUTA DESC_LINHA, ");
|
||||
sql.append(" CASE WHEN b.MOTIVOCANCELACION_ID IS NULL THEN 'V' ELSE 'C' END STATUS_PASSAGEM, ");
|
||||
sql.append(" B.PRECIOPAGADO TARIFA, ");
|
||||
sql.append(" B.IMPORTETAXAEMBARQUE TX_EMBARQUE, ");
|
||||
sql.append(" B.IMPORTEPEDAGIO PEDAGIO, ");
|
||||
sql.append(" B.IMPORTESEGURO SEGURO, ");
|
||||
sql.append(" u.NOMBUSUARIO BILHETEIRO, ");
|
||||
sql.append(" uc.NOMBUSUARIO BILHETEIRO_CANCELAMENTO, ");
|
||||
sql.append(" B.NOMBPASAJERO AS PASSAGEIRO, ");
|
||||
sql.append(" B.DESCNUMDOC AS DOC, ");
|
||||
sql.append(" COALESCE(b.NUMOPERACION, bo.NUMOPERACION) AS LOCALIZADOR, ");
|
||||
sql.append("(SELECT LISTAGG(formaPago.DESCPAGO, ',') WITHIN GROUP (ORDER BY formaPago.DESCPAGO) ");
|
||||
sql.append("FROM CAJA caja2 ");
|
||||
sql.append("INNER JOIN CAJA_FORMAPAGO cajaFormaPago ON cajaFormaPago.CAJA_ID = caja2.CAJA_ID ");
|
||||
sql.append("INNER JOIN FORMA_PAGO formaPago ON formaPago.FORMAPAGO_ID = cajaFormaPago.FORMAPAGO_ID ");
|
||||
sql.append("WHERE caja2.CAJA_ID = b.CAJA_ID) AS FORMA_PAGAMENTO ");
|
||||
sql.append(" FROM caja B ");
|
||||
sql.append(" LEFT JOIN boleto bo ON (bo.boleto_id = b.transacaooriginal_id AND b.indstatusboleto = 'C') ");
|
||||
sql.append(" JOIN RUTA R ON R.RUTA_ID = B.RUTA_ID ");
|
||||
sql.append(" JOIN PUNTO_VENTA pv on B.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
||||
sql.append(" JOIN USUARIO u on u.USUARIO_ID = B.USUARIO_ID ");
|
||||
sql.append(" LEFT JOIN USUARIO uc ON uc.USUARIO_ID = bo.USUARIO_ID ");
|
||||
sql.append(" JOIN PARADA p_origen on p_origen.PARADA_ID = B.ORIGEN_ID ");
|
||||
sql.append(" JOIN PARADA p_destino on p_destino.PARADA_ID = B.DESTINO_ID ");
|
||||
sql.append(" JOIN CATEGORIA ct on ct.CATEGORIA_ID = B.CATEGORIA_ID ");
|
||||
sql.append(" JOIN CLASE_SERVICIO cs on cs.CLASESERVICIO_ID = B.CLASESERVICIO_ID ");
|
||||
sql.append(" JOIN MARCA m on m.marca_id = b.marca_id ");
|
||||
sql.append(" JOIN CAJA_FORMAPAGO cajaFormaPago ON cajaFormaPago.CAJA_ID = b.CAJA_ID ");
|
||||
sql.append(" JOIN FORMA_PAGO formaPago ON formaPago.FORMAPAGO_ID = cajaFormaPago.FORMAPAGO_ID ");
|
||||
sql.append(" left join ciudad co ON co.ciudad_id = p_origen.ciudad_id ");
|
||||
sql.append(" left join estado est ON est.estado_id = co.estado_id ");
|
||||
sql.append(" LEFT JOIN boleto utilizado ON (utilizado.boleto_id = b.transacaooriginal_id AND b.INDSTATUSBOLETO = 'E') ");
|
||||
|
||||
sql.append(" WHERE ");
|
||||
sql.append(" (b.indreimpresion = 0 OR b.INDSTATUSBOLETO = 'E') ");
|
||||
sql.append(" and m.EMPRESA_ID = :EMPRESA_ID ");
|
||||
if (parametros.get(DATA_INICIAL) != null && parametros.get(DATA_FINAL) != null) {
|
||||
if (parametros.get(TIPO_DATA) != null) {
|
||||
if ((parametros.get(TIPO_DATA).toString().equals(DATA_VENDA))) {
|
||||
sql.append(" and b.FECHORVENTA_H >= :DATA_INICIAL ");
|
||||
sql.append(" and b.FECHORVENTA_H <= :DATA_FINAL ");
|
||||
}
|
||||
|
||||
if ((parametros.get(TIPO_DATA).toString().equals("DATA_EMISSAO"))) {
|
||||
sql.append(" and utilizado.FECHORVENTA >= :DATA_INICIAL ");
|
||||
sql.append(" and utilizado.FECHORVENTA <= :DATA_FINAL ");
|
||||
}
|
||||
|
||||
if ((parametros.get(TIPO_DATA).toString().equals("DATA_VIAGEM"))) {
|
||||
sql.append(" and b.FECCORRIDA >= :DATA_INICIAL ");
|
||||
sql.append(" and b.FECCORRIDA <= :DATA_FINAL ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (parametros.get("NUMPUNTOVENTA") != null && !parametros.get("NUMPUNTOVENTA").equals("-1")) {
|
||||
sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
|
||||
}
|
||||
|
||||
if (parametros.get("MOEDA_ID") != null) {
|
||||
sql.append(" and NVL(B.MONEDA_ID, 1) = "+parametros.get("MOEDA_ID") );
|
||||
}
|
||||
|
||||
if (parametros.get("ESTADO_ID") != null && !parametros.get("ESTADO_ID").equals("-1")) {
|
||||
sql.append(" and est.estado_id = " + parametros.get("ESTADO_ID").toString() + "");
|
||||
}
|
||||
|
||||
if ( !(parametros.get("STATUS").toString().contains("V") && parametros.get("STATUS").toString().contains("C")) ) {
|
||||
if (parametros.get("STATUS").toString().contains("C")) {
|
||||
sql.append(" AND b.motivocancelacion_id is not null ");
|
||||
} else if (parametros.get("STATUS").toString().contains("V")) {
|
||||
sql.append(" AND b.motivocancelacion_id is null ");
|
||||
}
|
||||
}
|
||||
sql.append(" and B.ACTIVO = 1 AND b.INDVIAJEREDONDO IS NULL ");
|
||||
|
||||
if(parametros.get(FORMA_PAGO) != null && !parametros.get(FORMA_PAGO).equals("-1")) {
|
||||
sql.append(" and formaPago.FORMAPAGO_ID =:FORMAPAGO_ID ");
|
||||
}
|
||||
|
||||
}
|
||||
sql.append(" order by ");
|
||||
if (parametros.get("IDAVOLTA").equals("1")) {
|
||||
sql.append(" BILHETEIRO, ");
|
||||
sql.append(" DATA_EMISSAO, ");
|
||||
}else {
|
||||
sql.append(" DATA_EMISSAO, ");
|
||||
sql.append(" BILHETEIRO, ");
|
||||
}
|
||||
sql.append(" COD_AGENCIA, ");
|
||||
sql.append(" NOME_AGENCIA, ");
|
||||
sql.append(" NUMERO_PASSAGEM, ");
|
||||
sql.append(" ORIGEM, ");
|
||||
sql.append(" DESTINO, ");
|
||||
sql.append(" CATEGORIA, ");
|
||||
sql.append(" IMPRESSAO_POSTERIOR, ");
|
||||
sql.append(" SERVICO ");
|
||||
|
||||
return sql;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
|
||||
*/
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -53,6 +53,69 @@ public class RelatorioBilhetesVendidosNovoLayout extends Relatorio {
|
|||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
StringBuilder sql = getSQL(parametros);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
|
||||
stmt.setTimestamp(DATA_INICIAL, new Timestamp(DateUtil.inicioFecha((Date) parametros.get(DATA_INICIAL)).getTime()));
|
||||
stmt.setTimestamp(DATA_FINAL, new Timestamp(DateUtil.fimFecha((Date) parametros.get(DATA_FINAL)).getTime()));
|
||||
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
lsDadosRelatorio = new ArrayList<RelatorioBilhetesVendidosNovoLayoutBean>();
|
||||
DecimalFormat df = new DecimalFormat("0.00");
|
||||
df.setMaximumFractionDigits(2);
|
||||
df.setRoundingMode(RoundingMode.DOWN);
|
||||
|
||||
while (rset.next()) {
|
||||
|
||||
RelatorioBilhetesVendidosNovoLayoutBean bean = new RelatorioBilhetesVendidosNovoLayoutBean();
|
||||
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
if (rset.getString("SERIE") != null) {
|
||||
if (rset.getString("SERIE").split("-").length == 1) {
|
||||
dataResult.put("SERIE", rset.getString("SERIE"));
|
||||
} else {
|
||||
dataResult.put("SERIE", rset.getString("SERIE").split("-")[0]);
|
||||
dataResult.put("SUB_SERIE", rset.getString("SERIE").split("-")[1]);
|
||||
}
|
||||
}
|
||||
|
||||
if (rset.getString("statuspassagem") != null) {
|
||||
dataResult.put("statuspassagem", IndStatusBoleto.valueOf(rset.getString("statuspassagem")).getValue());
|
||||
}
|
||||
bean.setDataVenda(rset.getString("datavenda") != null ? DateUtil.changeFormatStringDate(rset.getString("datavenda"),"dd/MM/yy", "dd/MM/yyyy") : "");
|
||||
bean.setFormInicial(StringUtils.defaultString(rset.getString("formInicial")));
|
||||
bean.setFormFinal(StringUtils.defaultString(rset.getString("formfinal")));
|
||||
bean.setSerie(StringUtils.defaultString(rset.getString("serie")));
|
||||
bean.setValorContabil(getValor("valorcontabil", rset));
|
||||
bean.setValorBaseCalculo(getValor("valorbasecalculo", rset));
|
||||
bean.setValorAliquiotaICMS(getValor("valoraliquiotaicms", rset));
|
||||
bean.setValorICMS(getValor("valoricms", rset));
|
||||
bean.setUf(StringUtils.defaultString(rset.getString("cveestado")));
|
||||
bean.setStatusPassagem((String) (rset.getObject("statuspassagem") != null && rset.getObject("statuspassagem").equals("V") ? "N" : rset.getString("statuspassagem")));
|
||||
bean.setEspecie(StringUtils.defaultString(rset.getString("especie")));
|
||||
bean.setCodFiscal(rset.getString("codFiscal"));
|
||||
bean.setCodOrigem(StringUtils.defaultString(rset.getString("cod_origem")));
|
||||
bean.setOrigem(StringUtils.defaultString(rset.getString("origem")));
|
||||
bean.setCodDestino(StringUtils.defaultString(rset.getString("cod_destino")));
|
||||
bean.setDestino(StringUtils.defaultString(rset.getString("destino")));
|
||||
|
||||
lsDadosRelatorio.add(bean);
|
||||
|
||||
}
|
||||
|
||||
if (lsDadosRelatorio.size() > 0) {
|
||||
setLsDadosRelatorio(lsDadosRelatorio);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
private StringBuilder getSQL(Map<String, Object> parametros) {
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("select t.cveestado,");
|
||||
sql.append(" to_char(t.dataVenda, 'dd/MM/yy') as dataVenda, ");
|
||||
|
@ -156,63 +219,7 @@ public class RelatorioBilhetesVendidosNovoLayout extends Relatorio {
|
|||
}
|
||||
sql.append(") t ");
|
||||
sql.append("order by t.cveestado, to_char(t.dataVenda, 'dd/MM/yy') ");
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
|
||||
stmt.setTimestamp(DATA_INICIAL, new Timestamp(DateUtil.inicioFecha((Date) parametros.get(DATA_INICIAL)).getTime()));
|
||||
stmt.setTimestamp(DATA_FINAL, new Timestamp(DateUtil.fimFecha((Date) parametros.get(DATA_FINAL)).getTime()));
|
||||
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
lsDadosRelatorio = new ArrayList<RelatorioBilhetesVendidosNovoLayoutBean>();
|
||||
DecimalFormat df = new DecimalFormat("0.00");
|
||||
df.setMaximumFractionDigits(2);
|
||||
df.setRoundingMode(RoundingMode.DOWN);
|
||||
|
||||
while (rset.next()) {
|
||||
|
||||
RelatorioBilhetesVendidosNovoLayoutBean bean = new RelatorioBilhetesVendidosNovoLayoutBean();
|
||||
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
if (rset.getString("SERIE") != null) {
|
||||
if (rset.getString("SERIE").split("-").length == 1) {
|
||||
dataResult.put("SERIE", rset.getString("SERIE"));
|
||||
} else {
|
||||
dataResult.put("SERIE", rset.getString("SERIE").split("-")[0]);
|
||||
dataResult.put("SUB_SERIE", rset.getString("SERIE").split("-")[1]);
|
||||
}
|
||||
}
|
||||
|
||||
if (rset.getString("statuspassagem") != null) {
|
||||
dataResult.put("statuspassagem", IndStatusBoleto.valueOf(rset.getString("statuspassagem")).getValue());
|
||||
}
|
||||
bean.setDataVenda(rset.getString("datavenda") != null ? DateUtil.changeFormatStringDate(rset.getString("datavenda"),"dd/MM/yy", "dd/MM/yyyy") : "");
|
||||
bean.setFormInicial(StringUtils.defaultString(rset.getString("formInicial")));
|
||||
bean.setFormFinal(StringUtils.defaultString(rset.getString("formfinal")));
|
||||
bean.setSerie(StringUtils.defaultString(rset.getString("serie")));
|
||||
bean.setValorContabil(getValor("valorcontabil", rset));
|
||||
bean.setValorBaseCalculo(getValor("valorbasecalculo", rset));
|
||||
bean.setValorAliquiotaICMS(getValor("valoraliquiotaicms", rset));
|
||||
bean.setValorICMS(getValor("valoricms", rset));
|
||||
bean.setUf(StringUtils.defaultString(rset.getString("cveestado")));
|
||||
bean.setStatusPassagem((String) (rset.getObject("statuspassagem") != null && rset.getObject("statuspassagem").equals("V") ? "N" : rset.getString("statuspassagem")));
|
||||
bean.setEspecie(StringUtils.defaultString(rset.getString("especie")));
|
||||
bean.setCodFiscal(rset.getString("codFiscal"));
|
||||
bean.setCodOrigem(StringUtils.defaultString(rset.getString("cod_origem")));
|
||||
bean.setOrigem(StringUtils.defaultString(rset.getString("origem")));
|
||||
bean.setCodDestino(StringUtils.defaultString(rset.getString("cod_destino")));
|
||||
bean.setDestino(StringUtils.defaultString(rset.getString("destino")));
|
||||
|
||||
lsDadosRelatorio.add(bean);
|
||||
|
||||
}
|
||||
|
||||
if (lsDadosRelatorio.size() > 0) {
|
||||
setLsDadosRelatorio(lsDadosRelatorio);
|
||||
}
|
||||
}
|
||||
});
|
||||
return sql;
|
||||
}
|
||||
|
||||
private BigDecimal getValor(String campo, ResultSet resultSet) throws SQLException {
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#geral
|
||||
msg.noData=No fue posible obtener datos con los parámetros ingresados.
|
||||
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Reporte:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Fecha/Hora:
|
||||
cabecalho.impressorPor=Impresora por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
|
@ -0,0 +1,13 @@
|
|||
#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:
|
Binary file not shown.
|
@ -0,0 +1,672 @@
|
|||
<?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="RelatorioVendasBilheteiro" pageWidth="1266" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1226" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
|
||||
<property name="ireport.zoom" value="2.1961500000000282"/>
|
||||
<property name="ireport.x" value="974"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
|
||||
<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="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
|
||||
<style name="table">
|
||||
<box>
|
||||
<pen lineWidth="1.0" lineColor="#000000"/>
|
||||
</box>
|
||||
</style>
|
||||
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
|
||||
<box>
|
||||
<pen lineWidth="0.5" lineColor="#000000"/>
|
||||
</box>
|
||||
</style>
|
||||
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
|
||||
<box>
|
||||
<pen lineWidth="0.5" lineColor="#000000"/>
|
||||
</box>
|
||||
</style>
|
||||
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
|
||||
<box>
|
||||
<pen lineWidth="0.5" lineColor="#000000"/>
|
||||
</box>
|
||||
</style>
|
||||
<parameter name="DATA_INICIAL" class="java.util.Date"/>
|
||||
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
|
||||
<parameter name="FILTROS" class="java.lang.String"/>
|
||||
<parameter name="USUARIO" class="java.lang.String"/>
|
||||
<parameter name="NUMPUNTOVENTA" class="java.lang.String"/>
|
||||
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
|
||||
<parameter name="EMPRESA" class="java.lang.String"/>
|
||||
<field name="NUMERO_PASSAGEM" class="java.lang.String"/>
|
||||
<field name="SERIE" class="java.lang.String"/>
|
||||
<field name="SUB_SERIE" class="java.lang.String"/>
|
||||
<field name="PRE_IMPRESSO" class="java.lang.String"/>
|
||||
<field name="ORIGEM" class="java.lang.String"/>
|
||||
<field name="DESTINO" class="java.lang.String"/>
|
||||
<field name="NOME_AGENCIA" class="java.lang.String"/>
|
||||
<field name="DATA_VENDA" class="java.util.Date"/>
|
||||
<field name="DATA_VIAGEM" class="java.util.Date"/>
|
||||
<field name="SERVICO" class="java.lang.String"/>
|
||||
<field name="HORA" class="java.lang.String"/>
|
||||
<field name="DESC_LINHA" class="java.lang.String"/>
|
||||
<field name="STATUS_PASSAGEM" class="java.lang.String"/>
|
||||
<field name="TARIFA" class="java.lang.String"/>
|
||||
<field name="TX_EMBARQUE" class="java.lang.String"/>
|
||||
<field name="PEDAGIO" class="java.lang.String"/>
|
||||
<field name="SEGURO" class="java.lang.String"/>
|
||||
<field name="NUMASIENTO" class="java.lang.String"/>
|
||||
<field name="CATEGORIA" class="java.lang.String"/>
|
||||
<field name="SENTIDO" class="java.lang.Integer"/>
|
||||
<field name="COD_ORIGEM" class="java.lang.String"/>
|
||||
<field name="COD_DESTINO" class="java.lang.String"/>
|
||||
<field name="COD_AGENCIA" class="java.lang.String"/>
|
||||
<field name="COD_LINHA" class="java.lang.String"/>
|
||||
<field name="IMPRESSAO_POSTERIOR" class="java.lang.String"/>
|
||||
<field name="DATA_EMISSAO" class="java.util.Date"/>
|
||||
<field name="BILHETEIRO" class="java.lang.String"/>
|
||||
<field name="CVEBILHETEIRO_CANCELADO" class="java.lang.String"/>
|
||||
<field name="CVEBILHETEIRO" class="java.lang.String"/>
|
||||
<field name="PASSAGEIRO" class="java.lang.String"/>
|
||||
<field name="DOC" class="java.lang.String"/>
|
||||
<field name="LOCALIZADOR" class="java.lang.String"/>
|
||||
<field name="FORMA_PAGAMENTO" class="java.lang.String"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<pageHeader>
|
||||
<band height="57" splitType="Stretch">
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="83" y="15" width="55" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="42796e20-405c-441f-9fd9-b26238bc7cdb"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="0" y="0" width="1056" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="d2973779-79dc-4cc8-937a-e9167c42bab0"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="193" y="15" width="70" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="8730e85b-d436-42cd-beb6-1a881bad2478"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="0" y="15" width="83" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="26bbd310-5e59-4975-a47f-b0048e80b1b6"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="0" y="43" width="28" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="9630a784-5f92-4abe-805c-fd175e4f8241"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle" 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.filtros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="1145" y="0" width="81" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="91cded42-c53d-469a-abc7-6eb0d59f69af"/>
|
||||
<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 mode="Transparent" x="1056" y="31" width="170" height="12" forecolor="#000000" backcolor="#FFFFFF" uuid="62f6ba6e-1aaf-4449-aef6-2e9d6e541856"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="1198" y="15" width="28" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="985f839c-258a-47eb-b72b-bec819b7bdbb"/>
|
||||
<textElement textAlignment="Center" 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 mode="Transparent" x="1056" y="15" width="142" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="ba831a24-59f4-4f8f-888f-fd69711018e9"/>
|
||||
<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 x="1056" y="0" width="89" height="15" uuid="5cbb57ef-bd5e-4d1b-a077-d0ff398df801"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="138" y="15" width="55" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="6d6ab075-006c-4796-98d5-f047ae963876"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="28" y="43" width="1198" height="14" uuid="c486add3-94d7-419f-9f37-04f6a6da879e"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="10" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="28" height="10" isPrintWhenDetailOverflows="true" uuid="3766fa33-6281-4576-a9d1-3b984e1976d3"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Bilhete]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="193" y="0" width="70" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="6adaca80-9b5a-4a03-a80b-5eeed4894d7f"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Origem]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="582" y="0" width="32" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="95367884-2b52-4bbd-b716-852ff13290e9"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Serviço]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="333" y="0" width="100" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="a39ab8f3-becb-44e3-b4f5-b7c43889508c"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Agência]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="547" y="0" width="35" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="170230ea-2a12-4444-9f13-c706d557ae8d"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Hr. Viag.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="263" y="0" width="70" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="c0542d93-dde4-448d-932c-453d6a4a6882"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Destino]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="509" y="0" width="38" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="9c65b631-065c-49af-ab2c-3bcea583eaea"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Dt. Viagem]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="433" y="0" width="38" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="a7f96097-c8fd-4ba0-bea7-7b40a0fc81f7"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Dt. Venda]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="614" y="0" width="19" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0452264c-0f27-46d6-84ad-0fba6e5abdfa"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Polt]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="633" y="0" width="27" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Categoria]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="660" y="0" width="36" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="73e29f93-98a9-4411-8f89-220426f2cb6d"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Sentido]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="794" y="0" width="30" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="f00ced65-e4ea-4332-87d4-0674493f0f87"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Status]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="722" y="0" width="72" height="10" isPrintWhenDetailOverflows="true" uuid="235c8f23-9c13-48cd-ab7a-e74363424caf"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Desc Linha]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="824" y="0" width="20" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="5de9c4ee-7a93-4086-9106-c7d2ad35497e"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tarifa]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="844" y="0" width="20" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="ed37427e-5811-4fd0-b5ea-627d9a56448d"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Taxa]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="864" y="0" width="30" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="8a929bec-8a30-4e9f-a2f2-32bd629776df"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pedagio]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="894" y="0" width="30" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="6c2a21a8-3afa-4fc6-89b3-10f1887233c8"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Seguro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="696" y="0" width="26" height="10" isPrintWhenDetailOverflows="true" uuid="cbaa75b2-d156-4324-94b5-4f633008d9ce"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Linha]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="924" y="0" width="36" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="b81ac40e-df45-4de0-b4fe-7452a9b48a9c"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Imp. Pos.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="471" y="0" width="38" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="38792191-5417-4267-a784-9a634a276565"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Dt. Emiss.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="28" y="0" width="55" height="10" isPrintWhenDetailOverflows="true" uuid="7d77d66e-6033-4ea3-9066-a42b92e4982e"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Bilheteiro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="138" y="0" width="55" height="10" isPrintWhenDetailOverflows="true" uuid="672ee466-505c-4913-a6c7-0a18ca4c7bfb"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Bilheteiro Cancel]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="83" y="0" width="55" height="10" isPrintWhenDetailOverflows="true" uuid="77757ee7-73f9-415c-be39-634c74e26e9a"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Cod.Bilheteiro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="960" y="0" width="96" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="9d4cfe17-48f5-44d6-82fb-19a09342107a"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Passageiro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1056" y="0" width="40" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="7974d1b8-bd78-4cc8-9411-ca70fa1d38d8"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Documento]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1096" y="0" width="47" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="024b61d2-6fd5-4c94-85a6-55ff2d1bcb91"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Localizador]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1143" y="0" width="83" height="10" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF" uuid="08650aaa-364a-4733-b529-c18c601b8295"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Forma Pagamento]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="12" splitType="Stretch">
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="28" height="12" isPrintWhenDetailOverflows="true" uuid="bc091860-adab-47d8-8352-982bc8e484a3"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NUMERO_PASSAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="193" y="0" width="70" height="12" isPrintWhenDetailOverflows="true" uuid="4cd8a33f-6aaa-47cb-949e-38c6b74d3d39"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="263" y="0" width="70" height="12" isPrintWhenDetailOverflows="true" uuid="17011486-0d4c-4e22-b534-48e0bb025673"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="333" y="0" width="100" height="12" isPrintWhenDetailOverflows="true" uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{COD_AGENCIA}+" - "+$F{NOME_AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="433" y="0" width="38" height="12" isPrintWhenDetailOverflows="true" uuid="7be97f5f-b36b-4679-befb-e5f2b4532963"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DATA_VENDA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="509" y="0" width="38" height="12" isPrintWhenDetailOverflows="true" uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DATA_VIAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="582" y="0" width="32" height="12" isPrintWhenDetailOverflows="true" uuid="7c0246f5-739b-440c-a242-915117bd9fd1"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="547" y="0" width="35" height="12" isPrintWhenDetailOverflows="true" uuid="dd401917-6047-4e1b-9722-31fe8d096594"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{HORA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="614" y="0" width="19" height="12" isPrintWhenDetailOverflows="true" uuid="4dafd61b-ce2b-4690-b029-2a1382113099"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NUMASIENTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="633" y="0" width="27" height="12" isPrintWhenDetailOverflows="true" uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CATEGORIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="660" y="0" width="36" height="12" isPrintWhenDetailOverflows="true" uuid="b0200cfc-1b6b-4636-9f4b-5fe5d87c2687"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{SENTIDO} == 0 ? "Ida" : "Volta"]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="794" y="0" width="30" height="12" isPrintWhenDetailOverflows="true" uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{STATUS_PASSAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="722" y="0" width="72" height="12" isPrintWhenDetailOverflows="true" uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="5"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DESC_LINHA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="824" y="0" width="20" height="12" isPrintWhenDetailOverflows="true" uuid="5c87326c-e72c-47fb-95d0-0cb47c42d16f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="844" y="0" width="20" height="12" isPrintWhenDetailOverflows="true" uuid="1ffff7a9-956e-489d-bdd4-61e0f8ce6a13"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TX_EMBARQUE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="864" y="0" width="30" height="12" isPrintWhenDetailOverflows="true" uuid="4ee7ead3-26af-4d0d-b3aa-cf07e24b0594"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="894" y="0" width="30" height="12" isPrintWhenDetailOverflows="true" uuid="07367eac-338d-4ba8-b718-fa416fa3f012"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="696" y="0" width="26" height="12" isPrintWhenDetailOverflows="true" uuid="6095d523-240a-4ba2-bd94-73ce9f851c9a"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{COD_LINHA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="924" y="0" width="36" height="12" isPrintWhenDetailOverflows="true" uuid="e5abc4be-54af-4252-acc0-a6181c085023"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{IMPRESSAO_POSTERIOR}.equals("E") ? "Sim" : "Não"]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="471" y="0" width="38" height="12" isPrintWhenDetailOverflows="true" uuid="eff5dfcb-b060-42dd-b910-2fe23e58cb9e"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DATA_EMISSAO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="28" y="0" width="55" height="12" isPrintWhenDetailOverflows="true" uuid="119f5dce-b02a-4d33-b74a-03eda5cef5a9"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{BILHETEIRO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="138" y="0" width="55" height="12" isPrintWhenDetailOverflows="true" uuid="a5b1e7fa-5c06-4a24-b7de-fca396b264e1"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CVEBILHETEIRO_CANCELADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="83" y="0" width="55" height="12" isPrintWhenDetailOverflows="true" uuid="0f5856f2-2cdf-4178-9beb-33742b4fb83a"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CVEBILHETEIRO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="960" y="0" width="96" height="12" isPrintWhenDetailOverflows="true" uuid="69a097fd-d502-4fe9-a830-77b5e81c0192"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{PASSAGEIRO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="1056" y="0" width="40" height="12" isPrintWhenDetailOverflows="true" uuid="bcb6534a-8109-4565-884b-c9cc806ad787"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DOC}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="1096" y="0" width="47" height="12" isPrintWhenDetailOverflows="true" uuid="6396e623-432c-452e-a316-14cc92bd37bf"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{LOCALIZADOR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="1143" y="0" width="83" height="12" isPrintWhenDetailOverflows="true" uuid="f807b716-15e8-46d3-b712-9630eb7d0165"/>
|
||||
<textElement>
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{FORMA_PAGAMENTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<noData>
|
||||
<band height="50">
|
||||
<textField>
|
||||
<reportElement x="-566" y="0" width="1792" height="28" uuid="995c4c61-6291-4e5f-8d92-b75502a10466"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -22,17 +22,21 @@ import org.zkoss.zul.Comboitem;
|
|||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Radiogroup;
|
||||
import org.zkoss.zul.Row;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.enums.IndStatusBoleto;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBilhetesVendidos;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBilhetesVendidosFiltroFormaPagamento;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBilhetesVendidosNovoLayout;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -72,9 +76,15 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
|||
private Checkbox chkCancelado;
|
||||
private Checkbox chkIdaVolta;
|
||||
private Checkbox chkEmitido;
|
||||
private Checkbox chkFormaPagamento;
|
||||
private Radiogroup rgLayout;
|
||||
@Autowired
|
||||
private EstadoService estadoService;
|
||||
private List<FormaPago> lsFormaPago;
|
||||
private MyComboboxEstandar cmbFormaPago;
|
||||
@Autowired
|
||||
private FormaPagoService formaPagoService;
|
||||
private Row rowFiltroFormaPagamento;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -85,6 +95,8 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
|||
chkVendido.setChecked(true);
|
||||
chkCancelado.setChecked(true);
|
||||
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||
lsFormaPago = formaPagoService.obtenerTodos();
|
||||
cmbFormaPago.setAutocomplete(true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -247,7 +259,16 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
|||
parametros.put("IDAVOLTA", "0");
|
||||
}
|
||||
|
||||
if (novoLayout) {
|
||||
FormaPago formaPago = null;
|
||||
|
||||
if (cmbFormaPago.getSelectedItem() != null) {
|
||||
formaPago = ((FormaPago) cmbFormaPago.getSelectedItem().getValue());
|
||||
parametros.put("FORMAPAGO_ID", formaPago.getFormapagoId());
|
||||
filtro.append(formaPago.getDescpago()).append("; ");
|
||||
}
|
||||
if(chkFormaPagamento.isChecked()) {
|
||||
relatorio = new RelatorioBilhetesVendidosFiltroFormaPagamento(parametros, dataSourceRead.getConnection());
|
||||
}else if (novoLayout) {
|
||||
relatorio = new RelatorioBilhetesVendidosNovoLayout(parametros, dataSourceRead.getConnection());
|
||||
parametros.put("TITULO", Labels.getLabel("relatorioBilhetesVendidosController.window.title"));
|
||||
} else {
|
||||
|
@ -261,6 +282,10 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
|||
openWindow("/component/reportView.zul", Labels.getLabel("relatorioBilhetesVendidosController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
public void onClick$chkFormaPagamento(Event event) {
|
||||
rowFiltroFormaPagamento.setVisible(chkFormaPagamento.isChecked());
|
||||
}
|
||||
|
||||
public Combobox getCmbMoeda() {
|
||||
return cmbMoeda;
|
||||
}
|
||||
|
@ -276,4 +301,12 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
|||
public void setChkEmitido(Checkbox chkEmitido) {
|
||||
this.chkEmitido = chkEmitido;
|
||||
}
|
||||
|
||||
public List<FormaPago> getLsFormaPago() {
|
||||
return lsFormaPago;
|
||||
}
|
||||
|
||||
public void setLsFormaPago(List<FormaPago> lsFormaPago) {
|
||||
this.lsFormaPago = lsFormaPago;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8822,6 +8822,7 @@ relatorioBilhetesVendidosController.reimpresso.label = Reprinted
|
|||
relatorioBilhetesVendidosController.reservado.label = Reserved
|
||||
relatorioBilhetesVendidosController.transferido.label = Transferred
|
||||
relatorioBilhetesVendidosController.vendido.label = Sold
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Payment Method
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Tickets Sold
|
||||
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Round trip
|
||||
|
|
|
@ -8835,6 +8835,7 @@ relatorioBilhetesVendidosController.reimpresso.label = Reimpresso
|
|||
relatorioBilhetesVendidosController.reservado.label = Reservado
|
||||
relatorioBilhetesVendidosController.transferido.label = Transferido
|
||||
relatorioBilhetesVendidosController.vendido.label = Vendido
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Forma Pago
|
||||
# Relatório Bilhetes Vendidos
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Bilhetes Vendidos
|
||||
|
|
|
@ -8820,6 +8820,7 @@ relatorioBilhetesVendidosController.reimpresso.label = Réimprimé
|
|||
relatorioBilhetesVendidosController.reservado.label = Réservé
|
||||
relatorioBilhetesVendidosController.transferido.label = Transféré
|
||||
relatorioBilhetesVendidosController.vendido.label = Vendu
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Mode de paiement
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Billets vendus
|
||||
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Aller-retour
|
||||
|
|
|
@ -8808,6 +8808,7 @@ relatorioBilhetesVendidosController.reimpresso.label = Reimpresso
|
|||
relatorioBilhetesVendidosController.reservado.label = Reservado
|
||||
relatorioBilhetesVendidosController.transferido.label = Transferido
|
||||
relatorioBilhetesVendidosController.vendido.label = Vendido
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Forma Pagamento
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Ida/Volta
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioBilhetesVendidos"
|
||||
apply="${relatorioBilhetesVendidosController}"
|
||||
contentStyle="overflow:auto" height="427px" width="550px"
|
||||
contentStyle="overflow:auto" height="467px" width="860px"
|
||||
border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
|
@ -38,7 +38,7 @@
|
|||
<row spans="1,1,2">
|
||||
<label
|
||||
value="${c:l('relatorioBilhetesVendidosController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa" buttonVisible="true"
|
||||
<combobox id="cmbEmpresa" buttonVisible="true" mold="rounded"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioBilhetesVendidos$composer.lsEmpresa}"
|
||||
|
@ -104,9 +104,10 @@
|
|||
</grid>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="30%" />
|
||||
<column width="30%" />
|
||||
<column width="25%" />
|
||||
<column width="25%" />
|
||||
<column width="25%" />
|
||||
<column width="25%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
|
@ -114,19 +115,29 @@
|
|||
value="${c:l('relatorioBilhetesVendidosController.lbStatus.value')}" />
|
||||
<label value="" />
|
||||
<label value="" />
|
||||
<label value="" />
|
||||
</row>
|
||||
<row>
|
||||
<checkbox id="chkVendido" checked = "true" label="${c:l('relatorioBilhetesVendidosController.vendido.label')}" />
|
||||
<checkbox id="chkCancelado" checked = "true" label="${c:l('relatorioBilhetesVendidosController.cancelado.label')}" />
|
||||
<checkbox id="chkIdaVolta" checked = "true" label="${c:l('relatorioBilhetesVendidosController.IdaVolta.label')}" />
|
||||
<checkbox id="chkFormaPagamento" checked = "true" label="${c:l('relatorioBilhetesVendidosController.lbFormaPagamento.value')}" />
|
||||
</row>
|
||||
<row spans="3">
|
||||
<row spans="4">
|
||||
<radiogroup Id="rgLayout" >
|
||||
<radio value="DATA_VENDA" label="${c:l('relatorioBilhetesVendidosController.dataVenda.label')}" checked = "true"/>
|
||||
<radio value="DATA_EMISSAO" label="${c:l('relatorioBilhetesVendidosController.dataEmissao.label')}" />
|
||||
<radio value="DATA_VIAGEM" label="${c:l('relatorioBilhetesVendidosController.dataViagem.label')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row id ="rowFiltroFormaPagamento" spans="1,1,2" visible="true">
|
||||
<label id="lblFormaPago"
|
||||
value="${c:l('relatorioBilhetesVendidosController.lbFormaPagamento.value')}" />
|
||||
<combobox id="cmbFormaPago"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="95%" mold="rounded"
|
||||
model="@{winFiltroRelatorioBilhetesVendidos$composer.lsFormaPago}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<grid fixedLayout="true">
|
||||
|
@ -147,7 +158,7 @@
|
|||
model="@{winFiltroRelatorioBilhetesVendidos$composer.lsEstado}" />
|
||||
|
||||
<label value="${c:l('myComboboxMoeda.label.moeda')}" />
|
||||
<combobox id="cmbMoeda" width="90%" buttonVisible="true"
|
||||
<combobox id="cmbMoeda" width="90%" buttonVisible="true" mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxMoeda" />
|
||||
</row>
|
||||
</rows>
|
||||
|
|
Loading…
Reference in New Issue