Copiar e Colar Pricing
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30774 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
676fc807d2
commit
ca629d65d4
|
@ -6,12 +6,14 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingVigencia;
|
||||
import com.rjconsultores.ventaboletos.service.PricingService;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -19,8 +21,16 @@ import com.rjconsultores.ventaboletos.entidad.PricingVigencia;
|
|||
*/
|
||||
public class RenderPricing implements ListitemRenderer {
|
||||
|
||||
@Autowired
|
||||
private PricingService pricingService;
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
Pricing p = (Pricing) o;
|
||||
try {
|
||||
Integer id = p.getPricingId();
|
||||
p = pricingService.obtenerID(id);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
||||
Listcell lc = new Listcell();
|
||||
|
||||
|
|
Loading…
Reference in New Issue