Package ch.bsgroup.scrumit.domain

Examples of ch.bsgroup.scrumit.domain.BurnDown


    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
    List<BurnDown> bdList;
    try {
      bdList = burnDownChartDao.getBurnDown(sprintId, df.parse(df.format(new Date())));
      for (Iterator<BurnDown> iterator = bdList.iterator(); iterator.hasNext();) {
        BurnDown bd = iterator.next();
        bd.setOpen(bd.getOpen()+openDuration);
        bd.setDone(bd.getDone()+doneDuration);
      }
      burnDownChartDao.updateBurnDown(bdList);
    } catch (ParseException e) {
      e.printStackTrace();
    }
View Full Code Here


        c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DATE));
      c.setTime(s.getEndDate())
      Calendar endCalendar = new GregorianCalendar(
        c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DATE));
      boolean writeBurnDown = false;
      BurnDown bd;
      if (startCalendar.compareTo(endCalendar) <= 0) {
        writeBurnDown = true;
      }
      while (startCalendar.compareTo(endCalendar) <= 0) {
        bd = new BurnDown(0, 0, sprint.getId(), startCalendar.getTime());
        bdList.add(bd);
        startCalendar.add(Calendar.DATE, 1);
      }
      if (writeBurnDown) {
        this.burnDownChartService.addBurnDownForSprint(bdList);
View Full Code Here

TOP

Related Classes of ch.bsgroup.scrumit.domain.BurnDown

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.