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.
41 lines
1.3 KiB
41 lines
1.3 KiB
3 years ago
|
/*
|
||
|
* Copyright (C), 2018-2021
|
||
|
* Project: starter
|
||
|
* FileName: PageExcelExportApp
|
||
|
* Author: Louis
|
||
|
* Date: 2021/12/6 9:07
|
||
|
*/
|
||
|
package com.fr.plugin.ifhd.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.ifhd.export.PageExcelPlusExporter;
|
||
|
import com.fr.report.core.ReportUtils;
|
||
|
import com.fr.report.fun.impl.AbstractExcelExportAppProvider;
|
||
|
import com.fr.stable.ExportConstants;
|
||
|
import com.fr.stable.web.SessionProvider;
|
||
|
|
||
|
/**
|
||
|
* <Function Description><br>
|
||
|
* <分页导出PageExcelExportApp>
|
||
|
*
|
||
|
* @author Louis
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
public class PageExcelExportApp extends AbstractExcelExportAppProvider {
|
||
|
|
||
|
@Override
|
||
|
public String exportType() {
|
||
|
return ExportConstants.TYPE_PAGE;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public AppExporter<Boolean> newAppExporter(ExportCollection collection, ExcelExportType exportType, SessionProvider sessionIDInfor) {
|
||
|
AppExporter<Boolean> exporter = new PageExcelPlusExporter(ReportUtils.getPaperSettingListFromWorkBook(sessionIDInfor.getOriginalObject()));
|
||
|
collection.setExporter(exporter);
|
||
|
collection.setRecordType(ReportDeclareRecordType.EXPORT_TYPE_EXCEL_PAGE);
|
||
|
return exporter;
|
||
|
}
|
||
|
}
|