public void nuevaCondicionVenta(Float interes, String tipo, int cantDias, float descuento) throws Exception { CondicionVentaBean cvb = new CondicionVentaBean(); cvb.setInteres(interes); cvb.setTipo(tipo); cvb.setCantidadDiasDePago(cantDias); cvb.setDescuento(descuento); servicios.nuevaCondicionVenta(cvb); }
public void agregarCliente( String nombre, String apellido, String telefono, String email, ArrayList<Integer> idsCondicion) throws Exception { ClienteBean cl = new ClienteBean(); cl.setNombre(nombre); cl.setApellido(apellido); cl.setTelefono(telefono); cl.setEmail(email); ArrayList<CondicionVentaBean> acbv = new ArrayList<CondicionVentaBean>(); if (idsCondicion != null) { for (Integer id : idsCondicion) { CondicionVentaBean cvb = new CondicionVentaBean(); cvb.setIdCondicion(id.intValue()); acbv.add(cvb); } } cl.setCondicion(acbv); servicios.agregarCliente(cl); }