From 7e48ad3ca5da806b58b616fc6dc7a22eb535bd2c Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 18 Jun 2024 10:30:57 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20controller=EB=B0=98=ED=99=98=EA=B0=92?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/adds/nims/web/AddsNimsController.java | 2 +- .../jsp/adds/nims/dsuseMgtRslt-info.jsp | 29 ++++++------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java index 72c75db..4f93b64 100644 --- a/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java +++ b/src/main/java/cokr/xit/adds/nims/web/AddsNimsController.java @@ -71,7 +71,7 @@ public class AddsNimsController extends AbstractController { .addObject("pageName", "dsuseMgtRsltInfo") // View(jsp)에서 사용할 id 뒤에 붙일 suffix .addObject("infoPrefix", "dsuseMgtRsltInfo") // prefix .addObject("infoPrefixUrl", "/adds/nims") // prefixUrl - .addObject("bsshInfo", dsuseReceiptInfo) // View(jsp)에서 사용할 id 뒤에 붙일 suffix + .addObject("bsshInfo", toJson(dsuseReceiptInfo)) // View(jsp)에서 사용할 id 뒤에 붙일 suffix .addObject("apiHost", apiHost); } //------------------------------------------------------------------------------------------------- diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp index 87c2816..26381c8 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtRslt-info.jsp @@ -13,6 +13,8 @@
+ +
@@ -21,15 +23,15 @@
- +
- - + +
- - + +
@@ -142,9 +144,6 @@ // FormFields $P.formFields = new AddsFormFields("#frmEdit--${pageName}"); - debugger; - console.log(${bsshInfo}) - /************************************************************************** * DatasetControl **************************************************************************/ @@ -176,17 +175,7 @@ // Dataset 변경 이벤트 $P.control.onDatasetChange = (obj) => { - $P.renderList(obj.${infoPrefix}Total); - $("#paging--${pageName}").setPaging({ - list: $P.control.dataset - , prefix: "paging--${pageName}" - , start: obj.dsuseMgtStart - , totalSize: obj.dsuseMgtTotal - , fetchSize: obj.dsuseMgtFetch - , func: "pageObject['${pageName}'].control.load({index})" - }); - - $P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료 + }; // 현재 선택 자료 변경 이벤트 @@ -483,7 +472,7 @@ $P.initForm(); // 3. Dataset 설정 - //$P.control.setData([${opnnDlbrMbrInfo}]); + $P.control.setData([${bsshInfo}]); });