gleimar 2015-10-14 10:42:58 +00:00
parent 88df5c0e26
commit e410ccf058
1 changed files with 3 additions and 2 deletions

View File

@ -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);