Package org.projectforge.timesheet

Examples of org.projectforge.timesheet.TimesheetDao


    } else if (node.getId().equals(root.getId()) == false) {
      // This node is not the root node:
      node.setParent(root);
    }
    taskMap.put(node.getId(), node);
    final TimesheetDao timesheetDao = Registry.instance().getDao(TimesheetDao.class);
    final TimesheetDO timesheet = new TimesheetDO().setTask(task);
    final boolean bookable = timesheetDao.checkTaskBookable(timesheet, null, OperationType.INSERT, false);
    node.bookableForTimesheets = bookable;
    return addTaskNode(node, parent);
  }
View Full Code Here


      log.debug(this.toString());
    }
    readTotalDurations();
    refreshOrderPositionReferences();
    // Now update the status: bookable for time sheets:
    final TimesheetDao timesheetDao = Registry.instance().getDao(TimesheetDao.class);
    final TimesheetDO timesheet = new TimesheetDO();
    for (final TaskDO task : taskList) {
      node = taskMap.get(task.getId());
      timesheet.setTask(task);
      final boolean bookable = timesheetDao.checkTaskBookable(timesheet, null, OperationType.INSERT, false);
      node.bookableForTimesheets = bookable;
    }
    log.info("Initializing task tree done.");
  }
View Full Code Here

      } else {
        setCalDate(cal, cal.get(java.util.Calendar.YEAR), offset);
      }
      filter.setStartTime(cal.getTime());

      final TimesheetDao timesheetDao = Registry.instance().getDao(TimesheetDao.class);
      final List<TimesheetDO> timesheetList = timesheetDao.getList(filter);

      // iterate over all timesheets and adds each event to the calendar
      for (final TimesheetDO timesheet : timesheetList) {
        final String uid = TeamCalConfig.get().createTimesheetUid(timesheet.getId());
        String summary;
View Full Code Here

          final String note = getData().getNote();
          if (StringUtils.isNotBlank(note) == true) {
            buf.append("\n").append(note);
          }
          timesheet.setDescription(buf.toString());
          final TimesheetDao timesheetDao = Registry.instance().getDao(TimesheetDao.class);
          timesheetDao.setUser(timesheet, getUserId());
          final TimesheetEditPage timesheetEditPage = new TimesheetEditPage(timesheet);
          timesheetEditPage.setReturnToPage(getReturnToPage());
          setResponsePage(timesheetEditPage);
        };
      }, getString("plugins.teamcal.event.convert2Timesheet"));
View Full Code Here

TOP

Related Classes of org.projectforge.timesheet.TimesheetDao

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.