diff --git a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java
index 2f857f57..a7b4d44e 100644
--- a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java
+++ b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java
@@ -1617,6 +1617,7 @@ public class EstimateService {
// 추후 개발 (가대중량표)
if (estimateRequest.getSchDrawingFlg().indexOf("4") < 0) {
+ workbook.removeSheetAt(workbook.getSheetIndex("重量算"));
}
if ("EXCEL2".equals(estimateRequest.getSchDownload())) {
@@ -1624,6 +1625,7 @@ public class EstimateService {
workbook.removeSheetAt(workbook.getSheetIndex("発電シミュレーション"));
workbook.removeSheetAt(workbook.getSheetIndex("割付図・系統図"));
workbook.removeSheetAt(workbook.getSheetIndex("架台図"));
+ workbook.removeSheetAt(workbook.getSheetIndex("重量算"));
}
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -2136,6 +2138,50 @@ public class EstimateService {
elm.before(sb.toString());
}
+ elm = doc.getElementById("objectNo6");
+ elm.text(StringUtils.defaultString(data.getObjectNo()) + " (Plan No : "
+ + StringUtils.defaultString(data.getPlanNo()) + ")");
+
+ elm = doc.getElementById("objectName6");
+ elm.text(StringUtils.defaultString(data.getObjectName()));
+
+ elm = doc.getElementById("objectNameOmit6");
+ elm.text(StringUtils.defaultString(data.getObjectNameOmit()));
+
+ sb = new StringBuilder();
+ for (ItemResponse itemResponse : list) {
+
+ String amountStr = StringUtils.defaultString(itemResponse.getAmount());
+ String grossWtStr = StringUtils.defaultString(itemResponse.getGrossWt());
+
+ // 빈 문자열 체크
+ if (amountStr.isEmpty() || grossWtStr.isEmpty()) {
+ sb.append("
|
");
+ } else {
+ BigDecimal amount = new BigDecimal(amountStr);
+ BigDecimal grossWt = new BigDecimal(grossWtStr);
+ // grossWt가 0보다 큰지 체크
+ if (grossWt.compareTo(BigDecimal.ZERO) > 0) {
+ BigDecimal totalWeight = amount.multiply(grossWt);
+
+ sb.append("");
+ sb.append("| ")
+ .append(StringUtils.defaultString(itemResponse.getItemName()))
+ .append(" | ");
+ sb.append("")
+ .append(StringUtils.defaultString(itemResponse.getItemNo()))
+ .append(" | ");
+ sb.append("").append(amountStr).append(" | ");
+ sb.append("").append(totalWeight.toString()).append(" | ");
+ sb.append("").append(grossWtStr).append(" | ");
+ sb.append("
");
+
+ }
+ }
+ }
+ elm = doc.getElementById("weightList_detail");
+ elm.before(sb.toString());
+
return doc;
}
diff --git a/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java b/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java
index 46f6bb6c..fb543426 100644
--- a/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java
+++ b/src/main/java/com/interplug/qcast/biz/estimate/dto/ItemResponse.java
@@ -91,4 +91,7 @@ public class ItemResponse {
@Schema(description = "unit price 아이템 오픈가 여부")
private String unitOpenFlg;
+
+ @Schema(description = "단위 중량")
+ public String grossWt;
}
diff --git a/src/main/resources/mappers/estimate/estimateMapper.xml b/src/main/resources/mappers/estimate/estimateMapper.xml
index 41a30b0e..ede876bc 100644
--- a/src/main/resources/mappers/estimate/estimateMapper.xml
+++ b/src/main/resources/mappers/estimate/estimateMapper.xml
@@ -286,6 +286,7 @@
, PEI.DISP_CABLE_FLG
, PEI.ITEM_TP_CD
, I.PNOW_W
+ , II.GROSS_WT
, CASE WHEN I.POWER_COM_FLG = '1' THEN 'PC_'
WHEN I.ITEM_GROUP = 'PC_' AND I.POWER_COM_FLG = '0' THEN 'STORAGE_BATTERY'
ELSE I.ITEM_GROUP END AS ITEM_GROUP
@@ -297,6 +298,8 @@
AND PE.DISP_ORDER = PEI.DISP_ORDER
INNER JOIN M_ITEM I WITH (NOLOCK)
ON PE.ITEM_ID = I.ITEM_ID
+ INNER JOIN M_ITEM_INFO II WITH (NOLOCK)
+ ON PE.ITEM_ID = II.ITEM_ID
WHERE PE.OBJECT_NO = #{objectNo}
AND PE.PLAN_NO = #{planNo}
diff --git a/src/main/resources/template/excel/excel_download_quotation_detail_template.xlsx b/src/main/resources/template/excel/excel_download_quotation_detail_template.xlsx
index 99c0e6c3..347cd387 100644
Binary files a/src/main/resources/template/excel/excel_download_quotation_detail_template.xlsx and b/src/main/resources/template/excel/excel_download_quotation_detail_template.xlsx differ
diff --git a/src/main/resources/template/pdf/pdf_download_quotation_detail_template.html b/src/main/resources/template/pdf/pdf_download_quotation_detail_template.html
index 55f27175..f71e6e9b 100644
--- a/src/main/resources/template/pdf/pdf_download_quotation_detail_template.html
+++ b/src/main/resources/template/pdf/pdf_download_quotation_detail_template.html
@@ -345,6 +345,8 @@
padding: 30px 0;
border: 1px solid #000;
}
+
+
@@ -822,6 +824,80 @@
+
+
+
+
+
+
+
+
+ | 物件番号: |
+ |
+
+
+ | 案件名: |
+
+
+
+ |
+
+
+
+
+
+
+
+ システム重量合計
+
+
+
+
+ ※システム重量は製品公差により変わる可能性があります。
+
+
+
+
+
+
+ | 品 名 |
+ 型 番 |
+ 数 量 |
+ 重量(kg) |
+ 単位重量(kg) |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | 架台重量表備考 |
+
+
+
+
+ |
+ ・製品重量は、実測を元に作成していますが、
+ 製品公差により変わる場合があります。予めご了承ください。
+ ・ケーブルの重量は、見積書に記載されたのケーブルセット数の総重量を表示しています。
+ ・コーキングの重量は、見積書に記載されたコーキング数の総重量を表示しています。
+ ・予告なく変更する場合があります。予めご了承ください。
+ |
+
+
+
+