Examples of Etat


Examples of modele.commun.Etat

          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

Examples of modele.commun.Etat

          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

Examples of modele.commun.Etat

            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

Examples of modele.commun.Etat

          row, column);
     
      PeriodeTravailTableModel model = (PeriodeTravailTableModel)table.getModel();
      PeriodeDeTravail periodeDeTravail = model.getAt(row);
     
      Etat etat = periodeDeTravail.getEtat();
      Periode periode  = new Periode(periodeDeTravail.getDateDebut(), periodeDeTravail.getDateFin());

      Date aujourdhui = new Date();
      if (!etat.getDescrip().equals("Inactif") && periode.inclue(aujourdhui)) {
        cellule.setBackground(MotsCleProjet.COULEUR_BLEUE);
      } else {
        cellule.setBackground(MotsCleProjet.COULEUR_GRIS);
      }
      return cellule;
View Full Code Here

Examples of modele.commun.Etat

    try {
      dlgDialog = new EtatEditionFenetre();
      dlgDialog.affiche();

      if (dlgDialog.OK_Button()) {
        Etat etat = dlgDialog.renvoiEtat();
        getEtatDao().insert(etat);
      }
    } catch (PrjException e) {
      throw new PrjException(e.RetourMessage());
    }
View Full Code Here

Examples of modele.commun.Etat

    public int getRowCount() {
      return etat.size();
    }

    public Object getValueAt(int rowIndex, int columnIndex) {
      Etat etatAtRow = etat.get(rowIndex);
      switch (columnIndex) {
      case 0:
        return etatAtRow.getCdeEtat();
      case 1:
        return etatAtRow.getDescrip();
      case 2:
        return etatAtRow.getTypeEtat();


      default:
        throw new IllegalStateException("Le nombre de colonne ne peut pas d�passer " + NOMBRE_COLONNE + ". index demand� " + columnIndex);
      }
View Full Code Here

Examples of modele.commun.Etat

          row, column);
     
      ChargeVoitureTableModel model = (ChargeVoitureTableModel)table.getModel();
      ChargeVoiture chargeVoiture = model.getAt(row);
     
      Etat etat = chargeVoiture.getEtat();
     
      if (!etat.getDescrip().equals("Pay�")) {
        cellule.setBackground(MotsCleProjet.COULEUR_BLEUE);
      } else {
        cellule.setBackground(MotsCleProjet.COULEUR_GRIS);
      }
      return cellule;
View Full Code Here

Examples of modele.commun.Etat

              Chauffeur chauffeur = new Chauffeur(res.getInt(15));
              chauffeur.setNom(res.getString(16));
              result[0].setChauffeur(chauffeur);

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

Examples of modele.commun.Etat

              Chauffeur chauffeur = new Chauffeur(res.getInt(15));
              chauffeur.setNom(res.getString(16));
              fichePaie.setChauffeur(chauffeur);

              Etat etat = new Etat(res.getInt(17));
              etat.setDescrip(res.getString(18));
              fichePaie.setEtat(etat);

              listeFichePaie.add(fichePaie);
            }
          } finally {
View Full Code Here

Examples of modele.commun.Etat

              Chauffeur chauffeur = new Chauffeur(res.getInt(15));
              chauffeur.setNom(res.getString(16));
              result[0].setChauffeur(chauffeur);

              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
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.