Examples of FichePaie


Examples of modele.chauffeur.FichePaie

          try {
            smt = connection.prepareStatement(GET_FICHEPAIE_BY_ID);
            smt.setInt(1, id);
            res = smt.executeQuery();
            if (res.next()) {
              result[0] = new FichePaie(res.getInt(1));
             
              Date datePaiement =  new Date(res.getDate(2).getTime());             
              result[0].setDatePaie(datePaiement);
             
              result[0].setNbrJourTravailPreste(res.getInt(3));
View Full Code Here

Examples of modele.chauffeur.FichePaie

          ResultSet res = null;
          try {
            smt = connection.prepareStatement(GET_ALL_FICHEPAIE);
            res = smt.executeQuery();
            while (res.next()) {
              FichePaie fichePaie = new FichePaie(res.getInt(1));
             
             
              Date datePaie = new Date(res.getDate(2).getTime());
              fichePaie.setDatePaie(datePaie);
              fichePaie.setNbrJourTravailPreste(res.getInt(3));
              fichePaie.setNbrHrTravailPreste(res.getDouble(4));
              fichePaie.setRecetteSalaireVrut(res.getDouble(5));
              fichePaie.setBrutOnss(res.getDouble(6));
              fichePaie.setPrecompteProfessionel(res.getDouble(7));
              fichePaie.setIndemnite(res.getDouble(8));
              fichePaie.setCotisationSecu(res.getDouble(9));
              fichePaie.setChargePatronal(res.getDouble(10));
              fichePaie.setReductionBasRevenu(res.getDouble(11));
              fichePaie.setSalaireNet(res.getDouble(12));
              fichePaie.setAvanceSalaire(res.getDouble(13));
              fichePaie.setMontantAPayer(res.getDouble(14));             

              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 {
            try {
View Full Code Here

Examples of modele.chauffeur.FichePaie

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

        if (dlgDialog.OK_Button()) {
          FichePaie fichePaie = dlgDialog.renvoiFichePaie();
          getFichePaieDao().insert(fichePaie);
        }
      } catch (PrjException e) {
        throw new PrjException(e.RetourMessage());
      }
View Full Code Here

Examples of modele.chauffeur.FichePaie

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

      public Object getValueAt(int rowIndex, int columnIndex) {
        FichePaie fichePaieAtRow = fichesPaie.get(rowIndex);
        switch (columnIndex) {
        case 0:
          return fichePaieAtRow.getId();
         
        case 1:
          return new SimpleDateFormat(MotsCleProjet.DATE_FORMAT).format(fichePaieAtRow.getDatePaie());
        case 2:
          return fichePaieAtRow.getNbrJourTravailPreste();
        case 3:
          return fichePaieAtRow.getNbrHrTravailPreste();
         
        case 4:
          return fichePaieAtRow.getRecetteSalaireBrut();
        case 5:
          return fichePaieAtRow.getBrutOnss();
        case 6:
          return fichePaieAtRow.getPrecompteProfessionel();
        case 7:
          return fichePaieAtRow.getIndemnite();
        case 8:
          return fichePaieAtRow.getCotisationSecu();
        case 9:
          return fichePaieAtRow.getChargePatronal();
        case 10:
          return fichePaieAtRow.getReductionBasRevenu();
        case 11:
          return fichePaieAtRow.getSalaireNet();
        case 12:
          return fichePaieAtRow.getAvanceSalaire();
        case 13:
          return fichePaieAtRow.getMontantAPayer();         
        case 14:
          return fichePaieAtRow.getChauffeur().getNom();
        case 15:
          return fichePaieAtRow.getEtat().getDescrip();

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

          int column) {
        Component cellule = super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
            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);
View Full Code Here

Examples of modele.chauffeur.FichePaie

          ResultSet res = null;
          try {
            smt = connection.createStatement();
            res = smt.executeQuery("select idFicheSalChauf, datePaieSalChauf,nbreJrTravPresteChauf,nbrHrTravPresteChauf, recetteSalBrutChauf, brutOnssChauf, precompteProfChauf, indemniteRgptChauf,cotisationSecuChauf, chargePatronalChauf,reductionBasRevenuChauf, salaireNetChauf, avanceSalChauf, montantAPayer, tchauffeurs.idChauf, tchauffeurs.nomChauf,  TEtat.idEtat,TEtat.descripEtat from tfichesalairechauffeur, tchauffeurs, TEtat where tfichesalairechauffeur.idChauf = tchauffeurs.idChauf and tfichesalairechauffeur.idEtat = TEtat.idEtat and idFicheSalChauf = LAST_INSERT_ID()");
            if (res.next()) {
              result[0] = new FichePaie(res.getInt(1));
             
              Date datePaiement =  new Date(res.getDate(2).getTime());             
              result[0].setDatePaie(datePaiement);
             
              result[0].setNbrJourTravailPreste(res.getInt(3));
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.