PDF 파라메터 수정
This commit is contained in:
parent
9cf28ad5f5
commit
717ae6cfb9
@ -963,30 +963,30 @@ public class EstimateService {
|
|||||||
// 발전시뮬레이션 pdf Html 생성
|
// 발전시뮬레이션 pdf Html 생성
|
||||||
doc = pwrGnrSimService.pwrGnrSimPdfHtml(doc, pwrGnrSimResponse);
|
doc = pwrGnrSimService.pwrGnrSimPdfHtml(doc, pwrGnrSimResponse);
|
||||||
|
|
||||||
// SchDrawingFlg 1 : 전체 , 2 : 견적서, 3 : 발전시뮬레이션, 4 : 도면
|
// SchDrawingFlg (1 : 견적서,2 : 발전시뮬레이션, 3 : 도면, 4 : 가대)
|
||||||
if ("1".equals(estimateRequest.getSchDrawingFlg())) {
|
// ex) 1|2|3|4
|
||||||
|
if (estimateRequest.getSchDrawingFlg().indexOf("1") > -1) {
|
||||||
arrSection[iSection] = "div.section1";
|
arrSection[iSection] = "div.section1";
|
||||||
iSection++;
|
iSection++;
|
||||||
arrSection[iSection] = "div.section2";
|
arrSection[iSection] = "div.section2";
|
||||||
iSection++;
|
iSection++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (estimateRequest.getSchDrawingFlg().indexOf("2") > -1) {
|
||||||
arrSection[iSection] = "div.section3"; // 발전시뮬레이션
|
arrSection[iSection] = "div.section3"; // 발전시뮬레이션
|
||||||
iSection++;
|
iSection++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (estimateRequest.getSchDrawingFlg().indexOf("3") > -1) {
|
||||||
arrSection[iSection] = "div.section4"; // 도면
|
arrSection[iSection] = "div.section4"; // 도면
|
||||||
iSection++;
|
iSection++;
|
||||||
arrSection[iSection] = "div.section5"; // 도면
|
arrSection[iSection] = "div.section5"; // 도면
|
||||||
} else if ("2".equals(estimateRequest.getSchDrawingFlg())) {
|
|
||||||
arrSection[iSection] = "div.section1";
|
|
||||||
iSection++;
|
iSection++;
|
||||||
arrSection[iSection] = "div.section2";
|
}
|
||||||
} else if ("3".equals(estimateRequest.getSchDrawingFlg())) {
|
|
||||||
arrSection[iSection] = "div.section3"; // 발전시뮬레이션
|
if (estimateRequest.getSchDrawingFlg().indexOf("4") > -1) {
|
||||||
} else if ("4".equals(estimateRequest.getSchDrawingFlg())) {
|
arrSection[iSection] = "div.section6";
|
||||||
arrSection[iSection] = "div.section4"; // 도면
|
|
||||||
iSection++;
|
iSection++;
|
||||||
arrSection[iSection] = "div.section5"; // 도면
|
|
||||||
} else {
|
|
||||||
throw new QcastException(
|
|
||||||
ErrorCode.NOT_FOUND, message.getMessage("common.message.no.data"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// pdf 다운로드
|
// pdf 다운로드
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user