From 861d2a3c593d667fbf518d4d7ce70656588f4527 Mon Sep 17 00:00:00 2001 From: jjh Date: Tue, 30 Jul 2024 15:06:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EB=8C=80=EA=B8=B0=EC=97=85=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20jsp=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/rent/rent01010-main.jsp | 14 +++++++++----- .../WEB-INF/jsp/fims/rent/rent01020-info.jsp | 9 ++++++++- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp index 6e77f847..52a518ba 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp @@ -215,11 +215,15 @@ // 상세정보 dialog $P.control.getInfo = (mpngId) => { - let params = { - callPurpose: "create" - , mpngId: mpngId - , entId: $P.control.dataset.getValue("ENT_ID") - }; + let params = {}; + + if (typeof mpngId == "undefined" || mpngId == null || mpngId == "") { + params.callPurpose = "create"; + } else { + params.callPurpose = "update"; + params.mpngId = mpngId; + params.schEntNo = $P.control.dataset.getValue("ENT_NO"); + } ajax.get({ url: $P.control.urls.getInfo + "?openerPageName=${pageName}" diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp index c0cb25c9..3b28788e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp @@ -152,7 +152,7 @@
- +
@@ -390,6 +390,12 @@ // dataset 초기화 $P.control.dataset.clear(); + + + let schEntNo = $("#schEntNo--${pageName}").val(); + if (schEntNo != "") { + $P.fnSearchList(); + } } // 검색 버튼 클릭 이벤트 @@ -548,6 +554,7 @@ // 기본 데이터 설정 $("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드 $("#userId--${pageName}").val("${userId}"); // 사용자 ID + $("#schEntNo--${pageName}").val("${schEntNo}"); // 기업 번호 } // 업무 구분별 설정