Package com.structis.fichesst.shared.dto

Examples of com.structis.fichesst.shared.dto.GestionDto


      public void onGetEtatAvancement(EtatAvancementEvent event) {
        double cumuleSum = 0.0;
        double totalTraite = 0.0;
        if( event.getListGestion() != null && event.getListGestion().size() > 0 ) {
          listGestion = event.getListGestion();
          GestionDto gestionDto = null;
          for( int i = 0 ; i < listGestion.size() ; i++ ) {
            gestionDto = listGestion.get(i);
            totalTraite += gestionDto.getTraite();
          }
        }

        List<ProgressDto> listProcess = null;
        if( event.getListProcess() == null ) {
View Full Code Here


    NumberField amount2 = createNumberField(null);
    amount2.setName(GestionDto.AMOUNT2);
    formPanel.add(amount2, new FormData(ANCHOR_SPEC));
    amount2.setFieldLabel(messages.amount());

    final GestionDto dataModel = new GestionDto();
    dataModel.addChangeListener(new ChangeListener() {
      @Override
      public void modelChanged(ChangeEvent event) {
        SimpleDto m = dataModel.getMarche();
        if( m != null ) {
          dataModel.set(GestionDto.GROUPING, m.getLabel());
        }
      }
    });
    dataModel.initData();
    bindModel(formPanel, dataModel);
  }
View Full Code Here

    okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
        @Override
        public void componentSelected(ButtonEvent ce) {
      if (addGestionForm.isValid()) {
          GestionDto model = addGestionForm.getDataModel();
          gestionGrid.getStore().add(model);

          bus.fireEvent(new EtatAvancementEvent(gestionGrid.getStore().getModels(), null));
          dialog.hide();
      }
View Full Code Here

      if (list.get(i).getMarche() != null && !lstKeys.contains(list.get(i).getMarche().getLabel())) {
    lstKeys.add(list.get(i).getMarche().getLabel());
    keys += list.get(i).getMarche().getLabel() + Constants.SEPRATE;
      }
  }
  GestionDto gestionDto = null;
  String alltotalgestion = "";

  double allamount = 0.0;
  double allavenants = 0.0;
  double allarrete = 0.0;
  double allnonarrete = 0.0;
  double allprovision = 0.0;
  double alldevisrefuse = 0.0;
  double allreelactivitive = 0.0;
  double allamount2 = 0.0;
  double alltotalfdc = 0.0;
  double allTotalecart = 0.0;

  String summary = "";
  String budget = "";
  for (int i = 0; i < lstKeys.size(); i++) {
      String gestion = "";
      String totalgestion = "";
      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;
      String gestionComment = "";
      double ecartSum = 0.0;
      double totalfdcSum = 0.0;

      for (int j = 0; j < list.size(); j++) {
    gestionDto = list.get(j);
    if (lstKeys.get(i).equalsIgnoreCase(gestionDto.getMarche().getLabel())) {

        String tmp = gestionDto.getMarche().getLabel() + "                                          " + gestionDto.getTraite();
        gestionComment = gestionDto.getComment() != null ? gestionDto.getComment() : "";
        gestion += append(gestionDto.getDevis(), gestionDto.getStatut().getLabel(), gestionDto.getLabel(), gestionComment, gestionDto.getAmount(), tmp, gestionDto.getArrete(),
          gestionDto.getNonArrete(), gestionDto.getProvision(), gestionDto.getDevisRefuse(), gestionDto.getTotalFdc(), gestionDto.getReelActivitive(), gestionDto.getType()
            .getLabel(), gestionDto.getLabel2(), gestionDto.getAmount2(), gestionDto.getEcart());

        // Sum Group
        amount += gestionDto.getAmount();
        avenants += gestionDto.getTraite();
        arrete += gestionDto.getArrete();
        nonarrete += gestionDto.getNonArrete();
        provision += gestionDto.getProvision();
        devisrefuse += gestionDto.getDevisRefuse();
        reelactivitive += gestionDto.getReelActivitive();
        amount2 += gestionDto.getAmount2();
        ecartSum += gestionDto.getEcart();
        totalfdcSum += gestionDto.getTotalFdc();
    }
      }
      // Sum Gestion
      allamount += amount;
      allavenants += avenants;
View Full Code Here

      if (list.get(i).getMarche() != null && !lstKeys.contains(list.get(i).getMarche().getLabel())) {
        lstKeys.add(list.get(i).getMarche().getLabel());
        keys += list.get(i).getMarche().getLabel() + Constants.SEPRATE;
      }
    }
    GestionDto gestionDto = null;
    String alltotalgestion = "";
   
    double allamount = 0.0;
    double allavenants = 0.0;
    double allarrete = 0.0;
    double allnonarrete = 0.0;
    double allprovision = 0.0;
    double alldevisrefuse = 0.0;
    double allreelactivitive = 0.0;
    double allamount2 = 0.0;
    double alltotalecart = 0.0;
    double alltotalfdc = 0.0;
   
    String summary = "";
    String budget = "";
    for (int i = 0; i < lstKeys.size(); i++) {
      String gestion = "";
      String totalgestion = "";
      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;
      String gestionComment = "";
      double totalfdcSum = 0.0;
      double ecartSum = 0.0;
     
      for (int j = 0; j < list.size(); j++) {
        gestionDto = list.get(j);
        if (lstKeys.get(i).equalsIgnoreCase(gestionDto.getMarche().getLabel())) {
          String tmp = gestionDto.getMarche().getLabel() + "                                          " + gestionDto.getTraite();
          gestionComment = gestionDto.getComment() != null ? gestionDto.getComment() : "";
          /*
           * gestion += gestionDto.getDevis() + Constants.SEPRATE + gestionDto.getStatut().getLabel() + Constants.SEPRATE + gestionDto.getLabel() + Constants.SEPRATE + gestionComment +
           * Constants.SEPRATE + gestionDto.getAmount() + Constants.SEPRATE + tmp + Constants.SEPRATE + gestionDto.getArrete() + Constants.SEPRATE + gestionDto.getNonArrete() +
           * Constants.SEPRATE + gestionDto.getProvision() + Constants.SEPRATE + gestionDto.getDevisRefuse() + Constants.SEPRATE + calculateTotalFdc(gestionDto) + Constants.SEPRATE +
           * gestionDto.getReelActivitive() + Constants.SEPRATE + gestionDto.getType().getLabel() + Constants.SEPRATE + gestionDto.getLabel2() + Constants.SEPRATE + gestionDto.getAmount2() +
           * Constants.SEPRATE + calculateEcart(gestionDto) + Constants.SEPRATE;
           */
          gestion += append(gestionDto.getDevis(), gestionDto.getStatut().getLabel(), gestionDto.getLabel(), gestionComment, gestionDto.getAmount(), tmp, gestionDto.getArrete(),
              gestionDto.getNonArrete(), gestionDto.getProvision(), gestionDto.getDevisRefuse(), calculateTotalFdc(gestionDto), gestionDto.getReelActivitive(), gestionDto.getType()
                  .getLabel(), gestionDto.getLabel2(), gestionDto.getAmount2(), calculateEcart(gestionDto));
          // Sum Group
          amount += gestionDto.getAmount();
          avenants += gestionDto.getTraite();
          arrete += gestionDto.getArrete();
          nonarrete += gestionDto.getNonArrete();
          provision += gestionDto.getProvision();
          devisrefuse += gestionDto.getDevisRefuse();
          reelactivitive += gestionDto.getReelActivitive();
          amount2 += gestionDto.getAmount2();
          totalfdcSum += calculateTotalFdc(gestionDto);
          ecartSum += calculateEcart(gestionDto);
        }
      }
      allamount += amount;
View Full Code Here

    }
    return listDeductionSaved;
  }
 
  private List<GestionDto> getGestionSaved() {
    GestionDto gestionDto = null;
    List<GestionDto> listGestionSaved = new ArrayList<GestionDto>();
    for (int i = 0; i < centerPanel.getGestionDtoList().size(); i++) {
      gestionDto = centerPanel.getGestionDtoList().get(i);
      if (gestionDto.getDevis() != null || gestionDto.getStatut() != null || gestionDto.getLabel() != null || gestionDto.getComment() != null || gestionDto.getTraite() != 0
          || gestionDto.getMarche() != null || gestionDto.getTraite() != 0 || gestionDto.getArrete() != 0 || gestionDto.getNonArrete() != 0 || gestionDto.getProvision() != 0
          || gestionDto.getDevisRefuse() != 0 || gestionDto.getReelActivitive() != 0 || gestionDto.getType() != null || gestionDto.getLabel2() != null || gestionDto.getTraite() != 0) {
        if (gestionDto.getLock() == null)
          gestionDto.setLock(false);
        listGestionSaved.add(gestionDto);
      }
    }
    return listGestionSaved;
  }
View Full Code Here

TOP

Related Classes of com.structis.fichesst.shared.dto.GestionDto

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.