From ee67e4df638c289cfa0bd913fe91f0934a47108a Mon Sep 17 00:00:00 2001 From: kerry Date: Tue, 16 May 2023 11:12:49 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-96002=E3=80=90=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E5=AE=A2=E6=88=B7BUG=20REPORT-94898=E3=80=91FR11=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=BD=91=E7=BB=9C=E6=8A=A5=E8=A1=A8=E7=9A=84demo?= =?UTF-8?q?=E7=B1=BB=EF=BC=8C=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3=E5=92=8C?= =?UTF-8?q?demo=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/demo/SimpleReportletDemoFrm.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/fr/demo/SimpleReportletDemoFrm.java b/src/main/java/com/fr/demo/SimpleReportletDemoFrm.java index a3862fd..89edc9d 100644 --- a/src/main/java/com/fr/demo/SimpleReportletDemoFrm.java +++ b/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; } -} \ No newline at end of file + +}