fix : 페이징 변수명 수정

main
이범준 2 years ago
parent 82ff3d23a5
commit a1647eb0c5

@ -263,22 +263,6 @@ $("#btnClose").on('click', () => {
window.close()
});
```
## JSON Object ModelAndView에서 처리
```js
// ModelAndView return
gridInfo={"next":null,"perPage":15,"page":1,"totalCount":15,"curRowData":{"regltSeCode":"01","extrlRegltCntcId":"000000001051"},"curRowPos":1,"curGridDataPos":0,"curGridDatas":[{"regltSeCode":"01","extrlRegltCntcId":"000000001051"},{"regltSeCode":"01","extrlRegltCntcId":"000000001052"},{"regltSeCode":"01","extrlRegltCntcId":"000000001065"}]}
// jstl사용시 보안상의 이유로 " 문자를 " 치환
// 아래와 같이 처리
let gridInfo = '<c:out value="${gridInfo}"/>'; // string으로
gridInfo = gridInfo.replace(/&#034;/g, '"');
gridInfo = JSON.parse(gridInfo);
// escapeXml = "false" 사용 - xss 보안상 문제 발생
let gridInfo = <c:out value="${gridInfo}" escapeXml = "false"/>; //객체이므로 "" 미사용
let gridInfo = ${gridInfo};
```
## JSP include

@ -111,7 +111,7 @@ public class SendRqstMngController extends AbstractController {
data.put("contents", list); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
model.addAttribute("data", data); //[tui Grid] data
/* ***************************
@ -211,7 +211,7 @@ public class SendRqstMngController extends AbstractController {
data.put("contents", list); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
model.addAttribute("data", data); //[tui Grid] data
/* ***************************

@ -106,7 +106,7 @@ public class StatsBySignTalkByYearController extends AbstractController {
data.put("contents", list); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
model.addAttribute("data", data); //[tui Grid] data
/* ***************************

@ -56,61 +56,7 @@ public class XitMainController extends AbstractController {
*/
@RequestMapping(name = "", value = "/mainPage", method={RequestMethod.GET, RequestMethod.POST})
public String mainPage(@ModelAttribute("searchVO") XitBasicBbsMngSearchVO searchVO, HttpServletRequest request, ModelMap model, @RequestParam Map<String, Object> param) throws Exception{
/*
searchVO.setBbsId("BBSMSTR_00001");
searchVO.setFirstIndex(0);
// List<XitBasicBbsMngVO> resultList1 = xitBasicBbsMngService.findList(searchVO); //공지사항
// model.addAttribute("resultList1", resultList1);;
//
// searchVO.setBbsId("BBSMSTR_00003");
// List<XitBasicBbsMngVO> resultList2 = xitBasicBbsMngService.findList(searchVO); //업무게시판
// model.addAttribute("resultList2", resultList2);
//noinspection unchecked
model.addAttribute("resultList1", CacheServiceUtils.findBaseBbsList(ConvertUtils.toObjectFromClass(searchVO, Map.class)));
searchVO.setBbsId("BBSMSTR_00003");
//noinspection unchecked
model.addAttribute("resultList2", CacheServiceUtils.findBaseBbsList(ConvertUtils.toObjectFromClass(searchVO, Map.class)));
// // 공지사항 메인 컨텐츠 조회 시작 ---------------------------------
// BoardVO boardVO = new BoardVO();
// boardVO.setPageUnit(10);
// boardVO.setPageSize(10);
// boardVO.setBbsId("BBSMSTR_AAAAAAAAAAAA");
//
// PaginationInfo paginationInfo = new PaginationInfo();
//
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
// paginationInfo.setPageSize(boardVO.getPageSize());
//
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//
// Map<String, Object> map = bbsMngService.selectBoardArticles(boardVO, "BBSA02");
// model.addAttribute("notiList", map.get("resultList"));
//
//
// // 공지사항 메인컨텐츠 조회 끝 -----------------------------------
//
// // 업무게시판 메인 컨텐츠 조회 시작 -------------------------------
// boardVO.setPageUnit(5);
// boardVO.setPageSize(10);
// boardVO.setBbsId("BBSMSTR_CCCCCCCCCCCC");
//
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
// paginationInfo.setPageSize(boardVO.getPageSize());
//
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//
// model.addAttribute("bbsList", bbsMngService.selectBoardArticles(boardVO, "BBSA02").get("resultList"));
*/
// 업무게시판 메인컨텐츠 조회 끝 -----------------------------------
return "fims/framework/biz/cmm/XitMain.main";
}
@ -136,46 +82,9 @@ public class XitMainController extends AbstractController {
//noinspection unchecked
mav.addObject("resultList2", CacheServiceUtils.findBaseBbsList(ConvertUtils.toObjectFromClass(searchVO, Map.class)));
// // 공지사항 메인 컨텐츠 조회 시작 ---------------------------------
// BoardVO boardVO = new BoardVO();
// boardVO.setPageUnit(10);
// boardVO.setPageSize(10);
// boardVO.setBbsId("BBSMSTR_AAAAAAAAAAAA");
//
// PaginationInfo paginationInfo = new PaginationInfo();
//
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
// paginationInfo.setPageSize(boardVO.getPageSize());
//
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//
// Map<String, Object> map = bbsMngService.selectBoardArticles(boardVO, "BBSA02");
// model.addAttribute("notiList", map.get("resultList"));
//
//
// // 공지사항 메인컨텐츠 조회 끝 -----------------------------------
//
// // 업무게시판 메인 컨텐츠 조회 시작 -------------------------------
// boardVO.setPageUnit(5);
// boardVO.setPageSize(10);
// boardVO.setBbsId("BBSMSTR_CCCCCCCCCCCC");
//
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
// paginationInfo.setPageSize(boardVO.getPageSize());
//
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//
// model.addAttribute("bbsList", bbsMngService.selectBoardArticles(boardVO, "BBSA02").get("resultList"));
// 업무게시판 메인컨텐츠 조회 끝 -----------------------------------
return mav;
//return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"cmm/XitMain2";
}
/**

@ -126,7 +126,7 @@ public class XitAdminDbMngController extends AbstractController {
data.put("contents", list); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -147,7 +147,7 @@ public class XitAdminServerFileMngController extends AbstractController {
data.put("contents", list); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -351,7 +351,7 @@ public class XitAdminServerLogMngController extends AbstractController {
data.put("contents", list); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -98,7 +98,7 @@ public class XitConectionLogMngController extends AbstractController {
data.put("contents", xitConectionLogMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -122,7 +122,7 @@ public class XitConectionStatsMngController extends AbstractController {
data.put("contents", xitConectionStatsMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
// pagination.put("totalCount", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -96,7 +96,7 @@ public class XitLoginPolicyMngController extends AbstractController {
data.put("contents", xitLoginPolicyMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
// pagination.put("totalCount", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -70,25 +70,7 @@ public class XitBatchRegMngController extends AbstractController {
@RequestMapping(name = "", value = "BatchRegMng_list", method={RequestMethod.GET, RequestMethod.POST})
public String BatchRegMng_list(@ModelAttribute("searchVO") XitBatchRegMngSearchVO searchVO, ModelMap model) {
/** paging */
//PaginationInfo paginationInfo = new PaginationInfo();
//paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
//paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
//paginationInfo.setPageSize(searchVO.getPageSize());
//searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
//searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
//searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//List<XitBatchRegMngVO> resultList = (List<XitBatchRegMngVO>) xitBatchRegMngService.findList(searchVO);
//int totCnt = xitBatchRegMngService.findListTotCnt(searchVO);
//paginationInfo.setTotalRecordCount(totCnt);
//model.addAttribute("resultList", resultList);
//model.addAttribute("resultCnt", totCnt);
//model.addAttribute("paginationInfo", paginationInfo);
//model.addAttribute("message", xitMessageSource.getMessage("success.common.select"));
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/batch/XitBatchRegMng_list";
}
@ -131,7 +113,7 @@ public class XitBatchRegMngController extends AbstractController {
data.put("contents", resultList); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -105,7 +105,7 @@ public class XitBatchResultMngController extends AbstractController {
data.put("contents", xitBatchResultMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -70,25 +70,7 @@ public class XitBatchScheduleMngController extends AbstractController {
@RequestMapping(name = "", value = "BatchScheduleMng_list", method={RequestMethod.GET, RequestMethod.POST})
public String BatchScheduleMng_list(@ModelAttribute("searchVO") XitBatchScheduleMngSearchVO searchVO, ModelMap model) {
/** paging */
//PaginationInfo paginationInfo = new PaginationInfo();
//paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
//paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
//paginationInfo.setPageSize(searchVO.getPageSize());
//searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
//searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
//searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//List<XitBatchScheduleMngVO> resultList = (List<XitBatchScheduleMngVO>) xitBatchScheduleMngService.findList(searchVO);
//int totCnt = xitBatchScheduleMngService.findListTotCnt(searchVO);
//paginationInfo.setTotalRecordCount(totCnt);
//model.addAttribute("resultList", resultList);
//model.addAttribute("resultCnt", totCnt);
//model.addAttribute("paginationInfo", paginationInfo);
//model.addAttribute("message", xitMessageSource.getMessage("success.common.select"));
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/batch/XitBatchScheduleMng_list";
}
@ -131,7 +113,7 @@ public class XitBatchScheduleMngController extends AbstractController {
data.put("contents", resultList); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -81,20 +81,6 @@ public class BoardTmplMgtController extends AbstractController {
master.setBbsNm("미리보기 게시판");
// vo.setPageUnit(PAGE_UNIT);
// vo.setPageSize(PAGE_SIZE);
//
// PaginationInfo paginationInfo = new PaginationInfo();
//
// paginationInfo.setCurrentPageNo(vo.getPageIndex());
// paginationInfo.setRecordCountPerPage(vo.getPageUnit());
// paginationInfo.setPageSize(vo.getPageSize());
//
// vo.setFirstIndex(paginationInfo.getFirstRecordIndex());
// vo.setLastIndex(paginationInfo.getLastRecordIndex());
// vo.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
XitBasicBbsMngVO target = null;
List<XitBasicBbsMngVO> list = new ArrayList<XitBasicBbsMngVO>();

@ -186,7 +186,7 @@ public class XitBasicBbsMngController extends AbstractController {
data.put("contents", xitBasicBbsMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -135,7 +135,7 @@ public class XitBbsCreateMngController extends AbstractController {
data.put("contents", xitBbsCreateMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -103,7 +103,7 @@ public class XitBbsTmplateMngController extends AbstractController {
data.put("contents", xitBbsTmplateMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************
@ -174,47 +174,7 @@ public class XitBbsTmplateMngController extends AbstractController {
) {
switch (cmd) {
case "choice": //템플릿 선택 팝업
/* ==============================
* 2020.10.06
* tui-grid
* -tui-grid
============================== */
//2020.10.06 박민규
// String typeFlag = (String) commandMap.get("typeFlag");
//
// if ("CLB".equals(typeFlag)) {
// searchVO.setTypeFlag(typeFlag);
// searchVO.setTmplatSeCode("TMPT03");
// } else if ("CMY".equals(typeFlag)) {
// searchVO.setTypeFlag(typeFlag);
// searchVO.setTmplatSeCode("TMPT02");
// } else {
// searchVO.setTypeFlag(typeFlag);
// searchVO.setTmplatSeCode("TMPT01");
// }
//
// searchVO.setPageUnit(Integer.parseInt(XitProperties.getProperty("Globals.Xit.Pagination.PageUnit")));
// searchVO.setPageSize(Integer.parseInt(XitProperties.getProperty("Globals.Xit.Pagination.PageSize")));
// //CMY, CLB
//
// PaginationInfo paginationInfo = new PaginationInfo();
//
// paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
// paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
// paginationInfo.setPageSize(searchVO.getPageSize());
//
// searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
// searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
// searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//
// List<XitBbsTmplateMngVO> resultList = xitBbsTmplateMngService.findList(searchVO);
// int totCnt = xitBbsTmplateMngService.findListTotCnt(searchVO);
//
// paginationInfo.setTotalRecordCount(totCnt);
//
// model.addAttribute("resultList", resultList);
// model.addAttribute("resultCnt", totCnt);
// model.addAttribute("paginationInfo", paginationInfo);
break;
default:
throw new RuntimeException("유효하지 않은 요청 입니다.");

@ -104,7 +104,7 @@ public class XitBbsUseMngController extends AbstractController {
data.put("contents", xitBbsUseMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -134,7 +134,7 @@ public class XitEntUserRegMngController extends AbstractController {
data.put("contents", xitEntUserRegMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -133,7 +133,7 @@ public class XitGnrUserRegMngController extends AbstractController {
data.put("contents", xitGnrUserRegMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -65,24 +65,7 @@ public class XitUserAbsntMngController extends AbstractController {
@RequestMapping(name = "", value = "UserAbsntMng_list", method={RequestMethod.GET, RequestMethod.POST})
public String UserAbsntMng_list(@RequestParam(value="selAbsnceAt", required=false, defaultValue="") String selAbsnceAt, @ModelAttribute("userAbsnceVO") XitUserAbsntMngSearchVO searchVO, ModelMap model) {
/** paging */
//PaginationInfo paginationInfo = new PaginationInfo();
//paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
//paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
//paginationInfo.setPageSize(searchVO.getPageSize());
//searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
//searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
//searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//searchVO.setSelAbsnceAt(selAbsnceAt);
//searchVO.setUserAbsnceList(xitUserAbsntMngService.findList(searchVO));
//model.addAttribute("userAbsnceList", searchVO.getUserAbsnceList());
//int totCnt = xitUserAbsntMngService.findListTotCnt(searchVO);
//paginationInfo.setTotalRecordCount(totCnt);
//model.addAttribute("paginationInfo", paginationInfo);
model.addAttribute("message", xitMessageSource.getMessage("success.common.select"));
@ -127,7 +110,7 @@ public class XitUserAbsntMngController extends AbstractController {
data.put("contents", xitUserAbsntMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -57,24 +57,6 @@ public class XitUserEtcOptMngController extends AbstractController {
@RequestMapping(name = "", value = "UserEtcOptMng_list", method={RequestMethod.GET, RequestMethod.POST})
public String UserEtcOptMng_list(@ModelAttribute("userSearchVO") XitUserEtcOptMngSearchVO searchVO, ModelMap model) {
// searchVO.setPageUnit(Integer.parseInt(XitProperties.getProperty("Globals.Xit.Pagination.PageUnit")));
// searchVO.setPageSize(Integer.parseInt(XitProperties.getProperty("Globals.Xit.Pagination.PageSize")));
//
// /** pageing */
// PaginationInfo paginationInfo = new PaginationInfo();
// paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
// paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
// paginationInfo.setPageSize(searchVO.getPageSize());
//
// searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
// searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
// searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
//
// model.addAttribute("resultList", xitUserEtcOptMngService.findList(searchVO));
//
// int totCnt = xitUserEtcOptMngService.findListTotCnt(searchVO);
// paginationInfo.setTotalRecordCount(totCnt);
// model.addAttribute("paginationInfo", paginationInfo);
/*================
*
@ -123,7 +105,7 @@ public class XitUserEtcOptMngController extends AbstractController {
data.put("contents", xitUserEtcOptMngService.findList(searchVO)); //[tui Grid] data-contents
Map<String, Integer> pagination = new HashMap<String, Integer>();
pagination.put("pageNum", searchVO.getPageNum());
pagination.put("totalCount", totCnt);
pagination.put("totalSize", totCnt);
data.put("pagination", pagination); //[tui Grid] data-paging
resultMap.put("data", data); //[tui Grid] data
/* ***************************

@ -175,11 +175,9 @@ public class LogAopAdvice {
private Map<String,Object> getPageInfoMap(Paginator paginator){
Map<String, Object> map = new HashMap<String, Object>();
//map.put("recods", paginator.getTotalCount());
map.put("totalPage", paginator.getTotalPages());
map.put("totalCount", paginator.getTotalCount());
map.put("totalSize", paginator.getTotalSize());
map.put("pageNum", paginator.getPageNum());
//map.put("rowNum", paginator.getLimit());
//
// // Query Data : Paging 정보만 set 하면 되므로 필요 없다
// //map.put(FwConstants.DEFAULT_RESPONSE_BODY_DATA_NAME, new ArrayList<PageList>(pageList));

@ -20,7 +20,7 @@ public class XitPaginationInfo extends PaginationInfo{
/** 현재 페이지 */
private int pageNum = -1;
/** 모든 로우들의 개수(=조회 총 건수) */
private int totalCount = -1;
private int totalSize = -1;
/* *************************
* //tui Grid Paging 필드
************************* */
@ -36,13 +36,13 @@ public class XitPaginationInfo extends PaginationInfo{
super.setCurrentPageNo(pageNum);
}
/** [tui Grid] 조회 총 건수를 설정 한다. */
public int getTotalCount() {
return totalCount;
public int getTotalSize() {
return totalSize;
}
/** [tui Grid] 조회 총 건수를 반환 한다. */
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
super.setTotalRecordCount(totalCount);
public void setTotalSize(int totalSize) {
this.totalSize = totalSize;
super.setTotalRecordCount(totalSize);
}

@ -11,12 +11,12 @@ public class Paginator implements Serializable {
private final int limit;
private int pageNum = 1;
private final int totalCount;
private final int totalSize;
public Paginator(int pageNum, int limit, int totalCount) {
public Paginator(int pageNum, int limit, int totalSize) {
super();
this.limit = limit;
this.totalCount = totalCount;
this.totalSize = totalSize;
this.pageNum = computePageNo(pageNum);
}
@ -36,8 +36,8 @@ public class Paginator implements Serializable {
return limit;
}
public int getTotalCount() {
return totalCount;
public int getTotalSize() {
return totalSize;
}
public boolean isFirstPage() {
@ -77,13 +77,13 @@ public class Paginator implements Serializable {
}
public int getStartRow() {
if (getLimit() <= 0 || totalCount <= 0)
if (getLimit() <= 0 || totalSize <= 0)
return 0;
return pageNum > 0 ? (pageNum - 1) * getLimit() + 1 : 0;
}
public int getEndRow() {
return pageNum > 0 ? Math.min(limit * pageNum, getTotalCount()) : 0;
return pageNum > 0 ? Math.min(limit * pageNum, getTotalSize()) : 0;
}
public int getOffset() {
@ -91,22 +91,22 @@ public class Paginator implements Serializable {
}
public int getTotalPages() {
if (totalCount <= 0) {
if (totalSize <= 0) {
return 0;
}
if (limit <= 0) {
return 0;
}
int count = totalCount / limit;
if (totalCount % limit > 0) {
int count = totalSize / limit;
if (totalSize % limit > 0) {
count++;
}
return count;
}
protected int computePageNo(int pageNum) {
return computePageNumber(pageNum, limit, totalCount);
return computePageNumber(pageNum, limit, totalSize);
}
private static int computeLastPageNumber(int totalItems, int pageSize) {
@ -137,7 +137,7 @@ public class Paginator implements Serializable {
sb.append("Paginator");
sb.append("{pageNum=").append(pageNum);
sb.append(", limit=").append(limit);
sb.append(", totalCount=").append(totalCount);
sb.append(", totalSize=").append(totalSize);
sb.append('}');
return sb.toString();
}

@ -29,7 +29,7 @@ import java.util.Properties;
import java.util.concurrent.*;
/**
* Paging - Paginator(page, limit, totalcount)- ,
* Paging - Paginator(pageNum, limit, totalSize)- ,
*/
@Intercepts({ @Signature(type = Executor.class,
method = "query",

@ -11,12 +11,12 @@ public class Paginator implements Serializable {
private final int limit;
private int pageNum = 1;
private final int totalCount;
private final int totalSize;
public Paginator(int pageNum, int limit, int totalCount) {
public Paginator(int pageNum, int limit, int totalSize) {
super();
this.limit = limit;
this.totalCount = totalCount;
this.totalSize = totalSize;
this.pageNum = computePageNo(pageNum);
}
@ -36,8 +36,8 @@ public class Paginator implements Serializable {
return limit;
}
public int getTotalCount() {
return totalCount;
public int getTotalSize() {
return totalSize;
}
public boolean isFirstPage() {
@ -77,13 +77,13 @@ public class Paginator implements Serializable {
}
public int getStartRow() {
if (getLimit() <= 0 || totalCount <= 0)
if (getLimit() <= 0 || totalSize <= 0)
return 0;
return pageNum > 0 ? (pageNum - 1) * getLimit() + 1 : 0;
}
public int getEndRow() {
return pageNum > 0 ? Math.min(limit * pageNum, getTotalCount()) : 0;
return pageNum > 0 ? Math.min(limit * pageNum, getTotalSize()) : 0;
}
public int getOffset() {
@ -91,22 +91,22 @@ public class Paginator implements Serializable {
}
public int getTotalPages() {
if (totalCount <= 0) {
if (totalSize <= 0) {
return 0;
}
if (limit <= 0) {
return 0;
}
int count = totalCount / limit;
if (totalCount % limit > 0) {
int count = totalSize / limit;
if (totalSize % limit > 0) {
count++;
}
return count;
}
protected int computePageNo(int pageNum) {
return computePageNumber(pageNum, limit, totalCount);
return computePageNumber(pageNum, limit, totalSize);
}
private static int computeLastPageNumber(int totalItems, int pageSize) {
@ -136,7 +136,7 @@ public class Paginator implements Serializable {
return "Paginator" +
"{pageNum=" + pageNum +
", limit=" + limit +
", totalCount=" + totalCount +
", totalSize=" + totalSize +
'}';
}
}

@ -25,7 +25,7 @@ public class PageListJsonSerializer extends JsonSerializer<PageList>{
Paginator paginator = value.getPaginator();
Map<String, Object> map = new HashMap<>();
map.put("totalCount", paginator.getTotalCount());
map.put("totalSize", paginator.getTotalSize());
map.put("totalPages", paginator.getTotalPages());
map.put("pageNum", paginator.getPageNum());
map.put("limit", paginator.getLimit());

@ -57,7 +57,7 @@ public class PageListAttrHandlerInterceptor extends HandlerInterceptorAdapter {
private Map<String,Object> getPageInfoMap(Paginator paginator){
Map<String, Object> map = new HashMap<String, Object>();
map.put("totalCount", paginator.getTotalCount());
map.put("totalSize", paginator.getTotalSize());
map.put("totalPages", paginator.getTotalPages());
map.put("pageNum", paginator.getPageNum());
map.put("limit", paginator.getLimit());

@ -59,10 +59,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -71,14 +71,14 @@ Date Author Description
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -89,10 +89,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -101,14 +101,14 @@ Date Author Description
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -82,10 +82,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -94,14 +94,14 @@ Date Author Description
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid_cplnt",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});
@ -142,10 +142,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$2$Control._paginationInfo.totalCount = pagination.totalCount;
$2$Control._paginationInfo.totalSize = pagination.totalSize;
$2$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$2$Control._paginationInfo.totalCount = obj.count;
$2$Control._paginationInfo.totalSize = obj.count;
}
$2$Control.totalCountSetting(obj);
@ -154,14 +154,14 @@ Date Author Description
if($2$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $2$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $2$Control._paginationInfo.fetchSize){
start = $2$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid2Paging").setPaging({
list: $2$Control.dataset,
prefix: "grid_vhcle_no_cplnt",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $2$Control._paginationInfo.fetchSize,
func: "$$$2Control.load({index})",
});

@ -713,10 +713,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$1$Control._paginationInfo.totalCount = pagination.totalCount;
$1$Control._paginationInfo.totalSize = pagination.totalSize;
$1$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$1$Control._paginationInfo.totalCount = obj.count;
$1$Control._paginationInfo.totalSize = obj.count;
}
}
@ -741,10 +741,10 @@ Date Author Description
if(obj.data.pagination != null) {
let pagination = obj.data.pagination;
if(obj.data.pagination){
$2$Control._paginationInfo.totalCount = pagination.totalCount;
$2$Control._paginationInfo.totalSize = pagination.totalSize;
$2$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$2$Control._paginationInfo.totalCount = obj.count;
$2$Control._paginationInfo.totalSize = obj.count;
}
}
$2$Control.totalCountSetting(obj);
@ -768,10 +768,10 @@ Date Author Description
if(obj.data.pagination != null) {
let pagination = obj.data.pagination;
if(obj.data.pagination){
$3$Control._paginationInfo.totalCount = pagination.totalCount;
$3$Control._paginationInfo.totalSize = pagination.totalSize;
$3$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$3$Control._paginationInfo.totalCount = obj.count;
$3$Control._paginationInfo.totalSize = obj.count;
}
}
$3$Control.totalCountSetting(obj);
@ -795,10 +795,10 @@ Date Author Description
if(obj.data.pagination != null) {
let pagination = obj.data.pagination;
if(obj.data.pagination){
$4$Control._paginationInfo.totalCount = pagination.totalCount;
$4$Control._paginationInfo.totalSize = pagination.totalSize;
$4$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$4$Control._paginationInfo.totalCount = obj.count;
$4$Control._paginationInfo.totalSize = obj.count;
}
}
$4$Control.totalCountSetting(obj);
@ -822,10 +822,10 @@ Date Author Description
if(obj.data.pagination != null) {
let pagination = obj.data.pagination;
if(obj.data.pagination){
$5$Control._paginationInfo.totalCount = pagination.totalCount;
$5$Control._paginationInfo.totalSize = pagination.totalSize;
$5$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$5$Control._paginationInfo.totalCount = obj.count;
$5$Control._paginationInfo.totalSize = obj.count;
}
}
$5$Control.totalCountSetting(obj);

@ -288,10 +288,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -300,14 +300,14 @@ Date Author Description
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -78,10 +78,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -90,14 +90,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -74,10 +74,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -86,14 +86,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -5,7 +5,6 @@
<%--rcvXmlDTO--%>
<c:set var="files" value="${attchFiles}"/>
<c:set var="bizName" value="외부연계 데이타"/>
<%--<c:set var="gridInfo" value="${gridInfo}"/>--%>
<div class="popup" style="min-width: 100px;">
<div class="container-window2" style="max-width: 900px;">

@ -88,10 +88,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -100,14 +100,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -75,10 +75,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -87,14 +87,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -72,10 +72,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -84,14 +84,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -222,10 +222,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$1$Control._paginationInfo.totalCount = pagination.totalCount;
$1$Control._paginationInfo.totalSize = pagination.totalSize;
$1$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$1$Control._paginationInfo.totalCount = obj.count;
$1$Control._paginationInfo.totalSize = obj.count;
}
$1$Control.totalCountSetting(obj);
@ -252,10 +252,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$2$Control._paginationInfo.totalCount = pagination.totalCount;
$2$Control._paginationInfo.totalSize = pagination.totalSize;
$2$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$2$Control._paginationInfo.totalCount = obj.count;
$2$Control._paginationInfo.totalSize = obj.count;
}
$2$Control.totalCountSetting(obj);
@ -282,10 +282,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$3$Control._paginationInfo.totalCount = pagination.totalCount;
$3$Control._paginationInfo.totalSize = pagination.totalSize;
$3$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$3$Control._paginationInfo.totalCount = obj.count;
$3$Control._paginationInfo.totalSize = obj.count;
}
$3$Control.totalCountSetting(obj);

@ -215,10 +215,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -227,14 +227,14 @@ Date Author Description
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -75,10 +75,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -87,14 +87,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -94,10 +94,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -106,14 +106,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -157,7 +157,7 @@ var XitAdminDbMng_list = {
return false;
}
//조회건수
const cnt = data.data.pagination.totalCount;
const cnt = data.data.pagination.totalSize;
if(cnt==0)
return false;

@ -69,10 +69,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -81,14 +81,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -71,10 +71,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -83,14 +83,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -73,10 +73,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -85,14 +85,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -70,10 +70,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -82,14 +82,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -72,10 +72,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -84,14 +84,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -78,10 +78,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -90,14 +90,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -71,10 +71,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -83,14 +83,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -81,10 +81,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -93,14 +93,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -73,10 +73,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -85,14 +85,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -76,10 +76,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -88,14 +88,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -75,10 +75,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -87,14 +87,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -72,10 +72,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -84,14 +84,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -72,10 +72,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -84,14 +84,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -86,10 +86,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -98,14 +98,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -80,10 +80,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -92,14 +92,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -79,10 +79,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -91,14 +91,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -64,10 +64,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -76,14 +76,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -78,10 +78,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -90,14 +90,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -73,10 +73,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -85,14 +85,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -76,10 +76,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -88,14 +88,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -81,10 +81,10 @@
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -93,14 +93,14 @@
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -101,10 +101,10 @@ Date Author Description
let pagination = obj.data.pagination;
if(obj.data.pagination){
$$Control._paginationInfo.totalCount = pagination.totalCount;
$$Control._paginationInfo.totalSize = pagination.totalSize;
$$Control._paginationInfo.pageNum = pagination.pageNum;
} else {
$$Control._paginationInfo.totalCount = obj.count;
$$Control._paginationInfo.totalSize = obj.count;
}
$$Control.totalCountSetting(obj);
@ -113,14 +113,14 @@ Date Author Description
if($$Control._paginationInfo.pagingType != "scroll"){
let start = 0;
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){
if(pagination.pageNum > 1 && pagination.totalPage > 1 && pagination.totalSize > $$Control._paginationInfo.fetchSize){
start = $$Control._paginationInfo.fetchSize * (pagination.pageNum - 1);
}
$("#grid1Paging").setPaging({
list: $$Control.dataset,
prefix: "grid1",
start: start,
totalSize: pagination.totalCount,
totalSize: pagination.totalSize,
fetchSize: $$Control._paginationInfo.fetchSize,
func: "$$$Control.load({index})",
});

@ -18,7 +18,7 @@ class PageNavigation {
// 페이지당 갯수
,fetchSize: null
// 전체 데이타 count
,totalCount: null
,totalSize: null
// 페이지 이동 구분
,pageMove: null
};
@ -33,17 +33,17 @@ class PageNavigation {
let pageInfo = {
pageNum: 1,
fetchSize: null,
totalCount: null
totalSize: null
};
if(GRID.paginationInfoRef.paging === true){
const {pageNum, fetchSize, totalCount} = GRID.paginationInfoRef;
const {pageNum, fetchSize, totalSize} = GRID.paginationInfoRef;
pageInfo.pageNum = pageNum;
pageInfo.fetchSize = fetchSize;
pageInfo.totalCount = totalCount;
pageInfo.totalSize = totalSize;
}else{
pageInfo.fetchSize = GRID.paginationInfoRef.totalCount;
pageInfo.totalCount = GRID.paginationInfoRef.totalCount;
pageInfo.fetchSize = GRID.paginationInfoRef.totalSize;
pageInfo.totalSize = GRID.paginationInfoRef.totalSize;
}
this.gridInfo = {
@ -54,7 +54,7 @@ class PageNavigation {
,curRowPos: (pageInfo.pageNum - 1) * pageInfo.fetchSize + gridDataPos + 1
,pageNum: pageInfo.pageNum
,fetchSize: pageInfo.fetchSize
,totalCount: pageInfo.totalCount
,totalSize: pageInfo.totalSize
,pageMove: null
,next: null
}
@ -88,12 +88,12 @@ class PageNavigation {
}else{
prevObj.attr('disabled', false);
}
if(this.gridInfo.curRowPos === this.gridInfo.totalCount){
if(this.gridInfo.curRowPos === this.gridInfo.totalSize){
nextObj.attr('disabled', true);
}else{
nextObj.attr('disabled', false);
}
totObj.text(this.gridInfo.curRowPos + " / " + this.gridInfo.totalCount);
totObj.text(this.gridInfo.curRowPos + " / " + this.gridInfo.totalSize);
}
/**

@ -588,7 +588,7 @@ class FimsDatasetControl extends DatasetControl {
totalCountSetting(obj){
if(document.getElementById('totCnt')){
if(obj.data.pagination){ // 부분 조회
$('#totCnt span').text(obj.data.pagination.totalCount);
$('#totCnt span').text(obj.data.pagination.totalSize);
}else{ // 전체
$('#totCnt span').text(obj.count)
}

Loading…
Cancel
Save