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.4 KiB
45 lines
1.4 KiB
2 years ago
|
/*
|
||
|
* Copyright (C), 2018-2021
|
||
|
* Project: starter
|
||
|
* FileName: SimpleExcelExportApp
|
||
|
* Author: xx
|
||
|
* Date: 2021/12/6 8:27
|
||
|
*/
|
||
|
package com.fr.plugin.gb.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.gb.export.ExcelPlusExporter;
|
||
|
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.gb.LocaleFinder.PLUGIN_ID;
|
||
|
|
||
|
/**
|
||
|
* <Function Description><br>
|
||
|
* <原样导出SimpleExcelExportApp>
|
||
|
*
|
||
|
* @author xx
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
@Authorize(callSignKey = PLUGIN_ID)
|
||
|
public class SimpleExcelExportApp extends AbstractExcelExportAppProvider {
|
||
|
|
||
|
@Override
|
||
|
public String exportType() {
|
||
|
return ExportConstants.TYPE_SIMPLE;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public AppExporter<Boolean> newAppExporter(ExportCollection collection, ExcelExportType exportType, SessionProvider sessionIDInfor) {
|
||
|
AppExporter<Boolean> exporter = new ExcelPlusExporter(ReportUtils.getPaperSettingListFromWorkBook(sessionIDInfor.getOriginalObject()));
|
||
|
collection.setExporter(exporter);
|
||
|
collection.setRecordType(ReportDeclareRecordType.EXPORT_TYPE_EXCEL_ORIGINAL);
|
||
|
return exporter;
|
||
|
}
|
||
|
}
|