forked from demo/example
Rosie
4 years ago
1 changed files with 34 additions and 0 deletions
@ -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.web.weblet.Formlet; |
||||
|
||||
|
||||
public class SimpleReportletDemoFrm extends Formlet { |
||||
|
||||
@SuppressWarnings("rawtypes") |
||||
@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) { |
||||
e.printStackTrace(); |
||||
} |
||||
return form; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue