From dd6f8088c30bb548ae3bbd9b50a6c26cbdf0a8ac Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 9 Jul 2024 12:40:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=9C=EB=A6=AC=EC=96=BC=EB=B2=88?= =?UTF-8?q?=ED=98=B8=EA=B2=80=EC=83=89=20=ED=8E=98=EC=9D=B4=EC=A7=95=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/adds/nims/product-popup.jsp | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp index f890bef..9d448db 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp @@ -197,7 +197,6 @@ $P.detailControl = new DatasetControl({ urls : { - // FIXME: 2024-07-05 제품검색 완료후 교체 load : wctx.url("/adds/nims/getNimsProductSeqInfo.do"), // 시리얼번호 검색 } , prefix: "productMain" @@ -276,15 +275,17 @@ $("#tbody--${pageName}Detail").setCurrentRow(key); }; - + + // FIXME: 페이징 $P.detailControl.onDatasetChange = (obj) => { $P.renderDetailList(obj.${infoPrefix}Total); - +debugger; $("#${infoPrefix}DetailPaging--${pageName}").setPagingInfo({ list: $P.detailControl.dataset , prefix: "${infoPrefix}DetailPaging--${pageName}" , start: obj.${infoPrefix}Start - , totalSize: $P.detailControl.dataset.length + //, totalSize: $P.detailControl.dataset.length + , totalSize: obj.totalCount , fetchSize: obj.${infoPrefix}Fetch , func: "pageObject['${pageName}'].detailControl.load({index})" }); @@ -370,27 +371,31 @@ $P.control.load(1); } - + + // FIXME: 페이징처리 $P.fnDetailSearchList = (schYn) => { if (schYn == "Y"){ $P.detailControl.query = { fg: $('#schOpt--productMain').val(), // 1-제조번호, 2-시리얼번호 + pg: 1, p: $P.control.dataset.getCurrent().prductCd , //제품코드 prdValidDe: $("input[name='schPrdValidDe']").val().replaceAll("-", ""), t: $('#schText--productMain').val(), //제조번호 또는 시리얼번호 userId: "${currentUser.account}" }; }else{ + $P.detailControl.query.pageNum = 1; $P.detailControl.query = { fg: "1", // 1-제조번호, 2-시리얼번호 + pg: $P.detailControl.query.pageNum, p: $P.control.dataset.getCurrent().prductCd , //제품코드 - prdValidDe: "", - t: "", //제조번호 또는 시리얼번호 + prdValidDe: $("input[name='schPrdValidDe']").val().replaceAll("-", ""), + t: $('#schText--productMain').val(), //제조번호 또는 시리얼번호 userId: "${currentUser.account}" }; } - $P.detailControl.query.fetchSize = FETCH_XXL; // 한번에 조회되는 자료 건수 + $P.detailControl.query.fetchSize = 100; // 한번에 조회되는 자료 건수 $P.detailControl.query.delYn = "N"; // 삭제 여부 $P.detailControl.load(1);