Package modele.chauffeur

Examples of modele.chauffeur.Contrat


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

              Contrat contrat = new Contrat(res.getInt(5));
              contrat.setStatut(res.getString(6));
              result[0].setContrat(contrat);

              MotifFinContrat motifFinContrat = new MotifFinContrat(
                  res.getInt(7));
              motifFinContrat.setLibelle(res.getString(8));
View Full Code Here


              Chauffeur chauffeur = new Chauffeur(res.getInt(3));
              chauffeur.setNom(res.getString(4));
              periodeDeTravail.setChauffeur(chauffeur);

              Contrat contrat = new Contrat(res.getInt(5));
              contrat.setStatut(res.getString(6));
              periodeDeTravail.setContrat(contrat);

              MotifFinContrat motifFinContrat = new MotifFinContrat(
                  res.getInt(7));
              motifFinContrat.setLibelle(res.getString(8));
View Full Code Here

              Chauffeur chauffeur = new Chauffeur(res.getInt(3));
              chauffeur.setNom(res.getString(4));
              periodeDeTravail.setChauffeur(chauffeur);

              Contrat contrat = new Contrat(res.getInt(5));
              contrat.setStatut(res.getString(6));
              periodeDeTravail.setContrat(contrat);

              MotifFinContrat motifFinContrat = new MotifFinContrat(
                  res.getInt(7));
              motifFinContrat.setLibelle(res.getString(8));
View Full Code Here

          try {
            smt = connection.prepareStatement(GET_CONTRAT_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            if (res.next()) {
              result[0] = new Contrat(res.getInt(1));
              result[0].setStatut(res.getString(2));

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

          ResultSet res = null;
          try {
            smt = connection.prepareStatement(GET_ALL_CONTRAT);
            res = smt.executeQuery();
            while (res.next()) {
              Contrat contrat = new Contrat(res.getInt(1));
              contrat.setStatut(res.getString(2));

              TypeContrat typeContrat = new TypeContrat(res.getInt(3));
              typeContrat.setLibelle(res.getString(4));
              contrat.setTypeContrat(typeContrat);

              Etat etat = new Etat(res.getInt(5));
              etat.setDescrip(res.getString(6));
              contrat.setEtat(etat);

              listeContrat.add(contrat);
            }
          } finally {
            try {
View Full Code Here

          ResultSet res = null;
          try {
            smt = connection.createStatement();
            res = smt.executeQuery("select idCont, statutCont,ttypecontrat.idTypeCont, ttypecontrat.descripTypeCont,  TEtat.idEtat,TEtat.descripEtat from tcontrat, ttypecontrat, TEtat where tcontrat.idTypeCont = ttypecontrat.idTypeCont and tcontrat.idEtat = TEtat.idEtat and idCont = LAST_INSERT_ID()");
            if (res.next()) {
              result[0] = new Contrat(res.getInt(1));
              result[0].setStatut(res.getString(2));

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

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

      if (dlgDialog.OK_Button()) {
        Contrat contrat = dlgDialog.renvoiContrat();
        getContratDao().insert(contrat);
      }
    } catch (PrjException e) {
      throw new PrjException(e.RetourMessage());
    }
View Full Code Here

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

    public Object getValueAt(int rowIndex, int columnIndex) {
      Contrat contratAtRow = contrat.get(rowIndex);
      switch (columnIndex) {
      case 0:
        return contratAtRow.getId();
      case 1:
        return contratAtRow.getStatut();
      case 2:
        return contratAtRow.getTypeContrat().getLibelle();

      case 3:
        return contratAtRow.getEtat().getDescrip();

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

TOP

Related Classes of modele.chauffeur.Contrat

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.