0022355: ESPEC 2021 - Relatorio de pricing especifico SPRINT 2
bug#22355 dev:valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@108100 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
36dfc131ee
commit
528dd322e0
|
@ -0,0 +1,276 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
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.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
public class RelatorioPricingEspecifico extends Relatorio {
|
||||||
|
|
||||||
|
public RelatorioPricingEspecifico(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);
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
ResultSet rset = stmt.executeQuery();
|
||||||
|
|
||||||
|
while (rset.next()) {
|
||||||
|
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
dataResult.put("PRICINGESPECIFICO_ID", rset.getInt("PRICINGESPECIFICO_ID"));
|
||||||
|
dataResult.put("NOMBPRICING", rset.getString("NOMBPRICING"));
|
||||||
|
dataResult.put("DATAINICIOVIAGEM", rset.getTimestamp("DATAINICIOVIAGEM"));
|
||||||
|
dataResult.put("DATAFIMVIAGEM", rset.getTimestamp("DATAFIMVIAGEM"));
|
||||||
|
dataResult.put("DATAINICIOVENDA", rset.getTimestamp("DATAINICIOVENDA"));
|
||||||
|
dataResult.put("DATAFIMVENDA", rset.getTimestamp("DATAFIMVENDA"));
|
||||||
|
dataResult.put("CORRIDA_ID", rset.getObject("CORRIDA_ID") == null ? null : rset.getInt("CORRIDA_ID"));
|
||||||
|
dataResult.put("DESCCLASE", rset.getString("DESCCLASE"));
|
||||||
|
dataResult.put("DESCMARCA", rset.getString("DESCMARCA"));
|
||||||
|
dataResult.put("ORIGEM", rset.getString("ORIGEM"));
|
||||||
|
dataResult.put("DESTINO", rset.getString("DESTINO"));
|
||||||
|
dataResult.put("MOEDA", rset.getString("MOEDA"));
|
||||||
|
dataResult.put("TARIFAVOLTA", rset.getBigDecimal("TARIFAVOLTA"));
|
||||||
|
dataResult.put("EXIBEVENDA", rset.getBoolean("EXIBEVENDA"));
|
||||||
|
dataResult.put("OCUPACAO", rset.getString("OCUPACAO"));
|
||||||
|
dataResult.put("DIASSEMANA", rset.getString("DIASSEMANA"));
|
||||||
|
dataResult.put("CATEGORIAS", rset.getString("CATEGORIAS"));
|
||||||
|
dataResult.put("PONTOSDEVENDA", rset.getString("PONTOSDEVENDA"));
|
||||||
|
dataResult.put("CANALDEVENDA", rset.getString("CANALDEVENDA"));
|
||||||
|
|
||||||
|
this.dados.add(dataResult);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.resultSet = rset;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getSql(Map<String, Object> parametros) {
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
|
||||||
|
String formatoData = ("'dd/MM/yyyy hh24:mi:ss'");
|
||||||
|
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
||||||
|
|
||||||
|
Date DATA_INICIO_VIAGEM = (Date) parametros.get("DATA_INICIO_VIAGEM");
|
||||||
|
Date DATA_FIM_VIAGEM = (Date) parametros.get("DATA_FIM_VIAGEM");
|
||||||
|
|
||||||
|
Date DATA_INICIO_VENDA = (Date) parametros.get("DATA_INICIO_VENDA");
|
||||||
|
Date DATA_FIM_VENDA = (Date) parametros.get("DATA_FIM_VENDA");
|
||||||
|
|
||||||
|
String NOMBPRICING = (String) parametros.get("NOMBPRICING");
|
||||||
|
|
||||||
|
Integer ORIGEM = (Integer) parametros.get("ORIGEM");
|
||||||
|
Integer DESTINO = (Integer) parametros.get("DESTINO");
|
||||||
|
|
||||||
|
Integer MARCA_ID = (Integer) parametros.get("MARCA_ID");
|
||||||
|
Integer TIPO_PASSAGEIRO = (Integer) parametros.get("TIPO_PASSAGEIRO");
|
||||||
|
Integer TIPO_CLASSE = (Integer) parametros.get("TIPO_CLASSE");
|
||||||
|
Integer CANAL_DE_VENDA = (Integer) parametros.get("CANAL_DE_VENDA");
|
||||||
|
Integer CORRIDA_ID = (Integer) parametros.get("CORRIDA_ID");
|
||||||
|
|
||||||
|
String puntoVentas = (String) parametros.get("NUMPUNTOVENTA");
|
||||||
|
|
||||||
|
Boolean domingo = (Boolean) parametros.get("DOMINGO");
|
||||||
|
Boolean segunda = (Boolean) parametros.get("SEGUNDA");
|
||||||
|
Boolean terca = (Boolean) parametros.get("TERCA");
|
||||||
|
Boolean quarta = (Boolean) parametros.get("QUARTA");
|
||||||
|
Boolean quinta = (Boolean) parametros.get("QUINTA");
|
||||||
|
Boolean sexta = (Boolean) parametros.get("SEXTA");
|
||||||
|
Boolean sabado = (Boolean) parametros.get("SABADO");
|
||||||
|
|
||||||
|
Double tarifaVolta = (Double) parametros.get("TARIFAVOLTA");
|
||||||
|
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" PE.PRICINGESPECIFICO_ID, PE.NOMBPRICING, PE.DATAINICIOVIAGEM, PE.DATAFIMVIAGEM, PE.DATAINICIOVENDA, PE.DATAFIMVENDA, ");
|
||||||
|
sql.append(" PE.CORRIDA_ID, cs.DESCCLASE, m.DESCMARCA, ORIGEM.DESCPARADA as ORIGEM, DESTINO.DESCPARADA as DESTINO, ");
|
||||||
|
sql.append(" MOEDA.DESCMONEDA AS MOEDA, pe.tarifaredabierto AS TARIFAVOLTA, PE.EXIBEVENDA, ");
|
||||||
|
|
||||||
|
//Subquery ocupacao
|
||||||
|
sql.append(" ( SELECT");
|
||||||
|
sql.append(" LISTAGG(PEO.OCUPACIONINICIAL || ' a ' || PEO.OCUPACIONFINAL || ', ' || CASE PEO.TARIFA WHEN NULL THEN 'D: ' ||PEO.DESCUENTO ELSE 'T: ' || PEO.TARIFA END, '; ' ) ");
|
||||||
|
sql.append(" WITHIN GROUP (ORDER BY PEO.PRICINGESPECIFICO_ID) OCUPACAO ");
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESPECIFICO_OCUPACION PEO ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PEO.ACTIVO = 1 AND PEO.PRICINGESPECIFICO_ID = PE.PRICINGESPECIFICO_ID) AS OCUPACAO, ");
|
||||||
|
|
||||||
|
//Dias da semana
|
||||||
|
sql.append(" ( CASE WHEN PE.DOMINGO = 0 THEN '' ELSE 'Dom,' END || ");
|
||||||
|
sql.append(" CASE WHEN PE.SEGUNDA = 0 THEN '' ELSE 'Seg,' END || ");
|
||||||
|
sql.append(" CASE WHEN PE.TERCA = 0 THEN '' ELSE 'Ter,' END || ");
|
||||||
|
sql.append(" CASE WHEN PE.QUARTA = 0 THEN '' ELSE 'Qua,' END || ");
|
||||||
|
sql.append(" CASE WHEN PE.QUINTA = 0 THEN '' ELSE 'Qui,' END || ");
|
||||||
|
sql.append(" CASE WHEN PE.SEXTA = 0 THEN '' ELSE 'Sex,' END || ");
|
||||||
|
sql.append(" CASE WHEN PE.SABADO = 0 THEN '' ELSE 'Sab' END ) AS DIASSEMANA,");
|
||||||
|
|
||||||
|
//Subquery categorias
|
||||||
|
sql.append(" ( SELECT");
|
||||||
|
sql.append(" LISTAGG(CA.DESCCATEGORIA, '; ' ) WITHIN GROUP (ORDER BY PEC.PRICINGESPECIFICO_ID) OCUPACAO ");
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESPECIFICO_CATEGORIA PEC INNER JOIN ");
|
||||||
|
sql.append(" CATEGORIA CA ON PEC.CATEGORIA_ID = CA.CATEGORIA_ID ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PEC.ACTIVO = 1 AND PEC.PRICINGESPECIFICO_ID = PE.PRICINGESPECIFICO_ID) AS CATEGORIAS, ");
|
||||||
|
|
||||||
|
//Subquery pontos de venda
|
||||||
|
sql.append(" ( SELECT ");
|
||||||
|
sql.append(" LISTAGG(PTV.NOMBPUNTOVENTA, '; ' ) WITHIN GROUP (ORDER BY PEPV.PRICINGESPECIFICO_ID) OCUPACAO ");
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESP_PUNTO_VENTA PEPV INNER JOIN ");
|
||||||
|
sql.append(" PUNTO_VENTA PTV ON PEPV.PUNTOVENTA_ID = PTV.PUNTOVENTA_ID ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PEPV.ACTIVO = 1 AND PEPV.PRICINGESPECIFICO_ID = PE.PRICINGESPECIFICO_ID) AS PONTOSDEVENDA, ");
|
||||||
|
|
||||||
|
//Subquery canal de venda
|
||||||
|
sql.append(" ( SELECT ");
|
||||||
|
sql.append(" LISTAGG(TPV.DESCTIPO, '; ' ) WITHIN GROUP (ORDER BY PECV.PRICINGESPECIFICO_ID) OCUPACAO ");
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESP_CANAL_VENTA PECV INNER JOIN ");
|
||||||
|
sql.append(" TIPO_PTOVTA TPV ON PECV.TIPOPTOVTA_ID = TPV.TIPOPTOVTA_ID ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PECV.ACTIVO = 1 AND PECV.PRICINGESPECIFICO_ID = PE.PRICINGESPECIFICO_ID) AS CANALDEVENDA ");
|
||||||
|
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESPECIFICO PE LEFT JOIN ");
|
||||||
|
sql.append(" CLASE_SERVICIO CS ON PE.CLASESERVICIO_ID = CS.CLASESERVICIO_ID LEFT JOIN ");
|
||||||
|
sql.append(" MARCA M ON PE.MARCA_ID = M.MARCA_ID LEFT JOIN ");
|
||||||
|
sql.append(" PARADA ORIGEM ON PE.ORIGEN_ID = ORIGEM.PARADA_ID LEFT JOIN ");
|
||||||
|
sql.append(" PARADA DESTINO ON PE.DESTINO_ID = DESTINO.PARADA_ID LEFT JOIN ");
|
||||||
|
sql.append(" MONEDA MOEDA ON PE.MONEDA_ID = MOEDA.MONEDA_ID ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PE.ACTIVO = 1 ");
|
||||||
|
|
||||||
|
if(domingo != null && domingo == true) {
|
||||||
|
sql.append(" AND PE.DOMINGO <> 0 ");
|
||||||
|
} else if(domingo != null) {
|
||||||
|
sql.append(" AND PE.DOMINGO = 0");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(segunda != null && segunda == true) {
|
||||||
|
sql.append(" AND PE.SEGUNDA <> 0 ");
|
||||||
|
} else if(segunda != null) {
|
||||||
|
sql.append(" AND PE.SEGUNDA = 0");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(terca != null && terca == true) {
|
||||||
|
sql.append(" AND PE.TERCA <> 0 ");
|
||||||
|
} else if(terca != null) {
|
||||||
|
sql.append(" AND PE.TERCA = 0");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(quarta != null && quarta == true) {
|
||||||
|
sql.append(" AND PE.QUARTA <> 0 ");
|
||||||
|
} else if(quarta != null) {
|
||||||
|
sql.append(" AND PE.QUARTA = 0");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(quinta != null && quinta == true) {
|
||||||
|
sql.append(" AND PE.QUINTA <> 0 ");
|
||||||
|
} else if(quinta != null) {
|
||||||
|
sql.append(" AND PE.QUINTA = 0");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(sexta != null && sexta == true) {
|
||||||
|
sql.append(" AND PE.SEXTA <> 0 ");
|
||||||
|
} else if(sexta != null) {
|
||||||
|
sql.append(" AND PE.SEXTA = 0");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(sabado != null && sabado == true) {
|
||||||
|
sql.append(" AND PE.SABADO <> 0 ");
|
||||||
|
} else if(sabado != null) {
|
||||||
|
sql.append(" AND PE.SABADO = 0");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(tarifaVolta != null) {
|
||||||
|
sql.append(" AND pe.TARIFAREDABIERTO = ").append(tarifaVolta);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CANAL_DE_VENDA != null ) {
|
||||||
|
sql.append(" AND ").append(CANAL_DE_VENDA).append(" in ");
|
||||||
|
sql.append(" ( SELECT PECV.TIPOPTOVTA_ID ");
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESP_CANAL_VENTA PECV ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PECV.ACTIVO = 1 AND PECV.PRICINGESPECIFICO_ID = PE.PRICINGESPECIFICO_ID) ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (TIPO_PASSAGEIRO != null ) {
|
||||||
|
sql.append(" AND ").append(TIPO_PASSAGEIRO).append(" IN ");
|
||||||
|
sql.append(" ( SELECT");
|
||||||
|
sql.append(" PEC.CATEGORIA_ID ");
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESPECIFICO_CATEGORIA PEC ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PEC.ACTIVO = 1 AND PEC.PRICINGESPECIFICO_ID = PE.PRICINGESPECIFICO_ID) ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (puntoVentas != null && !puntoVentas.isEmpty()) {
|
||||||
|
sql.append(" AND ");
|
||||||
|
sql.append(" ( SELECT ");
|
||||||
|
sql.append(" COUNT(PEPV.PUNTOVENTA_ID) ");
|
||||||
|
sql.append(" FROM ");
|
||||||
|
sql.append(" PRICING_ESP_PUNTO_VENTA PEPV ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" PEPV.ACTIVO = 1 AND PEPV.PRICINGESPECIFICO_ID = PE.PRICINGESPECIFICO_ID ");
|
||||||
|
sql.append(" AND PEPV.PUNTOVENTA_ID IN (" + puntoVentas + ") ) > 0 ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (NOMBPRICING != null) {
|
||||||
|
sql.append(" AND PE.NOMBPRICING LIKE '" + NOMBPRICING + "' ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DATA_INICIO_VIAGEM != null && DATA_FIM_VIAGEM != null) {
|
||||||
|
sql.append(" AND PE.DATAINICIOVIAGEM BETWEEN TO_DATE('" + format.format(DATA_INICIO_VIAGEM) +"', "+ formatoData + ") AND TO_DATE('" + format.format(DATA_FIM_VIAGEM) +"', "+ formatoData + ") ");
|
||||||
|
sql.append(" AND PE.DATAFIMVIAGEM BETWEEN TO_DATE('" + format.format(DATA_INICIO_VIAGEM) +"', "+ formatoData + ") AND TO_DATE('" + format.format(DATA_FIM_VIAGEM) +"', "+ formatoData + ") ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DATA_INICIO_VENDA != null && DATA_FIM_VENDA != null) {
|
||||||
|
sql.append(" AND PE.DATAINICIOVENDA BETWEEN TO_DATE('" + format.format(DATA_INICIO_VENDA) +"', "+ formatoData + ") AND TO_DATE('" + format.format(DATA_FIM_VENDA) +"', "+ formatoData + ") ");
|
||||||
|
sql.append(" AND PE.DATAFIMVENDA BETWEEN TO_DATE('" + format.format(DATA_INICIO_VENDA) +"', "+ formatoData + ") AND TO_DATE('" + format.format(DATA_FIM_VENDA) +"', "+ formatoData + ") ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ORIGEM != null ) {
|
||||||
|
sql.append(" AND ORIGEM.PARADA_ID = " + ORIGEM );
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DESTINO != null ) {
|
||||||
|
sql.append(" AND DESTINO.PARADA_ID = " + DESTINO );
|
||||||
|
}
|
||||||
|
|
||||||
|
if (MARCA_ID != null ) {
|
||||||
|
sql.append(" AND PE.MARCA_ID = " + MARCA_ID );
|
||||||
|
}
|
||||||
|
|
||||||
|
if (TIPO_CLASSE != null ) {
|
||||||
|
sql.append(" AND PE.CLASESERVICIO_ID = ").append(TIPO_CLASSE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CORRIDA_ID != null ) {
|
||||||
|
sql.append(" AND PE.CORRIDA_ID = " + CORRIDA_ID );
|
||||||
|
}
|
||||||
|
|
||||||
|
sql.append(" ORDER BY ");
|
||||||
|
sql.append(" PE.PRICINGESPECIFICO_ID ");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
#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.nomePricing=Nome
|
||||||
|
label.dataInicioViagem=In Viagem
|
||||||
|
label.dataFimViagem=Fim Viagem
|
||||||
|
label.dataInicioVenda=In Venda
|
||||||
|
label.dataFimVenda=Fim Venda
|
||||||
|
label.servico=Serviço
|
||||||
|
label.classe=Classe
|
||||||
|
label.marca=Marca
|
||||||
|
label.moeda=Moeda
|
||||||
|
label.tarifaVolta=T. Volta
|
||||||
|
label.exibeNaVenda=Exibe na Venda
|
||||||
|
label.canalDeVenda=Canal de Venda
|
||||||
|
label.origem=Origem
|
||||||
|
label.destino=Destino
|
||||||
|
label.ocupacao=Ocupação
|
||||||
|
label.dias=Dias
|
||||||
|
label.categorias=Tp. Pass.
|
||||||
|
label.pontosDeVenda=Agência
|
||||||
|
|
||||||
|
label.puntoVenta=Agência
|
||||||
|
label.bilheteiro=Bilheteiro
|
||||||
|
label.valorTroco=Valor Troco
|
||||||
|
label.boleto=Boleto
|
||||||
|
label.transacao=Transação
|
||||||
|
label.totalTroco=Total Troco:
|
|
@ -0,0 +1,38 @@
|
||||||
|
#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.nomePricing=Nome
|
||||||
|
label.dataInicioViagem=Início Viagem
|
||||||
|
label.dataFimViagem=Fim Viagem
|
||||||
|
label.dataInicioVenda=Início Venda
|
||||||
|
label.dataFimVenda=Fim Venda
|
||||||
|
label.servico=Serviço
|
||||||
|
label.classe=Classe
|
||||||
|
label.marca=Marca
|
||||||
|
label.moeda=Moeda
|
||||||
|
label.tarifaVolta=T. Volta
|
||||||
|
label.exibeNaVenda=Exibe na Venda
|
||||||
|
label.canalDeVenda=Canal de Venda
|
||||||
|
label.origem=Origem
|
||||||
|
label.destino=Destino
|
||||||
|
label.ocupacao=Ocupação
|
||||||
|
label.dias=Dias
|
||||||
|
label.categorias=Tipo Passageiro.
|
||||||
|
label.pontosDeVenda=Agência
|
||||||
|
|
||||||
|
label.puntoVenta=Agência
|
||||||
|
label.bilheteiro=Bilheteiro
|
||||||
|
label.valorTroco=Valor Troco
|
||||||
|
label.boleto=Boleto
|
||||||
|
label.transacao=Transação
|
||||||
|
label.totalTroco=Total Troco:
|
Binary file not shown.
|
@ -0,0 +1,453 @@
|
||||||
|
<?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="RelatorioTrocoSimples" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="9b78f5a7-cc2c-45b3-a908-80ed959450ef">
|
||||||
|
<property name="ireport.zoom" value="1.3310000000000008"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<parameter name="USUARIO" class="java.lang.String"/>
|
||||||
|
<parameter name="FILTROS" class="java.lang.String"/>
|
||||||
|
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
|
||||||
|
<field name="PRICINGESPECIFICO_ID" class="java.lang.Integer"/>
|
||||||
|
<field name="NOMBPRICING" class="java.lang.String"/>
|
||||||
|
<field name="DATAINICIOVIAGEM" class="java.sql.Timestamp"/>
|
||||||
|
<field name="DATAFIMVIAGEM" class="java.sql.Timestamp"/>
|
||||||
|
<field name="DATAINICIOVENDA" class="java.sql.Timestamp"/>
|
||||||
|
<field name="DATAFIMVENDA" class="java.sql.Timestamp"/>
|
||||||
|
<field name="CORRIDA_ID" class="java.lang.Integer"/>
|
||||||
|
<field name="DESCCLASE" class="java.lang.String"/>
|
||||||
|
<field name="DESCMARCA" class="java.lang.String"/>
|
||||||
|
<field name="ORIGEM" class="java.lang.String"/>
|
||||||
|
<field name="DESTINO" class="java.lang.String"/>
|
||||||
|
<field name="MOEDA" class="java.lang.String"/>
|
||||||
|
<field name="TARIFAVOLTA" class="java.math.BigDecimal"/>
|
||||||
|
<field name="EXIBEVENDA" class="java.lang.Boolean"/>
|
||||||
|
<field name="OCUPACAO" class="java.lang.String"/>
|
||||||
|
<field name="DIASSEMANA" class="java.lang.String"/>
|
||||||
|
<field name="CATEGORIAS" class="java.lang.String"/>
|
||||||
|
<field name="PONTOSDEVENDA" class="java.lang.String"/>
|
||||||
|
<field name="CANALDEVENDA" class="java.lang.String"/>
|
||||||
|
<title>
|
||||||
|
<band height="101" splitType="Stretch">
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="54719d85-3e16-47ba-8a7d-50d626129e3d" x="0" y="68" width="800" height="1"/>
|
||||||
|
</line>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="abfa62bc-56f8-4add-8903-0b64e8dbac7a" x="511" y="0" width="186" height="25"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="9" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="" isBlankWhenNull="false">
|
||||||
|
<reportElement uuid="1a6a5b3b-d765-4d73-98d5-bd050b49dcf3" mode="Transparent" x="697" y="41" width="104" 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>
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="9f8fb8ed-d527-4abf-9a65-791a8a9ce032" positionType="Float" x="0" y="84" width="800" height="1"/>
|
||||||
|
</line>
|
||||||
|
<textField pattern="" isBlankWhenNull="false">
|
||||||
|
<reportElement uuid="942f5b46-6e12-4ef7-8f5f-28c8b90062e1" mode="Transparent" x="511" 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 evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||||
|
<reportElement uuid="2acc421d-eff6-44d3-a35d-23d25afbba1a" mode="Transparent" x="779" y="25" width="21" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||||
|
<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="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
|
||||||
|
<reportElement uuid="54330d46-2a96-4065-b0ee-7d80265e78b0" mode="Transparent" x="697" y="0" width="104" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||||
|
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||||
|
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||||
|
<paragraph lineSpacing="Single"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="852c6b40-a6cd-4a7d-9067-57114f688220" x="0" y="69" width="800" height="15"/>
|
||||||
|
<textElement verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="" isBlankWhenNull="false">
|
||||||
|
<reportElement uuid="16fc4ee9-a895-4859-831b-4f609ff16d50" mode="Transparent" x="0" y="0" width="511" height="41" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||||
|
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||||
|
<font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||||
|
<paragraph lineSpacing="Single"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</title>
|
||||||
|
<detail>
|
||||||
|
<band height="65" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="68191269-1e16-42c9-b30a-216b713c2248" positionType="Float" x="677" y="1" width="53" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.tarifaVolta}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="05d13cc3-cf84-4f7c-9870-469abfedbe4c" positionType="Float" x="0" y="1" width="140" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.nomePricing}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="9a6d0d0c-292f-432e-a913-6af81eeaa4e8" positionType="Float" x="140" y="1" width="72" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.dataInicioViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="120e5f49-3558-4246-b8a3-8f548f0880eb" positionType="Float" x="422" y="1" width="50" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.servico}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="43676e8a-4c56-4b0c-b986-30e243ccb426" positionType="Float" x="472" y="1" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.classe}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="609641fe-5c4c-4426-8c3e-915fb169aec5" positionType="Float" x="212" y="1" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.dataFimViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="ab7e8b88-0663-4769-b84c-7486a38efc14" positionType="Float" x="282" y="1" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.dataInicioVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="9f534527-2b65-44e3-a1e0-56e7002c8d03" positionType="Float" x="352" y="1" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.dataFimVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="aebbb577-5ebc-4064-a55e-2e60a196fb12" positionType="Float" x="542" y="1" width="82" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.marca}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="9684ae55-ab28-496f-bc99-513dfc964057" positionType="Float" x="624" y="1" width="53" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.moeda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="ffa3c5a4-b735-4eea-861a-b92e25f61485" positionType="Float" x="730" y="1" width="71" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.exibeNaVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="ddc9d137-b7ca-4f6d-a74d-deebadf6a0f6" positionType="Float" stretchType="RelativeToTallestObject" x="677" y="16" width="53" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{TARIFAVOLTA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="670dca95-d431-469c-8b4a-094ca0639c12" positionType="Float" stretchType="RelativeToTallestObject" x="0" y="16" width="140" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<leftPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{NOMBPRICING}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="50796f6d-a1a4-4f01-8ed3-d1a6ee379275" positionType="Float" stretchType="RelativeToTallestObject" x="140" y="16" width="72" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DATAINICIOVIAGEM}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="fc5531a4-0bea-446c-9ab7-0556cb5f1fa7" positionType="Float" stretchType="RelativeToTallestObject" x="422" y="16" width="50" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{CORRIDA_ID}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="9d763742-fe7c-4aab-b7bc-36a40a205c99" positionType="Float" stretchType="RelativeToTallestObject" x="472" y="16" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DESCCLASE}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="cefdb0cb-7677-4b10-bc1a-d8e60bc1989c" positionType="Float" stretchType="RelativeToTallestObject" x="212" y="16" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DATAFIMVIAGEM}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="10fc96b2-ef9b-481b-80ec-313d7b1fca81" positionType="Float" stretchType="RelativeToTallestObject" x="282" y="16" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DATAINICIOVENDA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="b2682cba-2dc7-43ed-a075-e7dbf61df006" positionType="Float" stretchType="RelativeToTallestObject" x="352" y="16" width="70" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DATAFIMVENDA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="24fb9ec7-4335-40ec-8e9d-6c063df3e104" positionType="Float" stretchType="RelativeToTallestObject" x="542" y="16" width="82" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DESCMARCA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="6b015bb1-0aed-4a9e-9cb8-46434a9fd399" positionType="Float" x="0" y="32" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<leftPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="607a10f2-ddaf-4abe-b120-72381e2d93a8" positionType="Float" stretchType="RelativeToTallestObject" x="0" y="47" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<leftPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="47caea83-134c-4644-8479-c202f2358ddd" positionType="Float" stretchType="RelativeToTallestObject" x="120" y="47" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="b6ef29e1-468b-437a-bb19-c3a580686f16" positionType="Float" stretchType="RelativeToTallestObject" x="624" y="16" width="53" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{MOEDA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="38fc2974-c8f5-48ae-b7b9-effa4486afa1" positionType="Float" stretchType="RelativeToTallestObject" x="730" y="16" width="71" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{EXIBEVENDA}.equals( true ) ? "SIM" : "NÃO"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="2719b10c-5959-464f-9cef-7b19e9fc4ab8" positionType="Float" x="240" y="32" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.ocupacao}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="db2b95ff-b6f0-4b3a-9f8c-dd60254cc91b" positionType="Float" stretchType="RelativeToTallestObject" x="240" y="47" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{OCUPACAO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="7165d145-4189-4fd5-8eeb-cc3d07128b09" positionType="Float" x="360" y="32" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.dias}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="55974971-47b4-4e98-8482-d073324d9613" positionType="Float" stretchType="RelativeToTallestObject" x="360" y="47" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{DIASSEMANA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="aaea4203-7c96-496d-8849-40bb739327e8" positionType="Float" stretchType="RelativeToTallestObject" x="480" y="47" width="108" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{CATEGORIAS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="0eb9ff37-1be9-47c2-9dd1-47c9dd86305b" positionType="Float" stretchType="RelativeToTallestObject" x="712" y="47" width="89" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{PONTOSDEVENDA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="a4bd5883-27a4-4f7b-bc31-bc6aea86382a" positionType="Float" stretchType="RelativeToTallestObject" x="588" y="47" width="124" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{CANALDEVENDA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="e87cc5e3-0c93-40b2-8f7d-ddf9e55166b0" positionType="Float" x="480" y="32" width="108" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.categorias}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="0b8c49cf-035f-4435-91b8-1da033e13645" positionType="Float" x="712" y="32" width="89" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.pontosDeVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="0db230a0-2668-46af-9947-e21427948ebf" positionType="Float" x="120" y="32" width="120" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="84d06507-02eb-4f72-9597-c68061f4af26" positionType="Float" x="588" y="32" width="124" height="15" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<bottomPen lineWidth="0.0"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.canalDeVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<noData>
|
||||||
|
<band height="50">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="ca28756b-0f01-49c4-ad61-436c3ec083a1" x="0" y="24" width="802" height="26"/>
|
||||||
|
<textElement verticalAlignment="Middle" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
|
@ -0,0 +1,569 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.pricing;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
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.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Doublebox;
|
||||||
|
import org.zkoss.zul.Intbox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PricingEspecifico;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioPricingEspecifico;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MarcaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MonedaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Valdir Cordeiro
|
||||||
|
*/
|
||||||
|
@Controller("relatorioPricingEspecificoController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioPricingEspecificoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private MarcaService marcaService;
|
||||||
|
@Autowired
|
||||||
|
private MonedaService monedaService;
|
||||||
|
@Autowired
|
||||||
|
private CategoriaService categoriaService;
|
||||||
|
@Autowired
|
||||||
|
private ClaseServicioService claseServicioService;
|
||||||
|
@Autowired
|
||||||
|
private ParadaService paradaService;
|
||||||
|
@Autowired
|
||||||
|
private TipoPuntoVentaService puntoVentaService;
|
||||||
|
private List<Marca> lsMarca;
|
||||||
|
private List<Moneda> lsMoneda;
|
||||||
|
private List<Categoria> lsCategoria;
|
||||||
|
private List<ClaseServicio> lsClaseServicio;
|
||||||
|
private List<TipoPuntoVenta> lsPtovata;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<PricingEspecifico> plwPricingEspecifico;
|
||||||
|
private Combobox cmbMarca;
|
||||||
|
private Combobox cmbMoneda;
|
||||||
|
private Combobox cmbTipoPassageiro;
|
||||||
|
private Combobox cmbTipoServicio;
|
||||||
|
private Combobox cmbPtovta;
|
||||||
|
private Combobox cmbOrigem;
|
||||||
|
private Combobox cmbDestino;
|
||||||
|
|
||||||
|
private Datebox inicioDataViagem;
|
||||||
|
private Datebox fimDataViagem;
|
||||||
|
|
||||||
|
private Datebox inicioDataVenda;
|
||||||
|
private Datebox fimDataVenda;
|
||||||
|
|
||||||
|
private Textbox txtNombrePricing;
|
||||||
|
private Intbox txtCodigoServico;
|
||||||
|
|
||||||
|
private Doublebox txtTarifa;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
|
||||||
|
private MyTextbox txtNombrePuntoVenta;
|
||||||
|
private Bandbox bbPesquisaPuntoVenta;
|
||||||
|
private Paging pagingPuntoVenta;
|
||||||
|
private MyListbox puntoVentaList;
|
||||||
|
private MyListbox puntoVentaSelList;
|
||||||
|
|
||||||
|
private Checkbox chkDomingo;
|
||||||
|
private Checkbox chkSegunda;
|
||||||
|
private Checkbox chkTerca;
|
||||||
|
private Checkbox chkQuarta;
|
||||||
|
private Checkbox chkQuinta;
|
||||||
|
private Checkbox chkSexta;
|
||||||
|
private Checkbox chkSabado;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsMarca = marcaService.buscarMarcaPorEmpresa(UsuarioLogado.getUsuarioLogado().getEmpresa());
|
||||||
|
lsMoneda = monedaService.obtenerTodos();
|
||||||
|
lsCategoria = categoriaService.obtenerTodos();
|
||||||
|
lsClaseServicio = claseServicioService.obtenerTodos();
|
||||||
|
lsPtovata = puntoVentaService.obtenerTodos();
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||||
|
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
|
||||||
|
|
||||||
|
txtNombrePricing.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRelatorio(Event ev) throws Exception {
|
||||||
|
executarRelatorio();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$puntoVentaSelList(Event ev) {
|
||||||
|
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected();
|
||||||
|
puntoVentaSelList.removeItem(puntoVenta);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$puntoVentaList(Event ev) {
|
||||||
|
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected();
|
||||||
|
puntoVentaSelList.addItemNovo(puntoVenta);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnLimpar(Event ev) {
|
||||||
|
puntoVentaList.setData(new ArrayList<PuntoVenta>());
|
||||||
|
bbPesquisaPuntoVenta.setText("");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
|
executarPesquisa();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisa() {
|
||||||
|
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
|
||||||
|
|
||||||
|
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
|
||||||
|
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
|
||||||
|
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("relatorioVendasBilheteiroController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
|
private void executarRelatorio() throws Exception {
|
||||||
|
Relatorio relatorio;
|
||||||
|
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||||
|
StringBuilder filtro = new StringBuilder();
|
||||||
|
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
|
|
||||||
|
if (inicioDataViagem.getValue() != null) {
|
||||||
|
parametros.put("DATA_INICIO_VIAGEM", (java.util.Date) inicioDataViagem.getValue());
|
||||||
|
parametros.put("DATA_FIM_VIAGEM", (java.util.Date) fimDataViagem.getValue());
|
||||||
|
|
||||||
|
filtro.append("Data Viagem: ")
|
||||||
|
.append(format.format(inicioDataViagem.getValue()))
|
||||||
|
.append(" - ")
|
||||||
|
.append(format.format(fimDataViagem.getValue()))
|
||||||
|
.append(";");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (inicioDataVenda.getValue() != null) {
|
||||||
|
parametros.put("DATA_INICIO_VENDA", (java.util.Date) inicioDataVenda.getValue());
|
||||||
|
parametros.put("DATA_FIM_VENDA", (java.util.Date) fimDataVenda.getValue());
|
||||||
|
|
||||||
|
filtro.append("Data Venda: ")
|
||||||
|
.append(format.format(inicioDataVenda.getValue()))
|
||||||
|
.append(" - ")
|
||||||
|
.append(format.format(fimDataVenda.getValue()))
|
||||||
|
.append(";");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append("Origem: ");
|
||||||
|
Parada parada = (Parada) (cmbOrigem.getSelectedItem() != null ? cmbOrigem.getSelectedItem().getValue() : null);
|
||||||
|
if(parada != null) {
|
||||||
|
parametros.put("ORIGEM", parada.getParadaId());
|
||||||
|
filtro.append(parada.getDescparada());
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todas; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append("Destino: ");
|
||||||
|
Parada parada1 = (Parada) (cmbDestino.getSelectedItem() != null ? cmbDestino.getSelectedItem().getValue() : null);
|
||||||
|
if(parada1 != null) {
|
||||||
|
parametros.put("DESTINO", parada1.getParadaId());
|
||||||
|
filtro.append(parada1.getDescparada());
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todas; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioPricingEspecificoController.window.title"));
|
||||||
|
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||||
|
parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||||
|
|
||||||
|
filtro.append("Marca: ");
|
||||||
|
Comboitem itemMarca = cmbMarca.getSelectedItem();
|
||||||
|
if (itemMarca != null) {
|
||||||
|
Marca marca = (Marca) itemMarca.getValue();
|
||||||
|
parametros.put("MARCA_ID", marca.getMarcaId().intValue());
|
||||||
|
filtro.append(marca.getDescmarca() + ";");
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todas; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append("Tipo Passageiro: ");
|
||||||
|
Categoria categoria = (Categoria) (cmbTipoPassageiro.getSelectedItem() != null ? cmbTipoPassageiro.getSelectedItem().getValue() : null);
|
||||||
|
if (categoria != null) {
|
||||||
|
parametros.put("TIPO_PASSAGEIRO", categoria.getCategoriaId());
|
||||||
|
filtro.append(categoria.getDesccategoria() + ";");
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todos; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append("Tipo Classe: ");
|
||||||
|
ClaseServicio claseServicio = (ClaseServicio) (cmbTipoServicio.getSelectedItem() != null ? cmbTipoServicio.getSelectedItem().getValue() : null);
|
||||||
|
if (claseServicio != null) {
|
||||||
|
parametros.put("TIPO_CLASSE", claseServicio.getClaseservicioId());
|
||||||
|
filtro.append(claseServicio.getDescclase() + ";");
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todas; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append("Canal de Venda: ");
|
||||||
|
TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) (cmbPtovta.getSelectedItem() != null ? cmbPtovta.getSelectedItem().getValue() : null);
|
||||||
|
if (tipoPuntoVenta != null) {
|
||||||
|
parametros.put("CANAL_DE_VENDA", tipoPuntoVenta.getTipoptovtaId().intValue());
|
||||||
|
filtro.append(tipoPuntoVenta.getDesctipo() + ";");
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todos; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append("Serviço: ");
|
||||||
|
Integer codServico = txtCodigoServico.getValue();
|
||||||
|
if (codServico != null) {
|
||||||
|
parametros.put("CORRIDA_ID", codServico);
|
||||||
|
filtro.append(codServico + ";");
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todos; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append("Agência: ");
|
||||||
|
String puntoVentaIds = "";
|
||||||
|
String puntoVentas = "";
|
||||||
|
List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
||||||
|
if (lsPuntoVentaSelecionados.size() > 0) {
|
||||||
|
for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) {
|
||||||
|
PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i);
|
||||||
|
puntoVentas = puntoVentas + puntoVenta.getNombpuntoventa() + ",";
|
||||||
|
puntoVentaIds = puntoVentaIds + puntoVenta.getPuntoventaId() + ",";
|
||||||
|
}
|
||||||
|
|
||||||
|
puntoVentaIds = puntoVentaIds.substring(0, puntoVentaIds.length() - 1);
|
||||||
|
puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1);
|
||||||
|
parametros.put("NUMPUNTOVENTA", puntoVentaIds);
|
||||||
|
} else {
|
||||||
|
filtro.append("Todas; ");
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append(puntoVentas).append(";");
|
||||||
|
|
||||||
|
filtro.append(" Dias da Semana: ");
|
||||||
|
if( chkDomingo.isChecked() && chkSegunda.isChecked() && chkTerca.isChecked() && chkQuarta.isChecked() && chkQuinta.isChecked() && chkSexta.isChecked() && chkSabado.isChecked()) {
|
||||||
|
filtro.append(" Todos; ");
|
||||||
|
} else {
|
||||||
|
filtro.append(chkDomingo.isChecked() ? "Dom " : "");
|
||||||
|
parametros.put("DOMINGO", chkDomingo.isChecked());
|
||||||
|
|
||||||
|
filtro.append(chkSegunda.isChecked() ? "Seg " : "");
|
||||||
|
parametros.put("SEGUNDA", chkSegunda.isChecked());
|
||||||
|
|
||||||
|
filtro.append(chkTerca.isChecked() ? "Ter " : "");
|
||||||
|
parametros.put("TERCA", chkTerca.isChecked());
|
||||||
|
|
||||||
|
filtro.append(chkQuarta.isChecked() ? "Qua " : "");
|
||||||
|
parametros.put("QUARTA", chkQuarta.isChecked());
|
||||||
|
|
||||||
|
filtro.append(chkQuinta.isChecked() ? "Qui " : "");
|
||||||
|
parametros.put("QUINTA", chkQuinta.isChecked());
|
||||||
|
|
||||||
|
filtro.append(chkSexta.isChecked() ? "Sex " : "");
|
||||||
|
parametros.put("SEXTA", chkSexta.isChecked());
|
||||||
|
|
||||||
|
filtro.append(chkSabado.isChecked() ? "Sab " : "");
|
||||||
|
parametros.put("SABADO", chkSabado.isChecked());
|
||||||
|
}
|
||||||
|
|
||||||
|
String nomePricing = txtNombrePricing.getText().trim();
|
||||||
|
if (!nomePricing.isEmpty()) {
|
||||||
|
parametros.put("NOMBPRICING", "%" + nomePricing + "%");
|
||||||
|
filtro.append("; Nome Pricing: " + nomePricing);
|
||||||
|
}
|
||||||
|
|
||||||
|
Double tarifaVolta = txtTarifa.getValue();
|
||||||
|
if (tarifaVolta != null) {
|
||||||
|
parametros.put("TARIFAVOLTA", tarifaVolta);
|
||||||
|
filtro.append("; Tarifa Volta: " + tarifaVolta);
|
||||||
|
}
|
||||||
|
|
||||||
|
parametros.put("FILTROS", filtro.toString());
|
||||||
|
relatorio = new RelatorioPricingEspecifico(parametros, dataSourceRead.getConnection());
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul",
|
||||||
|
Labels.getLabel("relatorioPricingEspecificoController.window.title"), args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Marca> getLsMarca() {
|
||||||
|
return lsMarca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsMarca(List<Marca> lsMarca) {
|
||||||
|
this.lsMarca = lsMarca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Moneda> getLsMoneda() {
|
||||||
|
return lsMoneda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsMoneda(List<Moneda> lsMoneda) {
|
||||||
|
this.lsMoneda = lsMoneda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MarcaService getMarcaService() {
|
||||||
|
return marcaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMarcaService(MarcaService marcaService) {
|
||||||
|
this.marcaService = marcaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MonedaService getMonedaService() {
|
||||||
|
return monedaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMonedaService(MonedaService monedaService) {
|
||||||
|
this.monedaService = monedaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<PricingEspecifico> getPlwPricingEspecifico() {
|
||||||
|
return plwPricingEspecifico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwPricingEspecifico(PagedListWrapper<PricingEspecifico> plwPricingEspecifico) {
|
||||||
|
this.plwPricingEspecifico = plwPricingEspecifico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Categoria> getLsCategoria() {
|
||||||
|
return lsCategoria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsCategoria(List<Categoria> lsCategoria) {
|
||||||
|
this.lsCategoria = lsCategoria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ClaseServicio> getLsClaseServicio() {
|
||||||
|
return lsClaseServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
|
||||||
|
this.lsClaseServicio = lsClaseServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CategoriaService getCategoriaService() {
|
||||||
|
return categoriaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoriaService(CategoriaService categoriaService) {
|
||||||
|
this.categoriaService = categoriaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ClaseServicioService getClaseServicioService() {
|
||||||
|
return claseServicioService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClaseServicioService(ClaseServicioService claseServicioService) {
|
||||||
|
this.claseServicioService = claseServicioService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbMarca() {
|
||||||
|
return cmbMarca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbMarca(Combobox cmbMarca) {
|
||||||
|
this.cmbMarca = cmbMarca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbMoneda() {
|
||||||
|
return cmbMoneda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbMoneda(Combobox cmbMoneda) {
|
||||||
|
this.cmbMoneda = cmbMoneda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbTipoPassageiro() {
|
||||||
|
return cmbTipoPassageiro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoPassageiro(Combobox cmbTipoPassageiro) {
|
||||||
|
this.cmbTipoPassageiro = cmbTipoPassageiro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbTipoServicio() {
|
||||||
|
return cmbTipoServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoServicio(Combobox cmbTipoServicio) {
|
||||||
|
this.cmbTipoServicio = cmbTipoServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ParadaService getParadaService() {
|
||||||
|
return paradaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParadaService(ParadaService paradaService) {
|
||||||
|
this.paradaService = paradaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TipoPuntoVenta> getLsPtovata() {
|
||||||
|
return lsPtovata;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsPtovata(List<TipoPuntoVenta> lsPtovata) {
|
||||||
|
this.lsPtovata = lsPtovata;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TipoPuntoVentaService getPuntoVentaService() {
|
||||||
|
return puntoVentaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPuntoVentaService(TipoPuntoVentaService puntoVentaService) {
|
||||||
|
this.puntoVentaService = puntoVentaService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbPtovta() {
|
||||||
|
return cmbPtovta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbPtovta(Combobox cmbPtovta) {
|
||||||
|
this.cmbPtovta = cmbPtovta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbOrigem() {
|
||||||
|
return cmbOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbOrigem(Combobox cmbOrigem) {
|
||||||
|
this.cmbOrigem = cmbOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbDestino() {
|
||||||
|
return cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbDestino(Combobox cmbDestino) {
|
||||||
|
this.cmbDestino = cmbDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getInicioDataViagem() {
|
||||||
|
return inicioDataViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInicioDataViagem(Datebox inicioDataViagem) {
|
||||||
|
this.inicioDataViagem = inicioDataViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getFimDataViagem() {
|
||||||
|
return fimDataViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFimDataViagem(Datebox fimDataViagem) {
|
||||||
|
this.fimDataViagem = fimDataViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getInicioDataVenda() {
|
||||||
|
return inicioDataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInicioDataVenda(Datebox inicioDataVenda) {
|
||||||
|
this.inicioDataVenda = inicioDataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getFimDataVenda() {
|
||||||
|
return fimDataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFimDataVenda(Datebox fimDataVenda) {
|
||||||
|
this.fimDataVenda = fimDataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Textbox getTxtNombrePricing() {
|
||||||
|
return txtNombrePricing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtNombrePricing(Textbox txtNombrePricing) {
|
||||||
|
this.txtNombrePricing = txtNombrePricing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Intbox getTxtCodigoServico() {
|
||||||
|
return txtCodigoServico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodigoServico(Intbox txtCodigoServico) {
|
||||||
|
this.txtCodigoServico = txtCodigoServico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Doublebox getTxtTarifa() {
|
||||||
|
return txtTarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtTarifa(Doublebox txtTarifa) {
|
||||||
|
this.txtTarifa = txtTarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedListWrapper<PuntoVenta> getPlwPuntoVenta() {
|
||||||
|
return plwPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlwPuntoVenta(PagedListWrapper<PuntoVenta> plwPuntoVenta) {
|
||||||
|
this.plwPuntoVenta = plwPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getPuntoVentaSelList() {
|
||||||
|
return puntoVentaSelList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPuntoVentaSelList(MyListbox puntoVentaSelList) {
|
||||||
|
this.puntoVentaSelList = puntoVentaSelList;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.constantes.ConstantesFuncionSistema;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuRelatorioPricingEspecifico extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuRelatorioPricingEspecifico() {
|
||||||
|
super("indexController.mniRelatorioPricingEspecifico.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return ConstantesFuncionSistema.CLAVE_RELATORIO_PRICING_ESPECIFICO;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/pricing/relatorioPricingEspecifico.zul",
|
||||||
|
Labels.getLabel("relatorioPricingEspecificoController.window.title"), getArgs(), desktop);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -139,6 +139,7 @@ pricing.general=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.I
|
||||||
pricing.especifico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricingEspecifico
|
pricing.especifico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricingEspecifico
|
||||||
pricing.modificacionMassivaEspecifico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuModificacionMassivaPricingEspecifico
|
pricing.modificacionMassivaEspecifico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuModificacionMassivaPricingEspecifico
|
||||||
pricing.classeTarifaria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricingClasseTarifaria
|
pricing.classeTarifaria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricingClasseTarifaria
|
||||||
|
pricing.relatorioEspecifico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuRelatorioPricingEspecifico
|
||||||
ingresosExtras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.MenuIngreso
|
ingresosExtras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.MenuIngreso
|
||||||
ingresosExtras.ingreso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.ItemMenuIngreso
|
ingresosExtras.ingreso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ingreso.ItemMenuIngreso
|
||||||
analitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.MenuAnalitico
|
analitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.MenuAnalitico
|
||||||
|
|
|
@ -191,6 +191,16 @@ indexController.mniVersion.label = Versión
|
||||||
indexController.mniPricing.label = Pricing
|
indexController.mniPricing.label = Pricing
|
||||||
indexController.mniPricingCtrl.label = Configurações do Pricing
|
indexController.mniPricingCtrl.label = Configurações do Pricing
|
||||||
indexController.mniConfiguracionServicio.label = Configuración de producto o servicio de terceros
|
indexController.mniConfiguracionServicio.label = Configuración de producto o servicio de terceros
|
||||||
|
|
||||||
|
indexController.mniRelatorioPricingEspecifico.label = Relatório Pricing Específico
|
||||||
|
relatorioPricingEspecificoController.window.title = Relatório Pricing Específico
|
||||||
|
editarRelatorioPricingController.lhdataInicioViagem.label= Início Data Viagem
|
||||||
|
editarRelatorioPricingController.lhdataFimViagem.label= Fim Data Viagem
|
||||||
|
editarRelatorioPricingController.lhdataInicioVenda.label= Início Data Venda
|
||||||
|
editarRelatorioPricingController.lhdataFimVenda.label= Fim Data Venda
|
||||||
|
editarRelatorioPricingController.tarifaVolta.title = Tarifa Volta
|
||||||
|
editarRelatorioPricingController.btnRelatorio.label= Executar Relatório
|
||||||
|
|
||||||
indexController.mniPricingEspecifico.label = Pricing específico
|
indexController.mniPricingEspecifico.label = Pricing específico
|
||||||
indexController.mnSeguridad.label = Seguridad
|
indexController.mnSeguridad.label = Seguridad
|
||||||
indexController.mniPerfil.label = Perfil
|
indexController.mniPerfil.label = Perfil
|
||||||
|
|
|
@ -199,6 +199,17 @@ indexController.mniVersion.label = Versão
|
||||||
indexController.mniPricing.label = Pricing
|
indexController.mniPricing.label = Pricing
|
||||||
indexController.mniPricingCtrl.label = Configurações do Pricing
|
indexController.mniPricingCtrl.label = Configurações do Pricing
|
||||||
indexController.mniConfiguracionServicio.label = Configuração de Produto ou Serviço Tercerizado
|
indexController.mniConfiguracionServicio.label = Configuração de Produto ou Serviço Tercerizado
|
||||||
|
|
||||||
|
indexController.mniRelatorioPricingEspecifico.label = Relatório Pricing Específico
|
||||||
|
relatorioPricingEspecificoController.window.title = Relatório Pricing Específico
|
||||||
|
editarRelatorioPricingController.lhdataInicioViagem.label= Início Data Viagem
|
||||||
|
editarRelatorioPricingController.lhdataFimViagem.label= Fim Data Viagem
|
||||||
|
editarRelatorioPricingController.lhdataInicioVenda.label= Início Data Venda
|
||||||
|
editarRelatorioPricingController.lhdataFimVenda.label= Fim Data Venda
|
||||||
|
editarRelatorioPricingController.tarifaVolta.title = Tarifa Volta
|
||||||
|
editarRelatorioPricingController.btnRelatorio.label= Executar Relatório
|
||||||
|
|
||||||
|
|
||||||
indexController.mniPricingEspecifico.label = Pricing Específico
|
indexController.mniPricingEspecifico.label = Pricing Específico
|
||||||
indexController.mnSeguridad.label = Segurança
|
indexController.mnSeguridad.label = Segurança
|
||||||
indexController.mniPerfil.label = Perfil
|
indexController.mniPerfil.label = Perfil
|
||||||
|
|
|
@ -0,0 +1,165 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winRelatorioPricingEspecifico"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winRelatorioPricingEspecifico" border="normal"
|
||||||
|
apply="${relatorioPricingEspecificoController}"
|
||||||
|
width="950px" contentStyle="overflow:auto" sizable="true"
|
||||||
|
title="${c:l('relatorioPricingEspecificoController.window.title')}"
|
||||||
|
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnCerrar" onClick="winRelatorioPricingEspecifico.detach()" image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaPricingController.btnCerrar.tooltiptext')}"/>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row spans="1,3">
|
||||||
|
<label value="${c:l('editarPricingController.nombrePricingEsp.label')}"/>
|
||||||
|
<textbox id="txtNombrePricing" maxlength="20"
|
||||||
|
width="99%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarRelatorioPricingController.lhdataInicioViagem.label')}"/>
|
||||||
|
<datebox width="50%" id="inicioDataViagem" format="dd/MM/yyyy HH:mm" mold="rounded" />
|
||||||
|
|
||||||
|
<label value="${c:l('editarRelatorioPricingController.lhdataFimViagem.label')}"/>
|
||||||
|
<datebox width="50%" id="fimDataViagem" format="dd/MM/yyyy HH:mm" mold="rounded" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarRelatorioPricingController.lhdataInicioVenda.label')}"/>
|
||||||
|
<datebox width="50%" id="inicioDataVenda" format="dd/MM/yyyy HH:mm" mold="rounded" />
|
||||||
|
|
||||||
|
<label value="${c:l('editarRelatorioPricingController.lhdataFimVenda.label')}"/>
|
||||||
|
<datebox width="50%" id="fimDataVenda" format="dd/MM/yyyy HH:mm" mold="rounded" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarPricingController.windowCodServico.title')}"/>
|
||||||
|
<intbox id="txtCodigoServico" width="90%" />
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.windowTipoServicio.title')}"/>
|
||||||
|
<combobox id="cmbTipoServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winRelatorioPricingEspecifico$composer.lsClaseServicio}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarPricingController.marca.value')}"/>
|
||||||
|
<combobox id="cmbMarca" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winRelatorioPricingEspecifico$composer.lsMarca}"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarRelatorioPricingController.tarifaVolta.title')}"/>
|
||||||
|
<doublebox id="txtTarifa" width="50%"/>
|
||||||
|
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarPricingController.origem.label')}"/>
|
||||||
|
<combobox id="cmbOrigem" mold="rounded" buttonVisible="true" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.destino.label')}"/>
|
||||||
|
<combobox id="cmbDestino" mold="rounded" buttonVisible="true" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarPricingController.windowCategoria.title')}"/>
|
||||||
|
<combobox id="cmbTipoPassageiro" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winRelatorioPricingEspecifico$composer.lsCategoria}"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.ptovta.value')}"/>
|
||||||
|
<combobox id="cmbPtovta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winRelatorioPricingEspecifico$composer.lsPtovata}"/>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row spans="1,3" >
|
||||||
|
<label value="${c:l('editarPricingController.lhDiaDaSemana.label')}" />
|
||||||
|
|
||||||
|
<hlayout>
|
||||||
|
<label value="${c:l('editarPricingController.lhDomingo.label')}" />
|
||||||
|
<checkbox id="chkDomingo" checked="true"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.lhSegunda.label')}" />
|
||||||
|
<checkbox id="chkSegunda" checked="true"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.lhTerca.label')}" />
|
||||||
|
<checkbox id="chkTerca" checked="true"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.lhQuarta.label')}" />
|
||||||
|
<checkbox id="chkQuarta" checked="true"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.lhQuinta.label')}" />
|
||||||
|
<checkbox id="chkQuinta" checked="true"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.lhSexta.label')}" />
|
||||||
|
<checkbox id="chkSexta" checked="true"/>
|
||||||
|
|
||||||
|
<label value="${c:l('editarPricingController.lhSabado.label')}" />
|
||||||
|
<checkbox id="chkSabado" checked="true"/>
|
||||||
|
</hlayout>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row spans="1,3">
|
||||||
|
<label value="Agencia" />
|
||||||
|
<bandbox id="bbPesquisaPuntoVenta" width="100%" mold="rounded" readonly="true">
|
||||||
|
<bandpopup>
|
||||||
|
<vbox>
|
||||||
|
<hbox>
|
||||||
|
<label value="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||||
|
<textbox id="txtNombrePuntoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" width="300px" mold="rounded" />
|
||||||
|
|
||||||
|
<button id="btnPesquisa" image="/gui/img/find.png" label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
|
||||||
|
<button id="btnLimpar" image="/gui/img/eraser.png" label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
|
||||||
|
</hbox>
|
||||||
|
|
||||||
|
<paging id="pagingPuntoVenta" pageSize="10" />
|
||||||
|
|
||||||
|
<listbox id="puntoVentaList" mold="paging" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" vflex="true" height="100%" width="700px">
|
||||||
|
<listhead>
|
||||||
|
<listheader label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||||
|
<listheader width="35%" label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
|
||||||
|
<listheader width="20%" label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</vbox>
|
||||||
|
</bandpopup>
|
||||||
|
</bandbox>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row spans="4">
|
||||||
|
<listbox id="puntoVentaSelList" mold="paging" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" vflex="true" height="100px" width="100%">
|
||||||
|
<listhead>
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||||
|
<listheader width="35%"
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
|
||||||
|
<listheader width="20%"
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
|
||||||
|
<listheader width="15%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
<paging id="pagingSelPuntoVenta" pageSize="10" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRelatorio" image="/gui/img/find.png"
|
||||||
|
label="${c:l('editarRelatorioPricingController.btnRelatorio.label')}"/>
|
||||||
|
</toolbar>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue