From d2534cc1f3a209869e4d75c1de67f8f9110e7c08 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 13 Sep 2023 17:53:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=B0=EA=B3=84=EC=9A=A9xml=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EB=82=B4=EC=9A=A9=20=EC=A1=B0=ED=9A=8C=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/UserController.java | 33 +++++++++++++++++++ .../WEB-INF/jsp/fims/crdn/crdn07010-main.jsp | 1 + .../WEB-INF/jsp/fims/crdn/crdn08010-main.jsp | 1 + .../WEB-INF/jsp/fims/superUser-main.jsp | 32 ++++++++++++++++-- 4 files changed, 64 insertions(+), 3 deletions(-) diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index 7310b129..a40b9fe3 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -1,6 +1,10 @@ package cokr.xit.fims.base; +import java.io.BufferedReader; import java.io.File; +import java.io.FileInputStream; +import java.io.InputStreamReader; +import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; @@ -141,4 +145,33 @@ public class UserController extends cokr.xit.base.user.web.UserControllerInsert title here +주정차과태료, 전용차로과태료 기능 준비중... diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp index 48f80f45..c4b97ef7 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp @@ -7,6 +7,7 @@ Insert title here +전용차로과태료 기능 준비중... diff --git a/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp index a0951965..6c32a626 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp @@ -42,9 +42,9 @@
-
기타
-
- +
파일내용
+
+
@@ -154,6 +154,25 @@ function customContextMenu(node){ $("#serverFile").click(); + } + }, + viewCn : { + label : "내용 보기", + action:function(data){ + var inst = $.jstree.reference(data.reference); + var obj = inst.get_node(data.reference); + var pathArray = $("#fileTree").jstree("get_path", obj.id); + + ajax.post({ + url : wctx.url("/user/superUser/getFileText.do"), + data : { + directories : pathArray + }, + success : resp => { + $("#viewCn").val(resp.fileCn); + } + }); + } } }; @@ -163,6 +182,13 @@ function customContextMenu(node){ delete items.newFile; } + if(node.type == "directory"){ + delete items.viewCn; + } else if(!node.text.endsWith(".txt") && !node.text.endsWith(".xml") + && !node.text.endsWith(".TXT") && !node.text.endsWith(".XML")){ + delete items.viewCn; + } + return items; }