From 048dded1b2abdfdfd3764b7431eb9b4c6e7eaa6f Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 13 Jul 2023 15:13:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=AC=B4=EB=B3=84=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=EC=A1=B0=EA=B1=B4,=20=EC=97=85=EB=AC=B4=EB=B3=84=20?= =?UTF-8?q?=EC=9E=85=EB=A0=A5=ED=95=AD=EB=AA=A9=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/crdn/crdn05030-info.jsp | 138 ++++++++++-------- .../WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 26 +++- .../WEB-INF/jsp/fims/crdn/crdn06020-main.jsp | 41 ++++-- 3 files changed, 127 insertions(+), 78 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 167fe0ff..157678e2 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -2,12 +2,12 @@ <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
-
+
-
+
@@ -39,24 +39,23 @@
-
-
+
- - - +
+ +
-
+
@@ -73,10 +72,6 @@
-
- - -
@@ -93,15 +88,21 @@
차량명칭/차량색상은 입력항목이 아닙니다.
-
+
+ + +
+
+
+
-
+
-
+
- -
- -
- +
+
+
+
+
+
+ +
@@ -144,13 +148,33 @@
@@ -295,9 +302,21 @@ $(document).ready(function(){ * 초기화 **************************************************************************/ var clsForTask = $("#taskSeCd--${pageName}").val().toLowerCase(); - var content = document.getElementById("taskItem--${pageName}").content; - var taskItem = $(content).find("."+clsForTask); - $("#editByTask--${pageName}").html(taskItem); + + //업무별 입력 항목 + var editContent = document.getElementById("taskItem--${pageName}").content; + var taskItems = $(editContent).find("."+clsForTask); + var editSlotAreas = $("#frmEdit--${pageName}").find(".slot-edit"); + editSlotAreas.each(function(){ + var taskItem = taskItems.filter("[data-slot-index='"+this.dataset.slotIndex+"']"); + if(taskItem.length > 0){ + this.replaceWith(taskItem[0].cloneNode(true)); + } else { + this.classList.remove("pvs","bpv","dpv","eca"); + this.innerHTML = ""; + } + }); + initDatepicker("frmEdit--${pageName}"); //달력 초기화 @@ -333,5 +352,4 @@ $(document).ready(function(){ }); - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 1c3eaf26..62f72a2f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -100,18 +100,19 @@
-
+
+