diff --git a/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp b/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp
index b4fc64d..ba83123 100644
--- a/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp
+++ b/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp
@@ -452,14 +452,14 @@ function fn_generatePdf(contractObjId, templateObjId, templateType){
try {
var iframeWindow = this.contentWindow;
- // 데이터 로딩 완료 대기
+ // 데이터 로딩 완료 대기 (최대 120초 = 1200번 시도)
var checkDataLoaded = function(attempts) {
- if(attempts > 100) {
+ if(attempts > 1200) {
$('#pdfGeneratorFrame').remove();
Swal.close();
Swal.fire({
title: '타임아웃',
- text: '견적서 데이터 로딩 시간이 초과되었습니다.',
+ text: '견적서 데이터 로딩 시간이 초과되었습니다. (120초)',
icon: 'error'
});
return;
@@ -512,18 +512,18 @@ function fn_generatePdf(contractObjId, templateObjId, templateType){
}
});
- // 타임아웃 설정 (30초)
+ // 타임아웃 설정 (180초 = 3분 - 장비 견적서는 데이터가 많아서 시간이 더 필요)
setTimeout(function(){
if($('#pdfGeneratorFrame').length > 0){
$('#pdfGeneratorFrame').remove();
Swal.close();
Swal.fire({
title: '타임아웃',
- text: 'PDF 생성 시간이 초과되었습니다.',
+ text: 'PDF 생성 시간이 초과되었습니다. (180초)\n견적서 데이터가 많은 경우 시간이 오래 걸릴 수 있습니다.',
icon: 'error'
});
}
- }, 30000);
+ }, 180000);
}
// PDF 업로드 및 메일 발송
diff --git a/WebContent/WEB-INF/view/contractMgmt/estimateTemplate2.jsp b/WebContent/WEB-INF/view/contractMgmt/estimateTemplate2.jsp
index 2e12b8f..ee532cc 100644
--- a/WebContent/WEB-INF/view/contractMgmt/estimateTemplate2.jsp
+++ b/WebContent/WEB-INF/view/contractMgmt/estimateTemplate2.jsp
@@ -7,6 +7,9 @@
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
String userId = CommonUtils.checkNull(person.getUserId());
String objId = CommonUtils.checkNull(request.getParameter("objId"));
+String templateObjId = CommonUtils.checkNull(request.getParameter("templateObjId"));
+String apprStatus = CommonUtils.checkNull((String)request.getAttribute("apprStatus"));
+boolean isApproved = "결재완료".equals(apprStatus);
%>
@@ -50,7 +53,7 @@ body {
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: 20px;
+ /* margin-bottom: 20px; */
}
.logo-section {
@@ -166,16 +169,26 @@ body {
text-align: center;
}
-.detail-row {
- height: 60px;
+.subtotal-row input {
+ background-color: transparent;
+ border: none;
+ text-align: center;
+ width: 100%;
+ font-weight: bold;
+}
+
+.detail-row td {
+ vertical-align: top;
+ padding: 5px 8px;
}
.notes-section {
- margin-top: 20px;
- padding: 15px;
+ /* margin-top: 20px; */
+ /* padding: 15px; */
border: 1px solid #ddd;
font-size: 9pt;
line-height: 1.8;
+ background-color: white;
}
.notes-section ul {
@@ -209,10 +222,15 @@ textarea {
width: 100%;
font-family: inherit;
font-size: inherit;
+ white-space: pre-wrap;
}
-.editable {
- background-color: #fffef0;
+textarea.item-spec {
+ resize: none;
+ overflow: hidden;
+ min-height: 40px;
+ line-height: 1.4;
+ white-space: pre-wrap;
}
.highlight {
@@ -226,17 +244,46 @@ textarea {
display: inline-block;
}
-.btn-area {
- text-align: center;
- margin-top: 20px;
- padding: 10px;
+.estimate-btn-area {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ text-align: right;
+ padding: 15px 30px;
+ background-color: #ffffff;
+ border-top: 3px solid #007bff;
+ box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
+ z-index: 1000;
}
-.plm_btns {
- padding: 10px 30px;
- margin: 0 5px;
- font-size: 14px;
+.estimate-btn {
+ display: inline-block;
+ padding: 5px 15px;
+ margin: 0 2px;
+ font-size: 12px;
+ font-weight: normal;
cursor: pointer;
+ border: 1px solid #60a5fa;
+ background-color: #60a5fa;
+ color: white;
+ border-radius: 3px;
+ transition: all 0.3s;
+ line-height: 1;
+ vertical-align: middle;
+ white-space: nowrap;
+}
+
+.estimate-btn:hover {
+ background-color: #1e3a8a;
+ border-color: #1e3a8a;
+ box-shadow: 0 2px 6px rgba(0,123,255,0.4);
+}
+
+.estimate-btn:active {
+ background-color: #1e3a8a;
+ border-color: #1e3a8a;
+ box-shadow: 0 1px 3px rgba(96,165,250,0.3);
}
@media print {
@@ -248,16 +295,119 @@ textarea {
border: none !important;
overflow: hidden;
resize: none;
+ background: white !important;
}
input[type="text"] {
border: none !important;
+ background: white !important;
+ }
+
+ .vat-badge {
+ background-color: #FFFF00 !important;
+ -webkit-print-color-adjust: exact;
+ print-color-adjust: exact;
+ }
+
+ .highlight {
+ background-color: #FFFF00 !important;
+ -webkit-print-color-adjust: exact;
+ print-color-adjust: exact;
+ }
+
+ .subtotal-row {
+ background-color: #FFFF00 !important;
+ -webkit-print-color-adjust: exact;
+ print-color-adjust: exact;
+ }
+
+ .category-row {
+ background-color: #f0f0f0 !important;
+ -webkit-print-color-adjust: exact;
+ print-color-adjust: exact;
+ }
+
+ .items-table th {
+ background-color: #E8E8E8 !important;
+ -webkit-print-color-adjust: exact;
+ print-color-adjust: exact;
+ }
+
+ .model-header {
+ background-color: #90EE90 !important;
+ -webkit-print-color-adjust: exact;
+ print-color-adjust: exact;
}
}
+
+