Merge pull request '[1122]DESINGの見積excel様式の追加 - 견적서 추가' (#141) from feature/cha into dev

Reviewed-on: #141
This commit is contained in:
ysCha 2025-06-25 17:33:44 +09:00
commit a12a753ec5
2 changed files with 7 additions and 0 deletions

View File

@ -1619,6 +1619,13 @@ public class EstimateService {
if (estimateRequest.getSchDrawingFlg().indexOf("4") < 0) { if (estimateRequest.getSchDrawingFlg().indexOf("4") < 0) {
} }
if ("EXCEL2".equals(estimateRequest.getSchDownload())) {
workbook.removeSheetAt(workbook.getSheetIndex("特異事項"));
workbook.removeSheetAt(workbook.getSheetIndex("発電シミュレーション"));
workbook.removeSheetAt(workbook.getSheetIndex("割付図・系統図"));
workbook.removeSheetAt(workbook.getSheetIndex("架台図"));
}
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
workbook.write(byteArrayOutputStream); workbook.write(byteArrayOutputStream);
excelBytes = byteArrayOutputStream.toByteArray(); excelBytes = byteArrayOutputStream.toByteArray();