From 9029b3be006de6c2e6b9611f67a66caa0e6ed7df Mon Sep 17 00:00:00 2001 From: Leeyh1121 <130335980+Leeyh1121@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:15:47 +0900 Subject: [PATCH] =?UTF-8?q?fit=20:=20=EB=A9=94=EC=9D=B8=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=EC=85=8B=20=EB=B3=80=EA=B2=BD=EA=B3=BC=20?= =?UTF-8?q?=EA=B2=80=EC=83=89=EB=B2=84=ED=8A=BC=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EA=B5=AC=EB=B6=84=20=EC=A0=9C=EA=B1=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/adds/nims/product-popup.jsp | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 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 2ba5f8f..c8ca2c1 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 @@ -264,7 +264,7 @@ $("#tbody--${pageName}").setCurrentRow(key); $("#btnSearch3--${pageName}").prop("disabled", false); - $P.fnDetailSearchList("Y"); + $P.fnDetailSearchList(); } // 현재 선택 자료 변경 이벤트 @@ -279,7 +279,7 @@ // FIXME: 페이징 $P.detailControl.onDatasetChange = (obj) => { $P.renderDetailList(obj.${infoPrefix}Total); -debugger; +//debugger; $("#${infoPrefix}DetailPaging--${pageName}").setPagingInfo({ list: $P.detailControl.dataset , prefix: "${infoPrefix}DetailPaging--${pageName}" @@ -373,16 +373,16 @@ debugger; } // 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}" - }; + $P.fnDetailSearchList = () => { + $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 = { @@ -393,7 +393,7 @@ debugger; t: $('#schText--productMain').val(), //제조번호 또는 시리얼번호 userId: "${currentUser.account}" }; - } + }*/ $P.detailControl.query.fetchSize = 100; // 한번에 조회되는 자료 건수 $P.detailControl.query.delYn = "N"; // 삭제 여부 @@ -441,7 +441,7 @@ debugger; $("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장 $("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); $("#btnSearch2--${pageName}").on("click", () => $P.fnSearchList("Y")); - $("#btnSearch3--${pageName}").on("click", () => $P.fnDetailSearchList("Y")); + $("#btnSearch3--${pageName}").on("click", () => $P.fnDetailSearchList()); } // DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고)