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 73f4282..ac7c8fb 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 @@ -134,13 +134,25 @@
- - -  신규 API 업체코드 적용 - - - + + + + +
+ + +
+ + +
+
+ + +
+
+ + +
@@ -383,14 +395,16 @@ //그리드(우)조회(새로 조회) $P.fnDetailSearchList = () => { + if(!$P.control.dataset.getCurrent()?.prductCd){ return false; } + let bsshCd = '${bsshCd}'; - if(!$('#chkDtlBsshCd--${pageName}').is(":checked")){ + if($('input:radio[name="schMnfNo"]:checked').val() === 'nims'){ bsshCd = ''; } - + $P.seqInfoControl.query = { fg: $('#schOpt--productPopup').val(), // 1-제조번호, 2-시리얼번호 pg: 1, @@ -443,8 +457,7 @@ $("#btnSave--${pageName}").on("click", () => $P.fnSave()); // 저장 $("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); $("#btnSearchDtl--${pageName}").on("click", () => $P.fnDetailSearchList()); - $("#chkDtlBsshCd--${pageName}").on("change", () => $P.fnDetailSearchList()); - + $('input:radio[name="schMnfNo"]').on("change", () => $P.fnDetailSearchList()); $("#frmSearch--${pageName} input").onEnterPress($P.fnSearchList); @@ -467,6 +480,7 @@ // 초기 화면 설정 $P.initForm = () => { $("#btnSearchDtl--${pageName}").prop("disabled", true); + $('input:radio[name="schMnfNo"]').filter('[value="bc"]').prop('checked', true); } /**************************************************************************