|
@@ -1,5 +1,8 @@
|
|
package com.sundata.product.rwa.reportformconfigreportcreater.model;
|
|
package com.sundata.product.rwa.reportformconfigreportcreater.model;
|
|
|
|
|
|
|
|
+import cn.hutool.poi.excel.ExcelUtil;
|
|
|
|
+import cn.hutool.poi.excel.cell.CellUtil;
|
|
|
|
+
|
|
import java.util.StringJoiner;
|
|
import java.util.StringJoiner;
|
|
|
|
|
|
public class ReportCalculationModel {
|
|
public class ReportCalculationModel {
|
|
@@ -22,10 +25,44 @@ public class ReportCalculationModel {
|
|
private String reportUnitNo;
|
|
private String reportUnitNo;
|
|
// sheet页位置
|
|
// sheet页位置
|
|
private Integer reportUnitSheet;
|
|
private Integer reportUnitSheet;
|
|
|
|
+
|
|
|
|
+ private Integer reportUnitSheetName;
|
|
// 行位置
|
|
// 行位置
|
|
private Integer reportUnitRow;
|
|
private Integer reportUnitRow;
|
|
|
|
+
|
|
|
|
+ private Integer reportUnitRowName;
|
|
// 列位置
|
|
// 列位置
|
|
private Integer reportUnitCell;
|
|
private Integer reportUnitCell;
|
|
|
|
+
|
|
|
|
+ private String reportUnitCellName;
|
|
|
|
+
|
|
|
|
+ public Integer getReportUnitSheetName() {
|
|
|
|
+ return reportUnitSheet+1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setReportUnitSheetName(Integer reportUnitSheetName) {
|
|
|
|
+ this.reportUnitSheetName = reportUnitSheetName;
|
|
|
|
+ setReportUnitSheet(reportUnitSheetName-1);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getReportUnitRowName() {
|
|
|
|
+ return reportUnitRow+1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setReportUnitRowName(Integer reportUnitRowName) {
|
|
|
|
+ this.reportUnitRowName = reportUnitRowName;
|
|
|
|
+ setReportUnitRow(reportUnitRowName-1);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getReportUnitCellName() {
|
|
|
|
+ return ExcelUtil.indexToColName(reportUnitCell);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setReportUnitCellName(String reportUnitCellName) {
|
|
|
|
+ this.reportUnitCellName = reportUnitCellName;
|
|
|
|
+ setReportUnitCell(ExcelUtil.colNameToIndex(reportUnitCellName));
|
|
|
|
+ }
|
|
|
|
+
|
|
// 单元格样式类型
|
|
// 单元格样式类型
|
|
private String unitStyleType;
|
|
private String unitStyleType;
|
|
// 计算过程类型
|
|
// 计算过程类型
|