Examples of updateSolde()


Examples of com.netflox.dao.MysqlGestionUtilisateur.updateSolde()

    return dbVente.venteUtilisateur(user);
  }
 
  public int rechargerCompte(int montant){
    MysqlGestionUtilisateur dbUti = new MysqlGestionUtilisateur();
    dbUti.updateSolde(user, montant);
    return dbUti.getSoldeUtilisateur(user);
  }
 
}
View Full Code Here

Examples of com.netflox.dao.MysqlGestionUtilisateur.updateSolde()

        v.setType("a");
        date = System.currentTimeMillis();
        v.setDate(date);
        int id = venteBD.ajouterVente(v);
        if(id != -1){
          db.updateSolde(user, (b.getMontant()-PrixFilm));
          v.setId(id);
          //Mise a jour Bon
          b.setDateU(date);
          b.setIdClientU(user.getId());
          b.setUtilise(1);
View Full Code Here

Examples of com.netflox.dao.MysqlGestionUtilisateur.updateSolde()

        v.setType("a");
        date = System.currentTimeMillis();
        v.setDate(date);
        int id = venteBD.ajouterVente(v);
        if(id != -1){
          db.updateSolde(user, -PrixFilm);
          v.setId(id);
          return true;
        }
      }
    }
View Full Code Here

Examples of com.netflox.dao.MysqlGestionUtilisateur.updateSolde()

        v.setType("l");
        date = System.currentTimeMillis();
        v.setDate(date);
        int id = venteBD.ajouterVente(v);
        if(id != -1){
          db.updateSolde(user, (b.getMontant()-PrixLoc));
          v.setId(id);
          //Mise a jour Bon
          b.setDateU(date);
          b.setIdClientU(user.getId());
          b.setUtilise(1);
View Full Code Here

Examples of com.netflox.dao.MysqlGestionUtilisateur.updateSolde()

        v.setType("l");
        date = System.currentTimeMillis();
        v.setDate(date);
        int id = venteBD.ajouterVente(v);
        if(id != -1){
          db.updateSolde(user, -PrixLoc);
          v.setId(id);
          return true;
        }
      }
    }
View Full Code Here

Examples of com.netflox.dao.MysqlGestionUtilisateur.updateSolde()

      v.setPrix(valeur);
      v.setType("b");
      v.setDate(date); //TODO
      int id = venteBD.ajouterVente(v);
      if(id != -1){
        db.updateSolde(user, -valeur);
        v.setId(id);
        Bon b = new Bon();
        b.setId(id);
        b.setMontant(valeur);
        b.genererCode();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.