From dc97041e3deef55500d0a4e0f8b7d8d4fe2af8a3 Mon Sep 17 00:00:00 2001 From: jjh Date: Mon, 2 Sep 2024 12:46:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EB=8C=80=EA=B3=84=EC=95=BD=EC=84=9C?= =?UTF-8?q?=20=EA=B4=80=EB=A6=AC=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp index e07f4bd8..bbbc09ac 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp @@ -411,6 +411,15 @@ $P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수 $P.ctrl.query.delYn = "N"; // 삭제 여부 + // 임대기업번호가 전체라면.. + if ($P.ctrl.query.schEntNo == "" ) { + // schEntNo 의 option을 전체를 배열로 담는다. + let arrEntNo = $.map($P.$findn("schEntNo").find("option"), function(e) { return e.value; }); + + // 빈 값(전체)을 제외하고 "," 로 구분하여 schEntNos 에 담는다. + $P.ctrl.query.schEntNos = arrEntNo.filter((element) => element !== "").join(','); + } + $P.ctrl.load(1); }