Examples of rechercherProduit()


Examples of factories.FProduits.rechercherProduit()

    ArrayList<Produit> listProduits = new ArrayList<Produit>();
    for(Iterator<String> it = listRefs.iterator(); it.hasNext();){
      String ref = (String)it.next();
      try {
        // recuperation du produit a partir de sa reference.
        Produit p = fp.rechercherProduit(ref);
        // ajout du produit dans la liste
        listProduits.add(p);
       
      } catch (SQLException se) {
        //  en cas de coupure reseau.
View Full Code Here

Examples of factories.FProduits.rechercherProduit()

   
   
      try{
        if(! fp.hasConnection())
          fp.setConnection(GestionConnection.getInstance().getConnection());
        return fp.rechercherProduit(reference);
      }catch(SQLException se){
        throw new MetierException(MetierException.CONNEXION_IMPOSSIBLE);
      }
  }
 
View Full Code Here

Examples of factories.FProduits.rechercherProduit()

    ArrayList<Produit> listProduits = new ArrayList<Produit>();
    for(Iterator<String> it = listRefs.iterator(); it.hasNext();){
      String ref = (String)it.next();
      try {
        // recuperation du produit a partir de sa reference.
        Produit p = fp.rechercherProduit(ref);
        // ajout du produit dans la liste
        listProduits.add(p);
       
      } catch (SQLException se) {
        //  en cas de coupure reseau.
View Full Code Here

Examples of factories.FProduits.rechercherProduit()

   
   
      try{
        if(! fp.hasConnection())
          fp.setConnection(GestionConnection.getInstance().getConnection());
        return fp.rechercherProduit(reference);
      }catch(SQLException se){
        throw new MetierException(MetierException.CONNEXION_IMPOSSIBLE);
      }
  }
 
View Full Code Here

Examples of interfaces.catalogue.IMetierCatalogue.rechercherProduit()

      if(idProduit == null){       
        req.setAttribute(Message.MESSAGE_ERREUR, Message.PAS_DE_PRODUIT_SAISI);       
        return erreur;
      }else{
        //Accés au métier, récupération des infos sur le produit et état des stocks
        produit = mc.rechercherProduit(idProduit);
        req.setAttribute(Message.PRODUIT, produit);
      }
     
      return suite;
    }
View Full Code Here

Examples of interfaces.catalogue.IMetierCatalogue.rechercherProduit()

     
     
      // On ajoute le produit au panier si on a un id de produit
      if(idProduit != null && qteStr != null){
        try{
          Produit p = mc.rechercherProduit(idProduit);
          Panier panier = (Panier)req.getSession(true).getAttribute("panier");
          int qte = Integer.parseInt(qteStr);
          panier.ajouterProduit(p, qte);
        }catch(MetierException me){
          me.printStackTrace();
View Full Code Here

Examples of metier.catalogue.MetierCatalogue.rechercherProduit()

      if(idProduit == null){       
        req.setAttribute(Message.MESSAGE_ERREUR, Message.PAS_DE_PRODUIT_SAISI);       
        return erreur;
      }else{
        //Accés au métier, récupération des infos sur le produit et état des stocks
        produit = mc.rechercherProduit(idProduit);
        req.setAttribute(Message.PRODUIT, produit);
      }
     
      return suite;
    }
View Full Code Here

Examples of metier.catalogue.MetierCatalogue.rechercherProduit()

     
     
      // On ajoute le produit au panier si on a un id de produit
      if(idProduit != null && qteStr != null){
        try{
          Produit p = mc.rechercherProduit(idProduit);
          Panier panier = (Panier)req.getSession(true).getAttribute("panier");
          int qte = Integer.parseInt(qteStr);
          panier.ajouterProduit(p, qte);
        }catch(MetierException me){
          me.printStackTrace();
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.