Examples of AnonymousDto


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

          autres += deductionDto.getAutres();
        }
        grid_3.getStore().removeAll();

        List<AnonymousDto> models = new ArrayList<AnonymousDto>();
        AnonymousDto model = null;

        String[] column1s = { messages.nombre(), messages.amount() }
       
        NumberField canto = (NumberField)ComponentManager.get().get("INFORMATIONAL_PANEL_CANTO_ID");
        NumberField badge = (NumberField)ComponentManager.get().get("INFORMATIONAL_PANEL_BADGE_ID");       
        NumberField grue = (NumberField)ComponentManager.get().get("INFORMATIONAL_PANEL_GRUE_ID");
        NumberField lift = (NumberField)ComponentManager.get().get("INFORMATIONAL_PANEL_LIFT_ID");
        NumberField benne = (NumberField)ComponentManager.get().get("INFORMATIONAL_PANEL_BENNE_ID");     
        NumberField netoyage = (NumberField)ComponentManager.get().get("INFORMATIONAL_PANEL_NETOYAGE_ID");
       
        double cantoValue = 0.0;
        double badgeValue = 0.0;
        double grueValue = 0.0;
        double liftValue = 0.0;
        double benneValue = 0.0;
        double netoyageValue = 0.0;
        if(canto!=null && canto.getValue()!=null)
          cantoValue = canto.getValue().doubleValue();
        if(badge!=null && badge.getValue()!=null)
          badgeValue = badge.getValue().doubleValue();
        if(grue!=null && grue.getValue()!=null)
          grueValue = grue.getValue().doubleValue();
        if(lift!=null && lift.getValue()!=null)
          liftValue = lift.getValue().doubleValue();
        if(benne!=null && benne.getValue()!=null)
          benneValue = benne.getValue().doubleValue();
        if(netoyage!=null && netoyage.getValue()!=null)
          netoyageValue = netoyage.getValue().doubleValue();
        double[] column2s = { cantoQuantity, (cantoQuantity * cantoValue) };
        double[] column3s = { badgeQuantity, (badgeQuantity * badgeValue) };
        double[] column4s = { grueQuantity, (grueQuantity * grueValue) };
        double[] column5s = { liftQuantity, (liftQuantity * liftValue) };
        double[] column6s = { benneQuantity, (benneQuantity * benneValue) };
        double[] column7s = { nettoyageQuantity,(nettoyageQuantity * netoyageValue) };
        double[] column8s = { 0, autres };
        grid_3_report = "";
        for( int i = 0 ; i < 2 ; i++ ) {
          model = new AnonymousDto();
          model.set(AnonymousDto.COLUMN_1, column1s[i]);
          model.set(AnonymousDto.COLUMN_2, column2s[i]);
          model.set(AnonymousDto.COLUMN_3, column3s[i]);
          model.set(AnonymousDto.COLUMN_4, column4s[i]);
          model.set(AnonymousDto.COLUMN_5, column5s[i]);
          model.set(AnonymousDto.COLUMN_6, column6s[i]);
          model.set(AnonymousDto.COLUMN_7, column7s[i]);
          model.set(AnonymousDto.COLUMN_8, column8s[i]);
          //For report
          grid_3_report +=  column2s[i] + Constants.SEPRATE + column3s[i] + Constants.SEPRATE + column4s[i] +
          Constants.SEPRATE + column5s[i] + Constants.SEPRATE + column6s[i] + Constants.SEPRATE + column7s[i] + Constants.SEPRATE + column8s[i] + Constants.SEPRATE;
          models.add(model);
        }
View Full Code Here

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

    penaltyGrid.getStore().removeAll();

    List<AnonymousDto> models = new ArrayList<AnonymousDto>();

    AnonymousDto model = null;

    String[] column1s = { messages.refacturations(), messages.prorata2(), messages.refacturationsDontProrata(), messages.refacturationsDontProrataEtAutre(), messages.penalites() };
    double[] column2s = { totalRefacturation, totalProrata, totalRefacturationDontProrata, refacturationsDontProrataEtAutre, totalPenalty };
    double[] column3s = { refacturationPercentage, prorataPercentage, refacturationDontProrataPercentage, refacturationsDontProrataEtAutrePercentage, penaltyPercentage };
    //For report
    detail_des_retenues_appliques ="";
    NumberFormat numberFormat = NumberFormat.getFormat(Constants.NUMBER_FORMAT);
    for( int i = 0 ; i < 5 ; i++ ) {
      model = new AnonymousDto();
      model.set(AnonymousDto.COLUMN_1, column1s[i]);
      model.set(AnonymousDto.COLUMN_2, column2s[i]);
      model.set(AnonymousDto.COLUMN_3, column3s[i]);
      //For report
      detail_des_retenues_appliques += numberFormat.format(column2s[i]) + Constants.SEPRATE + (numberFormat.format(column3s[i] * 100) + "%") + Constants.SEPRATE;
      models.add(model);
    }
    //For Report
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.