fixed bug #8152
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@62025 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2f3821251b
commit
acd78f9b61
|
@ -84,13 +84,16 @@ public class RelatorioConferenciaFormularioFisicoController extends MyGenericFo
|
|||
}
|
||||
|
||||
private void executarRelatorio() throws Exception {
|
||||
|
||||
Connection con = dataSourceRead.getConnection();
|
||||
|
||||
Integer puntoVentaId = null;
|
||||
|
||||
if (cmbPuntoVenta.getSelectedIndex() != -1){
|
||||
((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId();
|
||||
}
|
||||
Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId();
|
||||
Connection con = dataSourceRead.getConnection();
|
||||
|
||||
|
||||
if (datInicial.getValue() == null && datFinal.getValue() == null) {
|
||||
|
||||
|
@ -110,13 +113,15 @@ public class RelatorioConferenciaFormularioFisicoController extends MyGenericFo
|
|||
parametros.put("EMPRESA_ID", ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId());
|
||||
parametros.put("NOME_RELATORIO", Labels.getLabel("indexController.mniRelatorioConferenciaFormularioFisico.label"));
|
||||
|
||||
Relatorio relatorio = new RelatorioConferenciaFormularioFisico(parametros, dataSourceRead.getConnection());
|
||||
Relatorio relatorio = new RelatorioConferenciaFormularioFisico(parametros, con);
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("indexController.mniRelatorioConferenciaFormularioFisico.label"), args, MODAL);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public MyComboboxEstandar getCmbEmpresa() {
|
||||
|
|
Loading…
Reference in New Issue