Package modele.commun

Examples of modele.commun.TarifCourse


      dlgDialog = new TarifCourseEditionFenetre();
      dlgDialog.affiche();

      if (dlgDialog.OK_Button()) {
        TarifCourse tarifCourse = dlgDialog.renvoiTarifCourse();
        getTarifCourseDao().insert(tarifCourse);
      }
   
  }
View Full Code Here


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

    public Object getValueAt(int rowIndex, int columnIndex) {
      TarifCourse tarifCourseAtRow = tarifCourse.get(rowIndex);
      switch (columnIndex) {
      case 0:
        return tarifCourseAtRow.getId();
      case 1:
       
        return new SimpleDateFormat(MotsCleProjet.DATE_FORMAT).format(tarifCourseAtRow.getDateVigueur());

      case 2:
        return tarifCourseAtRow.getPrixTarif1();

      case 3:
        return tarifCourseAtRow.getPrixTarif2();

      case 4:
        return tarifCourseAtRow.getPrixPriseCharge();

      case 5:
        return tarifCourseAtRow.getPrixHeureAttente();

      case 6:
        return tarifCourseAtRow.getPrixForfaitNuit();

      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_TARIF_COURSE_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            if (res.next()) {
              result[0] = new TarifCourse(res.getInt(1));
              result[0].setDateVigueur(res.getDate(2));
              result[0].setPrixTarif1(res.getDouble(3));
              result[0].setPrixTarif2(res.getDouble(4));
              result[0].setPrixPriseCharge(res.getDouble(5));
              result[0].setPrixHeureAttente(res.getDouble(6));
View Full Code Here

          ResultSet res = null;
          try {
            smt = connection.prepareStatement(GET_ALL_TARIF_COURSE);
            res = smt.executeQuery();
            while (res.next()) {
              TarifCourse tarifCourse = new TarifCourse(res.getInt(1));             
              Date dateVigueur = new Date(res.getDate(2).getTime());
              tarifCourse.setDateVigueur(dateVigueur);
              tarifCourse.setPrixTarif1(res.getDouble(3));
              tarifCourse.setPrixTarif2(res.getDouble(4));
              tarifCourse.setPrixPriseCharge(res.getDouble(5));
              tarifCourse.setPrixHeureAttente(res.getDouble(6));
              tarifCourse.setPrixForfaitNuit(res.getDouble(7));
              listeTarifCourse.add(tarifCourse);
            }
          } finally {
            try {
              if (res != null) {
View Full Code Here

          ResultSet res = null;
          try {
            smt = connection.createStatement();
            res = smt.executeQuery("SELECT idTarif, dateVigueurTarif, prixTarif1, prixTarif2, prixPriseEnChrgJrTarif, prixHrAttenteTarif, prixSupplForfaitNuitTarif from ttarifactuel where idTarif = LAST_INSERT_ID()");
            if (res.next()) {
              result[0] = new TarifCourse(res.getInt(1));
             
              Date dateVigueur = new Date(res.getDate(2).getTime());
              result[0].setDateVigueur(dateVigueur);
             
              result[0].setPrixTarif1(res.getDouble(3));
View Full Code Here

TOP

Related Classes of modele.commun.TarifCourse

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.