bug #7867
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@60099 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3ad17d4465
commit
2d658e4cd8
|
@ -1,14 +1,10 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.poi.ss.usermodel.Textbox;
|
||||
import org.apache.xerces.impl.dtd.models.CMBinOp;
|
||||
import org.flywaydb.core.internal.dbsupport.mysql.MySQLSqlStatementBuilder;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -18,9 +14,7 @@ import org.zkoss.zk.ui.Executions;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.api.Combobox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.ClasseServicoDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClasseIndicePeaje;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
|
@ -184,7 +178,7 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
|||
txtIndicePeajClasse.setConstraint("no empty,no negative, /[0-9]+(\\,[0-9][0-9]?)?|/ ");
|
||||
|
||||
if (!classeExistente((ClaseServicio) cmbClasseServicio.getSelectedItem().getValue())
|
||||
&& txtIndicePeajClasse.getValueDecimal() != null) {
|
||||
&& txtIndicePeajClasse.getValueDecimal() != null) {
|
||||
|
||||
ClasseIndicePeaje classeIndicePeaje = new ClasseIndicePeaje();
|
||||
classeIndicePeaje.setActivo(true);
|
||||
|
@ -202,6 +196,7 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private boolean classeExistente(ClaseServicio claseServicio) throws InterruptedException {
|
||||
List classesIndicePeajes = listBoxIndicePeaj.getListData();
|
||||
for (Object o : classesIndicePeajes) {
|
||||
|
|
Loading…
Reference in New Issue