use of org.apache.poi.xssf.usermodel.XSSFSheet in project bamboobsc by billchen198318.
the class KpisDashboardExcelCommand method createExcel.
private String createExcel(Context context) throws Exception {
String fileName = SimpleUtils.getUUIDStr() + ".xlsx";
String fileFullPath = Constants.getWorkTmpDir() + "/" + fileName;
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sh = wb.createSheet();
int row = this.putTables(wb, sh, context);
row = this.putCharts(wb, sh, context, row);
FileOutputStream out = new FileOutputStream(fileFullPath);
wb.write(out);
out.close();
wb = null;
File file = new File(fileFullPath);
String oid = UploadSupportUtils.create(Constants.getSystem(), UploadTypes.IS_TEMP, false, file, "kpis-dashboard.xlsx");
file = null;
return oid;
}
use of org.apache.poi.xssf.usermodel.XSSFSheet in project bamboobsc by billchen198318.
the class KpiPeriodTrendsExcelCommand method createExcel.
private String createExcel(Context context) throws Exception {
String fileName = SimpleUtils.getUUIDStr() + ".xlsx";
String fileFullPath = Constants.getWorkTmpDir() + "/" + fileName;
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sh = wb.createSheet();
this.putTables(wb, sh, context);
FileOutputStream out = new FileOutputStream(fileFullPath);
wb.write(out);
out.close();
wb = null;
File file = new File(fileFullPath);
String oid = UploadSupportUtils.create(Constants.getSystem(), UploadTypes.IS_TEMP, false, file, "kpis-period-trends.xlsx");
file = null;
return oid;
}
use of org.apache.poi.xssf.usermodel.XSSFSheet in project bamboobsc by billchen198318.
the class ObjectivesDashboardExcelCommand method createExcel.
private String createExcel(Context context) throws Exception {
String fileName = SimpleUtils.getUUIDStr() + ".xlsx";
String fileFullPath = Constants.getWorkTmpDir() + "/" + fileName;
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sh = wb.createSheet();
this.putCharts(wb, sh, context);
FileOutputStream out = new FileOutputStream(fileFullPath);
wb.write(out);
out.close();
wb = null;
File file = new File(fileFullPath);
String oid = UploadSupportUtils.create(Constants.getSystem(), UploadTypes.IS_TEMP, false, file, "objectives-dashboard.xlsx");
file = null;
return oid;
}
use of org.apache.poi.xssf.usermodel.XSSFSheet in project bamboobsc by billchen198318.
the class TimeSeriesAnalysisExcelCommand method createExcel.
private String createExcel(Context context) throws Exception {
String fileName = SimpleUtils.getUUIDStr() + ".xlsx";
String fileFullPath = Constants.getWorkTmpDir() + "/" + fileName;
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sh = wb.createSheet();
this.putTables(wb, sh, context);
FileOutputStream out = new FileOutputStream(fileFullPath);
wb.write(out);
out.close();
wb = null;
File file = new File(fileFullPath);
String oid = UploadSupportUtils.create(Constants.getSystem(), UploadTypes.IS_TEMP, false, file, "forecast-analysis.xlsx");
file = null;
return oid;
}
use of org.apache.poi.xssf.usermodel.XSSFSheet in project bamboobsc by billchen198318.
the class PerspectivesDashboardExcelCommand method createExcel.
private String createExcel(Context context) throws Exception {
String fileName = SimpleUtils.getUUIDStr() + ".xlsx";
String fileFullPath = Constants.getWorkTmpDir() + "/" + fileName;
XSSFWorkbook wb = new XSSFWorkbook();
XSSFSheet sh = wb.createSheet();
this.putCharts(wb, sh, context);
FileOutputStream out = new FileOutputStream(fileFullPath);
wb.write(out);
out.close();
wb = null;
File file = new File(fileFullPath);
String oid = UploadSupportUtils.create(Constants.getSystem(), UploadTypes.IS_TEMP, false, file, "perspectives-dashboard.xlsx");
file = null;
return oid;
}
Aggregations