fixes bug#AL-3915
parent
7ba122a40a
commit
c709cb7aca
4
pom.xml
4
pom.xml
|
@ -4,12 +4,12 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.54.9</version>
|
<version>1.55.0</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<modelWeb.version>1.40.7</modelWeb.version>
|
<modelWeb.version>1.40.7</modelWeb.version>
|
||||||
<flyway.version>1.30.1</flyway.version>
|
<flyway.version>1.31.0</flyway.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
|
@ -0,0 +1,266 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Comparator;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioBilhetesVendidosEstoqueAgenciaBean;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioIndiceIRKBean;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Wallace
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class RelatorioBilhetesVendidosEstoqueAgencia extends Relatorio {
|
||||||
|
private List<RelatorioBilhetesVendidosEstoqueAgenciaBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioBilhetesVendidosEstoqueAgencia(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();
|
||||||
|
String pnutoVentasIds = (String) parametros.get("NUMPUNTOVENTA");
|
||||||
|
Integer empresa = (Integer) parametros.get("EMPRESA_ID");
|
||||||
|
Date datainicial = (Date) parametros.get("DATA_INICIAL");
|
||||||
|
Date dataFinal = (Date) parametros.get("DATA_FINAL");
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql(pnutoVentasIds));
|
||||||
|
|
||||||
|
stmt.setInt("EMPRESA_ID", empresa);
|
||||||
|
stmt.setString("dataInicio", DateUtil.getStringDate(datainicial, "dd/MM/yyyy") + " 00:00:00");
|
||||||
|
stmt.setString("dataFinal", DateUtil.getStringDate(dataFinal, "dd/MM/yyyy") + " 23:59:59");
|
||||||
|
|
||||||
|
ResultSet rset = stmt.executeQuery();
|
||||||
|
List<RelatorioBilhetesVendidosEstoqueAgenciaBean> lsTemp = new ArrayList<>();
|
||||||
|
List<RelatorioBilhetesVendidosEstoqueAgenciaBean> lsRelatorioBilhetesVendidosEstoqueAgenciaBean = new ArrayList<>();
|
||||||
|
List<RelatorioBilhetesVendidosEstoqueAgenciaBean> lsRelatorioBilhetesVendidosEstoqueAgenciaBeanGeradoSequencia = new ArrayList<>();
|
||||||
|
while (rset.next()) {
|
||||||
|
|
||||||
|
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
RelatorioBilhetesVendidosEstoqueAgenciaBean bean = new RelatorioBilhetesVendidosEstoqueAgenciaBean();
|
||||||
|
bean.setAidfId(rset.getInt("aidfId"));
|
||||||
|
bean.setNombpuntoventa(rset.getString("descpuntoVenta"));
|
||||||
|
bean.setSerie(rset.getString("serie"));
|
||||||
|
bean.setFechorVenta(DateUtil.getDateFromString(rset.getString("dataVenda"), "ddMMyyyy"));
|
||||||
|
bean.setChave(rset.getString("chave"));
|
||||||
|
bean.setFolio(rset.getString("folio"));
|
||||||
|
bean.setNomeEmpresa(rset.getString("nomeEmpresa"));
|
||||||
|
bean.setTipoEvento("Incluir");
|
||||||
|
lsRelatorioBilhetesVendidosEstoqueAgenciaBean.add(bean);
|
||||||
|
|
||||||
|
this.dados.add(dataResult);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, String> map = new HashMap<String, String>();
|
||||||
|
for (RelatorioBilhetesVendidosEstoqueAgenciaBean i : lsRelatorioBilhetesVendidosEstoqueAgenciaBean) {
|
||||||
|
map.put(i.getChave(), i.getChave());
|
||||||
|
}
|
||||||
|
for (Map.Entry<String, String> entry : map.entrySet()) {
|
||||||
|
for (RelatorioBilhetesVendidosEstoqueAgenciaBean i : lsRelatorioBilhetesVendidosEstoqueAgenciaBean) {
|
||||||
|
if(entry.getKey().equals(i.getChave())) {
|
||||||
|
lsTemp.add(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (RelatorioBilhetesVendidosEstoqueAgenciaBean bean : lsTemp) {
|
||||||
|
lsRelatorioBilhetesVendidosEstoqueAgenciaBeanGeradoSequencia.addAll(agruparSequenciasBilhetes(lsTemp));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
lsTemp = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
Collections.sort(lsRelatorioBilhetesVendidosEstoqueAgenciaBeanGeradoSequencia, new Comparator<RelatorioBilhetesVendidosEstoqueAgenciaBean>() {
|
||||||
|
@Override
|
||||||
|
public int compare(RelatorioBilhetesVendidosEstoqueAgenciaBean rel1, RelatorioBilhetesVendidosEstoqueAgenciaBean rel2) {
|
||||||
|
return DateUtil.compareDate(rel1.getFechorVenta(), rel2.getFechorVenta());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
this.resultSet = rset;
|
||||||
|
setLsDadosRelatorio(lsRelatorioBilhetesVendidosEstoqueAgenciaBeanGeradoSequencia);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioBilhetesVendidosEstoqueAgenciaBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<RelatorioBilhetesVendidosEstoqueAgenciaBean> getLsDadosRelatorio() {
|
||||||
|
return lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String sql(String puntoVentasId) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
|
||||||
|
sql.append(" SELECT TB.aidfId as aidfId, ");
|
||||||
|
sql.append(" TB.descpuntoVenta as descpuntoVenta, ");
|
||||||
|
sql.append(" TB.SERIE as serie, ");
|
||||||
|
sql.append(" TB.puntoventaId, ");
|
||||||
|
sql.append(" TB.dataVenda as dataVenda, ");
|
||||||
|
sql.append(" TB.chave as chave, ");
|
||||||
|
sql.append(" TB.nomeEmpresa as nomeEmpresa , TB.folio as folio ");
|
||||||
|
sql.append(" FROM (SELECT DAB.AIDF_ID AS aidfId, ");
|
||||||
|
sql.append(" pv.nombpuntoventa AS descpuntoVenta, ");
|
||||||
|
sql.append(" c.numseriepreimpresa AS SERIE, ");
|
||||||
|
sql.append(" c.puntoventa_id AS puntoventaId, ");
|
||||||
|
sql.append(" to_char(c.fechorventa, 'ddMMyyyy') AS dataVenda, ");
|
||||||
|
sql.append(" DAB.AIDF_ID || c.numseriepreimpresa || c.puntoventa_id || to_char(c.fechorventa, 'ddMMyyyy') AS chave, ");
|
||||||
|
sql.append(" em.nombEmpresa as nomeEmpresa , c.numfoliopreimpreso as folio ");
|
||||||
|
sql.append(" FROM caja c, ");
|
||||||
|
sql.append(" PUNTO_VENTA PV, ");
|
||||||
|
sql.append(" EMPRESA EM, ");
|
||||||
|
sql.append(" AIDF AI, ");
|
||||||
|
sql.append(" ABASTO_BOLETO AB ");
|
||||||
|
sql.append(" LEFT JOIN DET_ABASTO_BOLETO DAB ON (AB.ABASTOBOLETO_ID = DAB.ABASTOBOLETO_ID) ");
|
||||||
|
sql.append(" WHERE fechorventa BETWEEN TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:dataFinal,'dd/mm/yyyy hh24:mi:ss') ");
|
||||||
|
sql.append(" AND TO_NUMBER(c.NUMFOLIOPREIMPRESO) BETWEEN TO_NUMBER(DAB.NUMFOLIOINICIAL) AND TO_NUMBER(DAB.NUMFOLIOFINAL) ");
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID = AB.PUNTOVENTA_ID ");
|
||||||
|
if (puntoVentasId != null && !puntoVentasId.equals("-1")) {
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVentasId + ") ");
|
||||||
|
}
|
||||||
|
sql.append(" AND EM.EMPRESA_ID = AB.EMPRESA_ID ");
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID = PV.PUNTOVENTA_ID ");
|
||||||
|
sql.append(" AND DAB.AIDF_ID = AI.AIDF_ID ");
|
||||||
|
sql.append(" AND EM.EMPRESA_ID =:EMPRESA_ID ");
|
||||||
|
sql.append(" GROUP BY DAB.AIDF_ID,c.numseriepreimpresa, c.numfoliopreimpreso, ");
|
||||||
|
sql.append(" c.puntoventa_id, ");
|
||||||
|
sql.append(" to_char(c.fechorventa, 'ddMMyyyy'), ");
|
||||||
|
sql.append(" pv.nombpuntoventa, ");
|
||||||
|
sql.append(" em.nombEmpresa ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" UNION ALL ");
|
||||||
|
sql.append(" SELECT DAB.AIDF_ID AS aidfId, ");
|
||||||
|
sql.append(" pv.nombpuntoventa AS descpuntoVenta, ");
|
||||||
|
sql.append(" c.numseriepreimpresa AS SERIE, ");
|
||||||
|
sql.append(" c.puntoventa_id AS puntoventaId, ");
|
||||||
|
sql.append(" to_char(c.FECHORVTA, 'ddMMyyyy') AS dataVenda, ");
|
||||||
|
sql.append(" DAB.AIDF_ID || c.numseriepreimpresa || c.puntoventa_id || to_char(c.FECHORVTA, 'ddMMyyyy') AS chave, ");
|
||||||
|
sql.append(" em.nombEmpresa as nomeEmpresa , c.numfoliopreimpreso as folio ");
|
||||||
|
sql.append(" FROM caja_diversos c, ");
|
||||||
|
sql.append(" PUNTO_VENTA PV, ");
|
||||||
|
sql.append(" EMPRESA EM, ");
|
||||||
|
sql.append(" AIDF AI, ");
|
||||||
|
sql.append(" ABASTO_BOLETO AB ");
|
||||||
|
sql.append(" LEFT JOIN DET_ABASTO_BOLETO DAB ON (AB.ABASTOBOLETO_ID = DAB.ABASTOBOLETO_ID) ");
|
||||||
|
sql.append(" WHERE FECHORVTA BETWEEN TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:dataFinal,'dd/mm/yyyy hh24:mi:ss') ");
|
||||||
|
sql.append(" AND TO_NUMBER(c.NUMFOLIOPREIMPRESO) BETWEEN TO_NUMBER(DAB.NUMFOLIOINICIAL) AND TO_NUMBER(DAB.NUMFOLIOFINAL) ");
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID = AB.PUNTOVENTA_ID ");
|
||||||
|
if (puntoVentasId != null && !puntoVentasId.equals("-1")) {
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVentasId + ") ");
|
||||||
|
}
|
||||||
|
sql.append(" AND EM.EMPRESA_ID = AB.EMPRESA_ID ");
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID = PV.PUNTOVENTA_ID ");
|
||||||
|
sql.append(" AND DAB.AIDF_ID = AI.AIDF_ID ");
|
||||||
|
sql.append(" AND EM.EMPRESA_ID =:EMPRESA_ID ");
|
||||||
|
sql.append(" GROUP BY DAB.AIDF_ID,c.numseriepreimpresa, c.numfoliopreimpreso, ");
|
||||||
|
sql.append(" c.puntoventa_id, ");
|
||||||
|
sql.append(" to_char(c.FECHORVTA, 'ddMMyyyy'), ");
|
||||||
|
sql.append(" pv.nombpuntoventa, ");
|
||||||
|
sql.append(" em.nombEmpresa ");
|
||||||
|
sql.append(" )TB ");
|
||||||
|
sql.append(" ORDER BY to_number(TB.FOLIO) ");
|
||||||
|
System.out.println(sql.toString());
|
||||||
|
return sql.toString();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<RelatorioBilhetesVendidosEstoqueAgenciaBean> agruparSequenciasBilhetes(List<RelatorioBilhetesVendidosEstoqueAgenciaBean> lista) {
|
||||||
|
|
||||||
|
|
||||||
|
int[] bilhetesInt = new int[lista.size()];
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
|
for (RelatorioBilhetesVendidosEstoqueAgenciaBean relatorioBilhetesVendidosEstoqueAgenciaBean : lista) {
|
||||||
|
bilhetesInt[i] = Integer.parseInt(relatorioBilhetesVendidosEstoqueAgenciaBean.getFolio());
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
Arrays.sort(bilhetesInt);
|
||||||
|
List<RelatorioBilhetesVendidosEstoqueAgenciaBean> listaAgrupada = new ArrayList<>();
|
||||||
|
|
||||||
|
RelatorioBilhetesVendidosEstoqueAgenciaBean bean = lista.get(0);
|
||||||
|
|
||||||
|
bilhetesInt = reajustarPosicaoArray(bilhetesInt.length, bilhetesInt, bilhetesInt[0], 1);
|
||||||
|
int inicio = bilhetesInt[0];
|
||||||
|
int fim = bilhetesInt.length == 1 ? bilhetesInt[0] : bilhetesInt[1];
|
||||||
|
|
||||||
|
for (int j = 2; j < bilhetesInt.length; ++j) {
|
||||||
|
if (fim + 1 == bilhetesInt[j]) {
|
||||||
|
fim++;
|
||||||
|
} else {
|
||||||
|
listaAgrupada.add(gerarAgrupamento(inicio, fim, new RelatorioBilhetesVendidosEstoqueAgenciaBean(bean)));
|
||||||
|
inicio = bilhetesInt[j];
|
||||||
|
fim = bilhetesInt[j];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
listaAgrupada.add(gerarAgrupamento(inicio, fim, bean));
|
||||||
|
|
||||||
|
return listaAgrupada;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private RelatorioBilhetesVendidosEstoqueAgenciaBean gerarAgrupamento(int inicio, int fim, RelatorioBilhetesVendidosEstoqueAgenciaBean bean) {
|
||||||
|
|
||||||
|
RelatorioBilhetesVendidosEstoqueAgenciaBean object = new RelatorioBilhetesVendidosEstoqueAgenciaBean(bean);
|
||||||
|
|
||||||
|
|
||||||
|
if (inicio != fim) {
|
||||||
|
object.setQuantidade((fim-inicio+1));
|
||||||
|
object.setFolioInicial(inicio);
|
||||||
|
object.setFolioFinal(fim);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
object.setQuantidade(1);
|
||||||
|
object.setFolioInicial(inicio);
|
||||||
|
object.setFolioFinal(inicio);
|
||||||
|
}
|
||||||
|
return object;
|
||||||
|
}
|
||||||
|
private int[] reajustarPosicaoArray(int numero, int arr[],int x, int posicao)
|
||||||
|
{
|
||||||
|
int novoArray[] = new int[numero + 1];
|
||||||
|
|
||||||
|
for (int i = 0; i < numero + 1; i++) {
|
||||||
|
if (i < posicao - 1)
|
||||||
|
novoArray[i] = arr[i];
|
||||||
|
else if (i == posicao - 1)
|
||||||
|
novoArray[i] = x;
|
||||||
|
else
|
||||||
|
novoArray[i] = arr[i - 1];
|
||||||
|
}
|
||||||
|
return novoArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
#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:
|
||||||
|
|
||||||
|
#Labels header
|
||||||
|
label.aidf=AIDF
|
||||||
|
label.empresa=Empresa
|
||||||
|
label.agencia=Agencia
|
||||||
|
label.serie=Serie
|
||||||
|
label.bilhete=Bilhetes
|
||||||
|
label.numeracao=Numeração
|
|
@ -0,0 +1,20 @@
|
||||||
|
#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:
|
||||||
|
|
||||||
|
#Labels header
|
||||||
|
label.aidf=AIDF
|
||||||
|
label.empresa=Empresa
|
||||||
|
label.agencia=Agencia
|
||||||
|
label.serie=Serie
|
||||||
|
label.bilhete=Bilhetes
|
||||||
|
label.numeracao=Numeração
|
Binary file not shown.
|
@ -0,0 +1,254 @@
|
||||||
|
<?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="RelatorioEstoque" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="/ventaboletosadm/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBilhetesVendidosEstoqueAgencia_pt_BR" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
|
||||||
|
<property name="ireport.zoom" value="5.559917313492282"/>
|
||||||
|
<property name="ireport.x" value="659"/>
|
||||||
|
<property name="ireport.y" value="605"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
|
||||||
|
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
|
||||||
|
<parameter name="DATA_INICIAL" class="java.util.Date"/>
|
||||||
|
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||||
|
<parameter name="USUARIO" class="java.lang.String"/>
|
||||||
|
<parameter name="FILTROS" class="java.lang.String"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="aidfId" class="java.lang.Integer"/>
|
||||||
|
<field name="nomeEmpresa" class="java.lang.String"/>
|
||||||
|
<field name="nombpuntoventa" class="java.lang.String"/>
|
||||||
|
<field name="serie" class="java.lang.String"/>
|
||||||
|
<field name="folioInicial" class="java.lang.Integer"/>
|
||||||
|
<field name="folioFinal" class="java.lang.Integer"/>
|
||||||
|
<field name="tipoEvento" class="java.lang.String"/>
|
||||||
|
<field name="quantidade" class="java.lang.Integer"/>
|
||||||
|
<field name="fechorVenta" class="java.util.Date"/>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="82" splitType="Stretch">
|
||||||
|
<textField pattern="" isBlankWhenNull="false">
|
||||||
|
<reportElement mode="Transparent" x="0" y="0" width="457" height="41" forecolor="#000000" backcolor="#FFFFFF" uuid="136a5066-d141-4362-af36-0780f0d16542"/>
|
||||||
|
<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>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="513" y="0" width="185" height="25" uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="9" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
|
||||||
|
<reportElement mode="Transparent" x="698" y="0" width="104" height="25" forecolor="#000000" backcolor="#FFFFFF" uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9"/>
|
||||||
|
<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>
|
||||||
|
<line>
|
||||||
|
<reportElement x="0" y="57" width="802" height="1" uuid="bbf33a72-515f-42fc-8c79-e859aebca31d"/>
|
||||||
|
</line>
|
||||||
|
<textField pattern="" isBlankWhenNull="false">
|
||||||
|
<reportElement mode="Transparent" x="513" y="25" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4"/>
|
||||||
|
<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 mode="Transparent" x="781" y="25" width="21" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="314e312c-8f24-42de-8354-3c1f7241a985"/>
|
||||||
|
<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="698" y="42" width="104" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4e030613-9cee-443e-9eaa-b19fa3090976"/>
|
||||||
|
<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 x="0" y="77" width="802" height="1" uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf"/>
|
||||||
|
</line>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="58" width="803" height="15" uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda"/>
|
||||||
|
<textElement verticalAlignment="Middle">
|
||||||
|
<font size="10"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="35" splitType="Stretch">
|
||||||
|
<line>
|
||||||
|
<reportElement x="1" y="34" width="801" height="1" uuid="a11636cc-5ee1-44cc-8cd1-cbe2ebc47abb"/>
|
||||||
|
</line>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="120" y="16" width="122" height="18" uuid="d60cb698-201c-4315-bec2-498effeea474"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Agência]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="242" y="16" width="187" height="18" uuid="a26b9060-8bd5-4586-af31-e01b0ccf88f9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Sequência]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="728" y="16" width="74" height="15" uuid="fcf366c0-0f13-44f7-84de-38ae1122b647"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Tipo]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="1" y="16" width="119" height="18" uuid="6db7e341-bc01-4843-8be5-fe74d78b7529"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Empresa]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="596" y="15" width="55" height="18" uuid="ed0c0a45-151a-400e-a30c-fd8afa88438b"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[AIDF]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="512" y="16" width="84" height="17" uuid="0bc3df3b-544b-4e68-ace9-f725d4541781"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Série]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="651" y="15" width="77" height="18" uuid="8ad497bf-a305-41d2-a412-40dd3a7d6b88"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Data Venda ]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="429" y="16" width="84" height="19" uuid="164350a6-53ea-4785-a787-6b3c40822954"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Quantidade]]></text>
|
||||||
|
</staticText>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="22" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="120" y="2" width="122" height="18" uuid="c35afacb-b160-4ace-b7be-c2e2f54ac1c0"/>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="8" isBold="false" isItalic="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement mode="Transparent" x="274" y="2" width="59" height="18" forecolor="#000000" backcolor="#FFFFFF" uuid="3dbaaef7-dae9-402d-89d4-a8055462f563"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||||
|
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||||
|
<paragraph lineSpacing="Single"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{folioInicial}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement x="1" y="2" width="119" height="18" uuid="73582b2a-b21b-4637-990c-aff7423a8e27"/>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="8" isBold="false" isItalic="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{nomeEmpresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="">
|
||||||
|
<reportElement x="596" y="2" width="55" height="18" uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa"/>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="8" isBold="false" isItalic="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{aidfId}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement mode="Transparent" x="369" y="2" width="60" height="18" forecolor="#000000" backcolor="#FFFFFF" uuid="117054b3-9ee6-488b-ae15-0de5362e939e"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||||
|
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||||
|
<paragraph lineSpacing="Single"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{folioFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement x="651" y="2" width="77" height="18" uuid="efb76809-2760-4e07-abd7-182d252318a0"/>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{fechorVenta}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement mode="Transparent" x="512" y="2" width="84" height="18" forecolor="#000000" backcolor="#FFFFFF" uuid="29ae3fa8-9db1-46c8-bcf7-cb9aa7bc6eb3"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||||
|
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||||
|
<paragraph lineSpacing="Single"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="242" y="2" width="32" height="18" uuid="6a9ef370-94ab-4546-9156-e1a7f5d2bad5"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[De]]></text>
|
||||||
|
</staticText>
|
||||||
|
<staticText>
|
||||||
|
<reportElement x="333" y="2" width="36" height="18" uuid="5485b8de-3a46-4f3b-aa1b-238f9285d7b4"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<text><![CDATA[Até]]></text>
|
||||||
|
</staticText>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="728" y="2" width="74" height="18" uuid="f1e52aa0-f61d-4c94-bb09-e51cde37f2cc"/>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{tipoEvento}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement mode="Transparent" x="429" y="2" width="83" height="18" forecolor="#000000" backcolor="#FFFFFF" uuid="2a361dcb-ad7c-45c9-8a1d-f02a7a00ff6c"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||||
|
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||||
|
<paragraph lineSpacing="Single"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{quantidade}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<summary>
|
||||||
|
<band height="77" splitType="Stretch"/>
|
||||||
|
</summary>
|
||||||
|
<noData>
|
||||||
|
<band height="50">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="1" y="24" width="575" height="26" uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83"/>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
|
@ -0,0 +1,111 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class RelatorioBilhetesVendidosEstoqueAgenciaBean {
|
||||||
|
|
||||||
|
private String nombpuntoventa;
|
||||||
|
private Date fechorVenta;
|
||||||
|
private Integer quantidade;
|
||||||
|
private String tipoEvento;
|
||||||
|
private String serie;
|
||||||
|
private Integer folioInicial;
|
||||||
|
private Integer folioFinal;
|
||||||
|
private Integer aidfId;
|
||||||
|
private String nomeEmpresa;
|
||||||
|
private String range;
|
||||||
|
private String chave;
|
||||||
|
private String folio;
|
||||||
|
|
||||||
|
|
||||||
|
public RelatorioBilhetesVendidosEstoqueAgenciaBean(RelatorioBilhetesVendidosEstoqueAgenciaBean bean) {
|
||||||
|
this.aidfId = bean.getAidfId();
|
||||||
|
this.nombpuntoventa = bean.getNombpuntoventa();
|
||||||
|
this.nomeEmpresa = bean.getNomeEmpresa();
|
||||||
|
this.tipoEvento = bean.getTipoEvento();
|
||||||
|
this.serie = bean.getSerie();
|
||||||
|
this.chave = bean.getChave();
|
||||||
|
this.range = bean.getRange();
|
||||||
|
this.fechorVenta = bean.getFechorVenta();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public RelatorioBilhetesVendidosEstoqueAgenciaBean() {
|
||||||
|
|
||||||
|
}
|
||||||
|
public String getNombpuntoventa() {
|
||||||
|
return nombpuntoventa;
|
||||||
|
}
|
||||||
|
public void setNombpuntoventa(String nombpuntoventa) {
|
||||||
|
this.nombpuntoventa = nombpuntoventa;
|
||||||
|
}
|
||||||
|
public Date getFechorVenta() {
|
||||||
|
return fechorVenta;
|
||||||
|
}
|
||||||
|
public void setFechorVenta(Date fechorVenta) {
|
||||||
|
this.fechorVenta = fechorVenta;
|
||||||
|
}
|
||||||
|
public Integer getQuantidade() {
|
||||||
|
return quantidade;
|
||||||
|
}
|
||||||
|
public void setQuantidade(Integer quantidade) {
|
||||||
|
this.quantidade = quantidade;
|
||||||
|
}
|
||||||
|
public String getTipoEvento() {
|
||||||
|
return tipoEvento;
|
||||||
|
}
|
||||||
|
public void setTipoEvento(String tipoEvento) {
|
||||||
|
this.tipoEvento = tipoEvento;
|
||||||
|
}
|
||||||
|
public String getSerie() {
|
||||||
|
return serie;
|
||||||
|
}
|
||||||
|
public void setSerie(String serie) {
|
||||||
|
this.serie = serie;
|
||||||
|
}
|
||||||
|
public Integer getFolioInicial() {
|
||||||
|
return folioInicial;
|
||||||
|
}
|
||||||
|
public void setFolioInicial(Integer folioInicial) {
|
||||||
|
this.folioInicial = folioInicial;
|
||||||
|
}
|
||||||
|
public Integer getFolioFinal() {
|
||||||
|
return folioFinal;
|
||||||
|
}
|
||||||
|
public void setFolioFinal(Integer folioFinal) {
|
||||||
|
this.folioFinal = folioFinal;
|
||||||
|
}
|
||||||
|
public Integer getAidfId() {
|
||||||
|
return aidfId;
|
||||||
|
}
|
||||||
|
public void setAidfId(Integer aidfId) {
|
||||||
|
this.aidfId = aidfId;
|
||||||
|
}
|
||||||
|
public String getNomeEmpresa() {
|
||||||
|
return nomeEmpresa;
|
||||||
|
}
|
||||||
|
public void setNomeEmpresa(String nomeEmpresa) {
|
||||||
|
this.nomeEmpresa = nomeEmpresa;
|
||||||
|
}
|
||||||
|
public String getRange() {
|
||||||
|
return range;
|
||||||
|
}
|
||||||
|
public void setRange(String range) {
|
||||||
|
this.range = range;
|
||||||
|
}
|
||||||
|
public String getChave() {
|
||||||
|
return chave;
|
||||||
|
}
|
||||||
|
public void setChave(String chave) {
|
||||||
|
this.chave = chave;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFolio() {
|
||||||
|
return folio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFolio(String folio) {
|
||||||
|
this.folio = folio;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,213 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Messagebox;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Bandbox;
|
||||||
|
import org.zkoss.zul.Checkbox;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
import org.zkoss.zul.Radiogroup;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
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.RelatorioBilhetesVendidosEstoqueAgencia;
|
||||||
|
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.utilerias.UsuarioLogado;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.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;
|
||||||
|
|
||||||
|
@Controller("relatorioBilhetesVendidosEstoqueAgenciaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioBilhetesVendidosEstoqueAgenciaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
private Datebox datInicial;
|
||||||
|
private Datebox datFinal;
|
||||||
|
private MyComboboxEstandar cmbEmpresa;
|
||||||
|
private Combobox cmbMoeda;
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private List<Estado> lsEstado;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||||
|
private MyTextbox txtNombrePuntoVenta;
|
||||||
|
private Bandbox bbPesquisaPuntoVenta;
|
||||||
|
private MyListbox puntoVentaList;
|
||||||
|
private MyListbox puntoVentaSelList;
|
||||||
|
private Paging pagingPuntoVenta;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||||
|
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Estado> getLsEstado() {
|
||||||
|
return lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEstado(List<Estado> lsEstado) {
|
||||||
|
this.lsEstado = lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisaAgencia() {
|
||||||
|
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
|
||||||
|
|
||||||
|
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
|
||||||
|
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
|
executarPesquisaAgencia();
|
||||||
|
}
|
||||||
|
|
||||||
|
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$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
|
executarRelatorio(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnExecutarRelatorioNovoLayout(Event ev) throws Exception {
|
||||||
|
executarRelatorio(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws Exception
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
|
private void executarRelatorio(boolean novoLayout) throws Exception {
|
||||||
|
Relatorio relatorio;
|
||||||
|
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||||
|
StringBuilder filtro = new StringBuilder();
|
||||||
|
|
||||||
|
filtro.append("Agência: ");
|
||||||
|
String puntoVentaIds = "";
|
||||||
|
String puntoVentas = "";
|
||||||
|
List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
||||||
|
if (lsPuntoVentaSelecionados.isEmpty()) {
|
||||||
|
puntoVentas = "Todas";
|
||||||
|
} else {
|
||||||
|
for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) {
|
||||||
|
PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i);
|
||||||
|
puntoVentas = puntoVentas + puntoVenta.getNombpuntoventa() + ",";
|
||||||
|
|
||||||
|
puntoVentaIds = puntoVentaIds + puntoVenta.getPuntoventaId() + ",";
|
||||||
|
}
|
||||||
|
|
||||||
|
// removendo ultima virgula
|
||||||
|
puntoVentaIds = puntoVentaIds.substring(0, puntoVentaIds.length() - 1);
|
||||||
|
puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1);
|
||||||
|
parametros.put("NUMPUNTOVENTA", puntoVentaIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
filtro.append(puntoVentas).append(";");
|
||||||
|
|
||||||
|
parametros.put("DATA_INICIAL", (java.util.Date) this.datInicial.getValue());
|
||||||
|
parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue());
|
||||||
|
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioBilhetesVendidosEstoqueAgenciaController.window.title"));
|
||||||
|
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||||
|
|
||||||
|
String status = "";
|
||||||
|
|
||||||
|
parametros.put("STATUS", status);
|
||||||
|
|
||||||
|
filtro.append(" Empresa: ");
|
||||||
|
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
if (itemEmpresa != null) {
|
||||||
|
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
|
||||||
|
parametros.put("EMPRESA", empresa.getNombempresa());
|
||||||
|
filtro.append(empresa.getNombempresa() + ";");
|
||||||
|
} else {
|
||||||
|
filtro.append(" Todas;");
|
||||||
|
}
|
||||||
|
|
||||||
|
relatorio = new RelatorioBilhetesVendidosEstoqueAgencia(parametros, dataSourceRead.getConnection());
|
||||||
|
parametros.put("FILTROS", filtro.toString());
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul", Labels.getLabel("relatorioBilhetesVendidosController.window.title"), args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuRelatorioBilhetesVendidosEstoqueAgencia extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuRelatorioBilhetesVendidosEstoqueAgencia() {
|
||||||
|
super("indexController.mniRelatorioBilhetesVendidosEstoqueAgencia.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOBILHETESVENDIDOSESTOQUEAGENCIA";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioBilhetesVendidosEstoqueAgencia.zul",
|
||||||
|
Labels.getLabel("relatorioBilhetesVendidosEstoqueAgenciaController.window.title"), getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -184,6 +184,7 @@ analitico.gerenciais.operacionais.linhasHorario=com.rjconsultores.ventaboletos.w
|
||||||
analitico.gerenciais.operacionais.demandas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioDemandas
|
analitico.gerenciais.operacionais.demandas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioDemandas
|
||||||
analitico.gerenciais.operacionais.embarqueLocalidade=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioEmbarqueLocalidade
|
analitico.gerenciais.operacionais.embarqueLocalidade=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioEmbarqueLocalidade
|
||||||
analitico.gerenciais.operacionais.remarcacaoTransferencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioRemarcacaoPassagensTransferencia
|
analitico.gerenciais.operacionais.remarcacaoTransferencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioRemarcacaoPassagensTransferencia
|
||||||
|
analitico.gerenciais.operacionais.bilhetesVendidosEstoqueAgencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBilhetesVendidosEstoqueAgencia
|
||||||
analitico.gerenciais.estatisticos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.estatisticos.SubMenuRelatorioEstatisticos
|
analitico.gerenciais.estatisticos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.estatisticos.SubMenuRelatorioEstatisticos
|
||||||
analitico.gerenciais.estatisticos.quadroDemonstrativoPassageiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioQuadroDemonstrativoMovimentoPassageiros
|
analitico.gerenciais.estatisticos.quadroDemonstrativoPassageiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioQuadroDemonstrativoMovimentoPassageiros
|
||||||
analitico.gerenciais.estatisticos.receitaLinhaOperacional=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioLinhaOperacional
|
analitico.gerenciais.estatisticos.receitaLinhaOperacional=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioLinhaOperacional
|
||||||
|
|
|
@ -593,6 +593,31 @@ relatorioBilhetesVendidosController.reimpresso.label = Reimpresso
|
||||||
relatorioBilhetesVendidosController.marcado.label = Marcado
|
relatorioBilhetesVendidosController.marcado.label = Marcado
|
||||||
relatorioBilhetesVendidosController.categoria.label = Categoria
|
relatorioBilhetesVendidosController.categoria.label = Categoria
|
||||||
|
|
||||||
|
# Relatório Bilhetes Vendidos Estoque Agencia
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.window.title = Bilhetes Vendidos Estoque Agência
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbDatInicial.value = Data Inicial
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbDatFinal.value = Data Final
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbDatFinal.value = Data Final
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbEmpresa.value = Empresa
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbPuntoVenta.value = Agência
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbEstado.value = Estado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbStatus.value = Status
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbNumero.value = Número
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.vendido.label = Vendido
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.cancelado.label = Cancelado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Ida/Volta
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.dataVenda.label = Data Venda
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.dataEmissao.label = Data Emissão
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.dataViagem.label = Data Viagem
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.transferido.label = Transferido
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.entregue.label = Entregue
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.reservado.label = Reservado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.extravidado.label = Extraviado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.reimpresso.label = Reimpresso
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.marcado.label = Marcado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.categoria.label = Categoria
|
||||||
|
|
||||||
|
|
||||||
# Relatório Recarga Rvhub
|
# Relatório Recarga Rvhub
|
||||||
indexController.mniRelatorioRecargaRvhub.label = Recarga Rvhub
|
indexController.mniRelatorioRecargaRvhub.label = Recarga Rvhub
|
||||||
relatorioRecargaRvhubController.window.title = Recarga Rvhub
|
relatorioRecargaRvhubController.window.title = Recarga Rvhub
|
||||||
|
|
|
@ -361,6 +361,7 @@ indexController.mniRelatorioPassagensAGER.label = Relatório Passagens AGER
|
||||||
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
||||||
indexController.mniRelatorioOperacionalFinanceiro.label = Relatório Operacional Financeiro
|
indexController.mniRelatorioOperacionalFinanceiro.label = Relatório Operacional Financeiro
|
||||||
indexController.mniRelatorioBilhetesVendidos.label = Bilhetes Vendidos
|
indexController.mniRelatorioBilhetesVendidos.label = Bilhetes Vendidos
|
||||||
|
indexController.mniRelatorioBilhetesVendidosEstoqueAgencia.label = Bilhetes Vendidos Estoque Agencia
|
||||||
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
||||||
indexController.mniRelatorioAproveitamentoFinanceiro.label = Aproveitamento Financeiro
|
indexController.mniRelatorioAproveitamentoFinanceiro.label = Aproveitamento Financeiro
|
||||||
indexController.mniRelatorioVendasBilheteiro.label = Vendas por Bilheteiro
|
indexController.mniRelatorioVendasBilheteiro.label = Vendas por Bilheteiro
|
||||||
|
@ -8432,6 +8433,30 @@ relatorioBilhetesVendidosController.reimpresso.label = Reimpresso
|
||||||
relatorioBilhetesVendidosController.marcado.label = Marcado
|
relatorioBilhetesVendidosController.marcado.label = Marcado
|
||||||
relatorioBilhetesVendidosController.categoria.label = Categoria
|
relatorioBilhetesVendidosController.categoria.label = Categoria
|
||||||
|
|
||||||
|
# Relatório Bilhetes Vendidos Estoque Agencia
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.window.title = Bilhetes Vendidos Estoque Agência
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbDatInicial.value = Data Inicial
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbDatFinal.value = Data Final
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbDatFinal.value = Data Final
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbEmpresa.value = Empresa
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbPuntoVenta.value = Agência
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbEstado.value = Estado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbStatus.value = Status
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.lbNumero.value = Número
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.vendido.label = Vendido
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.cancelado.label = Cancelado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Ida/Volta
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.dataVenda.label = Data Venda
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.dataEmissao.label = Data Emissão
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.dataViagem.label = Data Viagem
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.transferido.label = Transferido
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.entregue.label = Entregue
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.reservado.label = Reservado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.extravidado.label = Extraviado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.reimpresso.label = Reimpresso
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.marcado.label = Marcado
|
||||||
|
relatorioBilhetesVendidosEstoqueAgenciaController.categoria.label = Categoria
|
||||||
|
|
||||||
# Relatório Recarga Rvhub
|
# Relatório Recarga Rvhub
|
||||||
indexController.mniRelatorioRecargaRvhub.label = Recarga Rvhub
|
indexController.mniRelatorioRecargaRvhub.label = Recarga Rvhub
|
||||||
relatorioRecargaRvhubController.window.title = Recarga Rvhub
|
relatorioRecargaRvhubController.window.title = Recarga Rvhub
|
||||||
|
|
|
@ -0,0 +1,129 @@
|
||||||
|
<?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="winFiltroRelatorioBilhetesVendidosEstoqueAgencia"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winFiltroRelatorioBilhetesVendidosEstoqueAgencia"
|
||||||
|
apply="${relatorioBilhetesVendidosEstoqueAgenciaController}"
|
||||||
|
contentStyle="overflow:auto" height="300px" width="550px"
|
||||||
|
border="normal">
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioBilhetesVendidosEstoqueAgenciaController.lbDatInicial.value')}" />
|
||||||
|
<datebox id="datInicial" width="90%"
|
||||||
|
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioBilhetesVendidosEstoqueAgenciaController.lbDatFinal.value')}" />
|
||||||
|
<datebox id="datFinal" width="90%"
|
||||||
|
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row spans="1,1,2">
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioBilhetesVendidosEstoqueAgenciaController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa" buttonVisible="true"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioBilhetesVendidosEstoqueAgencia$composer.lsEmpresa}"
|
||||||
|
width="95%" />
|
||||||
|
</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>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="30%" />
|
||||||
|
</columns>
|
||||||
|
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue