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.
45 lines
1.5 KiB
45 lines
1.5 KiB
/* |
|
* Copyright (C), 2018-2021 |
|
* Project: starter |
|
* FileName: SheetExcelExportApp |
|
* Author: Louis |
|
* Date: 2021/12/6 8:44 |
|
*/ |
|
package com.fr.plugin.ibgq.provider; |
|
|
|
import com.fr.general.ReportDeclareRecordType; |
|
import com.fr.io.collection.ExportCollection; |
|
import com.fr.io.exporter.AppExporter; |
|
import com.fr.io.exporter.ExcelExportType; |
|
import com.fr.plugin.ibgq.export.PageToSheetExcelPlusExporter; |
|
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.web.SessionProvider; |
|
|
|
import static com.fr.plugin.ibgq.LocaleFinder.PLUGIN_ID; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <分页分sheet导出SheetExcelExportApp> |
|
* |
|
* @author fr.open |
|
* @since 1.0.0 |
|
*/ |
|
@Authorize(callSignKey = PLUGIN_ID) |
|
public class SheetExcelExportApp extends AbstractExcelExportAppProvider { |
|
|
|
@Override |
|
public String exportType() { |
|
return ExportConstants.TYPE_PAGETOSHETT; |
|
} |
|
|
|
@Override |
|
public AppExporter<Boolean> newAppExporter(ExportCollection collection, ExcelExportType exportType, SessionProvider sessionIDInfor) { |
|
AppExporter<Boolean> exporter = new PageToSheetExcelPlusExporter(ReportUtils.getPaperSettingListFromWorkBook(sessionIDInfor.getOriginalObject())); |
|
collection.setExporter(exporter); |
|
collection.setRecordType(ReportDeclareRecordType.EXPORT_TYPE_EXCEL_PAGESHEET); |
|
return exporter; |
|
} |
|
} |