Package com.structis.fichesst.server.bean.domain

Examples of com.structis.fichesst.server.bean.domain.Gestion


        }

        List<Gestion> gestionList = persistence.getGestions();
        if (gestionList != null) {
          for (Iterator<Gestion> iterator = gestionList.iterator(); iterator.hasNext();) {
            Gestion gestion = iterator.next();
            gestion.setFicheSt(null);
            iterator.remove();
          }
        }

        List<Deduction> deductionList = persistence.getDeductions();
View Full Code Here


   * Create Key Gestion
   * @param listGestion
   * @return
   */
  private List<String> createKeyGestion(List<Gestion> listGestion){
    Gestion gestion = null;
    List<String> listKeyGestion = new ArrayList<String>();
    for (int i = 0; i < listGestion.size(); i++) {
      gestion = listGestion.get(i);
      if(listGestion.get(i).getMarche()!=null && !listKeyGestion.contains(listGestion.get(i).getMarche().getLabel())){
        listKeyGestion.add(gestion.getMarche().getLabel());
    }
    }
    return listKeyGestion;
  }
View Full Code Here

   * @return
   */
  private String createGestion(List<Gestion> listGestion,List<String> listSrcGestion,List<String> listSumGroupGestion){
    List<String> listKeyGestion = createKeyGestion(listGestion);
    //List<String> list = new ArrayList<String>();
    Gestion gestion = null;
    String sumGestion = "";
    //Calculate Sum Gestion
    double sumAmount = 0.0;
    double sumAvenants = 0.0;
    double sumArrete = 0.0;
    double sumNonarrete = 0.0;
    double sumProvision = 0.0;
    double sumDevisrefuse = 0.0;
    double sumReelactivitive = 0.0;
    double sumAmount2 = 0.0;
    double sumTotalecart = 0.0;
    double sumTotalfdc = 0.0;
    for(int i = 0;i<listKeyGestion.size();i++){
      String srcGestion = "";
      String sumGroupGestion = "";
      double amount = 0.0;
      double avenants = 0.0;
      double arrete = 0.0;
      double nonarrete = 0.0;
      double provision = 0.0;
      double devisrefuse = 0.0;
      double reelactivitive = 0.0;
      double amount2 = 0.0;
      double ecartSum = 0.0;
      double totalfdcSum = 0.0;
      for(int j =0 ; j < listGestion.size() ; j++){
        gestion = listGestion.get(j);
        if(gestion.getMarche().getLabel().equalsIgnoreCase(listKeyGestion.get(i))){
          String tmp = gestion.getMarche().getLabel() + "                                          " + gestion.getTraite();
          String gestionComment = gestion.getComment() != null ? gestion.getComment() : "";
          String statutLabel = gestion.getStatut() != null ? gestion.getStatut().getLabel() : "";
         
          /*srcGestion += gestion.getDevis() + Constants.SEPRATE + statutLabel + Constants.SEPRATE +
          gestion.getLabel() + Constants.SEPRATE + gestionComment + Constants.SEPRATE + gestion.getAmount() + Constants.SEPRATE +
          tmp + Constants.SEPRATE + gestion.getArrete() + Constants.SEPRATE +
          gestion.getNonArrete() + Constants.SEPRATE + gestion.getProvision() + Constants.SEPRATE +
          gestion.getDevisRefuse() + Constants.SEPRATE + calculateTotalFdc(gestion) + Constants.SEPRATE +
          gestion.getReelActivitive() + Constants.SEPRATE +
          gestion.getType().getLabel() + Constants.SEPRATE +
          gestion.getLabel2() + Constants.SEPRATE +
          gestion.getAmount2() + Constants.SEPRATE +
          calculateEcart(gestion) + Constants.SEPRATE;*/
          srcGestion += append(gestion.getDevis(),statutLabel,gestion.getLabel(),gestionComment,gestion.getAmount(),tmp,gestion.getArrete(),gestion.getNonArrete(),
                  gestion.getProvision(),gestion.getDevisRefuse(),calculateTotalFdc(gestion),gestion.getReelActivitive(),gestion.getType().getLabel(),
                  gestion.getLabel2(),gestion.getAmount2(),calculateEcart(gestion));
          //Group
          amount += gestion.getAmount();
          avenants += gestion.getTraite();
          arrete += gestion.getArrete();
          nonarrete += gestion.getNonArrete();
          provision += gestion.getProvision();
          devisrefuse += gestion.getDevisRefuse();
          reelactivitive += gestion.getReelActivitive();
          amount2 += gestion.getAmount2();
          ecartSum += calculateEcart(gestion);
          totalfdcSum += calculateTotalFdc(gestion);
        }
      }
      listSrcGestion.add(srcGestion);
View Full Code Here

  private String calculateEtatAvancement(List<Gestion> listGestion,List<Progress> listProcess){
    double cumuleSum = 0.0;
    double totalTraite = 0.0;
    double etatAvancement = 0.0;
    if(listGestion != null && listGestion.size() > 0 ) {
      Gestion gestion = null;
      for( int i = 0 ; i < listGestion.size() ; i++ ) {
        gestion = listGestion.get(i);
        totalTraite += gestion.getTraite();
      }
    }
    if( listProcess != null && listProcess.size() > 0 ) {
      Progress progress = null;
      for( int i = 0 ; i < listProcess.size() ; i++ ) {
View Full Code Here

TOP

Related Classes of com.structis.fichesst.server.bean.domain.Gestion

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.