代码提交

提交人:陈绍鑫
时间:2024/12/12  18:00
内容:成本测算插件
This commit is contained in:
陈绍鑫 2024-12-13 11:58:38 +08:00
parent 2e6c50098f
commit 5cac03da1e
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,7 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
headRow1.setRowStyle(titleStyle1);
XSSFCell headCell1 = headRow1.createCell(0);
headCell1.setCellValue("项目名称:");
CellRangeAddress titleCellAddresses1 = new CellRangeAddress(1, 1, 1,6);
CellRangeAddress titleCellAddresses1 = new CellRangeAddress(1, 1, 1,6);//合并单元格
sheet.addMergedRegion(titleCellAddresses1);
XSSFCell headCell2 = headRow1.createCell(7);
@ -745,6 +745,8 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
}
}
}
//设置合并
sheet.protectSheet("password");
}