Examples of FichePaiementFacture


Examples of modele.charge.FichePaiementFacture

          try {
            smt = connection.prepareStatement(GET_FICHEPAIE_FACTURE_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            if (res.next()) {
              result[0] = new FichePaiementFacture(res.getInt(1));

              Date datePaieFacture = new Date(res.getDate(2).getTime());
              result[0].setDatePaieFacture(datePaieFacture);

              result[0].setLibellePaieFacture(res.getString(3));
View Full Code Here

Examples of modele.charge.FichePaiementFacture

          ResultSet res = null;
          try {
            smt = connection.prepareStatement(GET_ALL_FICHEPAIE_FACTURE);
            res = smt.executeQuery();
            while (res.next()) {
              FichePaiementFacture fichePaiementFacture = new FichePaiementFacture(res.getInt(1));

              Date datePaieFacture = new Date(res.getDate(2).getTime());
              fichePaiementFacture.setDatePaieFacture(datePaieFacture);

              fichePaiementFacture.setLibellePaieFacture(res.getString(3));
              fichePaiementFacture.setMontantPaieFacture(res.getBigDecimal(4));


              ChargeVoiture chargeVoiture = new ChargeVoiture(res.getInt(5));
              chargeVoiture.setLibelle(res.getString(6));
              fichePaiementFacture.setChargeVoiture(chargeVoiture);

              listeFichePaiementFacture.add(fichePaiementFacture);
            }
          } finally {
            try {
View Full Code Here

Examples of modele.charge.FichePaiementFacture

          ResultSet res = null;
          try {
            smt = connection.createStatement();
            res = smt.executeQuery("select idPaieFact, datePaieFact, libellePaieFact, montPaieFact, tchargevoiture.idChrgVoit, tchargevoiture.libelleChrgVoit from TFichePaiementFacture, tchargeVoiture where TFichePaiementFacture.idChrgVoit = tchargevoiture.idChrgVoit and idPaieFact = LAST_INSERT_ID()");
            if (res.next()) {
              result[0] = new FichePaiementFacture(res.getInt(1));

              Date datePaieFact = new Date(res.getDate(2).getTime());
              fichePaiementFacture.setDatePaieFacture(datePaieFact);

              result[0].setLibellePaieFacture(res.getString(3));
View Full Code Here

Examples of modele.charge.FichePaiementFacture

          try {
            smt = connection.prepareStatement(GET_ALL_FICHEPAIE_FACTURE_BY_CHARGE);
            smt.setInt(1, chargeVoiture.getId());
            res = smt.executeQuery();
            while (res.next()) {
              FichePaiementFacture fichePaiementFacture = new FichePaiementFacture(res.getInt(1));

              java.util.Date datePaieFacture = new java.util.Date(res.getDate(2).getTime());
              fichePaiementFacture.setDatePaieFacture(datePaieFacture);

              fichePaiementFacture.setLibellePaieFacture(res.getString(3));
              fichePaiementFacture.setMontantPaieFacture(res.getBigDecimal(4));

              fichePaiementFacture.setChargeVoiture(chargeVoiture);

              listeFichePaiementFacture.add(fichePaiementFacture);
            }
          } finally {
            try {
View Full Code Here

Examples of modele.charge.FichePaiementFacture

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

      if (dlgDialog.OK_Button()) {
        FichePaiementFacture fichePaiementFacture = dlgDialog.renvoiFichePaiementFacture();
        getFichePaiementFactureDao().insert(fichePaiementFacture);
      }
    } catch (PrjException e) {
      throw new PrjException(e.RetourMessage());
    }
View Full Code Here

Examples of modele.charge.FichePaiementFacture

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

    public Object getValueAt(int rowIndex, int columnIndex) {
      FichePaiementFacture fichePaiementFactureAtRow = fichePaiementFacture.get(rowIndex);
      switch (columnIndex) {
      case 0:
        return fichePaiementFactureAtRow.getId();
      case 1:       
        return new SimpleDateFormat(MotsCleProjet.DATE_FORMAT).format(fichePaiementFactureAtRow.getDatePaieFacture());
      case 2:
        return fichePaiementFactureAtRow.getLibellePaieFcature();
      case 3:
        return fichePaiementFactureAtRow.getMontantPaieFacture();
      case 4:
        return fichePaiementFactureAtRow.getChargeVoiture().getId()+". "+fichePaiementFactureAtRow.getChargeVoiture().getLibelle();
     

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

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

      if (dlgDialog.OK_Button()) {
        FichePaiementFacture fichePaiementFacture = dlgDialog.renvoiFichePaiementFacture();
        getFichePaiementFactureDao().insert(fichePaiementFacture);
      }
    } catch (PrjException e) {
      throw new PrjException(e.RetourMessage());
    }
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.