public class SubmitHelper
extends java.lang.Object
构造器和说明 |
---|
SubmitHelper() |
限定符和类型 | 方法和说明 |
---|---|
static void |
submit(WriteWorkBook resultBook,
TemplateWorkBook templateBook,
java.util.Map extraInfo)
carl:表单提交
加载报表1.cpt计算并提交所有sheet:
FRContext.setCurrentEnv(new LocalEnv("c:/Program Files/FineReport_7.1/WebReport/WEB-INF"));
ModuleContext.startModule(EngineModule.class.getName());
WorkBook workbook = (WorkBook) TemplateWorkBookIO.readTemplateWorkBook(FRContext.getCommonOperator(), "1.cpt");
Map paraMap = ReportWebUtils.dealWithReportParameters(workbook, new HashMap());
ReportUtils.submit((WriteWorkBook) resultWorkBook, workbook, paraMap);
|
static void |
submit(WriteWorkBook resultBook,
TemplateWorkBook templateBook,
java.util.Map extraInfo,
int reportIndex,
boolean isAllSheet)
单个sheet提交的时候调用这个,isAllSheet应该是false
加载报表1.cpt计算并提交第一个sheet:
FRContext.setCurrentEnv(new LocalEnv("c:/Program Files/FineReport_7.1/WebReport/WEB-INF"));
ModuleContext.startModule(EngineModule.class.getName());
WorkBook workbook = (WorkBook) TemplateWorkBookIO.readTemplateWorkBook(FRContext.getCommonOperator(), "1.cpt");
Map paraMap = ReportWebUtils.dealWithReportParameters(workbook, new HashMap());
ReportUtils.submit((WriteWorkBook) resultWorkBook, workbook, paraMap, 0, false);
|
static void |
submit(WriteWorkBook resultBook,
TemplateWorkBook templateBook,
java.util.Map extraInfo,
int reportIndex,
boolean isAllSheet,
java.util.Map allSheetConnMap)
单sheet提交和多sheet提交都会走这里
|
public static void submit(WriteWorkBook resultBook, TemplateWorkBook templateBook, java.util.Map extraInfo, int reportIndex, boolean isAllSheet) throws WriteSubmitException
resultBook
- 填报结果报表templateBook
- 模板extraInfo
- 参数reportIndex
- 报表序号isAllSheet
- 是否是全部sheetWriteSubmitException
public static void submit(WriteWorkBook resultBook, TemplateWorkBook templateBook, java.util.Map extraInfo, int reportIndex, boolean isAllSheet, java.util.Map allSheetConnMap) throws WriteSubmitException
resultBook
- 填报结果报表templateBook
- 模板extraInfo
- 参数reportIndex
- 报表序号isAllSheet
- 是否是全部sheetallSheetConnMap
- 数据连接集合WriteSubmitException
- epublic static void submit(WriteWorkBook resultBook, TemplateWorkBook templateBook, java.util.Map extraInfo) throws java.lang.Exception
resultBook
- 填报结果报表templateBook
- 模板extraInfo
- 参数WriteSubmitException
java.lang.Exception