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-87c2c4800839master
parent
b58fc82e3f
commit
73b1b36528
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue