Package ventas.com.dao

Examples of ventas.com.dao.ClienteDAO


  }

  public void cargarCliente() {
    try {
      this.lista.clear();
      IClienteDAO dao = new ClienteDAO();
      this.lista = dao.consultarPorNombre(" ");
    } catch (Exception e) {
    }
  }
View Full Code Here


 

        public String consultar(){
    this.mensaje = "";
    try {
      IClienteDAO dao = new ClienteDAO();
      this.lista = dao.consultarPorNombre(this.criterio);
    } catch (Exception e) {
      this.mensaje = e.getMessage();
    }
    return "manteCliente";
  }
View Full Code Here

//  }

         public String editar(Long id){
        try {
            this.accion = "ACTUALIZAR";
            IClienteDAO dao = new ClienteDAO();
            this.cliente = dao.consultarPorId(id);
            this.mensaje = "";

        } catch (Exception e) {
           this.mensaje = e.getMessage();
            }
View Full Code Here

        }

  public String grabar(){
            //String destino ="";
    try {
      IClienteDAO dao = new ClienteDAO();
                        if(this.accion.equals("NUEVO")){
      //dao.crear(cliente);
      this.mensaje = "Cliente creado con ID " + this.cliente.getId();
//      this.cliente.limpiar();
                        } else if(this.accion.equals("ACTUALIZAR")){
                            dao.actualizar(cliente);


                            this.mensaje = "Cliente Actualizado";
                        }
View Full Code Here

TOP

Related Classes of ventas.com.dao.ClienteDAO

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.