Package modele.commun

Examples of modele.commun.Etat


              TypeContrat typeContrat = new TypeContrat(res.getInt(3));
              typeContrat.setLibelle(res.getString(4));
              result[0].setTypeContrat(typeContrat);

              Etat etat = new Etat(res.getInt(5));
              etat.setDescrip(res.getString(6));
              result[0].setEtat(etat);
            }
          } finally {
            try {
              if (res != null) {
View Full Code Here


              Voiture voiture = new Voiture(res.getInt(5));
              voiture.setNumeroAgglomeration(Integer.parseInt(res.getString(6)));
              chargeVoiture.setVoiture(voiture);

              Etat etat = new Etat(res.getInt(7));
              etat.setDescrip(res.getString(8));
              chargeVoiture.setEtat(etat);
             
              MySqlFichePaiementFactureDao fichePaiementFactureDao = new MySqlFichePaiementFactureDao();
              chargeVoiture.setPaiements(fichePaiementFactureDao.findByChargeVoiture(chargeVoiture));
            }
View Full Code Here

              Voiture voiture = new Voiture(res.getInt(9));
              voiture.setNumeroAgglomeration(res.getInt(10));/////////////////////
              chargeVoiture.setVoiture(voiture);

              Etat etat = new Etat(res.getInt(11));
              etat.setDescrip(res.getString(12));
              chargeVoiture.setEtat(etat);

              listeChargeVoiture.add(chargeVoiture);
            }
          } finally {
View Full Code Here

              Voiture voiture = new Voiture(res.getInt(9));
              voiture.setNumeroAgglomeration(res.getInt(10));
              result[0].setVoiture(voiture);

              Etat etat = new Etat(res.getInt(11));
              etat.setDescrip(res.getString(12));
              result[0].setEtat(etat);
            }
          } finally {
            try {
              if (res != null) {
View Full Code Here

              Voiture voiture = new Voiture(res.getInt(9));
              voiture.setNumeroAgglomeration(res.getInt(10));/////////////////////
              chargeVoiture.setVoiture(voiture);

              Etat etat = new Etat(res.getInt(11));
              etat.setDescrip(res.getString(12));
              chargeVoiture.setEtat(etat);

              listeChargeVoiture.add(chargeVoiture);
            }
          } finally {
View Full Code Here

          try {
            smt = connection.prepareStatement(GET_ETAT_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            if (res.next()) {
              result[0] = new Etat(res.getInt(1));
              result[0].setDescrip(res.getString(2));
              result[0].setTypeEtat(res.getString(3));

            }
          } finally {
View Full Code Here

          try {
            smt = connection.prepareStatement("SELECT idEtat, descripEtat, typeEtat from TETAT");
            resultSet = smt.executeQuery();
            while (resultSet.next()) {
              int id = resultSet.getInt("idEtat");
              Etat etat = new Etat(id);
              etat.setDescrip(resultSet.getString("descripEtat"));
              etat.setTypeEtat(resultSet.getString("typeEtat"));
              etats.add(etat);
            }
          } finally {
            try {
              if (resultSet != null) {
View Full Code Here

          ResultSet res = null;
          try {
            smt = connection.createStatement();
            res = smt.executeQuery("select idEtat, descripEtat, typeEtat from tetat where idEtat = LAST_INSERT_ID()");
            if (res.next()) {
              result[0] = new Etat(res.getInt(1));
              result[0].setDescrip(res.getString(2));
              result[0].setTypeEtat(res.getString(3));

            }
          } finally {
View Full Code Here

          row, column);
     
      CompteUserTableModel model = (CompteUserTableModel)table.getModel();
      CompteUser compteUser = model.getAt(row);
     
      Etat etat = compteUser.getEtat();
     
      if (!etat.getDescrip().equals("Inactif")) {
        cellule.setBackground(MotsCleProjet.COULEUR_BLANC);
      } else {
        cellule.setBackground(MotsCleProjet.COULEUR_GRIS);
      }
      return cellule;
View Full Code Here

            row, column);
       
        FichePaieTableModel model = (FichePaieTableModel)table.getModel();
        FichePaie fichePaie = model.getAt(row);
       
        Etat etat = fichePaie.getEtat();       
       
        if (!etat.getDescrip().equals("Inactif")) {
          cellule.setBackground(MotsCleProjet.COULEUR_BLEUE);
        } else {
          cellule.setBackground(MotsCleProjet.COULEUR_GRIS);
        }
        return cellule;
View Full Code Here

TOP

Related Classes of modele.commun.Etat

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.