FIXES BUG #6710
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@48770 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8605151b13
commit
08a3791fe1
|
@ -10,6 +10,7 @@ import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
import org.zkoss.zk.ui.WrongValueException;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Button;
|
import org.zkoss.zul.Button;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
|
@ -62,7 +63,7 @@ public class EditarEscolaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
cmbCiudad.getValue(true);
|
cmbCiudad.getValue();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
escola.setActivo(Boolean.TRUE);
|
escola.setActivo(Boolean.TRUE);
|
||||||
|
@ -86,7 +87,7 @@ public class EditarEscolaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cmbCiudad.getValue(escola.getCiudad() == null);
|
||||||
if (podeSalvar) {
|
if (podeSalvar) {
|
||||||
if (escola.getEscolaId() == null) {
|
if (escola.getEscolaId() == null) {
|
||||||
EscolaService.suscribir(escola);
|
EscolaService.suscribir(escola);
|
||||||
|
@ -108,7 +109,9 @@ public class EditarEscolaController extends MyGenericForwardComposer {
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception ex) {
|
}catch(WrongValueException e){
|
||||||
|
throw e;
|
||||||
|
} catch (Exception ex) {
|
||||||
log.error("editarEscolaController: " + ex);
|
log.error("editarEscolaController: " + ex);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("MSG.Error"),
|
Labels.getLabel("MSG.Error"),
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<zk>
|
<zk>
|
||||||
<window id="winEditarEscola" border="normal"
|
<window id="winEditarEscola" border="normal"
|
||||||
apply="${editarEscolaController}" width="550px" height="245px"
|
apply="${editarEscolaController}" width="550px" height="122px"
|
||||||
contentStyle="overflow:auto"
|
contentStyle="overflow:auto"
|
||||||
title="${c:l('editarEscolaController.window.title')}">
|
title="${c:l('editarEscolaController.window.title')}">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
|
|
Loading…
Reference in New Issue