correções relatório histórico cliente / tela de cliente
bug#10328 dev:wilian qua:veloso git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@79756 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d2e94e695e
commit
19cd08943c
|
@ -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<PuntoVenta> puntoVentaBusqueda =
|
||||
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
|
||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<PuntoVenta>(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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue