public class MaliIReportAction extends MaliCommonAction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
Key_className
報表 className
|
static java.lang.String |
Key_reportType |
static java.lang.String |
reportType_Excel |
static java.lang.String |
reportType_PDF |
| Constructor and Description |
|---|
MaliIReportAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportPDF(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IReportObject rpt,
java.lang.String para)
直接產生Web下載檔案
|
void |
exportXLS(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IReportObject rpt)
供前端匯出Excel檔案使用
|
MaliActionTarget |
run(MaliActionParameter param,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setMaliContext(MaliContext incontext) |
createAJAXMESGObject, getTarget, outputHtml, outputJson, outputXML, outputXML, setTargetpublic static final java.lang.String Key_className
public static final java.lang.String Key_reportType
public static final java.lang.String reportType_PDF
public static final java.lang.String reportType_Excel
public MaliActionTarget run(MaliActionParameter param, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
run in class MaliCommonActionjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void setMaliContext(MaliContext incontext)
public void exportPDF(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IReportObject rpt,
java.lang.String para)
throws java.lang.Exception
request - response - rpt - java.lang.Exceptionpublic void exportXLS(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IReportObject rpt)
throws java.io.IOException,
net.sf.jasperreports.engine.JRException,
java.lang.Exception
request - response - IOException, - JRException, Exceptionjava.io.IOExceptionnet.sf.jasperreports.engine.JRExceptionjava.lang.Exception