견적서 엑셀/PDF 다운로드명 변경
This commit is contained in:
parent
1cff3f578a
commit
e07445aa28
@ -846,6 +846,7 @@ public class EstimateService {
|
|||||||
// [7]. 견적서 도면 복사 (추후 개발 필요)
|
// [7]. 견적서 도면 복사 (추후 개발 필요)
|
||||||
|
|
||||||
// [8]. QSP Q.CAST SEND API
|
// [8]. QSP Q.CAST SEND API
|
||||||
|
/*
|
||||||
List<EstimateSendResponse> resultList = new ArrayList<EstimateSendResponse>();
|
List<EstimateSendResponse> resultList = new ArrayList<EstimateSendResponse>();
|
||||||
estimateRequest.setObjectNo(estimateCopyRequest.getCopyObjectNo());
|
estimateRequest.setObjectNo(estimateCopyRequest.getCopyObjectNo());
|
||||||
estimateRequest.setPlanNo(estimateCopyRequest.getCopyPlanNo());
|
estimateRequest.setPlanNo(estimateCopyRequest.getCopyPlanNo());
|
||||||
@ -860,6 +861,7 @@ public class EstimateService {
|
|||||||
|
|
||||||
estimateMapper.updateEstimateApi(estimateRequest);
|
estimateMapper.updateEstimateApi(estimateRequest);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);
|
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);
|
||||||
@ -1224,12 +1226,6 @@ public class EstimateService {
|
|||||||
HttpServletRequest request, HttpServletResponse response, EstimateRequest estimateRequest)
|
HttpServletRequest request, HttpServletResponse response, EstimateRequest estimateRequest)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
|
|
||||||
// file Name 명이 없는경우
|
|
||||||
if (estimateRequest.getFileName() == null || "".equals(estimateRequest.getFileName())) {
|
|
||||||
estimateRequest.setFileName(
|
|
||||||
"Quation_Detail_" + new SimpleDateFormat("yyyyMMdd").format(new Date()));
|
|
||||||
}
|
|
||||||
|
|
||||||
EstimateResponse estimateResponse = new EstimateResponse();
|
EstimateResponse estimateResponse = new EstimateResponse();
|
||||||
String splitStr = "、";
|
String splitStr = "、";
|
||||||
|
|
||||||
@ -1237,6 +1233,16 @@ public class EstimateService {
|
|||||||
// 견적서 상세 조회
|
// 견적서 상세 조회
|
||||||
estimateResponse = estimateMapper.selectEstimatePdfDetail(estimateRequest);
|
estimateResponse = estimateMapper.selectEstimatePdfDetail(estimateRequest);
|
||||||
|
|
||||||
|
// file Name 명이 없는경우
|
||||||
|
if (estimateRequest.getFileName() == null || "".equals(estimateRequest.getFileName())) {
|
||||||
|
estimateRequest.setFileName(
|
||||||
|
estimateResponse.getObjectNo()
|
||||||
|
+ "_"
|
||||||
|
+ estimateResponse.getObjectName()
|
||||||
|
+ "_"
|
||||||
|
+ new SimpleDateFormat("yyyyMMdd").format(new Date()));
|
||||||
|
}
|
||||||
|
|
||||||
if ("1".equals(estimateRequest.getSchDisplayFlg())) {
|
if ("1".equals(estimateRequest.getSchDisplayFlg())) {
|
||||||
estimateResponse.setCustSaleStoreName(estimateResponse.getObjectName());
|
estimateResponse.setCustSaleStoreName(estimateResponse.getObjectName());
|
||||||
estimateResponse.setCustOmit(estimateResponse.getObjectNameOmit());
|
estimateResponse.setCustOmit(estimateResponse.getObjectNameOmit());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user