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;