Package entidades

Examples of entidades.Cliente



    public static void getProperties(Serializable entity,HashMap<String,String> campos) {
        if(entity instanceof Cliente){
            campos.clear();
            Cliente c = (Cliente) entity;
            campos.put(ConstantesFactura.CLIENTE_DIRECCION, c.getDireccion());
            campos.put(ConstantesFactura.CLIENTE_APELLIDO,c.getApellido());
            campos.put(ConstantesFactura.CLIENTE_NOMBRE, c.getNombre());
            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());
View Full Code Here

TOP

Related Classes of entidades.Cliente

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.