From c517183297d5a9c0d130d219817568018e70b621 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 26 Aug 2024 11:11:16 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=95=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/js/fims/cmmn/fims-base.js | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-base.js b/src/main/webapp/resources/js/fims/cmmn/fims-base.js index 7f25b57f..39d67719 100644 --- a/src/main/webapp/resources/js/fims/cmmn/fims-base.js +++ b/src/main/webapp/resources/js/fims/cmmn/fims-base.js @@ -360,6 +360,32 @@ const Apply = { * 그리드 관련 기능 **************************************************************************/ const GRID = { + fromResp : { + setPagingInfo : function(respList, respPaging, navUl, navSpan){ + let pagination = {}; + + let id = navSpan.id; + pagination.prefix = id.substr(0,id.indexOf("PagingInfo")); + + let dl = 0; + if(respList != null) { + dl = respList.length; + } + + let s = 0; + let ts = 0; + if(respPaging && respPaging.start) { + s = respPaging.start; + } + if(respPaging && respPaging.totalSize) { + ts = respPaging.totalSize; + } + pagination.totalSize = ts; + pagination.dataLength = s + dl; + + $(navUl).setPagingInfo(pagination); + } + }, setCurrentRow : function(evTarget){ if(evTarget instanceof HTMLTableCellElement){ let tr = evTarget.parentElement;