Copiar e Colar Pricing - Correção

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30790 d1611594-4594-4d17-8e1d-87c2c4800839
master
julio 2013-09-10 12:46:52 +00:00
parent b58fc82e3f
commit 73b1b36528
1 changed files with 3 additions and 8 deletions

View File

@ -6,7 +6,7 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
import java.text.SimpleDateFormat;
import org.springframework.beans.factory.annotation.Autowired;
import org.zkoss.zkplus.spring.SpringUtil;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
@ -21,16 +21,11 @@ import com.rjconsultores.ventaboletos.service.PricingService;
*/
public class RenderPricing implements ListitemRenderer {
@Autowired
private PricingService pricingService;
private PricingService pricingService = (PricingService) SpringUtil.getBean("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) {
}
p = pricingService.obtenerID(p.getPricingId());
Listcell lc = new Listcell();