Browse Source

Pull request #38: 程序网络报表-https://help.fanruan.com/finereport/doc-view-685.html

Merge in PG/plugin-report-doc-demo from ~ROSIE.XU/plugin-report-doc-demo-rosie:release/10.0 to release/10.0

* commit 'cb4e9b9a7e45d2db8f269d83591a4adcfd94db44':
  程序网络报表-https://help.fanruan.com/finereport/doc-view-685.html 决策报表示例代码修改
  程序网络报表-https://help.fanruan.com/finereport/doc-view-685.html 帮助文档中二次开发模块,程序网络报表文档中决策报表的示例代码
release/11.0
ju|剧浩宇 4 years ago
parent
commit
23ff4263ea
  1. 34
      src/main/java/com/fr/demo/SimpleReportletDemoFrm.java

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

@ -0,0 +1,34 @@
package com.fr.demo;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.fr.form.main.Form;
import com.fr.form.main.FormIO;
import com.fr.log.FineLoggerFactory;
import com.fr.web.weblet.Formlet;
public class SimpleReportletDemoFrm extends Formlet {
@Override
public void setParameterMap(Map arg0) {
// TODO Auto-generated method stub
}
@Override
protected Form createForm(HttpServletRequest request) 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