Deleted ExtendedJasperreport
* Also deleted dependent files FEA: ItEr02S03MigracionZK5
This commit is contained in:
parent
58b770a11b
commit
cc2d98817f
3 changed files with 0 additions and 137 deletions
|
|
@ -1,37 +0,0 @@
|
|||
/*
|
||||
* This file is part of NavalPlan
|
||||
*
|
||||
* Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
|
||||
* Desenvolvemento Tecnolóxico de Galicia
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.navalplanner.web.common.components;
|
||||
|
||||
import org.zkoss.zkex.zul.Jasperreport;
|
||||
|
||||
/**
|
||||
* Extends ZK Jasperreport component to offer access to encodedSrc() method
|
||||
*
|
||||
* @author Diego Pino Garcia <dpino@igalia.com>
|
||||
*
|
||||
*/
|
||||
public class ExtendedJasperreport extends Jasperreport {
|
||||
|
||||
public String getEncodedSrc() {
|
||||
return super.getEncodedSrc();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
/*
|
||||
* This file is part of NavalPlan
|
||||
*
|
||||
* Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
|
||||
* Desenvolvemento Tecnolóxico de Galicia
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.navalplanner.web.reports;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.jasperreports.engine.JRDataSource;
|
||||
|
||||
import org.navalplanner.web.common.components.ExtendedJasperreport;
|
||||
|
||||
public class NavalplannerReport implements INavalplannerReport {
|
||||
|
||||
private ExtendedJasperreport report;
|
||||
|
||||
public NavalplannerReport() {
|
||||
|
||||
}
|
||||
|
||||
public NavalplannerReport(ExtendedJasperreport report, String reportName) {
|
||||
if (!reportName.endsWith(".jasper")) {
|
||||
reportName += ".jasper";
|
||||
}
|
||||
report.setSrc(reportName);
|
||||
setReport(report);
|
||||
}
|
||||
|
||||
public ExtendedJasperreport getReport() {
|
||||
return report;
|
||||
}
|
||||
|
||||
public void setReport(ExtendedJasperreport report) {
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String show(String type) {
|
||||
this.report.setType(type);
|
||||
String URI = report.getEncodedSrc();
|
||||
return URI.substring(URI.indexOf("/", 2));
|
||||
}
|
||||
|
||||
public void setParameters(Map parameters) {
|
||||
report.setParameters(parameters);
|
||||
}
|
||||
|
||||
public void setDatasource(JRDataSource dataSource) {
|
||||
report.setDatasource(dataSource);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
/*
|
||||
* This file is part of NavalPlan
|
||||
*
|
||||
* Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
|
||||
* Desenvolvemento Tecnolóxico de Galicia
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.navalplanner.web.reports;
|
||||
|
||||
import org.navalplanner.web.common.components.ExtendedJasperreport;
|
||||
|
||||
public class OrderCostsPerResourceReport extends NavalplannerReport {
|
||||
|
||||
public OrderCostsPerResourceReport(ExtendedJasperreport report) {
|
||||
report.setSrc("orderCostsPerResourceReport.jasper");
|
||||
setReport(report);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue