From 6ea0523e75036bedfda1f4a76144c04617ebcbc4 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 19 Nov 2024 15:25:45 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=A0=9C=ED=92=88=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=20=EC=8B=A0=EA=B7=9C=20API=20=EC=A0=81=EC=9A=A9=20-=20NIMS=20A?= =?UTF-8?q?PI=20=EA=B0=9C=EB=B0=9C=20=EC=99=84=EB=A3=8C=ED=9B=84=20?= =?UTF-8?q?=ED=95=84=EC=9A=94=EC=8B=9C=20URL=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=ED=95=84=EC=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/adds/nims/product-popup.jsp | 50 +++++++++---------- 1 file changed, 23 insertions(+), 27 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 ac7c8fb..db744c0 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 @@ -63,14 +63,24 @@
- - -<%-- + + + -  신규API 업체코드 적용 +
+ + +
+ + +
+
+ + +
+
---%> +
@@ -136,7 +146,6 @@ -
@@ -211,8 +220,6 @@ // $P.control 설정 $P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30 - - $P.seqInfoControl = new DatasetControl({ urls : { load : wctx.url("/adds/nims/getNimsProductSeqInfo.do"), // 시리얼번호 검색 @@ -247,8 +254,6 @@ // $P.control 설정 $P.seqInfoControl.defaultFetchSize = FETCH_MD; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30 - - /************************************************************************** * DatasetControl 이벤트 **************************************************************************/ @@ -301,8 +306,6 @@ , prefix: "${infoPrefix}DetailPaging--${pageName}" , totalSize: obj.totalCount }); - - }; /************************************************************************** @@ -358,19 +361,12 @@ }); return false; } - - // if($P.formFields.get().schProductNm.length !== 0 && $P.formFields.get().schProductNm.length < 2){ - // dialog.alert({ - // content: "상품명은 2자 이상으로 조회해 주세요." - // }); - // return false; - // } - - // FIXME:: NIMS API 개발 완료후 적용 + let bsshCd = '${bsshCd}'; - <%--if(!$('#chkBsshCd--${pageName}').is(":checked")){--%> - <%-- bsshCd = '';--%> - <%--}--%> + + if($('input:radio[name="schPrdCd"]:checked').val() === 'nimsPrd'){ + bsshCd = ''; + } $P.control.query = { ... $P.formFields.get(), @@ -386,13 +382,11 @@ $P.control.load(1); } - $P.scrollList = () => { $P.control.query.pg = $P.control.query.pageNum + 1; $P.control.load($P.control.query.pageNum + 1); } - //그리드(우)조회(새로 조회) $P.fnDetailSearchList = () => { @@ -457,6 +451,7 @@ $("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장 $("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); $("#btnSearchDtl--${pageName}").on("click", () => $P.fnDetailSearchList()); + $('input:radio[name="schPrdCd"]').on("change", () => $P.fnSearchList()); $('input:radio[name="schMnfNo"]').on("change", () => $P.fnDetailSearchList()); $("#frmSearch--${pageName} input").onEnterPress($P.fnSearchList); @@ -480,6 +475,7 @@ // 초기 화면 설정 $P.initForm = () => { $("#btnSearchDtl--${pageName}").prop("disabled", true); + $('input:radio[name="schPrdCd"]').filter('[value="bcPrd"]').prop('checked', true); $('input:radio[name="schMnfNo"]').filter('[value="bc"]').prop('checked', true); }