From ed63a988ce210bedb97a83db3488a3880c140fea Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 27 Dec 2023 15:43:50 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=B8=EC=82=AC=EC=9A=A9=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp | 12 +----------- .../webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp | 4 ---- .../webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 7 +------ .../webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp | 4 ---- .../webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp | 4 ---- .../webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp | 4 ---- .../webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp | 6 +----- .../webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp | 9 +-------- .../webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp | 4 ---- 9 files changed, 4 insertions(+), 50 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp index 97865e3c..c24b8e3a 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp @@ -978,10 +978,6 @@ $(document).ready(function(){ return; } - var headerInfo = $("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)").getHeaderInfo(); - $P.photoInspectionControl.query.excelTitle = headerInfo.excelTitle; - $P.photoInspectionControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - var cellDefs = getCellDefs($("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)"), $($("#photoInspectionRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); $P.photoInspectionControl.query.cellDefs = cellDefs; @@ -996,9 +992,6 @@ $(document).ready(function(){ } if(confirm("단속건수 엑셀저장은 확인버튼, 상세내역 엑셀저장시 취소버튼을 누르세요.")){ - var headerInfo = $("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th").getHeaderInfo(); - $P.sameVehicleControl.main.query.excelTitle = headerInfo.excelTitle; - $P.sameVehicleControl.main.query.excelTitleWidth = headerInfo.excelTitleWidth; var cellDefs = getCellDefs($("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"), $($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td")); @@ -1006,10 +999,7 @@ $(document).ready(function(){ $P.sameVehicleControl.main.download(); } else { - var headerInfo = $("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden").getHeaderInfo(); - $P.sameVehicleControl.sub.query.excelTitle = headerInfo.excelTitle; - $P.sameVehicleControl.sub.query.excelTitleWidth = headerInfo.excelTitleWidth; - + var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden"), $($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td").not(".privacy-mask")); $P.sameVehicleControl.sub.query.cellDefs = cellDefs; diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp index 4ee8bba3..310f1883 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp @@ -307,10 +307,6 @@ $(document).ready(function(){ return; } - var headerInfo = $("#crdnTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo(); - $P.crdnControl.query.excelTitle = headerInfo.excelTitle; - $P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - var cellDefs = getCellDefs($("#crdnTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"), $($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); $P.crdnControl.query.cellDefs = cellDefs; diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 5a694c94..eec1cdd0 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -475,11 +475,7 @@ $(document).ready(function(){ alert("조회된 자료가 없습니다."); return; } - - var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo(); - $P.crdnControl.query.excelTitle = headerInfo.excelTitle; - $P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - + var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"), $($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); $P.crdnControl.query.cellDefs = cellDefs; @@ -506,5 +502,4 @@ $(document).ready(function(){ }); }); - diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp index 170a3b68..792d9228 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp @@ -445,10 +445,6 @@ $(document).ready(function(){ return; } - var headerInfo = $("#exmptnVhclTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo(); - $P.exmptnVhclControl.query.excelTitle = headerInfo.excelTitle; - $P.exmptnVhclControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - var cellDefs = getCellDefs($("#exmptnVhclTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)"), $($("#exmptnVhclRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); $P.exmptnVhclControl.query.cellDefs = cellDefs; diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp index d9b9aeb3..eb48ef3a 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp @@ -638,10 +638,6 @@ $(document).ready(function(){ return; } - var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo(); - $P.crdnControl.query.excelTitle = headerInfo.excelTitle; - $P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"), $($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); $P.crdnControl.query.cellDefs = cellDefs; diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp index d8224c0f..66f4f955 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp @@ -668,10 +668,6 @@ $(document).ready(function(){ return; } - var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").not(":eq(0)").getHeaderInfo(); - $P.crdnControl.query.excelTitle = headerInfo.excelTitle; - $P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").not(":eq(0)"), $($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(":eq(0)")); $P.crdnControl.query.cellDefs = cellDefs; diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp index c10602f0..959e0a43 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp @@ -531,11 +531,7 @@ $(document).ready(function(){ alert("조회된 자료가 없습니다."); return; } - - var headerInfo = $("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo(); - $P.crdnControl.query.excelTitle = headerInfo.excelTitle; - $P.crdnControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - + var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"), $($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); $P.crdnControl.query.cellDefs = cellDefs; diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp index 44d9d5f8..4dc97980 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp @@ -340,7 +340,7 @@ integrationSearch.setTotalData = (updown, list) => { // 엑셀 integrationSearch.fnExcel = (updown) => { - var headerInfo; + var cellDefs; if(updown == "up"){ @@ -349,8 +349,6 @@ integrationSearch.fnExcel = (updown) => { return; } - headerInfo = $("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden").getHeaderInfo(); - cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"), $($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask")); @@ -361,17 +359,12 @@ integrationSearch.fnExcel = (updown) => { return; } - headerInfo = $("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden").getHeaderInfo(); - cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"), $($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask")); integrationSearchControl.query.gridType = "down"; } - integrationSearchControl.query.excelTitle = headerInfo.excelTitle; - integrationSearchControl.query.excelTitleWidth = headerInfo.excelTitleWidth; - integrationSearchControl.query.cellDefs = cellDefs; integrationSearchControl.download(); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp index c7958f28..3368003c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp @@ -145,10 +145,6 @@ $(document).ready(function(){ $("#btnExcel--${pageName}").on("click", function(){ var query = {}; - var headerInfo = $("#theadTr--${pageName} th").not(".dummy-th").getHeaderInfo(); - query.excelTitle = headerInfo.excelTitle; - query.excelTitleWidth = headerInfo.excelTitleWidth; - var cellDefs = getCellDefs($("#theadTr--${pageName} th").not(".dummy-th"), $($("#found--${pageName}")[0].content).find("td").not(".dummy-td")); query.cellDefs = cellDefs;