fabio 2017-09-20 21:04:19 +00:00
parent dabbda005b
commit 87cce0aa5c
9 changed files with 182 additions and 98 deletions

View File

@ -4,8 +4,8 @@ import java.sql.Connection;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -26,12 +26,12 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio {
private static Logger log = Logger.getLogger(RelatorioVendasPacotesDetalhado.class); private static Logger log = Logger.getLogger(RelatorioVendasPacotesDetalhado.class);
private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
private List<RelatorioVendasPacotesDetalhadoBean> lsDadosRelatorio; private List<RelatorioVendasPacotesDetalhadoBean> lsDadosRelatorio;
private Timestamp fecInicio; private Timestamp fecPacoteInicio;
private Timestamp fecFinal; private Timestamp fecPacoteFinal;
private Timestamp fecVendaInicio;
private Timestamp fecVendaFinal;
private Integer empresaId; private Integer empresaId;
private Integer pacoteId; private Integer pacoteId;
private Integer origenId; private Integer origenId;
@ -48,8 +48,23 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio {
@Override @Override
public void initDados() throws Exception { public void initDados() throws Exception {
Map<String, Object> parametros = this.relatorio.getParametros(); Map<String, Object> parametros = this.relatorio.getParametros();
fecInicio = new java.sql.Timestamp(DateUtil.inicioFecha(sdf.parse(parametros.get("fecInicio").toString())).getTime());
fecFinal = new java.sql.Timestamp(DateUtil.fimFecha(sdf.parse(parametros.get("fecFinal").toString())).getTime()); if(parametros.get("fecPacoteInicio") != null ) {
fecPacoteInicio = new Timestamp(DateUtil.inicioFecha( (Date)parametros.get("fecPacoteInicio") ).getTime());
}
if(parametros.get("fecPacoteFinal") != null ) {
fecPacoteFinal = new Timestamp(DateUtil.fimFecha( (Date)parametros.get("fecPacoteFinal") ).getTime());
}
if(parametros.get("fecVendaInicio") != null ) {
fecVendaInicio = new Timestamp(DateUtil.inicioFecha( (Date)parametros.get("fecVendaInicio") ).getTime());
}
if(parametros.get("fecVendaFinal") != null ) {
fecVendaFinal = new Timestamp(DateUtil.fimFecha( (Date)parametros.get("fecVendaFinal") ).getTime());
}
empresaId = parametros.get("empresaId") != null && !parametros.get("empresaId").equals("null") ? Integer.valueOf(parametros.get("empresaId").toString()) : null; empresaId = parametros.get("empresaId") != null && !parametros.get("empresaId").equals("null") ? Integer.valueOf(parametros.get("empresaId").toString()) : null;
pacoteId = parametros.get("pacoteId") != null && !parametros.get("pacoteId").equals("null") ? Integer.valueOf(parametros.get("pacoteId").toString()) : null; pacoteId = parametros.get("pacoteId") != null && !parametros.get("pacoteId").equals("null") ? Integer.valueOf(parametros.get("pacoteId").toString()) : null;
origenId = parametros.get("origenId") != null && !parametros.get("origenId").equals("null") ? Integer.valueOf(parametros.get("origenId").toString()) : null; origenId = parametros.get("origenId") != null && !parametros.get("origenId").equals("null") ? Integer.valueOf(parametros.get("origenId").toString()) : null;
@ -79,33 +94,50 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio {
stmt = new NamedParameterStatement(conexao, sql); stmt = new NamedParameterStatement(conexao, sql);
if(fecInicio != null) { if(fecPacoteInicio != null) {
stmt.setTimestamp("fecInicio", fecInicio); stmt.setTimestamp("fecPacoteInicio", fecPacoteInicio);
} }
if(fecFinal != null) {
stmt.setTimestamp("fecFinal", fecFinal); if(fecPacoteFinal != null) {
stmt.setTimestamp("fecPacoteFinal", fecPacoteFinal);
} }
if(fecVendaInicio != null) {
stmt.setTimestamp("fecVendaInicio", fecVendaInicio);
}
if(fecVendaFinal != null) {
stmt.setTimestamp("fecVendaFinal", fecVendaFinal);
}
if (empresaId != null && empresaId > 0){ if (empresaId != null && empresaId > 0){
stmt.setInt("empresaId", empresaId); stmt.setInt("empresaId", empresaId);
} }
if (pacoteId != null && pacoteId > 0){ if (pacoteId != null && pacoteId > 0){
stmt.setInt("pacoteId", pacoteId); stmt.setInt("pacoteId", pacoteId);
} }
if(origenId != null) { if(origenId != null) {
stmt.setInt("origenId", origenId); stmt.setInt("origenId", origenId);
} }
if(destinoId != null) { if(destinoId != null) {
stmt.setInt("destinoId", destinoId); stmt.setInt("destinoId", destinoId);
} }
if(usuarioId != null) { if(usuarioId != null) {
stmt.setInt("usuarioId", usuarioId); stmt.setInt("usuarioId", usuarioId);
} }
if(tipoTarifaPacoteId != null && tipoTarifaPacoteId > 0) { if(tipoTarifaPacoteId != null && tipoTarifaPacoteId > 0) {
stmt.setInt("tipoTarifaPacoteId", tipoTarifaPacoteId); stmt.setInt("tipoTarifaPacoteId", tipoTarifaPacoteId);
} }
if(situacaoVendaPacote != null) { if(situacaoVendaPacote != null) {
stmt.setInt("situacaoVendaPacote", situacaoVendaPacote.getShortValue()); stmt.setInt("situacaoVendaPacote", situacaoVendaPacote.getShortValue());
} }
if(StringUtils.isNotBlank(voucherNotaCredito)) { if(StringUtils.isNotBlank(voucherNotaCredito)) {
stmt.setLong("voucherNotaCredito", Long.valueOf(voucherNotaCredito)); stmt.setLong("voucherNotaCredito", Long.valueOf(voucherNotaCredito));
} }
@ -194,7 +226,6 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio {
.append("LEFT JOIN TIPO_TARIFA_PACOTE TTP ON TTP.TIPOTARIFAPACOTE_ID = PT.TIPOTARIFAPACOTE_ID ") .append("LEFT JOIN TIPO_TARIFA_PACOTE TTP ON TTP.TIPOTARIFAPACOTE_ID = PT.TIPOTARIFAPACOTE_ID ")
.append("LEFT JOIN NOTA_CREDITO_VENDA_PACOTE NC ON NC.VENDAPACOTECANCELAMENTO_ID = VP.VENDAPACOTE_ID ") .append("LEFT JOIN NOTA_CREDITO_VENDA_PACOTE NC ON NC.VENDAPACOTECANCELAMENTO_ID = VP.VENDAPACOTE_ID ")
.append("LEFT JOIN VENDA_PACOTE VPNC ON NC.VENDAPACOTEPAGAMENTO_ID = VPNC.VENDAPACOTE_ID ") .append("LEFT JOIN VENDA_PACOTE VPNC ON NC.VENDAPACOTEPAGAMENTO_ID = VPNC.VENDAPACOTE_ID ")
.append("LEFT JOIN VENDA_PACOTE VPNC ON NC.VENDAPACOTEPAGAMENTO_ID = VPNC.VENDAPACOTE_ID ")
.append("WHERE P.ACTIVO = 1 "); .append("WHERE P.ACTIVO = 1 ");
if(empresaId != null && empresaId > 0) { if(empresaId != null && empresaId > 0) {
@ -205,12 +236,20 @@ public class RelatorioVendasPacotesDetalhado extends Relatorio {
sQuery.append("AND P.PACOTE_ID = :pacoteId "); sQuery.append("AND P.PACOTE_ID = :pacoteId ");
} }
if(fecInicio != null) { if(fecPacoteInicio != null) {
sQuery.append("AND VP.DATAPACOTE >= :fecInicio "); sQuery.append("AND VP.DATAPACOTE >= :fecPacoteInicio ");
} }
if(fecFinal != null) { if(fecPacoteFinal != null) {
sQuery.append("AND VP.DATAPACOTE <= :fecFinal "); sQuery.append("AND VP.DATAPACOTE <= :fecPacoteFinal ");
}
if(fecVendaInicio != null) {
sQuery.append("AND VP.DATAVENDA >= :fecVendaInicio ");
}
if(fecVendaFinal != null) {
sQuery.append("AND VP.DATAVENDA <= :fecVendaFinal ");
} }
if(origenId != null) { if(origenId != null) {

View File

@ -1,24 +1,27 @@
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
#geral #geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.nome=Relatório Vendas de Pacotes - Detalhado
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora = Data/Hora: cabecalho.dataHora = Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de = de cabecalho.de = de
cabecalho.destino = Destino:
cabecalho.filtros = Filtros: cabecalho.filtros = Filtros:
cabecalho.situacaoPacote=Situação: cabecalho.impressorPor = Impressor por:
cabecalho.voucherNotaCredito=Voucher Nota Crédito: #Labels cabeçalho
cabecalho.nome = Relat\u00F3rio Vendas de Pacotes - Detalhado
cabecalho.origem = Origem:
cabecalho.pagina = P\u00E1gina
cabecalho.periodoA = \u00E0
cabecalho.periodoPacote = Per\u00EDodo Pacote:
cabecalho.periodoVenda = Per\u00EDodo Venda:
cabecalho.relatorio = Relat\u00F3rio:
cabecalho.situacaoPacote = Situa\u00E7\u00E3o:
cabecalho.tipoTarifaPacote = Tipo Tarifa:
cabecalho.usuario = Usu\u00E1rio:
cabecalho.voucherNotaCredito = Voucher Nota Cr\u00E9dito:
label.empresa = Empresa: label.empresa = Empresa:
label.pacote = Pacote: label.pacote = Pacote:
cabecalho.origem=Origem:
cabecalho.destino=Destino:
cabecalho.usuario=Usuário:
cabecalho.tipoTarifaPacote=Tipo Tarifa:
label.empresa=Empresa:
label.trecho=Trecho:
label.resumo = Resumo label.resumo = Resumo
label.trecho = Trecho:
msg.noData = N\u00E3o foi possivel obter dados com os par\u00E2metros informados.

View File

@ -1,24 +1,27 @@
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
#geral #geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.nome=Relatório Vendas de Pacotes - Detalhado
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora = Data/Hora: cabecalho.dataHora = Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de = de cabecalho.de = de
cabecalho.destino = Destino:
cabecalho.filtros = Filtros: cabecalho.filtros = Filtros:
cabecalho.situacaoPacote=Situação: cabecalho.impressorPor = Impressor por:
cabecalho.voucherNotaCredito=Voucher Nota Crédito: #Labels cabeçalho
cabecalho.nome = Relat\u00F3rio Vendas de Pacotes - Detalhado
cabecalho.origem = Origem:
cabecalho.pagina = P\u00E1gina
cabecalho.periodoA = \u00E0
cabecalho.periodoPacote = Per\u00EDodo Pacote:
cabecalho.periodoVenda = Per\u00EDodo Venda:
cabecalho.relatorio = Relat\u00F3rio:
cabecalho.situacaoPacote = Situa\u00E7\u00E3o:
cabecalho.tipoTarifaPacote = Tipo Tarifa:
cabecalho.usuario = Usu\u00E1rio:
cabecalho.voucherNotaCredito = Voucher Nota Cr\u00E9dito:
label.empresa = Empresa: label.empresa = Empresa:
label.pacote = Pacote: label.pacote = Pacote:
cabecalho.origem=Origem:
cabecalho.destino=Destino:
cabecalho.usuario=Usuário:
cabecalho.tipoTarifaPacote=Tipo Tarifa:
label.empresa=Empresa:
label.trecho=Trecho:
label.resumo = Resumo label.resumo = Resumo
label.trecho = Trecho:
msg.noData = N\u00E3o foi possivel obter dados com os par\u00E2metros informados.

View File

@ -4,10 +4,12 @@
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<parameter name="empresa" class="java.lang.String"/> <parameter name="empresa" class="java.lang.String"/>
<parameter name="fecInicio" class="java.lang.String"/> <parameter name="fecPacoteInicio" class="java.util.Date"/>
<parameter name="fecFinal" class="java.lang.String"/> <parameter name="fecPacoteFinal" class="java.util.Date" isForPrompting="false"/>
<parameter name="noDataRelatorio" class="java.lang.String"/> <parameter name="noDataRelatorio" class="java.lang.String"/>
<parameter name="subreporte" class="net.sf.jasperreports.engine.JasperReport"/> <parameter name="subreporte" class="net.sf.jasperreports.engine.JasperReport">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="SUBREPORT_RESOURCE_BUNDLE" class="java.util.ResourceBundle"/> <parameter name="SUBREPORT_RESOURCE_BUNDLE" class="java.util.ResourceBundle"/>
<parameter name="nompacote" class="java.lang.String"/> <parameter name="nompacote" class="java.lang.String"/>
<parameter name="trecho" class="java.lang.String"/> <parameter name="trecho" class="java.lang.String"/>
@ -17,6 +19,8 @@
<parameter name="tipoTarifaPacote" class="java.lang.String"/> <parameter name="tipoTarifaPacote" class="java.lang.String"/>
<parameter name="situacaoPacote" class="java.lang.String"/> <parameter name="situacaoPacote" class="java.lang.String"/>
<parameter name="voucherNotaCredito" class="java.lang.String"/> <parameter name="voucherNotaCredito" class="java.lang.String"/>
<parameter name="fecVendaInicio" class="java.util.Date"/>
<parameter name="fecVendaFinal" class="java.util.Date" isForPrompting="false"/>
<queryString> <queryString>
<![CDATA[]]> <![CDATA[]]>
</queryString> </queryString>
@ -26,7 +30,7 @@
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<title> <title>
<band height="181" splitType="Stretch"> <band height="200" splitType="Stretch">
<textField> <textField>
<reportElement x="0" y="0" width="637" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/> <reportElement x="0" y="0" width="637" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
<textElement markup="none"> <textElement markup="none">
@ -49,54 +53,71 @@
<textFieldExpression><![CDATA[$R{label.empresa} + " " + $P{empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.empresa} + " " + $P{empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="40" width="637" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/> <reportElement x="0" y="40" width="637" height="20" isRemoveLineWhenBlank="true" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b">
<printWhenExpression><![CDATA[$P{fecPacoteInicio} != null && $P{fecPacoteFinal} != null]]></printWhenExpression>
</reportElement>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicio} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinal}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoPacote} +
" " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecPacoteInicio})
+ " " + $R{cabecalho.periodoA}
+ " " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecPacoteFinal})]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="60" width="637" height="20" uuid="66f394e2-0568-447d-9f46-c358a05628c5"/> <reportElement x="0" y="80" width="637" height="20" uuid="66f394e2-0568-447d-9f46-c358a05628c5"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{label.pacote} + " " + $P{nompacote}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{label.pacote} + " " + $P{nompacote}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="100" width="801" height="20" uuid="979b7126-0e47-4885-8a07-d8f9aa75a204"/> <reportElement x="0" y="120" width="801" height="20" uuid="979b7126-0e47-4885-8a07-d8f9aa75a204"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.usuario} + " " + $P{usuario}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.usuario} + " " + $P{usuario}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="120" width="801" height="20" uuid="fa1e3d80-b034-4acc-8e6e-e32ebbfb35d5"/> <reportElement x="0" y="140" width="801" height="20" uuid="fa1e3d80-b034-4acc-8e6e-e32ebbfb35d5"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.tipoTarifaPacote} + " " + $P{tipoTarifaPacote}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.tipoTarifaPacote} + " " + $P{tipoTarifaPacote}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="80" width="801" height="20" uuid="eb151f53-cf44-4e98-a49b-9427f740f9fc"/> <reportElement x="0" y="100" width="801" height="20" uuid="eb151f53-cf44-4e98-a49b-9427f740f9fc"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.origem} + " " + $P{origem} + " " + $R{cabecalho.destino} + " " + $P{destino}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.origem} + " " + $P{origem} + " " + $R{cabecalho.destino} + " " + $P{destino}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="140" width="801" height="20" uuid="0081e5f0-0219-4d52-a883-d932296d8764"/> <reportElement x="0" y="160" width="801" height="20" uuid="0081e5f0-0219-4d52-a883-d932296d8764"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.situacaoPacote} + " " + $P{situacaoPacote}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.situacaoPacote} + " " + $P{situacaoPacote}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="0" y="160" width="801" height="20" uuid="cc9c448f-3596-46c2-99bf-7ed4dc2cf865"/> <reportElement x="0" y="180" width="801" height="20" uuid="cc9c448f-3596-46c2-99bf-7ed4dc2cf865"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.voucherNotaCredito} + " " + $P{voucherNotaCredito}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.voucherNotaCredito} + " " + $P{voucherNotaCredito}]]></textFieldExpression>
</textField> </textField>
<textField>
<reportElement x="0" y="60" width="637" height="20" isRemoveLineWhenBlank="true" uuid="b7e70dbc-b468-47a0-8c5f-f3d7a67f8156">
<printWhenExpression><![CDATA[$P{fecVendaInicio} != null && $P{fecVendaFinal} != null]]></printWhenExpression>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoVenda} +
" " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecVendaInicio})
+ " " + $R{cabecalho.periodoA}
+ " " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecVendaFinal})]]></textFieldExpression>
</textField>
</band> </band>
</title> </title>
<pageHeader> <pageHeader>

View File

@ -1,6 +1,5 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
@ -63,8 +62,10 @@ public class RelatorioVendasPacotesDetalhadoController extends MyGenericForwardC
private List<Empresa> lsEmpresa; private List<Empresa> lsEmpresa;
private List<Pacote> lsPacote; private List<Pacote> lsPacote;
private List<TipoTarifaPacote> lsTipoTarifaPacote; private List<TipoTarifaPacote> lsTipoTarifaPacote;
private Datebox dataInicial; private Datebox dataPacoteInicial;
private Datebox dataFinal; private Datebox dataPacoteFinal;
private Datebox dataVendaInicial;
private Datebox dataVendaFinal;
private MyComboboxEstandar cmbEmpresa; private MyComboboxEstandar cmbEmpresa;
private MyComboboxEstandar cmbPacote; private MyComboboxEstandar cmbPacote;
private MyComboboxEstandar cmbTipoTarifaPacote; private MyComboboxEstandar cmbTipoTarifaPacote;
@ -75,7 +76,6 @@ public class RelatorioVendasPacotesDetalhadoController extends MyGenericForwardC
private MyComboboxParada cmbParadaDestino; private MyComboboxParada cmbParadaDestino;
private MyComboboxParadaCve cmbParadaDestinoCve; private MyComboboxParadaCve cmbParadaDestinoCve;
private MyComboboxUsuario cmbUsuario; private MyComboboxUsuario cmbUsuario;
private Radio rTodos;
private Radio rPagos; private Radio rPagos;
private Radio rReservados; private Radio rReservados;
private Radio rCancelados; private Radio rCancelados;
@ -138,14 +138,28 @@ public class RelatorioVendasPacotesDetalhadoController extends MyGenericForwardC
public void onClick$btnExecutarRelatorio(Event ev) throws Exception { public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
txtVoucherNotaCredito.getValue(); txtVoucherNotaCredito.getValue();
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date dataDe = dataInicial.getValue();
Date dataAte = dataFinal.getValue();
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
parametros.put("fecInicio", sdf.format(dataDe));
parametros.put("fecFinal", sdf.format(dataAte)); Date dataPacoteDe = dataPacoteInicial.getValue();
Date dataPacoteAte = dataPacoteFinal.getValue();
Date dataVendaDe = dataVendaInicial.getValue();
Date dataVendaAte = dataVendaFinal.getValue();
if( dataPacoteDe != null ) {
parametros.put("fecPacoteInicio", dataPacoteDe);
}
if( dataPacoteAte != null ) {
parametros.put("fecPacoteFinal", dataPacoteAte);
}
if( dataVendaDe != null ) {
parametros.put("fecVendaInicio", dataVendaDe);
}
if( dataVendaAte != null ) {
parametros.put("fecVendaFinal", dataVendaAte);
}
Comboitem cbiEmpresa = cmbEmpresa.getSelectedItem(); Comboitem cbiEmpresa = cmbEmpresa.getSelectedItem();
String empresaId = null; String empresaId = null;

View File

@ -6466,8 +6466,10 @@ relatorioVendasPacotesResumidoController.lblEmpresa.value = Empresa
# Relatorio Vendas Pacotes Detalhado # Relatorio Vendas Pacotes Detalhado
relatorioVendasPacotesDetalhadoController.window.title = Reporte Ventas de Paquetes - Detallado relatorioVendasPacotesDetalhadoController.window.title = Reporte Ventas de Paquetes - Detallado
relatorioVendasPacotesDetalhadoController.lbDataIni.value = Fecha Inicio relatorioVendasPacotesDetalhadoController.lbDataVendaIni.value = Fec Venda Inicial
relatorioVendasPacotesDetalhadoController.lbDataFin.value = Fecha Final relatorioVendasPacotesDetalhadoController.lbDataVendaFin.value = Fec Venda Final
relatorioVendasPacotesDetalhadoController.lbDataPacoteIni.value = Fec Paquete Inicial
relatorioVendasPacotesDetalhadoController.lbDataPacoteFin.value = Fec Paquete Final
relatorioVendasPacotesDetalhadoController.lblEmpresa.value = Empresa relatorioVendasPacotesDetalhadoController.lblEmpresa.value = Empresa
relatorioVendasPacotesDetalhadoController.lblPacote.value = Paquete relatorioVendasPacotesDetalhadoController.lblPacote.value = Paquete
relatorioVendasPacotesDetalhadoController.lblTipoTarifaPacote.value = Tipo Tarifa relatorioVendasPacotesDetalhadoController.lblTipoTarifaPacote.value = Tipo Tarifa

View File

@ -6932,8 +6932,10 @@ relatorioVendasPacotesResumidoController.lblEmpresa.value = Empresa
# Relatorio Vendas Pacotes Detalhado # Relatorio Vendas Pacotes Detalhado
relatorioVendasPacotesDetalhadoController.window.title = Relatório Vendas de Pacotes - Detalhado relatorioVendasPacotesDetalhadoController.window.title = Relatório Vendas de Pacotes - Detalhado
relatorioVendasPacotesDetalhadoController.lbDataIni.value = Data Inicial relatorioVendasPacotesDetalhadoController.lbDataVendaIni.value = Dt Venda Inicial
relatorioVendasPacotesDetalhadoController.lbDataFin.value = Data Final relatorioVendasPacotesDetalhadoController.lbDataVendaFin.value = Dt Venda Final
relatorioVendasPacotesDetalhadoController.lbDataPacoteIni.value = Dt Pacote Inicial
relatorioVendasPacotesDetalhadoController.lbDataPacoteFin.value = Dt Pacote Final
relatorioVendasPacotesDetalhadoController.lblEmpresa.value = Empresa relatorioVendasPacotesDetalhadoController.lblEmpresa.value = Empresa
relatorioVendasPacotesDetalhadoController.lblPacote.value = Pacote relatorioVendasPacotesDetalhadoController.lblPacote.value = Pacote
relatorioVendasPacotesDetalhadoController.lblTipoTarifaPacote.value = Tipo Tarifa relatorioVendasPacotesDetalhadoController.lblTipoTarifaPacote.value = Tipo Tarifa

View File

@ -77,21 +77,21 @@
</row> </row>
<row> <row>
<label <label value="${c:l('relatorioVendasPacotesDetalhadoController.lbDataVendaIni.value')}" />
value="${c:l('relatorioVendasPacotesDetalhadoController.lbDataIni.value')}" /> <datebox id="dataVendaInicial" width="100%" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
<datebox id="dataInicial" width="100%" mold="rounded" <label value="${c:l('relatorioVendasPacotesDetalhadoController.lbDataVendaFin.value')}" />
format="dd/MM/yyyy" constraint="no empty" <datebox id="dataVendaFinal" width="100%" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
maxlength="10" /> </row>
<label
value="${c:l('relatorioVendasPacotesDetalhadoController.lbDataFin.value')}" /> <row>
<datebox id="dataFinal" width="100%" mold="rounded" <label value="${c:l('relatorioVendasPacotesDetalhadoController.lbDataPacoteIni.value')}" />
format="dd/MM/yyyy" constraint="no empty" <datebox id="dataPacoteInicial" width="100%" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
maxlength="10" /> <label value="${c:l('relatorioVendasPacotesDetalhadoController.lbDataPacoteFin.value')}" />
<datebox id="dataPacoteFinal" width="100%" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
</row> </row>
<row spans="1,3"> <row spans="1,3">
<label <label value="${c:l('relatorioVendasPacotesDetalhadoController.lblSituacao.value')}" />
value="${c:l('relatorioVendasPacotesDetalhadoController.lblSituacao.value')}" />
<radiogroup> <radiogroup>
<radio id="rTodos" <radio id="rTodos"
label="${c:l('relatorioVendasPacotesDetalhadoController.lblSituacaoTodos.value')}" label="${c:l('relatorioVendasPacotesDetalhadoController.lblSituacaoTodos.value')}"