public abstract class BaseExcelRptAction extends MaliCommonAction
Constructor and Description |
---|
BaseExcelRptAction() |
Modifier and Type | Method and Description |
---|---|
static void |
downloadWebFilewithRealPath(javax.servlet.http.HttpServletResponse p_response,
java.lang.String realpathfile,
java.lang.String inoutputfilename)
提供 Web 執行實際檔案下載動作, 提供絶對目錄檔名
|
void |
genExcel(javax.servlet.http.HttpServletResponse response)
若沒有setoutputname 則直接用系統時間產生檔案
|
MaliContext |
getMaliContext()
取 MaliContext
|
java.lang.String |
getOutputFileName()
取準備OutputName
|
java.util.Vector |
getParameters()
取報表參數內容
|
java.util.Vector |
getSheetReports()
get 產生的資料內容
|
boolean |
isSaveToRealPath() |
MaliActionTarget |
run(MaliActionParameter param,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setMaliContext(MaliContext incontext) |
void |
setOutputFileName(java.lang.String inoutputfile)
設定準備OutputName, 不需要給 副檔名, 副檔名由系統提供
|
void |
setParameters(java.util.Vector inParameters)
set 報表參數內容
|
void |
setsaveToRealPath(boolean in)
是否儲存至實體目錄
|
void |
setSheetReports(java.util.Vector<SheetReport> insheets)
set 產生的資料內容
|
createAJAXMESGObject, getTarget, outputHtml, outputJson, outputXML, outputXML, setTarget
public BaseExcelRptAction()
incontext
- MaliContextinParameters
- 報表參數值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 MaliCommonAction
java.io.IOException
javax.servlet.ServletException
public void setMaliContext(MaliContext incontext)
public MaliContext getMaliContext()
public void setParameters(java.util.Vector inParameters)
inParameters
- public java.util.Vector getParameters()
public void setsaveToRealPath(boolean in)
in
- public boolean isSaveToRealPath()
public void setSheetReports(java.util.Vector<SheetReport> insheets)
insheets
- public java.util.Vector getSheetReports()
public void setOutputFileName(java.lang.String inoutputfile)
inoutputfile
- public java.lang.String getOutputFileName()
public void genExcel(javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
response
- java.lang.Exception
public static void downloadWebFilewithRealPath(javax.servlet.http.HttpServletResponse p_response, java.lang.String realpathfile, java.lang.String inoutputfilename) throws java.lang.Exception
p_response
- realpathfile
- RealPath 絶對目錄檔名,準備要下載的檔名inoutputfilename
- 產出下載的java.lang.Exception