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; }