salvar null no campo tiempo [bug#5755]

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@39044 d1611594-4594-4d17-8e1d-87c2c4800839
master
gleimar 2014-10-30 17:55:33 +00:00
parent e84d2c3100
commit 66cb6b564e
3 changed files with 16 additions and 9 deletions

View File

@ -4,15 +4,9 @@
*/ */
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional; package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
import com.rjconsultores.ventaboletos.entidad.DiagramaAutobus;
import com.rjconsultores.ventaboletos.entidad.RolOperativo;
import com.rjconsultores.ventaboletos.service.DiagramaAutobusService;
import com.rjconsultores.ventaboletos.service.RolOperativoService;
import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import java.util.Calendar; import java.util.Calendar;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope; import org.springframework.context.annotation.Scope;
@ -28,6 +22,14 @@ import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Textbox; import org.zkoss.zul.Textbox;
import org.zkoss.zul.Timebox; import org.zkoss.zul.Timebox;
import com.rjconsultores.ventaboletos.entidad.DiagramaAutobus;
import com.rjconsultores.ventaboletos.entidad.RolOperativo;
import com.rjconsultores.ventaboletos.service.DiagramaAutobusService;
import com.rjconsultores.ventaboletos.service.RolOperativoService;
import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
/** /**
* *
* @author Shiro * @author Shiro

View File

@ -27,7 +27,12 @@ public class RenderRolOperativo implements ListitemRenderer {
lc = new Listcell(rol.getDescroloperativo()); lc = new Listcell(rol.getDescroloperativo());
lc.setParent(lstm); lc.setParent(lstm);
if (rol.getTiempoprevio() != null){
lc = new Listcell(sf.format(rol.getTiempoprevio())); lc = new Listcell(sf.format(rol.getTiempoprevio()));
}else{
lc = new Listcell("");
}
lc.setParent(lstm); lc.setParent(lstm);
lc = new Listcell((rol.getDiagramaAutobus() == null) ? "" : rol.getDiagramaAutobus().getDescDiagrama()); lc = new Listcell((rol.getDiagramaAutobus() == null) ? "" : rol.getDiagramaAutobus().getDescDiagrama());

View File

@ -38,7 +38,7 @@
</row> </row>
<row> <row>
<label id="lblTimepre" value="${c:l('editarRolOperativoController.lblTimepre.value')}"/> <label id="lblTimepre" value="${c:l('editarRolOperativoController.lblTimepre.value')}"/>
<timebox id="timeprevio" cols="14" format="HH:mm" mold="rounded" constraint="no empty" <timebox id="timeprevio" cols="14" format="HH:mm" mold="rounded"
value="@{winEditarRolOperativo$composer.rolOperativo.tiempoprevio}"/> value="@{winEditarRolOperativo$composer.rolOperativo.tiempoprevio}"/>