Package modele.chauffeur

Examples of modele.chauffeur.TypeContrat


            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);

              Etat etat = new Etat(res.getInt(5));
              etat.setDescrip(res.getString(6));
              result[0].setEtat(etat);
View Full Code Here


            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);
View Full Code Here

            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);

              Etat etat = new Etat(res.getInt(5));
              etat.setDescrip(res.getString(6));
              result[0].setEtat(etat);
View Full Code Here

    dlgDialog = new TypeContratEditionFenetre ();

    dlgDialog.affiche();

    if (dlgDialog.OK_Button()) {
      TypeContrat typeContrat = dlgDialog.renvoiTypeContrat();
      getTypeContratDao().insert(typeContrat);
    }
  }
View Full Code Here

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

    public Object getValueAt(int rowIndex, int columnIndex) {
      TypeContrat typeContratAtRow = typeContrat.get(rowIndex);
      switch (columnIndex) {
      case 0:
        return typeContratAtRow.getId();

      case 1:
        return typeContratAtRow.getLibelle();

      case 2:
        return typeContratAtRow.getNombreHeure();
        //return new SimpleDateFormat(MotsCleProjet.TIME_FORMAT).format(typeContratAtRow.getNombreHeure());

      case 3:
        return typeContratAtRow.getPourcentSalaire();

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

          try {
            smt = connection.prepareStatement(GET_TYPE_CONTRAT_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            if (res.next()) {
              result[0] = new TypeContrat(res.getInt(1));
              result[0].setLibelle(res.getString(2));
              result[0].setNombrebHeure(res.getString(3));
              /*Date nombreHeureContrat =  new java.sql.Date(res.getTimestamp(3).getTime());
              result[0].setNombrebHeure(nombreHeureContrat);*/
             
 
View Full Code Here

          ResultSet res = null;
          try {
            smt = connection.prepareStatement(GET_ALL_TYPE_CONTRAT);
            res = smt.executeQuery();
            while (res.next()) {
              TypeContrat typeContrat = new TypeContrat(res.getInt(1));
              typeContrat.setLibelle(res.getString(2));
              typeContrat.setNombrebHeure(res.getString(3));
              /*
              Date nbHrContrat = new java.sql.Date(res.getTimestamp(3).getTime());
              typeContrat.setNombrebHeure(nbHrContrat); */
                                         
              //typeContrat.setPourcentSalaire(res.getString(4));
              BigDecimal pourcentSalaire = res.getBigDecimal(4);
              typeContrat.setPourcentSalaire(pourcentSalaire);

              listeTypeContrat.add(typeContrat);
            }
          }
          finally {
View Full Code Here

          try {
            smt = connection.createStatement();
            res = smt.executeQuery("SELECT idTypeCont, descripTypeCont, nbrHrTypeCont, pourcentSalaireTypeCont from ttypeContrat where idTypeCont = LAST_INSERT_ID()");

            if (res.next()) {
              result[0] = new TypeContrat(res.getInt(1));
              result[0].setLibelle(res.getString(2));
              result[0].setNombrebHeure(res.getString(3));
              /*
              Date nombreHeureContrat =new java.sql.Date(res.getTimestamp(3).getTime());
              result[0].setNombrebHeure(nombreHeureContrat);
View Full Code Here

TOP

Related Classes of modele.chauffeur.TypeContrat

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.