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);