Package entidades

Examples of entidades.Producto


            campos.put(ConstantesFactura.CLIENTE_CUIT, c.getCuit());
            campos.put(ConstantesFactura.CLIENTE_IVA, c.getIva().getDescripcion());
            campos.put(ConstantesFactura.CLIENTE_ID,String.valueOf(c.getId()));
        }else if(entity instanceof Producto){
            campos.clear();
            Producto p = (Producto) entity;
            campos.put(ConstantesFactura.PRODUCTO_ID,String.valueOf(p.getId()));
            campos.put(ConstantesFactura.PRODUCTO_NOMBRE,p.getNombre());
            campos.put(ConstantesFactura.PRODUCTO_DESCRIPCION,p.getDescripcion());
            campos.put(ConstantesFactura.PRODUCTO_COSTO,String.valueOf(p.getCosto()));
            campos.put(ConstantesFactura.PRODUCTO_PRECIO_SUGERIDO,String.valueOf(p.getPrecio()));
        }else if(entity instanceof DetalleFactura){
            campos.clear();
            DetalleFactura d = (DetalleFactura) entity;
            campos.put(ConstantesFactura.DETALLE_ID,String.valueOf(d.getId()));
            campos.put(ConstantesFactura.DETALLE_CANTIDAD_PEDIDA,String.valueOf(d.getCantidadPedida()));
View Full Code Here

TOP

Related Classes of entidades.Producto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.