fixes bug #7593
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@57034 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
439ccaa517
commit
b910825a18
|
@ -17,6 +17,7 @@ import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasPacotesBoletosBean;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasPacotesBoletosBean;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasPacotesBoletosBean.RelatorioVendasPacotesBoletosItemBean;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasPacotesBoletosBean.RelatorioVendasPacotesBoletosItemBean;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
public class RelatorioVendasPacotesBoletos extends Relatorio {
|
public class RelatorioVendasPacotesBoletos extends Relatorio {
|
||||||
|
@ -206,18 +207,18 @@ public class RelatorioVendasPacotesBoletos extends Relatorio {
|
||||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
|
||||||
if(fecInicio != null) {
|
if(fecInicio != null) {
|
||||||
stmt.setDate("fecInicio", fecInicio);
|
stmt.setTimestamp("fecInicio", new java.sql.Timestamp(DateUtil.inicioFecha(fecInicio).getTime()));
|
||||||
}
|
}
|
||||||
if(fecFinal != null) {
|
if(fecFinal != null) {
|
||||||
stmt.setDate("fecFinal", fecFinal);
|
stmt.setTimestamp("fecFinal", new java.sql.Timestamp(DateUtil.fimFecha(fecFinal).getTime()));
|
||||||
}
|
}
|
||||||
if (empresaId != null){
|
if (empresaId != null && empresaId > 0){
|
||||||
stmt.setInt("empresaId", empresaId);
|
stmt.setInt("empresaId", empresaId);
|
||||||
}
|
}
|
||||||
if(origenId != null) {
|
if(origenId != null && origenId > 0){
|
||||||
stmt.setInt("origenId", origenId);
|
stmt.setInt("origenId", origenId);
|
||||||
}
|
}
|
||||||
if(destinoId != null) {
|
if(destinoId != null && destinoId > 0){
|
||||||
stmt.setInt("destinoId", destinoId);
|
stmt.setInt("destinoId", destinoId);
|
||||||
}
|
}
|
||||||
if(usuarioId != null) {
|
if(usuarioId != null) {
|
||||||
|
@ -254,15 +255,15 @@ public class RelatorioVendasPacotesBoletos extends Relatorio {
|
||||||
sQuery.append("AND B.MOTIVOCANCELACION_ID IS NOT NULL ");
|
sQuery.append("AND B.MOTIVOCANCELACION_ID IS NOT NULL ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empresaId != null) {
|
if(empresaId != null && empresaId > 0){
|
||||||
sQuery.append("AND P.EMPRESA_ID = :empresaId ");
|
sQuery.append("AND P.EMPRESA_ID = :empresaId ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(origenId != null) {
|
if(origenId != null && origenId > 0){
|
||||||
sQuery.append("AND B.ORIGEN_ID = :origenId ");
|
sQuery.append("AND B.ORIGEN_ID = :origenId ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(destinoId != null) {
|
if(destinoId != null && destinoId > 0){
|
||||||
sQuery.append("AND B.DESTINO_ID = :destinoId ");
|
sQuery.append("AND B.DESTINO_ID = :destinoId ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6214,7 +6214,7 @@ relatorioVendasPacotesDetalhadoController.lblDestino.value = Destino
|
||||||
relatorioVendasPacotesDetalhadoController.lblUsuario.value = Usuário
|
relatorioVendasPacotesDetalhadoController.lblUsuario.value = Usuário
|
||||||
|
|
||||||
# Relatorio Vendas Pacotes Boletos
|
# Relatorio Vendas Pacotes Boletos
|
||||||
relatorioVendasPacotesBoletosController.window.title = Relatório Vendas de Pacotes - Boletos
|
relatorioVendasPacotesBoletosController.window.title = Relatório Vendas de Pacotes - Bilhetes
|
||||||
relatorioVendasPacotesBoletosController.lbDataIni.value = Data Inicial
|
relatorioVendasPacotesBoletosController.lbDataIni.value = Data Inicial
|
||||||
relatorioVendasPacotesBoletosController.lbDataFin.value = Data Final
|
relatorioVendasPacotesBoletosController.lbDataFin.value = Data Final
|
||||||
relatorioVendasPacotesBoletosController.lblEmpresa.value = Empresa
|
relatorioVendasPacotesBoletosController.lblEmpresa.value = Empresa
|
||||||
|
@ -6225,8 +6225,8 @@ relatorioVendasPacotesBoletosController.lblDestino.value = Destino
|
||||||
relatorioVendasPacotesBoletosController.lblUsuario.value = Usuário
|
relatorioVendasPacotesBoletosController.lblUsuario.value = Usuário
|
||||||
relatorioVendasPacotesBoletosController.lblUsuario.value = Usuário
|
relatorioVendasPacotesBoletosController.lblUsuario.value = Usuário
|
||||||
relatorioVendasPacotesBoletosController.lbTipoRelatorio.value = Tipo Relatório
|
relatorioVendasPacotesBoletosController.lbTipoRelatorio.value = Tipo Relatório
|
||||||
relatorioVendasPacotesBoletosController.lbVendaPacotesBoletos.value = Vendas de Boletos no Pacote
|
relatorioVendasPacotesBoletosController.lbVendaPacotesBoletos.value = Vendas de Bilhetes no Pacote
|
||||||
relatorioVendasPacotesBoletosController.lbVendaBoletos.value = Vendas de Boletos Avulsos
|
relatorioVendasPacotesBoletosController.lbVendaBoletos.value = Vendas de Bilhetes Avulsos
|
||||||
|
|
||||||
# Relatorio Venda Pacote Voucher
|
# Relatorio Venda Pacote Voucher
|
||||||
RelatorioVendaPacoteVoucher.window.title = Voucher Venda Pacote
|
RelatorioVendaPacoteVoucher.window.title = Voucher Venda Pacote
|
||||||
|
|
Loading…
Reference in New Issue