From 634f387d5bf1769204b8fe4f743111e64e7bbe77 Mon Sep 17 00:00:00 2001 From: jjh Date: Fri, 30 Aug 2024 18:11:53 +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=B6=94=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/excl/excl01010-main.jsp | 11 + .../WEB-INF/jsp/fims/excl/excl02010-main.jsp | 12 +- .../WEB-INF/jsp/fims/excl/excl03010-main.jsp | 12 +- .../WEB-INF/jsp/fims/rent/rent01010-main.jsp | 90 +++- .../WEB-INF/jsp/fims/rent/rent02010-main.jsp | 507 ++++++++++++++++++ 5 files changed, 592 insertions(+), 40 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp index 8e0d7d98..dfe86ca9 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp @@ -153,6 +153,17 @@ + + + + + +
+ + +
+ + diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp index 2f0d3f3d..5d5739e8 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp @@ -140,15 +140,15 @@ - +
- - + +
- +
- - + +
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp index 49bab476..8db47a69 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp @@ -97,15 +97,15 @@
- +
- - + +
- +
- - + +
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 50de96fc..b0a3cd72 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 @@ -71,25 +71,28 @@ - - - - - - - - - - - - - - - - - + + @@ -212,10 +215,10 @@ , size: $P.ctrl.infoSize , content: resp , init: () => { - AppSupport.setDialogZindex(); - $("#" + dialogId).attr("name", dialogName); $("#" + dialogId).attr("data-ref-doctx", "${pageName}"); + + AppSupport.setDialogZindex(); } , onClose: () => { $P.ctrl.reload({ all: true }); } // 자료 재조회 }); @@ -257,12 +260,22 @@ let dataList = $P.ctrl.dataset; let empty = dataList.empty; - let trs = empty ? [$P.findn("tmpltNotFound").innerHTML] : - dataList.inStrings($P.findn("tmpltRows").innerHTML - , (str, dataItem) => str - .replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');") - .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID") + "');") - ); + // 업무별 DataTables(그리드) tr, td + let foundContent = $P.findn("tmpltRows").content; + let foundTr = $(foundContent).find("tr")[0].cloneNode(false); + let foundTds = $(foundContent).find(".cmn"); + + foundTds.each(function() { + foundTr.appendChild(this.cloneNode(true)); + }); + + let replacer = (str, dataItem) => str + .replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');") + .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID")+ "');"); + + let trs = empty ? + [$P.findn("tmpltNotFound").content.querySelector(".cmn").outerHTML] + : dataList.inStrings(foundTr.outerHTML, replacer); let noMore = (dataList.length >= totalSize); let initScroll = ($P.ctrl.query.pageNum < 2); @@ -329,12 +342,33 @@ // 화면 초기화 $P.findn("frmSearch").reset(); - // dataset 초기화 - $P.ctrl.dataset.clear(); + // input, select 초기화 + let searchForm = $P.$findn("frmSearch"); + searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false); + searchForm.find("input[type='checkbox']").prop("checked", false); + searchForm.find("input[type='text']").val(""); + searchForm.find("input[type='hidden']").val(""); + searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); + + AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화 + AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표 // 기본 데이터 설정 $P.$findn("userId").val("${userId}"); // 사용자 ID $P.$findn("schUserAcnt").val("${userAcnt}"); // 사용자 계정 + + // dataset 초기화 + $P.ctrl.dataset.clear(); + + // 그리드 th + let colContent = $P.findn("tmpltCols").content; + let cols = $(colContent).find(".cmn"); + let colsOuterHTML = ""; + + cols.each(function() { + colsOuterHTML += this.outerHTML; + }); + $P.findn("tableRspns").changeColumn(colsOuterHTML); } // 검색 버튼 이벤트 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 new file mode 100644 index 00000000..96dbc172 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp @@ -0,0 +1,507 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> + +임대계약서 관리 + + +
+ +
+
+ +
+ + + + + +
+ + + +
+ + + + + + + + + +
+ + +
+ +
    +
+
+ + + + + +
+
+ + + +
+
+ + + + + + + + + + + +
+ + + + + + + +
+ + + +