|
|
|
@ -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;
|
|
|
|
|