Compare commits

...

21 Commits

Author SHA1 Message Date
Bruce.Deng-邓铖臻 10a7bacd48 Pull request #67: 合persist11 12 months ago
Bruce.Deng-邓铖臻 e47c617a34 Pull request #66: REPORT-109627 导出api使用maven引入jar版本问题 12 months ago
Bruce.Deng 7c9d423df1 REPORT-109627 导出api使用maven引入jar版本问题 12 months ago
kerry-王周勇 1393efc5f7 Pull request #62: REPORT-96002【来源客户BUG REPORT-94898】FR11程序网络报表的demo类,更新文档和demo代码 2 years ago
kerry ee67e4df63 REPORT-96002【来源客户BUG REPORT-94898】FR11程序网络报表的demo类,更新文档和demo代码 2 years ago
Bruce.Deng-邓铖臻 3c84822025 Pull request #61: 无jira任务,release/10.0合到persist/10.0 2 years ago
Icey.Zhang c974449e23 Pull request #52: 10.0.16-0526号版本插件代码合并 4 years ago
Lanlan c21ebed9f4 Pull request #45: 误删自定义函数,恢复 4 years ago
Okcean ce7482718d Pull request #40: 10.0.14-0311号版本插件代码合并 4 years ago
Okcean 26e083a658 Pull request #36: 1127插件代码合并 4 years ago
Bruce.Deng d1776fa526 Pull request #31: 无JIRA任务 插件发布,release合persist 4 years ago
Leo.Tsai ca629a1ff6 Pull request #27: Release/10.0 4 years ago
Leo.Cai 99ff96fea6 代码做了修改,而且要导入一个新的JAR包:slf4j-simple-1.7.25.jar,JAR包下载参见文档https://help.finereport.com/doc-view-735.html 的3.1节 4 years ago
Lanlan e1f402023f Pull request #25: 无JIRA任务 插件发布,release合persist 5 years ago
Lanlan 5a3d9301af Merge pull request #23 in PG/plugin-report-doc-demo from release/10.0 to persist/10.0 5 years ago
susie 34ec362f64 Merge pull request #21 in PG/plugin-report-doc-demo from ~HARRISON/plugin-report-doc-demo:persist/10.0 to persist/10.0 5 years ago
Harrison c81c49f7ad DEMO-3230 Release10 module无法引用 5 years ago
Lanlan 9a474478b3 Merge pull request #19 in PG/plugin-report-doc-demo from release/10.0 to persist/10.0 5 years ago
Lanlan 10e88848e4 Merge pull request #12 in PG/plugin-report-doc-demo from release/10.0 to persist/10.0 5 years ago
Lanlan d6274eea84 Merge pull request #10 in PG/plugin-report-doc-demo from release/10.0 to persist/10.0 5 years ago
Lanlan de51123131 Merge pull request #8 in PG/plugin-report-doc-demo from release/10.0 to persist/10.0 5 years ago
  1. 3
      plugin.xml
  2. 10
      pom.xml
  3. 9
      readme.md
  4. 14
      src/main/java/com/fr/demo/SimpleReportletDemoFrm.java

3
plugin.xml

@ -4,12 +4,13 @@
<name><![CDATA[文档demo代码集成]]></name>
<active>yes</active>
<hidden>no</hidden>
<version>1.1.1</version>
<version>1.1.2</version>
<env-version>10.0~</env-version>
<jartime>2018-08-02</jartime>
<vendor>finereport</vendor>
<description><![CDATA[集成帮助文档中的demo代码]]></description>
<change-notes><![CDATA[
[2023-11-28] 插件适配11<br>
[2018-01-25] 发布。<br>
[2018-08-02] 插件适配10
]]></change-notes>

10
pom.xml

@ -3,10 +3,10 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.fr.plugin</groupId>
<artifactId>starter</artifactId>
<version>10.0</version>
<version>11.0</version>
<packaging>pom</packaging>
<properties>
<common-version>10.0-RELEASE-SNAPSHOT</common-version>
<common-version>11.0-RELEASE-SNAPSHOT</common-version>
<web-inf-bucket>${project.basedir}/webroot/WEB-INF</web-inf-bucket>
</properties>
<dependencies>
@ -28,6 +28,12 @@
<version>${common-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fr.cbb</groupId>
<artifactId>fine-cbb</artifactId>
<version>${common-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fr.webui</groupId>
<artifactId>fine-webui</artifactId>

9
readme.md

@ -19,8 +19,7 @@
## 修改依赖的jar版本
只需要更改pom.xml中的common-version属性即可。
|common-version|含义|
|--------------|----|
|10.0-RELEASE-SNAPSHOT|10.0的测试版本快照|
|10.0-SNAPSHOT|10.0的正式版本快照|
|10.0|10.0的正式版本|
| common-version | 含义 |
|-----------------------|-------------|
| 11.0-RELEASE-SNAPSHOT | 11.0的测试版本快照 |
| 11.0-PERSIST-SNAPSHOT | 11.0的正式版本快照 |

14
src/main/java/com/fr/demo/SimpleReportletDemoFrm.java

@ -1,16 +1,15 @@
package com.fr.demo;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.fr.form.main.DashboardTemplate;
import com.fr.form.main.Form;
import com.fr.form.main.FormIO;
import com.fr.log.FineLoggerFactory;
import com.fr.web.weblet.Formlet;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
public class SimpleReportletDemoFrm extends Formlet {
@Override
public void setParameterMap(Map arg0) {
// TODO Auto-generated method stub
@ -18,17 +17,20 @@ public class SimpleReportletDemoFrm extends Formlet {
}
@Override
protected Form createForm(HttpServletRequest request) throws Exception {
protected DashboardTemplate createDashboard(HttpServletRequest req) throws Exception {
Form form = null;
//模板的相对路径
String tplPath = "//doc//frm//决策报表入门.frm";
this.setTplPath(tplPath);
try {
form = FormIO.readForm(tplPath);
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
return form;
}
}
}

Loading…
Cancel
Save