Package org.projectforge.fibu.kost.reporting

Examples of org.projectforge.fibu.kost.reporting.ReportStorage


    if (fileUpload != null) {
      try {
        final String clientFileName = fileUpload.getClientFileName();
        final InputStream is = fileUpload.getInputStream();
        final Report report = reportDao.createReport(is);
        reportStorage = new ReportStorage(report);
        reportStorage.setFileName(clientFileName);
        putUserPrefEntry(KEY_REPORT_STORAGE, reportStorage, false);
      } catch (final Exception ex) {
        log.error(ex.getMessage(), ex);
        error("An error occurred (see log files for details): " + ex.getMessage());
View Full Code Here


    final ReportObjectivesFilter filter = form.getFilter();
    if (filter.getFromDate() == null) {
      return;
    }
    log.info("load report: " + filter);
    final ReportStorage storage = getReportStorage();
    final Report report = storage.getRoot();
    final String currentReportId = storage.getCurrentReport().getId(); // Store current report id.
    final DateHolder day = new DateHolder(filter.getFromDate());
    report.setFrom(day.getYear(), day.getMonth());
    if (filter.getToDate() != null) {
      day.setDate(filter.getToDate());
    } else {
      day.setEndOfMonth();
    }
    report.setTo(day.getYear(), day.getMonth());
    reportDao.loadReport(report);
    storage.setCurrentReport(currentReportId); // Select previous current report.
  }
View Full Code Here

  }

  @Override
  public void onBeforeRender()
  {
    final ReportStorage reportStorage = parentPage.getReportStorage();
    final Report currentReport = reportStorage != null ? reportStorage.getCurrentReport() : null;
    final String reportPathHeading = getReportPath(currentReport);
    if (reportPathHeading != null) {
      reportPathPanel.setVisible(true);
    } else {
      reportPathPanel.setVisible(false);
View Full Code Here

  @SuppressWarnings("serial")
  @Override
  public void onBeforeRender()
  {
    super.onBeforeRender();
    final ReportStorage reportStorage = parentPage.getReportStorage();
    if (reportStorage == null) {
      currentReport = rootReport = null;
      // Nothing to be done.
      return;
    }
    currentReport = reportStorage.getCurrentReport();
    rootReport = reportStorage.getRoot();
    if (currentReport != rootReport) {
      path.setVisible(true);
      actionLinkRepeater.removeAll();
      for (final Report ancestorReport : currentReport.getPath()) {
        final WebMarkupContainer actionLinkContainer = new WebMarkupContainer(actionLinkRepeater.newChildId());
View Full Code Here

  @Override
  protected List<BuchungssatzDO> buildList()
  {
    List<BuchungssatzDO> list = null;
    if (StringUtils.isNotEmpty(reportId) == true) {
      final ReportStorage reportStorage = (ReportStorage) getUserPrefEntry(ReportObjectivesPage.KEY_REPORT_STORAGE);
      if (reportStorage != null) {
        report = reportStorage.findById(this.reportId);
        if (report != null) {
          if (this.businessAssessmentRowId != null) {
            final BusinessAssessmentRow row = report.getBusinessAssessment().getRow(businessAssessmentRowId);
            if (row != null) {
              list = row.getAccountRecords();
View Full Code Here

TOP

Related Classes of org.projectforge.fibu.kost.reporting.ReportStorage

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.