엑셀/pdf 파일명 프론트에서 받도록 수정
This commit is contained in:
parent
68ccbb02c2
commit
4d795610e2
@ -28,7 +28,6 @@ import java.beans.PropertyDescriptor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@ -848,8 +847,6 @@ public class EstimateService {
|
||||
String[] arrSection = new String[5]; // TODO Section 갯수 넣기
|
||||
int iSection = 0;
|
||||
|
||||
String pdfFileName =
|
||||
"Quation_Detail_" + new SimpleDateFormat("yyyyMMdd").format(new Date());
|
||||
String templateFilePath = "pdf_download_quotation_detail_template.html";
|
||||
|
||||
// 템플릿 html 조회
|
||||
@ -878,12 +875,10 @@ public class EstimateService {
|
||||
}
|
||||
|
||||
// pdf 다운로드
|
||||
PdfUtil.pdfDownload(request, response, doc, pdfFileName, arrSection);
|
||||
PdfUtil.pdfDownload(request, response, doc, estimateRequest.getFileName(), arrSection);
|
||||
|
||||
} else {
|
||||
|
||||
String excelFileName =
|
||||
"Quation_Detail_" + new SimpleDateFormat("yyyyMMdd").format(new Date());
|
||||
String excelTemplateNam = "excel_download_quotation_detail_template.xlsx";
|
||||
|
||||
excelUtil.download(
|
||||
@ -891,7 +886,7 @@ public class EstimateService {
|
||||
response,
|
||||
this.convertVoToMap(estimateResponse),
|
||||
this.convertListToMap(estimateItemList),
|
||||
excelFileName,
|
||||
estimateRequest.getFileName(),
|
||||
excelTemplateNam);
|
||||
}
|
||||
|
||||
|
||||
@ -184,4 +184,7 @@ public class EstimateRequest {
|
||||
|
||||
@Schema(description = "아이템 목록")
|
||||
List<ItemRequest> itemList;
|
||||
|
||||
@Schema(description = "다운로드 파일명")
|
||||
private String fileName;
|
||||
}
|
||||
|
||||
@ -352,17 +352,16 @@
|
||||
<td colspan="3">
|
||||
<div class="estimate-wrap">
|
||||
<div class="estimate-info">
|
||||
<span>三油商会</span>
|
||||
<span class="estimate-info-name"> PITステーション名東一社</span>
|
||||
<span>様邸 </span>
|
||||
<span class="estimate-info-name" id="custSaleStoreName"></span>
|
||||
<span class="estimate-info-name" id="custOmit"></span>
|
||||
</div>
|
||||
<div class="estimate-tit-form">
|
||||
<span class="estimate-tit">見積有効期限 :</span>
|
||||
<span>発行日より1ヶ月</span>
|
||||
<span id="estimateValidityTerm"></span>
|
||||
</div>
|
||||
<div class="estimate-tit-form">
|
||||
<span class="estimate-tit">件名 :</span>
|
||||
<span>三油商会 PITステーション名東一社</span>
|
||||
<span id="objectName1"></span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@ -370,27 +369,32 @@
|
||||
<div class="product-wrap">
|
||||
<div>
|
||||
<div class="product-num">
|
||||
<span class="tit">物件番号 :</span>
|
||||
<span>RX524231020006</span>
|
||||
<span class="tit">見積書番号 :</span>
|
||||
<span id="objectNo1"></span>
|
||||
</div>
|
||||
<div class="product-count">
|
||||
<span class="tit">プラン :</span>
|
||||
<span>5</span>
|
||||
<span id="planNo"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-form">
|
||||
<span class="tit">日付 :</span>
|
||||
<span>2023/10/20</span>
|
||||
<span id="estimateDate"></span>
|
||||
</div>
|
||||
<div class="product-form">
|
||||
<span class="tit">登録番号 :</span>
|
||||
<span>3456789</span>
|
||||
<span class="tit">法人番号 :</span>
|
||||
<span id="bizNo"></span>
|
||||
</div>
|
||||
<div class="store-info-tit">鈴与商事株式会社</div>
|
||||
<div class="store-info-tit" id="saleStoreName"></div>
|
||||
<div class="store-info">
|
||||
<span>〒 420-0859</span>
|
||||
<span>静岡県静岡市葵区栄町 1-3 鈴与静岡ビル6F</span>
|
||||
<div class="number"><span>TEL :</span> <span>054-273-7780</span> <span>FAX :</span> <span>054-273-7704</span></span></div>
|
||||
<span id="zipNo"></span>
|
||||
<span id="address"></span>
|
||||
<div class="number">
|
||||
<span>TEL :</span>
|
||||
<span id="tel"></span>
|
||||
<span>FAX :</span>
|
||||
<span id="fax"></span>
|
||||
</div>
|
||||
</div>
|
||||
<table class="approval-table">
|
||||
<thead>
|
||||
@ -413,14 +417,14 @@
|
||||
</table>
|
||||
<div class="sun-volt">
|
||||
<span>太陽電池容量 :</span>
|
||||
<span class="sun-volt-value">8.3</span>
|
||||
<span class="sun-volt-value" id="totVolKw1"></span>
|
||||
<span>KW</span>
|
||||
</div>
|
||||
<div class="all-price-wrap">
|
||||
<div class="all-price ">
|
||||
<span>お見積金額</span>
|
||||
<span class="all-price-value">7,478,790 円 </span>
|
||||
<span>(消費税込)</span>
|
||||
<span class="all-price-value" id="totPrice"></span>
|
||||
<span>円 (消費税込)</span>
|
||||
</div>
|
||||
</div>
|
||||
<table class="price-table mb20">
|
||||
@ -435,36 +439,37 @@
|
||||
<th style="width: 110px;">価格</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Re.RISE 415</td>
|
||||
<td>Re.RISE 415</td>
|
||||
<td>¥278,050</td>
|
||||
<td>20</td>
|
||||
<td>枚</td>
|
||||
<td class="al-r">¥5,561,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Re.RISE 415</td>
|
||||
<td>Re.RISE 415</td>
|
||||
<td>¥278,050</td>
|
||||
<td>20</td>
|
||||
<td>枚</td>
|
||||
<td class="al-r">¥5,561,000</td>
|
||||
</tr>
|
||||
<tbody id="itemList_detail">
|
||||
<!-- <tr>-->
|
||||
<!-- <td>1</td>-->
|
||||
<!-- <td>Re.RISE 415</td>-->
|
||||
<!-- <td>Re.RISE 415</td>-->
|
||||
<!-- <td>¥278,050</td>-->
|
||||
<!-- <td>20</td>-->
|
||||
<!-- <td>枚</td>-->
|
||||
<!-- <td class="al-r">¥5,561,000</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td>2</td>-->
|
||||
<!-- <td>Re.RISE 415</td>-->
|
||||
<!-- <td>Re.RISE 415</td>-->
|
||||
<!-- <td>¥278,050</td>-->
|
||||
<!-- <td>20</td>-->
|
||||
<!-- <td>枚</td>-->
|
||||
<!-- <td class="al-r">¥5,561,000</td>-->
|
||||
<!-- </tr>-->
|
||||
<tr>
|
||||
<td class="al-r" colspan="6">小計</td>
|
||||
<td class="al-r">¥6,798,900</td>
|
||||
<td class="al-r" id="supplyPrice"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="al-r" colspan="6">消費税 (10%)</td>
|
||||
<td class="al-r">¥679,890</td>
|
||||
<td class="al-r" colspan="5">消費税</td>
|
||||
<td class="al-r">(10%)</td>
|
||||
<td class="al-r" id="vatPrice"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="al-r end" colspan="6">合計金額</td>
|
||||
<td class="al-r end">¥7,478,790</td>
|
||||
<td class="al-r end" id="totPrice1"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -476,9 +481,8 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="al-l">
|
||||
<div>※受注発注品の納期はお問合せください。</div>
|
||||
<div>※別紙添付ファイルにて各拾い出し部材の注意事項・備考一覧をご確認ください</div>
|
||||
<td class="al-l" id="remarks">
|
||||
<!--<div>※受注発注品の納期はお問合せください。</div>-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user