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();
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
lsEstado = estadoService.obtenerTodos();
|
lsEstado = estadoService.obtenerTodos();
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
chkVendido.setChecked(true);
|
chkVendido.setChecked(true);
|
||||||
chkCancelado.setChecked(true);
|
chkCancelado.setChecked(true);
|
||||||
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||||
|
@ -101,8 +101,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
||||||
}
|
}
|
||||||
|
|
||||||
private void executarPesquisaAgencia() {
|
private void executarPesquisaAgencia() {
|
||||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
|
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
|
||||||
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
|
|
||||||
|
|
||||||
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
|
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
|
||||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
@ -147,6 +146,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
||||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
executarRelatorio(false);
|
executarRelatorio(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnExecutarRelatorioNovoLayout(Event ev) throws Exception {
|
public void onClick$btnExecutarRelatorioNovoLayout(Event ev) throws Exception {
|
||||||
executarRelatorio(true);
|
executarRelatorio(true);
|
||||||
}
|
}
|
||||||
|
@ -186,7 +186,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
||||||
parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue());
|
parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue());
|
||||||
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioBilhetesVendidosController.window.title"));
|
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioBilhetesVendidosController.window.title"));
|
||||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||||
|
|
||||||
String status = "";
|
String status = "";
|
||||||
if (chkCancelado.isChecked()) {
|
if (chkCancelado.isChecked()) {
|
||||||
status += "'" + IndStatusBoleto.C + "',";
|
status += "'" + IndStatusBoleto.C + "',";
|
||||||
|
@ -195,7 +195,7 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
||||||
status += "'" + IndStatusBoleto.V + "',";
|
status += "'" + IndStatusBoleto.V + "',";
|
||||||
}
|
}
|
||||||
if (status.length() > 0) {
|
if (status.length() > 0) {
|
||||||
status = status.substring(0, status.length()-1);
|
status = status.substring(0, status.length() - 1);
|
||||||
} else {
|
} else {
|
||||||
status = null;
|
status = null;
|
||||||
}
|
}
|
||||||
|
@ -212,24 +212,24 @@ public class RelatorioBilhetesVendidosController extends MyGenericForwardCompose
|
||||||
} else {
|
} else {
|
||||||
filtro.append(" Todas;");
|
filtro.append(" Todas;");
|
||||||
}
|
}
|
||||||
|
|
||||||
Comboitem itemEstado = cmbEstado.getSelectedItem();
|
Comboitem itemEstado = cmbEstado.getSelectedItem();
|
||||||
if (itemEstado != null) {
|
if (itemEstado != null) {
|
||||||
Estado estado = (Estado) itemEstado.getValue();
|
Estado estado = (Estado) itemEstado.getValue();
|
||||||
parametros.put("ESTADO_ID", estado.getEstadoId());
|
parametros.put("ESTADO_ID", estado.getEstadoId());
|
||||||
parametros.put("ESTADO", estado.getNombestado());
|
parametros.put("ESTADO", estado.getNombestado());
|
||||||
} else{
|
} else {
|
||||||
parametros.put("ESTADO", "TODOS");
|
parametros.put("ESTADO", "TODOS");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(novoLayout){
|
if (novoLayout) {
|
||||||
relatorio = new RelatorioBilhetesVendidosNovoLayout(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioBilhetesVendidosNovoLayout(parametros, dataSourceRead.getConnection());
|
||||||
parametros.put("TITULO", Labels.getLabel("relatorioBilhetesVendidosController.window.title"));
|
parametros.put("TITULO", Labels.getLabel("relatorioBilhetesVendidosController.window.title"));
|
||||||
}else{
|
} else {
|
||||||
relatorio = new RelatorioBilhetesVendidos(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioBilhetesVendidos(parametros, dataSourceRead.getConnection());
|
||||||
}
|
}
|
||||||
parametros.put("FILTROS", filtro.toString());
|
parametros.put("FILTROS", filtro.toString());
|
||||||
|
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
args.put("relatorio", relatorio);
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue