alexandre.lima 2017-07-14 19:12:53 +00:00
parent 9abc231d79
commit 039a84ab40
5 changed files with 88 additions and 0 deletions

View File

@ -31,6 +31,9 @@ public class RenderSeguroKm implements ListitemRenderer {
lc = new Listcell(taxaKm.getValortaxa().toString()); lc = new Listcell(taxaKm.getValortaxa().toString());
lc.setParent(lstm); lc.setParent(lstm);
lc = new Listcell(taxaKm.getTipoSeguro());
lc.setParent(lstm);
lstm.setAttribute("data", taxaKm); lstm.setAttribute("data", taxaKm);
} }

View File

@ -0,0 +1,40 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import com.rjconsultores.ventaboletos.entidad.SeguroKm;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
/**
*
* @author Desenvolvimento
*/
public class RenderSeguroSemTpp implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
SeguroKm taxaKm = (SeguroKm) o;
Listcell lc = new Listcell(taxaKm.getSegurokmId()==null?"-":taxaKm.getSegurokmId().toString());
lc.setParent(lstm);
lc = new Listcell(taxaKm.getOrgaoconcedente().getDescOrgao());
lc.setParent(lstm);
lc = new Listcell(taxaKm.getKmate().toString());
lc.setParent(lstm);
lc = new Listcell(taxaKm.getValortaxa().toString());
lc.setParent(lstm);
lc = new Listcell(taxaKm.getTipoSeguro().toString());
lc.setParent(lstm);
lstm.setAttribute("data", taxaKm);
}
}

View File

@ -12,6 +12,7 @@ import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer; import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.Tarifa; import com.rjconsultores.ventaboletos.entidad.Tarifa;
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
/** /**
* *
@ -47,6 +48,12 @@ public class RenderTarifa implements ListitemRenderer {
lc.setParent(lstm); lc.setParent(lstm);
lc = new Listcell(t.getImporteseguro() == null ? "" : df.format(t.getImporteseguro())); lc = new Listcell(t.getImporteseguro() == null ? "" : df.format(t.getImporteseguro()));
lc.setParent(lstm); lc.setParent(lstm);
if (ApplicationProperties.getInstance().exibeTpp()) {
lc = new Listcell(t.getImporteTPP() == null ? "" : df.format(t.getImporteTPP()));
lc.setParent(lstm);
}
lc = new Listcell(t.getImporteoutros() == null ? "" : df.format(t.getImporteoutros())); lc = new Listcell(t.getImporteoutros() == null ? "" : df.format(t.getImporteoutros()));
lc.setParent(lstm); lc.setParent(lstm);

View File

@ -11,6 +11,7 @@ import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer; import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.TarifaOficial; import com.rjconsultores.ventaboletos.entidad.TarifaOficial;
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
/** /**
* *
@ -46,6 +47,12 @@ public class RenderTarifaOficial implements ListitemRenderer {
lc.setParent(lstm); lc.setParent(lstm);
lc = new Listcell(t.getImporteseguro() == null ? "" : df.format(t.getImporteseguro())); lc = new Listcell(t.getImporteseguro() == null ? "" : df.format(t.getImporteseguro()));
lc.setParent(lstm); lc.setParent(lstm);
if (ApplicationProperties.getInstance().exibeTpp()) {
lc = new Listcell(t.getImportetpp() == null ? "" : df.format(t.getImportetpp()));
lc.setParent(lstm);
}
lc = new Listcell(t.getImporteoutros() == null ? "" : df.format(t.getImporteoutros())); lc = new Listcell(t.getImporteoutros() == null ? "" : df.format(t.getImporteoutros()));
lc.setParent(lstm); lc.setParent(lstm);

View File

@ -0,0 +1,31 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
/**
*
* @author Desenvolvimento
*/
public class SeguroPorIntervalo implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
OrgaoConcedente orgao = (OrgaoConcedente) o;
Listcell lc = new Listcell(orgao.getOrgaoConcedenteId()==null?"-":orgao.getOrgaoConcedenteId().toString());
lc.setParent(lstm);
lc = new Listcell(orgao.getDescOrgao());
lc.setParent(lstm);
lstm.setAttribute("data", orgao);
}
}