diff --git a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02010-main.jsp index 91534c64..11dc548b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02010-main.jsp @@ -546,8 +546,7 @@ $("#btnRemove--${pageName}").on("click", () => $P.fnRemove()); // 안내문 삭제 // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02030-main.jsp index 7f906603..cb149111 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02030-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02030-main.jsp @@ -803,7 +803,7 @@ $("#btnRemove--${pageName}").on("click", () => $P.fnRemove()); // 발송 삭제 // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02040-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02040-info.jsp index e0291e03..2ec16fd9 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02040-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02040-info.jsp @@ -244,7 +244,7 @@ $("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀 // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02050-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02050-main.jsp index b9dd45b6..eecf957c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/epst/epst02050-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/epst/epst02050-main.jsp @@ -531,8 +531,8 @@ }); // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - $("#DataTables_Table_1--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); + fnMakeResizableTable($("#table-responsive-1--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp index 67f65414..7e2d3baa 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp @@ -701,7 +701,7 @@ }); // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -757,8 +757,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -766,9 +764,8 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); // URL 설정 $P.setURL(taskSeCd); diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp index 060e6b25..d1e66284 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp @@ -794,7 +794,7 @@ }); // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -849,8 +849,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -858,9 +856,7 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); // URL 설정 $P.setURL(taskSeCd); diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp index 16b62f74..1981423d 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp @@ -546,7 +546,7 @@ }); // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -601,8 +601,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -610,10 +608,8 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); + // URL 설정 $P.setURL(taskSeCd); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/levy/levy01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/levy/levy01010-main.jsp index 58fca799..5abc4d29 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/levy/levy01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/levy/levy01010-main.jsp @@ -633,7 +633,7 @@ $("#btnCreate--${pageName}").on("click", () => $P.fnCreate()); // 부과제외 수정 // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -711,8 +711,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -720,9 +718,7 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); // URL 설정 $P.setURL(taskSeCd); diff --git a/src/main/webapp/WEB-INF/jsp/fims/levy/levy01050-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/levy/levy01050-main.jsp index fbf58f17..b4f5893b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/levy/levy01050-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/levy/levy01050-main.jsp @@ -671,7 +671,7 @@ // 업무 버튼 이벤트 // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -725,8 +725,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -734,10 +732,8 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); + // URL 설정 $P.setURL(taskSeCd); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp index 9def16b6..39c22042 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp @@ -648,7 +648,7 @@ }); // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -704,8 +704,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -713,10 +711,8 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); + // URL 설정 $P.setURL(taskSeCd); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/rcvm/rcvm01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rcvm/rcvm01010-main.jsp index 0745bcc7..e0b7d82f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rcvm/rcvm01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rcvm/rcvm01010-main.jsp @@ -603,7 +603,7 @@ }); // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -659,8 +659,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -668,10 +666,8 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); + // URL 설정 $P.setURL(taskSeCd); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp index 760e697d..ace36d98 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp @@ -699,7 +699,7 @@ }); // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -754,8 +754,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -763,10 +761,8 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); + // URL 설정 $P.setURL(taskSeCd); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01010-main.jsp index 3615162c..430fa911 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01010-main.jsp @@ -720,8 +720,7 @@ $("#btnWholTrgtInfo--${pageName}").on("click", () => $P.fnWholTrgtInfo()); // 전체 대상 등록 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); } @@ -800,8 +799,6 @@ }); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -809,10 +806,9 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); + // URL 설정 $P.setURL(taskSeCd); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp index 921b81b6..14393bf3 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp @@ -368,7 +368,7 @@ $("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp index 0eabe554..0926b1ce 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp @@ -581,7 +581,7 @@ $("#btnRemove--${pageName}").on("click", () => $P.fnRemove()); // 계고장 발송 삭제 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -637,8 +637,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -646,10 +644,8 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); - + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); + // URL 설정 $P.setURL(taskSeCd); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01040-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01040-info.jsp index b93d12fd..d1087241 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01040-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01040-info.jsp @@ -309,7 +309,7 @@ $("#btnPrintWrng--${pageName}").on("click", () => $P.fnPrint()); // 계고장 출력 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01050-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01050-main.jsp index a8b8922e..9a8e0ce7 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01050-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01050-main.jsp @@ -664,7 +664,7 @@ $("#btnCreateWholTrgt--${pageName}").on("click", () => $P.fnCreateWholTrgt()); // 전체 대상 등록 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -743,8 +743,6 @@ }) // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -752,9 +750,7 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); // URL 설정 $P.setURL(taskSeCd); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp index d4abc98c..7e7a1bd2 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp @@ -370,7 +370,7 @@ $("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp index 76e394c6..6ca3605e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp @@ -581,7 +581,7 @@ $("#btnRemove--${pageName}").on("click", () => $P.fnRemove()); // 사전통지 발송 삭제 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -637,8 +637,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -646,9 +644,7 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); // URL 설정 $P.setURL(taskSeCd); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp index e242216b..e56c823c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01080-info.jsp @@ -547,7 +547,7 @@ $("#btnLevyIdnty--${pageName}").on("click", () => $P.fnLevyIdnty()); // 미부과건 확인 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp index 489d07b5..17a7a557 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp @@ -616,7 +616,7 @@ $("#btnRemove--${pageName}").on("click", () => $P.fnRemove()); // 고지서 발송 삭제 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -673,8 +673,6 @@ renderForTask("frmSearch--${pageName}", clsForTask); // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -682,9 +680,7 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); // URL 설정 $P.setURL(taskSeCd); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01100-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01100-info.jsp index 2b449ff4..6da223fe 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01100-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01100-info.jsp @@ -371,7 +371,7 @@ $("#btnCreateSndbk--${pageName}").on("click", () => $P.fnCreateSndbk()); // 반송 등록 // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01110-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01110-info.jsp index e52d9270..070df2d1 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01110-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01110-info.jsp @@ -220,7 +220,7 @@ }); // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); } // 화면 초기값 셋팅 diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01210-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01210-main.jsp index 90d6e490..b45ebc12 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01210-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01210-main.jsp @@ -438,7 +438,7 @@ $("#schCrdnYmdTo--${pageName}").datepicker("setDate", new Date()); // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); } // URL 설정 diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp index 095213e5..669edb30 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01220-main.jsp @@ -713,7 +713,7 @@ }); // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); @@ -796,8 +796,6 @@ }) // 업무별 그리드 th - $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); - let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content; let cols = $(colContent).find("." + clsForTask + ",.cmn"); let colsOuterHTML = ""; @@ -805,9 +803,7 @@ cols.each(function() { colsOuterHTML += this.outerHTML; }); - - $("#theadTr--${pageName}").html(colsOuterHTML); - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + $("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML); // URL 설정 $P.setURL(taskSeCd); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp index c0eb4142..796ad69f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp @@ -680,7 +680,7 @@ }); // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp index 1952eb01..ccf0f807 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp @@ -484,7 +484,7 @@ }); // DataTables width 변경 조정 - $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive--${pageName}")[0]); // DataTables 스크롤 이벤트 생성 fnMakeScrollableTable($("#table-responsive--${pageName}")[0], scrollDataList${pageName}); 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 e7e8195e..c0659827 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 @@ -825,8 +825,8 @@ $(document).ready(function() { }); // DataTables width 변경 조정 - $("#upTable--${pageName}").find("th").resizable( {handles : "e"} ); - $("#downTable--${pageName}").find("th").resizable( {handles : "e"} ); + fnMakeResizableTable($("#table-responsive-up--${pageName}")[0]); + fnMakeResizableTable($("#table-responsive-down--${pageName}")[0]); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01012-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01012-info.jsp index 66a3420d..3f17bdb6 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01012-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01012-info.jsp @@ -124,7 +124,7 @@