frederico 2017-05-22 14:38:34 +00:00
parent 7aaf4e38ad
commit ad0f55483a
1 changed files with 7 additions and 3 deletions

View File

@ -451,10 +451,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
lsLogFiles = getLogFiles(); lsLogFiles = getLogFiles();
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta"); puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
statusAprobacionInicial = puntoVenta.getStatusaprobacion();
super.doAfterCompose(comp); super.doAfterCompose(comp);
cmbBanco.addEventListener("onAfterRender", new org.zkoss.zk.ui.event.EventListener() { cmbBanco.addEventListener("onAfterRender", new org.zkoss.zk.ui.event.EventListener() {
public void onEvent(Event event) throws Exception { public void onEvent(Event event) throws Exception {
cmbBanco.setSelectedIndex(lsBanco.indexOf(puntoVenta.getAgenciaId().getInstiFinanceiraId())); cmbBanco.setSelectedIndex(lsBanco.indexOf(puntoVenta.getAgenciaId().getInstiFinanceiraId()));
@ -542,6 +542,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
} }
} }
statusAprobacionInicial = radAprobacionAutorizado.isChecked() ? "A" : "L";
if (puntoVenta.getPuntoventaId() != null) { if (puntoVenta.getPuntoventaId() != null) {
if (puntoVenta.getAgenciaId() != null) { if (puntoVenta.getAgenciaId() != null) {
@ -1597,6 +1599,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
ex.getMessage(), ex.getMessage(),
Labels.getLabel("editarPuntoVentaController.window.title"), Labels.getLabel("editarPuntoVentaController.window.title"),
Messagebox.OK, Messagebox.ERROR); Messagebox.OK, Messagebox.ERROR);
closeWindow();
} catch (Exception ex) { } catch (Exception ex) {
log.error("editarPuntoVentaController: ", ex); log.error("editarPuntoVentaController: ", ex);
@ -1607,6 +1610,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
} }
} }
private boolean validarEmail() { private boolean validarEmail() {
if(descCorreo.getText() == null){ if(descCorreo.getText() == null){
return true; return true;