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.
68 lines
2.2 KiB
68 lines
2.2 KiB
/* |
|
* Copyright (C), 2018-2021 |
|
* Project: starter |
|
* FileName: LayerExcelExportApp |
|
* Author: Louis |
|
* Date: 2021/12/3 9:22 |
|
*/ |
|
package com.fr.plugin.ibgq.excel; |
|
|
|
import com.fr.general.DeclareRecordType; |
|
import com.fr.io.collection.ExportCollection; |
|
import com.fr.io.exporter.ExcelExportType; |
|
import com.fr.plugin.ExtraClassManager; |
|
import com.fr.plugin.ibgq.export.StreamExcel2007Exporter4LayerPlus; |
|
import com.fr.report.core.ReportUtils; |
|
import com.fr.report.fun.impl.AbstractExcelExportAppProvider; |
|
import com.fr.stable.ExportConstants; |
|
import com.fr.stable.fun.Authorize; |
|
import com.fr.stable.fun.FunctionProcessor; |
|
import com.fr.web.core.ReportSessionIDInfor; |
|
import com.fr.web.core.utils.ExportUtils; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import static com.fr.plugin.ibgq.LocaleFinder.PLUGIN_ID; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <LayerExcelExportApp> |
|
* |
|
* @author fr.open |
|
* @since 1.0.0 |
|
*/ |
|
@Authorize(callSignKey = PLUGIN_ID) |
|
public class LayerExcelExportApp extends AbstractExcelExportAppProvider { |
|
public LayerExcelExportApp() { |
|
} |
|
|
|
private static void recordFunction() { |
|
FunctionProcessor var0 = ExtraClassManager.getInstance().getFunctionProcessor(); |
|
if (var0 != null) { |
|
var0.recordFunction(LayerStreamExportFunctionProcessor.getInstance()); |
|
} |
|
|
|
} |
|
|
|
public int currentAPILevel() { |
|
return super.currentAPILevel(); |
|
} |
|
|
|
public String exportType() { |
|
return ExportConstants.TYPE_LARGEDATA_PAGE; |
|
} |
|
|
|
public ExportCollection createLargeDataExportCollection(HttpServletRequest var1, HttpServletResponse var2, ReportSessionIDInfor var3, String var4, ExcelExportType var5) { |
|
ExportCollection var6 = ExportCollection.create(); |
|
if (var2 != null) { |
|
ExportUtils.setExcel2007Content(var2, var4); |
|
} |
|
|
|
StreamExcel2007Exporter4LayerPlus var7 = new StreamExcel2007Exporter4LayerPlus(ReportUtils.getPaperSettingListFromWorkBook(var3.getContextBook()), var5.isPage()); |
|
var6.setExporter(var7); |
|
var6.setRecordType(DeclareRecordType.EXPORT_TYPE_EXCEL_ORIGINAL); |
|
recordFunction(); |
|
return var6; |
|
} |
|
} |