Fixes bug #9450
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@73989 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d1d3fcb977
commit
99588703ff
|
@ -0,0 +1,196 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioImpressaoPosteriorBean;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
public class RelatorioImpressaoPosterior extends Relatorio {
|
||||||
|
|
||||||
|
private static Logger log = org.slf4j.LoggerFactory.getLogger(RelatorioImpressaoPosterior.class);
|
||||||
|
|
||||||
|
private List<RelatorioImpressaoPosteriorBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioImpressaoPosterior(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
|
||||||
|
this.setCustomDataSource(new DataSource(this) {
|
||||||
|
@Override
|
||||||
|
public void initDados() throws Exception {
|
||||||
|
|
||||||
|
Connection conexao = this.relatorio.getConexao();
|
||||||
|
|
||||||
|
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||||
|
|
||||||
|
String datVendaInicial = null;
|
||||||
|
String datVendaFinal = null;
|
||||||
|
String datViagemInicial = null;
|
||||||
|
String datViagemFinal = null;
|
||||||
|
|
||||||
|
if(parametros.get("datVendaInicial") != null ) {
|
||||||
|
datVendaInicial = parametros.get("datVendaInicial").toString();
|
||||||
|
datVendaInicial += parametros.get("horVendaInicial") != null ? " "+parametros.get("horVendaInicial").toString(): " 00:00:00";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(parametros.get("datVendaFinal") != null ) {
|
||||||
|
datVendaFinal = parametros.get("datVendaFinal").toString();
|
||||||
|
datVendaFinal += parametros.get("horVendaFinal") != null ? " "+parametros.get("horVendaFinal").toString(): " 23:59:59";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(parametros.get("datViagemInicial") != null ) {
|
||||||
|
datViagemInicial = parametros.get("datViagemInicial").toString();
|
||||||
|
datViagemInicial += parametros.get("horViagemInicial") != null ? " "+parametros.get("horViagemInicial").toString(): " 00:00:00";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(parametros.get("datViagemFinal") != null ) {
|
||||||
|
datViagemFinal = parametros.get("datViagemFinal").toString();
|
||||||
|
datViagemFinal += parametros.get("horViagemFinal") != null ? " "+parametros.get("horViagemFinal").toString(): " 23:59:59";
|
||||||
|
}
|
||||||
|
|
||||||
|
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : null;
|
||||||
|
String origemIds = parametros.get("NUMORIGEM") != null ? parametros.get("NUMORIGEM").toString() : null;
|
||||||
|
String destinoIds = parametros.get("NUMDESTINO") != null ? parametros.get("NUMDESTINO").toString() : null;
|
||||||
|
|
||||||
|
lsDadosRelatorio = new ArrayList<RelatorioImpressaoPosteriorBean>();
|
||||||
|
|
||||||
|
String sql = carregarQuery(datVendaInicial, datVendaFinal, datViagemInicial, datViagemFinal, origemIds, destinoIds, empresa);
|
||||||
|
|
||||||
|
log.debug(sql);
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
ResultSet rset1 = null;
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datVendaInicial) ) {
|
||||||
|
stmt.setTimestamp("datVendaInicial", new java.sql.Timestamp(sdf.parse(datVendaInicial).getTime()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datVendaFinal) ) {
|
||||||
|
stmt.setTimestamp("datVendaFinal", new java.sql.Timestamp(sdf.parse(datVendaFinal).getTime()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datViagemInicial) ) {
|
||||||
|
stmt.setTimestamp("datViagemInicial", new java.sql.Timestamp(sdf.parse(datViagemInicial).getTime()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datViagemFinal) ) {
|
||||||
|
stmt.setTimestamp("datViagemFinal", new java.sql.Timestamp(sdf.parse(datViagemFinal).getTime()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(empresa) ) {
|
||||||
|
stmt.setInt("empresaId", Integer.parseInt(empresa));
|
||||||
|
}
|
||||||
|
|
||||||
|
rset1= stmt.executeQuery();
|
||||||
|
|
||||||
|
while (rset1.next()) {
|
||||||
|
RelatorioImpressaoPosteriorBean ImpressaoPosterior = new RelatorioImpressaoPosteriorBean();
|
||||||
|
|
||||||
|
ImpressaoPosterior.setEmpresa(rset1.getString("empresa"));
|
||||||
|
ImpressaoPosterior.setDocumento(rset1.getString("documento"));
|
||||||
|
ImpressaoPosterior.setLocalizador(rset1.getString("localizador"));
|
||||||
|
ImpressaoPosterior.setNome(rset1.getString("nome"));
|
||||||
|
ImpressaoPosterior.setReserva(rset1.getString("reserva"));
|
||||||
|
ImpressaoPosterior.setOrigem(rset1.getString("origem"));
|
||||||
|
ImpressaoPosterior.setDestino(rset1.getString("destino"));
|
||||||
|
ImpressaoPosterior.setTelefone(rset1.getString("telefone"));
|
||||||
|
ImpressaoPosterior.setDataVenda((Date)rset1.getObject("dataVenda"));
|
||||||
|
ImpressaoPosterior.setDataEmbarque((Date)rset1.getObject("dataEmbarque"));
|
||||||
|
|
||||||
|
lsDadosRelatorio.add(ImpressaoPosterior);
|
||||||
|
}
|
||||||
|
|
||||||
|
rset1.close();
|
||||||
|
|
||||||
|
if (lsDadosRelatorio.size() > 0) {
|
||||||
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioImpressaoPosteriorBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
private String carregarQuery(String datVendaInicial, String datVendaFinal, String datViagemInicial, String datViagemFinal, String origem, String destino, String empresa) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" e.NOMBEMPRESA as empresa, ");
|
||||||
|
sql.append(" ORIGINAL.DESCNUMDOC as documento, ");
|
||||||
|
sql.append(" ORIGINAL.NUMOPERACION as localizador, ");
|
||||||
|
sql.append(" ORIGINAL.NOMBPASAJERO as nome, ");
|
||||||
|
sql.append(" ORIGINAL.NUMRESERVACION as reserva, ");
|
||||||
|
sql.append(" po.DESCPARADA as origem, ");
|
||||||
|
sql.append(" pd.DESCPARADA as destino, ");
|
||||||
|
sql.append(" ORIGINAL.DESCTELEFONO as telefone, ");
|
||||||
|
sql.append(" ORIGINAL.FECHORVENTA as dataVenda, ");
|
||||||
|
sql.append(" ORIGINAL.FECHORVIAJE as dataEmbarque ");
|
||||||
|
sql.append(" FROM BOLETO ORIGINAL ");
|
||||||
|
sql.append(" INNER JOIN EMPRESA e ON ORIGINAL.EMPRESACORRIDA_ID = e.EMPRESA_ID ");
|
||||||
|
sql.append(" INNER JOIN PARADA po ON (original.ORIGEN_ID = po.PARADA_ID) ");
|
||||||
|
sql.append(" INNER JOIN PARADA pd ON (original.DESTINO_ID = pd.PARADA_ID) ");
|
||||||
|
sql.append(" WHERE ORIGINAL.INDSTATUSBOLETO = 'V' ");
|
||||||
|
sql.append(" AND ORIGINAL.TIPOVENTA_ID IN (5,12,18,41,49) ");
|
||||||
|
sql.append(" AND (original.MOTIVOCANCELACION_ID is null or original.MOTIVOCANCELACION_ID = 16 ) ");
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datVendaInicial) ) {
|
||||||
|
sql.append(" AND original.FECHORVENTA >= :datVendaInicial ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datVendaFinal) ) {
|
||||||
|
sql.append(" AND original.FECHORVENTA <= :datVendaFinal ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datViagemInicial) ) {
|
||||||
|
sql.append(" AND original.FECHORVIAJE >= :datViagemInicial ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(datViagemFinal) ) {
|
||||||
|
sql.append(" AND original.FECHORVIAJE <= :datViagemFinal ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if( StringUtils.isNotEmpty(origem) ) {
|
||||||
|
sql.append(" AND original.ORIGEN_ID in (" + origem + ") ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotEmpty(destino)) {
|
||||||
|
sql.append(" AND original.DESTINO_ID in (" + destino + ") ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotEmpty(empresa)) {
|
||||||
|
sql.append(" AND original.EMPRESACORRIDA_ID = :empresaId ");
|
||||||
|
}
|
||||||
|
|
||||||
|
sql.append(" ORDER BY ");
|
||||||
|
sql.append(" e.NOMBEMPRESA, ");
|
||||||
|
sql.append(" po.DESCPARADA, ");
|
||||||
|
sql.append(" ORIGINAL.FECHORVENTA ");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||||
|
|
||||||
|
header.codigo = C\u00F3digo
|
||||||
|
header.data.hora = Fecha/Hora
|
||||||
|
header.dataEmbarque = Fecha Embarque
|
||||||
|
header.dataFin = Fecha Fin
|
||||||
|
header.dataIni = Fecha inicio
|
||||||
|
header.dataVenda = Fecha de la Venta
|
||||||
|
header.dataViagem = Fecha de la Viaje
|
||||||
|
header.descricao = Descripci\u00F3n
|
||||||
|
header.destino = Destino
|
||||||
|
header.documento = Documento
|
||||||
|
header.empresa = Empresa
|
||||||
|
header.horaFin = Hora Fin
|
||||||
|
header.horaIni = Hora Inicio
|
||||||
|
header.localizador = Localizador
|
||||||
|
header.nome = Nombre
|
||||||
|
header.origem = Origen
|
||||||
|
header.pagina = Pagina
|
||||||
|
header.reserva = Reserva
|
||||||
|
header.telefone = Tel\u00E9fono
|
||||||
|
header.venda = Venta
|
||||||
|
header.viagem = Viaje
|
||||||
|
|
||||||
|
msg.a = a
|
||||||
|
msg.noData = No se pudo obtener datos con los par\u00E1metros reportados.
|
|
@ -0,0 +1,27 @@
|
||||||
|
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||||
|
#geral
|
||||||
|
|
||||||
|
header.codigo = C\u00F3digo
|
||||||
|
header.data.hora = Data/Hora
|
||||||
|
header.dataEmbarque = Data Embarque
|
||||||
|
header.dataFin = Data Fim
|
||||||
|
header.dataIni = Data In\u00EDcio
|
||||||
|
header.dataVenda = Data da Venda
|
||||||
|
header.dataViagem = Data da Viagem
|
||||||
|
header.descricao = Descri\u00E7\u00E3o
|
||||||
|
header.destino = Destino
|
||||||
|
header.documento = Documento
|
||||||
|
header.empresa = Empresa
|
||||||
|
header.horaFin = Hora Fim
|
||||||
|
header.horaIni = Hora In\u00EDcio
|
||||||
|
header.localizador = Localizador
|
||||||
|
header.nome = Nome
|
||||||
|
header.origem = Origem
|
||||||
|
header.pagina = P\u00E1gina
|
||||||
|
header.reserva = Reserva
|
||||||
|
header.telefone = Telefone
|
||||||
|
header.venda = Venda
|
||||||
|
header.viagem = Viagem
|
||||||
|
|
||||||
|
msg.a = a
|
||||||
|
msg.noData = No se pudo obtener datos con los par\u00E1metros reportados.
|
Binary file not shown.
|
@ -0,0 +1,324 @@
|
||||||
|
<?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="RelatorioImpressaoPosterior" pageWidth="1040" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1000" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioImpressaoPosterior" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
|
<property name="ireport.zoom" value="1.1269722013523682"/>
|
||||||
|
<property name="ireport.x" value="181"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||||
|
<property name="collapseRowSpan" value="true"/>
|
||||||
|
<parameter name="datVendaInicial" class="java.lang.String">
|
||||||
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
|
</parameter>
|
||||||
|
<parameter name="datVendaFinal" class="java.lang.String"/>
|
||||||
|
<parameter name="horVendaInicial" class="java.lang.String">
|
||||||
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
|
</parameter>
|
||||||
|
<parameter name="horVendaFinal" class="java.lang.String"/>
|
||||||
|
<parameter name="TITULO" class="java.lang.String"/>
|
||||||
|
<parameter name="empresaNome" class="java.lang.String"/>
|
||||||
|
<parameter name="datViagemInicial" class="java.lang.String">
|
||||||
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
|
</parameter>
|
||||||
|
<parameter name="datViagemFinal" class="java.lang.String"/>
|
||||||
|
<parameter name="horViagemInicial" class="java.lang.String">
|
||||||
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
|
</parameter>
|
||||||
|
<parameter name="horViagemFinal" class="java.lang.String"/>
|
||||||
|
<parameter name="DESCORIGEM" class="java.lang.String"/>
|
||||||
|
<parameter name="DESCDESTINO" class="java.lang.String"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="empresa" class="java.lang.String"/>
|
||||||
|
<field name="documento" class="java.lang.String"/>
|
||||||
|
<field name="localizador" class="java.lang.String"/>
|
||||||
|
<field name="nome" class="java.lang.String"/>
|
||||||
|
<field name="reserva" class="java.lang.String"/>
|
||||||
|
<field name="origem" class="java.lang.String"/>
|
||||||
|
<field name="destino" class="java.lang.String"/>
|
||||||
|
<field name="telefone" class="java.lang.String"/>
|
||||||
|
<field name="dataVenda" class="java.util.Date"/>
|
||||||
|
<field name="dataEmbarque" class="java.util.Date"/>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="59" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="748" y="0" width="56" height="20" uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Report">
|
||||||
|
<reportElement x="976" y="0" width="22" height="20" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="910" y="0" width="42" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="231" height="20" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement x="804" y="0" width="98" height="20" uuid="6f671365-868e-41a6-81ee-a308d1d91e1d"/>
|
||||||
|
<textElement textAlignment="Left"/>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="952" y="0" width="24" height="20" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement x="0" y="19" width="48" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="08817d2b-5f71-4c7a-9880-51c1a791ad04"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{empresaNome}.equals("") ?"":$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="48" y="19" width="265" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="64d97814-2298-4fd7-bb29-dc868f21c951"/>
|
||||||
|
<textElement textAlignment="Left" markup="none">
|
||||||
|
<font size="10"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{empresaNome}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="655" y="19" width="82" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="1830cc44-0cd0-40c3-a352-9fd6d5ad0471"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[($P{datViagemInicial}.equals("")
|
||||||
|
&& $P{datViagemFinal}.equals("") )?"":$R{header.dataViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="737" y="19" width="53" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="1e35ee01-765e-4934-9ea5-6856a1575acd"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{datViagemInicial}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="832" y="19" width="53" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="3b02a561-0da9-4913-96d2-e9774d7f6464"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{datViagemFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="HH:mm" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="790" y="19" width="40" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="ba8a39ea-b2cb-4a17-ae10-11f3b9e34070"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{horViagemInicial}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="HH:mm" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="885" y="19" width="40" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="3b2d3d8e-7349-4b5a-8e2c-8b9f06fc0068"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{horViagemFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="HH:mm" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="593" y="19" width="40" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="6e49c88c-fbbe-4bf2-87ca-8ca98928443a"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{horVendaFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="HH:mm" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="498" y="19" width="40" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="c3848264-d704-4f24-93d9-cb79c3671ad6"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{horVendaInicial}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="445" y="19" width="53" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="12fc5149-e7b4-444f-9b2d-963fd15e985c"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{datVendaInicial}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="540" y="19" width="53" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="a8e3d548-876e-4516-a996-ca14e281abb9"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{datVendaFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="363" y="19" width="82" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="960691c6-1430-4295-b83b-45a01e3a053d"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[($P{datVendaInicial}.equals("")
|
||||||
|
&& $P{datVendaFinal}.equals("")) ?"":$R{header.dataVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="48" y="39" width="435" height="20" isRemoveLineWhenBlank="true" uuid="24f832ad-1ab4-4f55-80fd-fbd43e5de83a"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{DESCORIGEM}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="558" y="39" width="440" height="20" isRemoveLineWhenBlank="true" uuid="a739eead-b988-4a95-8826-e8c67c20a65f"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{DESCDESTINO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement x="0" y="39" width="48" height="20" isRemoveLineWhenBlank="true" uuid="f1f50222-31cf-45d2-9727-ebea094330de"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{DESCORIGEM}.equals("") ?null:$R{header.origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement x="510" y="39" width="48" height="20" isRemoveLineWhenBlank="true" uuid="8206c776-c0e7-487d-a0d8-e7ef85db65d8"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{DESCDESTINO}.equals("") ?null:$R{header.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="24" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="160" y="2" width="78" height="20" isPrintWhenDetailOverflows="true" uuid="bbaa5f53-76e0-491e-9145-e522122709e5"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.localizador}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="409" y="2" width="74" height="20" isPrintWhenDetailOverflows="true" uuid="e3f4df4e-24a9-45b3-8ac3-f8b66d46a15f"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.reserva}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="843" y="2" width="79" height="20" isPrintWhenDetailOverflows="true" uuid="2b25ca5a-2c25-4c7d-87d1-5bfd205177a9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.dataVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="922" y="2" width="79" height="20" isPrintWhenDetailOverflows="true" uuid="ab6b6770-67e8-4224-9304-8de30d3c1384"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.dataEmbarque}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="775" y="2" width="68" height="20" isPrintWhenDetailOverflows="true" uuid="79775d53-3de4-4c0c-8ec7-3be13738dc14"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.telefone}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="483" y="2" width="139" height="20" isPrintWhenDetailOverflows="true" uuid="746627ad-15b0-4435-93ce-6d370b75e594"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="622" y="2" width="153" height="20" isPrintWhenDetailOverflows="true" uuid="0844b500-feab-477d-ade1-2d943491de32"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="238" y="2" width="171" height="20" isPrintWhenDetailOverflows="true" uuid="662a695a-05d9-452e-986f-01b921bc1eb4"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.nome}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement mode="Transparent" x="0" y="23" width="1000" height="1" uuid="ae94e51c-f84c-405c-a9c3-d8fd0c48f03a"/>
|
||||||
|
</line>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="0" y="2" width="105" height="20" isPrintWhenDetailOverflows="true" uuid="2cbc8ddc-38e5-4914-8189-5761ddeb2ce9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="105" y="2" width="55" height="20" isPrintWhenDetailOverflows="true" uuid="7965e761-2e24-4f17-84eb-9431c98ce72c"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.documento}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement x="0" y="0" width="1000" height="1" uuid="ee05e1fa-6963-4ff9-b3c8-c6cd1bb54e94"/>
|
||||||
|
</line>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="17" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="622" y="0" width="153" height="17" isPrintWhenDetailOverflows="true" uuid="784343f8-f7aa-4997-82e7-312878bd9a27"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="105" y="0" width="55" height="17" isPrintWhenDetailOverflows="true" uuid="ad46494b-0240-46d1-a775-f91f0035d7f8"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{documento}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="160" y="0" width="78" height="17" isPrintWhenDetailOverflows="true" uuid="1ed844e5-7aa4-49ee-8024-765e5ae49f74"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{localizador}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="775" y="0" width="68" height="17" isPrintWhenDetailOverflows="true" uuid="92017408-1781-4e17-90b7-5ff86457cf6d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{telefone}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="922" y="0" width="79" height="17" isPrintWhenDetailOverflows="true" uuid="7f08e540-2cf9-4da3-b40a-fb7d5275751f"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{dataEmbarque}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="843" y="0" width="79" height="17" isPrintWhenDetailOverflows="true" uuid="16c5bcd4-ac1c-4c49-b065-5794fb9c2e32"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="105" height="17" isPrintWhenDetailOverflows="true" uuid="16f536ed-9001-4b34-85f4-a01198390b7d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="238" y="0" width="171" height="17" isPrintWhenDetailOverflows="true" uuid="55e91fa2-9525-4763-aea0-15d1632b9bad"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{nome}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="409" y="0" width="74" height="17" isPrintWhenDetailOverflows="true" uuid="0ed9578b-73d5-4f51-b21c-07d9419bbc08"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{reserva}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="483" y="0" width="139" height="17" isPrintWhenDetailOverflows="true" uuid="36f5d507-0340-4c7e-b44b-5057c1e8bee6"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<noData>
|
||||||
|
<band height="20">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="754" height="20" uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
|
@ -0,0 +1,97 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class RelatorioImpressaoPosteriorBean {
|
||||||
|
private String empresa;
|
||||||
|
private String documento;
|
||||||
|
private String localizador;
|
||||||
|
private String nome;
|
||||||
|
private String reserva;
|
||||||
|
private String origem;
|
||||||
|
private String destino;
|
||||||
|
private String telefone;
|
||||||
|
private Date dataVenda;
|
||||||
|
private Date dataEmbarque;
|
||||||
|
|
||||||
|
public String getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa(String empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDocumento() {
|
||||||
|
return documento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocumento(String documento) {
|
||||||
|
this.documento = documento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocalizador() {
|
||||||
|
return localizador;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocalizador(String localizador) {
|
||||||
|
this.localizador = localizador;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNome() {
|
||||||
|
return nome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNome(String nome) {
|
||||||
|
this.nome = nome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReserva() {
|
||||||
|
return reserva;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReserva(String reserva) {
|
||||||
|
this.reserva = reserva;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrigem() {
|
||||||
|
return origem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrigem(String origem) {
|
||||||
|
this.origem = origem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDestino() {
|
||||||
|
return destino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDestino(String destino) {
|
||||||
|
this.destino = destino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelefone() {
|
||||||
|
return telefone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelefone(String telefone) {
|
||||||
|
this.telefone = telefone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataVenda() {
|
||||||
|
return dataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataVenda(Date dataVenda) {
|
||||||
|
this.dataVenda = dataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataEmbarque() {
|
||||||
|
return dataEmbarque;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataEmbarque(Date dataEmbarque) {
|
||||||
|
this.dataEmbarque = dataEmbarque;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,295 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||||
|
|
||||||
|
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.apache.log4j.Logger;
|
||||||
|
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.Datebox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
import org.zkoss.zul.Timebox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioImpressaoPosterior;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
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.RenderParadaImpressaoPosterior;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaImpressaoPosteriorSelecionado;
|
||||||
|
|
||||||
|
@Controller("relatorioImpressaoPosteriorController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioImpressaoPosteriorController extends MyGenericForwardComposer {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static Logger log = Logger.getLogger(RelatorioImpressaoPosteriorController.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<Parada> plwParada;
|
||||||
|
|
||||||
|
private Datebox datVendaInicial;
|
||||||
|
private Datebox datVendaFinal;
|
||||||
|
private Timebox horVendaInicial;
|
||||||
|
private Timebox horVendaFinal;
|
||||||
|
private Datebox datViagemInicial;
|
||||||
|
private Datebox datViagemFinal;
|
||||||
|
private Timebox horViagemInicial;
|
||||||
|
private Timebox horViagemFinal;
|
||||||
|
private MyComboboxEstandar cmbEmpresa;
|
||||||
|
private Bandbox bbPesquisaOrigem;
|
||||||
|
private Bandbox bbPesquisaDestino;
|
||||||
|
private MyTextbox txtNombreOrigem;
|
||||||
|
private MyListbox origemList;
|
||||||
|
private MyListbox origemSelList;
|
||||||
|
private Paging pagingOrigem;
|
||||||
|
private MyTextbox txtNombreDestino;
|
||||||
|
private MyListbox destinoList;
|
||||||
|
private MyListbox destinoSelList;
|
||||||
|
private Paging pagingDestino;
|
||||||
|
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
|
private void executarRelatorio() throws Exception {
|
||||||
|
try {
|
||||||
|
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
Empresa empresa = cmbEmpresa.getSelectedItem() != null ? (Empresa)cmbEmpresa.getSelectedItem().getValue() : null;
|
||||||
|
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
|
SimpleDateFormat sdfTime = new SimpleDateFormat("HH:mm:ss");
|
||||||
|
|
||||||
|
if (this.datVendaInicial.getValue() != null){
|
||||||
|
parametros.put("datVendaInicial", sdf.format(this.datVendaInicial.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.datVendaFinal.getValue() != null){
|
||||||
|
parametros.put("datVendaFinal", sdf.format(this.datVendaFinal.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.datViagemInicial.getValue() != null){
|
||||||
|
parametros.put("datViagemInicial", sdf.format(this.datViagemInicial.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.datViagemFinal.getValue() != null){
|
||||||
|
parametros.put("datViagemFinal", sdf.format(this.datViagemFinal.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.horVendaInicial.getValue() != null){
|
||||||
|
parametros.put("horVendaInicial", sdfTime.format(this.horVendaInicial.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.horVendaFinal.getValue() != null){
|
||||||
|
parametros.put("horVendaFinal", sdfTime.format(this.horVendaFinal.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.horViagemInicial.getValue() != null){
|
||||||
|
parametros.put("horViagemInicial", sdfTime.format(this.horViagemInicial.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.horViagemFinal.getValue() != null){
|
||||||
|
parametros.put("horViagemFinal", sdfTime.format(this.horViagemFinal.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empresa != null){
|
||||||
|
parametros.put("empresa", empresa.getEmpresaId());
|
||||||
|
parametros.put("empresaNome", empresa.getNombempresa());
|
||||||
|
}
|
||||||
|
|
||||||
|
parametros.put("TITULO", Labels.getLabel("indexController.mniRelatorioImpressaoPosterior.label"));
|
||||||
|
|
||||||
|
String origemIds = "";
|
||||||
|
String origem = "";
|
||||||
|
List<Parada> lsOrigemSelecionadas = new ArrayList(Arrays.asList(origemSelList.getData()));
|
||||||
|
if (lsOrigemSelecionadas.isEmpty()) {
|
||||||
|
origem = "Todas";
|
||||||
|
} else {
|
||||||
|
for (int i = 0; i < lsOrigemSelecionadas.size(); i++) {
|
||||||
|
Parada parada = lsOrigemSelecionadas.get(i);
|
||||||
|
origem = origem + parada.getDescparada() + ",";
|
||||||
|
|
||||||
|
origemIds = origemIds + parada.getParadaId() + ",";
|
||||||
|
}
|
||||||
|
|
||||||
|
// removendo ultima virgula
|
||||||
|
origemIds = origemIds.substring(0, origemIds.length() - 1);
|
||||||
|
origem = origem.substring(0, origem.length() - 1);
|
||||||
|
parametros.put("NUMORIGEM", origemIds);
|
||||||
|
parametros.put("DESCORIGEM", origem);
|
||||||
|
}
|
||||||
|
|
||||||
|
String destinoIds = "";
|
||||||
|
String destino = "";
|
||||||
|
List<Parada> lsDestinoSelecionadas = new ArrayList(Arrays.asList(destinoSelList.getData()));
|
||||||
|
if (lsDestinoSelecionadas.isEmpty()) {
|
||||||
|
destino = "Todas";
|
||||||
|
} else {
|
||||||
|
for (int i = 0; i < lsDestinoSelecionadas.size(); i++) {
|
||||||
|
Parada parada = lsDestinoSelecionadas.get(i);
|
||||||
|
destino = destino + parada.getDescparada() + ",";
|
||||||
|
|
||||||
|
destinoIds = destinoIds + parada.getParadaId() + ",";
|
||||||
|
}
|
||||||
|
|
||||||
|
// removendo ultima virgula
|
||||||
|
destinoIds = destinoIds.substring(0, destinoIds.length() - 1);
|
||||||
|
destino = destino.substring(0, destino.length() - 1);
|
||||||
|
parametros.put("NUMDESTINO", destinoIds);
|
||||||
|
parametros.put("DESCDESTINO", destino);
|
||||||
|
}
|
||||||
|
|
||||||
|
Relatorio relatorio = new RelatorioImpressaoPosterior(parametros, dataSourceRead.getConnection());
|
||||||
|
|
||||||
|
Map<String, Object> args = new HashMap<String, Object>();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul",
|
||||||
|
Labels.getLabel("indexController.mniRelatorioImpressaoPosterior.label"), args, MODAL);
|
||||||
|
}catch (Exception e) {
|
||||||
|
log.error(e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
|
executarRelatorio();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresas = empresaService.obtenerTodos();
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
origemList.setItemRenderer(new RenderParadaImpressaoPosterior());
|
||||||
|
origemSelList.setItemRenderer(new RenderParadaImpressaoPosteriorSelecionado());
|
||||||
|
destinoList.setItemRenderer(new RenderParadaImpressaoPosterior());
|
||||||
|
destinoSelList.setItemRenderer(new RenderParadaImpressaoPosteriorSelecionado());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisaOrigem() {
|
||||||
|
HibernateSearchObject<Parada> paradaBusqueda =
|
||||||
|
new HibernateSearchObject<Parada>(Parada.class, pagingOrigem.getPageSize());
|
||||||
|
|
||||||
|
paradaBusqueda.addFilterILike("descparada", "%" + txtNombreOrigem.getValue() + "%");
|
||||||
|
paradaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
paradaBusqueda.addSortAsc("descparada");
|
||||||
|
|
||||||
|
paradaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
plwParada.init(paradaBusqueda, origemList, pagingOrigem);
|
||||||
|
|
||||||
|
if (origemList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("relatorioImpressaoPosteriorController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisaOrigem(Event ev) {
|
||||||
|
executarPesquisaOrigem();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$origemSelList(Event ev) {
|
||||||
|
Parada parada = (Parada) origemSelList.getSelected();
|
||||||
|
origemSelList.removeItem(parada);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$origemList(Event ev) {
|
||||||
|
Parada parada = (Parada) origemList.getSelected();
|
||||||
|
origemSelList.addItemNovo(parada);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnLimparOrigem(Event ev) {
|
||||||
|
origemList.setData(new ArrayList<Parada>());
|
||||||
|
|
||||||
|
bbPesquisaOrigem.setText("");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisaDestino() {
|
||||||
|
HibernateSearchObject<Parada> paradaBusqueda =
|
||||||
|
new HibernateSearchObject<Parada>(Parada.class, pagingDestino.getPageSize());
|
||||||
|
|
||||||
|
paradaBusqueda.addFilterILike("descparada", "%" + txtNombreDestino.getValue() + "%");
|
||||||
|
paradaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
paradaBusqueda.addSortAsc("descparada");
|
||||||
|
|
||||||
|
paradaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
plwParada.init(paradaBusqueda, destinoList, pagingDestino);
|
||||||
|
|
||||||
|
if (destinoList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("relatorioImpressaoPosteriorController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisaDestino(Event ev) {
|
||||||
|
executarPesquisaDestino();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$destinoSelList(Event ev) {
|
||||||
|
Parada parada = (Parada) destinoSelList.getSelected();
|
||||||
|
destinoSelList.removeItem(parada);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$destinoList(Event ev) {
|
||||||
|
Parada parada = (Parada) destinoList.getSelected();
|
||||||
|
destinoSelList.addItemNovo(parada);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnLimparDestino(Event ev) {
|
||||||
|
destinoList.setData(new ArrayList<Parada>());
|
||||||
|
|
||||||
|
bbPesquisaDestino.setText("");
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyComboboxEstandar getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||||
|
this.lsEmpresas = lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -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 ItemMenuRelatorioImpressaoPosterior extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuRelatorioImpressaoPosterior() {
|
||||||
|
super("indexController.mniRelatorioImpressaoPosterior.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOIMPRESSAOPOSTERIOR";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioImpressaoPosterior.zul",
|
||||||
|
Labels.getLabel("relatorioImpressaoPosteriorController.window.title"), getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -137,6 +137,7 @@ analitico.gerenciais.embarcadaServico=com.rjconsultores.ventaboletos.web.utileri
|
||||||
analitico.gerenciais.remDev=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioRemarcacaoDevolucao
|
analitico.gerenciais.remDev=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioRemarcacaoDevolucao
|
||||||
analitico.gerenciais.tabPreco=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioTabelaPreco
|
analitico.gerenciais.tabPreco=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioTabelaPreco
|
||||||
analitico.gerenciais.trip=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemRelatorioTripulacao
|
analitico.gerenciais.trip=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemRelatorioTripulacao
|
||||||
|
analitico.gerenciais.relatorioImpressaoPosterior=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioImpressaoPosterior
|
||||||
analitico.gerenciais.operacionais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.operacionais.SubMenuRelatorioOperacionais
|
analitico.gerenciais.operacionais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.operacionais.SubMenuRelatorioOperacionais
|
||||||
analitico.gerenciais.operacionais.aproveitamento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamento
|
analitico.gerenciais.operacionais.aproveitamento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamento
|
||||||
analitico.gerenciais.operacionais.resumoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoLinhas
|
analitico.gerenciais.operacionais.resumoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoLinhas
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fabio
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class RenderParadaImpressaoPosterior implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
Parada parada = (Parada) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(parada.getCveparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(parada.getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", parada);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,54 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fabio
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class RenderParadaImpressaoPosteriorSelecionado implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
Parada parada = (Parada) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(parada.getCveparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(parada.getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
Button btn = new Button();
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
btn.setWidth("16");
|
||||||
|
btn.setHeight("16");
|
||||||
|
btn.setImage("/gui/img/remove.png");
|
||||||
|
|
||||||
|
btn.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
MyListbox listBox = (MyListbox) event.getTarget().getParent().getParent().getParent();
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
listBox.removeItem((Parada) listItem.getAttribute("data"));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btn);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", parada);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -289,6 +289,7 @@ indexController.mniRelatorioObservacaoConferenciaMovimento.label = Observación
|
||||||
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar errores BGM
|
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar errores BGM
|
||||||
indexController.mniRelatorioVendasPTAController.label = Ventas PTA
|
indexController.mniRelatorioVendasPTAController.label = Ventas PTA
|
||||||
indexController.mniRelatorioVendasParcelamento.label=Ventas con Parcelamiento
|
indexController.mniRelatorioVendasParcelamento.label=Ventas con Parcelamiento
|
||||||
|
indexController.mniRelatorioImpressaoPosterior.label=Impresión posterior
|
||||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
|
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
|
||||||
indexController.mniRelatorioDocumentosFiscais.label = Report Documentos Fiscais
|
indexController.mniRelatorioDocumentosFiscais.label = Report Documentos Fiscais
|
||||||
|
|
||||||
|
@ -7139,3 +7140,17 @@ relatorioVendasParcelamentoController.lbEmpresa.value = Empresa
|
||||||
relatorioVendasParcelamentoController.lbOnibus.value = Autobus
|
relatorioVendasParcelamentoController.lbOnibus.value = Autobus
|
||||||
relatorioVendasParcelamentoController.lbPuntoVenta.value = Agência
|
relatorioVendasParcelamentoController.lbPuntoVenta.value = Agência
|
||||||
relatorioVendasParcelamentoController.lbResumo.value = Resumo
|
relatorioVendasParcelamentoController.lbResumo.value = Resumo
|
||||||
|
|
||||||
|
# Relatório Impressão Posterior
|
||||||
|
relatorioImpressaoPosteriorController.window.title = Impresión Posterior
|
||||||
|
relatorioImpressaoPosteriorController.lbDataFin.value = Fecha Final:
|
||||||
|
relatorioImpressaoPosteriorController.lbDataIni.value = Fecha Início:
|
||||||
|
relatorioImpressaoPosteriorController.lbHoraFin.value = Hora Final:
|
||||||
|
relatorioImpressaoPosteriorController.lbHoraIni.value = Hora Início:
|
||||||
|
relatorioImpressaoPosteriorController.lbOrigem.value = Origen:
|
||||||
|
relatorioImpressaoPosteriorController.lbDestino.value = Destino:
|
||||||
|
relatorioImpressaoPosteriorController.lbTodas.value = Todas
|
||||||
|
relatorioImpressaoPosteriorController.lbTodas.value = Seleccione
|
||||||
|
relatorioImpressaoPosteriorController.lbEmpresa.value = Empresa:
|
||||||
|
relatorioImpressaoPosteriorController.lbVenda.value = Venta
|
||||||
|
relatorioImpressaoPosteriorController.lbViagem.value = Viaje
|
|
@ -306,6 +306,7 @@ indexController.mniRelatorioObservacaoConferenciaMovimento.label = Movimentos co
|
||||||
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar Erros BGM
|
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar Erros BGM
|
||||||
indexController.mniRelatorioVendasPTA.label = Vendas PTA
|
indexController.mniRelatorioVendasPTA.label = Vendas PTA
|
||||||
indexController.mniRelatorioVendasParcelamento.label=Vendas com Parcelamento
|
indexController.mniRelatorioVendasParcelamento.label=Vendas com Parcelamento
|
||||||
|
indexController.mniRelatorioImpressaoPosterior.label=Impressão Posterior
|
||||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
|
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
|
||||||
indexController.mniRelatorioDocumentosFiscais.label = Relatório Documentos Fiscais
|
indexController.mniRelatorioDocumentosFiscais.label = Relatório Documentos Fiscais
|
||||||
|
|
||||||
|
@ -7634,3 +7635,19 @@ relatorioVendasParcelamentoController.lbEmpresa.value = Empresa
|
||||||
relatorioVendasParcelamentoController.lbOnibus.value = Ônibus
|
relatorioVendasParcelamentoController.lbOnibus.value = Ônibus
|
||||||
relatorioVendasParcelamentoController.lbPuntoVenta.value = Agência
|
relatorioVendasParcelamentoController.lbPuntoVenta.value = Agência
|
||||||
relatorioVendasParcelamentoController.lbResumo.value = Resumo
|
relatorioVendasParcelamentoController.lbResumo.value = Resumo
|
||||||
|
|
||||||
|
# Relatório Impressão Posterior
|
||||||
|
relatorioImpressaoPosteriorController.window.title = Impressão Posterior
|
||||||
|
relatorioImpressaoPosteriorController.lbDataFin.value = Data Fim:
|
||||||
|
relatorioImpressaoPosteriorController.lbDataIni.value = Data Início:
|
||||||
|
relatorioImpressaoPosteriorController.lbHoraFin.value = Hora Fim:
|
||||||
|
relatorioImpressaoPosteriorController.lbHoraIni.value = Hora Início:
|
||||||
|
relatorioImpressaoPosteriorController.lbOrigem.value = Origem:
|
||||||
|
relatorioImpressaoPosteriorController.lbDestino.value = Destino:
|
||||||
|
relatorioImpressaoPosteriorController.lbEmpresa.value = Empresa:
|
||||||
|
relatorioImpressaoPosteriorController.lbVenda.value = Venda
|
||||||
|
relatorioImpressaoPosteriorController.lbViagem.value = Viagem
|
||||||
|
relatorioImpressaoPosteriorController.lbCodigo.value = Código
|
||||||
|
relatorioImpressaoPosteriorController.lbDescricao.value = Descrição
|
||||||
|
relatorioImpressaoPosteriorController.btnPesquisar.label =Pesquisar
|
||||||
|
relatorioImpressaoPosteriorController.btnLimpar.label =Limpar
|
|
@ -0,0 +1,162 @@
|
||||||
|
<?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="winRelatorioImpressaoPosterior"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winRelatorioImpressaoPosterior"
|
||||||
|
apply="${relatorioImpressaoPosteriorController}"
|
||||||
|
contentStyle="overflow:auto" height="577px" width="560px"
|
||||||
|
sizable="true"
|
||||||
|
border="none">
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row spans="4" align="center" >
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbVenda.value')}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbDataIni.value')}" />
|
||||||
|
<datebox id="datVendaInicial" width="90%" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraIni.value')}" />
|
||||||
|
<timebox id="horVendaInicial" width="60%" mold="rounded"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbDataFin.value')}" />
|
||||||
|
<datebox id="datVendaFinal" width="90%" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraFin.value')}" />
|
||||||
|
<timebox id="horVendaFinal" width="60%" mold="rounded" />
|
||||||
|
</row>
|
||||||
|
<row spans="4" align="center">
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbViagem.value')}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbDataIni.value')}" />
|
||||||
|
<datebox id="datViagemInicial" width="90%" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraIni.value')}" />
|
||||||
|
<timebox id="horViagemInicial" width="60%" mold="rounded"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbDataFin.value')}" />
|
||||||
|
<datebox id="datViagemFinal" width="90%" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraFin.value')}" />
|
||||||
|
<timebox id="horViagemFinal" width="60%" mold="rounded" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row spans="1,3">
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa" cols="3"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true"
|
||||||
|
width="90%" model="@{winRelatorioImpressaoPosterior$composer.lsEmpresas}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row spans="1,3">
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbOrigem.value')}" />
|
||||||
|
<bandbox id="bbPesquisaOrigem" width="100%"
|
||||||
|
mold="rounded" readonly="true">
|
||||||
|
<bandpopup>
|
||||||
|
<vbox>
|
||||||
|
<hbox>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioImpressaoPosteriorController.lbOrigem.value')}" />
|
||||||
|
<textbox id="txtNombreOrigem"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
width="300px" mold="rounded" />
|
||||||
|
<button id="btnPesquisaOrigem"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
|
||||||
|
<button id="btnLimparOrigem"
|
||||||
|
image="/gui/img/eraser.png"
|
||||||
|
label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
|
||||||
|
</hbox>
|
||||||
|
<paging id="pagingOrigem"
|
||||||
|
pageSize="10" />
|
||||||
|
<listbox id="origemList"
|
||||||
|
mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="100%" width="700px">
|
||||||
|
<listhead>
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
|
||||||
|
<listheader width="70%"
|
||||||
|
label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</vbox>
|
||||||
|
</bandpopup>
|
||||||
|
</bandbox>
|
||||||
|
</row>
|
||||||
|
<row spans="4">
|
||||||
|
<listbox id="origemSelList" mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="100px" width="100%">
|
||||||
|
<listhead>
|
||||||
|
<listheader label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
|
||||||
|
<listheader width="70%" label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
|
||||||
|
<listheader width="5%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
<paging id="pagingSelOrigem" pageSize="10" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row spans="1,3">
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbDestino.value')}" />
|
||||||
|
<bandbox id="bbPesquisaDestino" width="100%"
|
||||||
|
mold="rounded" readonly="true">
|
||||||
|
<bandpopup>
|
||||||
|
<vbox>
|
||||||
|
<hbox>
|
||||||
|
<label value="${c:l('relatorioImpressaoPosteriorController.lbDestino.value')}" />
|
||||||
|
<textbox id="txtNombreDestino"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
width="300px" mold="rounded" />
|
||||||
|
<button id="btnPesquisaDestino"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
|
||||||
|
<button id="btnLimparDestino"
|
||||||
|
image="/gui/img/eraser.png"
|
||||||
|
label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
|
||||||
|
</hbox>
|
||||||
|
<paging id="pagingDestino"
|
||||||
|
pageSize="10" />
|
||||||
|
<listbox id="destinoList"
|
||||||
|
mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="100%" width="700px">
|
||||||
|
<listhead>
|
||||||
|
<listheader label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
|
||||||
|
<listheader width="70%" label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</vbox>
|
||||||
|
</bandpopup>
|
||||||
|
</bandbox>
|
||||||
|
</row>
|
||||||
|
<row spans="4">
|
||||||
|
<listbox id="destinoSelList" mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="100px" width="100%">
|
||||||
|
<listhead>
|
||||||
|
<listheader label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
|
||||||
|
<listheader width="70%" label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
|
||||||
|
<listheader width="5%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
<paging id="pagingSelDestino" pageSize="10" />
|
||||||
|
</row>
|
||||||
|
</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