From 19cd08943cd6364896c3cc21520f1a016c0a7eba Mon Sep 17 00:00:00 2001 From: frederico Date: Fri, 9 Mar 2018 20:56:41 +0000 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=B5es=20relat=C3=B3rio=20hist?= =?UTF-8?q?=C3=B3rico=20cliente=20/=20tela=20de=20cliente=20bug#10328=20de?= =?UTF-8?q?v:wilian=20qua:veloso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@79756 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../RelatorioBilhetesVendidosController.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java index 19680ed91..6e778cb88 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBilhetesVendidosController.java @@ -77,7 +77,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose lsEmpresa = empresaService.obtenerTodos(); lsEstado = estadoService.obtenerTodos(); super.doAfterCompose(comp); - + chkVendido.setChecked(true); chkCancelado.setChecked(true); puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro()); @@ -101,8 +101,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose } private void executarPesquisaAgencia() { - HibernateSearchObject puntoVentaBusqueda = - new HibernateSearchObject(PuntoVenta.class, pagingPuntoVenta.getPageSize()); + HibernateSearchObject puntoVentaBusqueda = new HibernateSearchObject(PuntoVenta.class, pagingPuntoVenta.getPageSize()); puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%"); puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE); @@ -147,6 +146,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose public void onClick$btnExecutarRelatorio(Event ev) throws Exception { executarRelatorio(false); } + public void onClick$btnExecutarRelatorioNovoLayout(Event ev) throws Exception { executarRelatorio(true); } @@ -186,7 +186,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue()); parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioBilhetesVendidosController.window.title")); parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString()); - + String status = ""; if (chkCancelado.isChecked()) { status += "'" + IndStatusBoleto.C + "',"; @@ -195,7 +195,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose status += "'" + IndStatusBoleto.V + "',"; } if (status.length() > 0) { - status = status.substring(0, status.length()-1); + status = status.substring(0, status.length() - 1); } else { status = null; } @@ -212,24 +212,24 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose } else { filtro.append(" Todas;"); } - + Comboitem itemEstado = cmbEstado.getSelectedItem(); if (itemEstado != null) { Estado estado = (Estado) itemEstado.getValue(); parametros.put("ESTADO_ID", estado.getEstadoId()); parametros.put("ESTADO", estado.getNombestado()); - } else{ + } else { parametros.put("ESTADO", "TODOS"); } - if(novoLayout){ + if (novoLayout) { relatorio = new RelatorioBilhetesVendidosNovoLayout(parametros, dataSourceRead.getConnection()); parametros.put("TITULO", Labels.getLabel("relatorioBilhetesVendidosController.window.title")); - }else{ + } else { relatorio = new RelatorioBilhetesVendidos(parametros, dataSourceRead.getConnection()); } parametros.put("FILTROS", filtro.toString()); - + Map args = new HashMap(); args.put("relatorio", relatorio);