forked from demo/example
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
893 B
36 lines
893 B
package com.fr.demo; |
|
|
|
|
|
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 |
|
|
|
} |
|
|
|
@Override |
|
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; |
|
} |
|
|
|
|
|
}
|
|
|