Package com.structis.fichesst.shared.dto

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


        dialog.add(addDataForm, new BorderLayoutData(LayoutRegion.CENTER));

        okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
          @Override
          public void componentSelected(ButtonEvent ce) {
            PenaltyDto model = addDataForm.getDataModel();
            penaltyGrid.getStore().add(model);
            penaltyGrid.getView().refresh(true);
          }
        });
View Full Code Here


     */
    totaldeduction = append(canto, badge, grue, lift, benne, nettoyage, autres, prorata, refacturations);
    values.add(new NameValuePair("totaldeduction", totaldeduction));

    List<PenaltyDto> listPenalty = penaltyGrid.getStore().getModels();
    PenaltyDto penaltyDto = null;
    String penaltys = "";
    String penaltyDate = "";
    // Grid 1
    for (int j = 0; j < listPenalty.size(); j++) {
      penaltyDto = listPenalty.get(j);
      penaltyDate = penaltyDto.getDate() != null ? DateTimeFormat.getFormat(Constants.DATE_FORMAT).format(penaltyDto.getDate()) : "";
      penaltys += penaltyDate + Constants.SEPRATE + numberFormat.format(penaltyDto.getAmount()) + Constants.SEPRATE + penaltyDto.getComment()
          + Constants.SEPRATE;
      amount += penaltyDto.getAmount();
    }
    if (penaltys != null && penaltys.length() > 0)
      penaltys = penaltys.substring(0, penaltys.length() - Constants.SEPRATE.length());
    values.add(new NameValuePair(ConstantClient.PENALTYDTO_ID_STR, penaltys));

View Full Code Here

    comment.setName(PenaltyDto.COMMENT);
    formPanel.add(comment, new FormData(ANCHOR_SPEC));

    add(formPanel);

    PenaltyDto dataModel = new PenaltyDto();
    dataModel.initData();
    bindModel(formPanel, dataModel);

    setDefaultBackgroundColor();
  }
View Full Code Here

    if (txtTotalDeduction.getValue() != null && txtTotalDeduction.getValue().length() > 0)
      totaldeduction = txtTotalDeduction.getValue().substring(0, txtTotalDeduction.getValue().length() - 1);
    values.add(new NameValuePair("totaldeduction", totaldeduction));
   
    List<PenaltyDto> listPenalty = centerPanel.getPenaltyDtoList();
    PenaltyDto penaltyDto = null;
    String penaltys = "";
    // Grid 1
    for (int j = 0; j < listPenalty.size(); j++) {
      penaltyDto = listPenalty.get(j);
      /*
       * penaltys += DateTimeFormat.getFormat(Constants.DATE_FORMAT).format(penaltyDto.getDate()) + Constants.SEPRATE + numberFormat.format(penaltyDto.getAmount()) + Constants.SEPRATE +
       * penaltyDto.getComment() + Constants.SEPRATE;
       */
      penaltys += append(penaltyDto.getDate(), penaltyDto.getAmount(), penaltyDto.getComment());
      amount += penaltyDto.getAmount();
    }
    if (penaltys != null && penaltys.length() > 0)
      penaltys = penaltys.substring(0, penaltys.length() - 1);
    values.add(new NameValuePair(ConstantClient.PENALTYDTO_ID_STR, penaltys));
   
View Full Code Here

    }
    return listGestionSaved;
  }
 
  private List<PenaltyDto> getPenaltySaved() {
    PenaltyDto penaltyDto = null;
    List<PenaltyDto> listPenaltySaved = new ArrayList<PenaltyDto>();
    for (int i = 0; i < centerPanel.getPenaltyDtoList().size(); i++) {
      penaltyDto = centerPanel.getPenaltyDtoList().get(i);
      if (penaltyDto.getDate() != null || penaltyDto.getAmount() != 0 || penaltyDto.getComment() != null) {
        listPenaltySaved.add(penaltyDto);
      }
    }
    return listPenaltySaved;
  }
View Full Code Here

TOP

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

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.