From eeb913b736223c4d3ba5770a4f34e6dcb8067806 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Tue, 11 Sep 2012 12:37:28 +0200 Subject: [PATCH] Add basic controller and zul for budget report FEA: ItEr77S09WBSReport --- .../ProjectStatusReportController.java | 53 ++++++++++++ .../webapp/reports/projectStatusReport.zul | 80 +++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 libreplan-webapp/src/main/java/org/libreplan/web/reports/ProjectStatusReportController.java create mode 100644 libreplan-webapp/src/main/webapp/reports/projectStatusReport.zul diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/reports/ProjectStatusReportController.java b/libreplan-webapp/src/main/java/org/libreplan/web/reports/ProjectStatusReportController.java new file mode 100644 index 000000000..9cd0c04fc --- /dev/null +++ b/libreplan-webapp/src/main/java/org/libreplan/web/reports/ProjectStatusReportController.java @@ -0,0 +1,53 @@ +/* + * This file is part of LibrePlan + * + * Copyright (C) 2012 Igalia, S.L. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package org.libreplan.web.reports; + +import net.sf.jasperreports.engine.JRDataSource; +import net.sf.jasperreports.engine.JREmptyDataSource; + +import org.zkoss.zk.ui.Component; + +/** + * Controller for UI operations of Project Satus report. + * + * @author Manuel Rego Casasnovas + */ +@SuppressWarnings("serial") +public class ProjectStatusReportController extends LibrePlanReportController { + + private static final String REPORT_NAME = "projectStatusReport"; + + @Override + public void doAfterCompose(Component comp) throws Exception { + super.doAfterCompose(comp); + comp.setAttribute("controller", this); + } + + @Override + protected String getReportName() { + return REPORT_NAME; + } + + @Override + protected JRDataSource getDataSource() { + return new JREmptyDataSource(); + } + +} \ No newline at end of file diff --git a/libreplan-webapp/src/main/webapp/reports/projectStatusReport.zul b/libreplan-webapp/src/main/webapp/reports/projectStatusReport.zul new file mode 100644 index 000000000..d4a8cd532 --- /dev/null +++ b/libreplan-webapp/src/main/webapp/reports/projectStatusReport.zul @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +