fixes bug#6736
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@48956 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
88df5c0e26
commit
e410ccf058
|
@ -2,6 +2,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.gr;
|
|||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -29,7 +30,7 @@ public class AidfListItemRenderer implements ListitemRenderer {
|
|||
Listcell empresaCell = new Listcell(aidf.getEmpresa().toString());
|
||||
empresaCell.setParent(listItem);
|
||||
|
||||
Listcell inscEstadualCell = new Listcell(aidf.getInscestadual());
|
||||
Listcell inscEstadualCell = StringUtils.isBlank(aidf.getInscestadual())?new Listcell("") :new Listcell(aidf.getInscestadual());
|
||||
inscEstadualCell.setParent(listItem);
|
||||
|
||||
Listcell docFiscalCell = new Listcell(aidf.getDocfiscal());
|
||||
|
@ -55,7 +56,7 @@ public class AidfListItemRenderer implements ListitemRenderer {
|
|||
Listcell fecadquisicionCell = new Listcell(aidf.getFecadquisicion() != null ? sdf.format(aidf.getFecadquisicion()) : null);
|
||||
fecadquisicionCell.setParent(listItem);
|
||||
|
||||
Listcell fecvencimientoCell = new Listcell(sdf.format(aidf.getFecvencimiento()));
|
||||
Listcell fecvencimientoCell = aidf.getFecvencimiento()==null ? new Listcell(""): new Listcell(sdf.format(aidf.getFecvencimiento()));
|
||||
fecvencimientoCell.setParent(listItem);
|
||||
|
||||
listItem.setAttribute("data", aidf);
|
||||
|
|
Loading…
Reference in New Issue