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

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


        }

        List<Penalty> penaltyList = persistence.getPenalties();
        if (penaltyList != null) {
          for (Iterator<Penalty> iterator = penaltyList.iterator(); iterator.hasNext();) {
            Penalty penalty = iterator.next();
            penalty.setFicheSt(null);
            iterator.remove();
          }
        }
      }
     
View Full Code Here


   *
   * @param listPenalty
   * @return
   */
  private String [] createPenalite(List<Penalty> listPenalty){
    Penalty penalty = null;
    String srcPenalty = "";
    double amount = 0.0;
    for (int j = 0; j < listPenalty.size(); j++) {         
      penalty = listPenalty.get(j);
      /*srcPenalty += penalty.getDate() + Constants.SEPRATE + penalty.getAmount() + Constants.SEPRATE + penalty.getComment() + Constants.SEPRATE;*/
      srcPenalty += append(penalty.getDate(),penalty.getAmount(),penalty.getComment());
      amount += penalty.getAmount();
    }
    String [] arr = {srcPenalty,amount + ""};
    return arr;
  }
View Full Code Here

TOP

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

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.