From f9be1cb0f55279af5bf9b8db50b6db2fec35c8e9 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 20 Feb 2024 14:58:58 +0900 Subject: [PATCH] =?UTF-8?q?pdf=20=EC=9E=90=EB=A3=8C=20=EC=B6=94=EC=B6=9C?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=20=ED=99=94=EB=A9=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/cmmn/web/StngController.java | 24 +- .../cokr/xit/fims/task/web/CmnController.java | 5 + .../WEB-INF/jsp/fims/stng01020-main.jsp | 510 ++++++++++++++++++ src/main/webapp/WEB-INF/jsp/include/top.jsp | 32 +- 4 files changed, 568 insertions(+), 3 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp diff --git a/src/main/java/cokr/xit/fims/cmmn/web/StngController.java b/src/main/java/cokr/xit/fims/cmmn/web/StngController.java index 9d2e5282..f5c59736 100644 --- a/src/main/java/cokr/xit/fims/cmmn/web/StngController.java +++ b/src/main/java/cokr/xit/fims/cmmn/web/StngController.java @@ -40,7 +40,10 @@ public class StngController extends ApplicationController { public static final String otptStngMain = "/010/main.do", getOtptStngInfo = "/010/info.do", - saveOtptStngInfo = "/010/save.do" + saveOtptStngInfo = "/010/save.do", + extrStngMain = "/020/main.do", + getExtrStngInfo = "/020/info.do", + saveExtrStngInfo = "/020/save.do" ; } @@ -173,4 +176,23 @@ public class StngController extends ApplicationController { return mav; } + + /** PDF 자료 추출 설정 메인 화면을 연다. + * @return PDF 자료 추출 설정 메인 화면 + */ + public ModelAndView extrStngMain() { + ModelAndView mav = new ModelAndView("fims/stng01020-main"); + mav.addObject("pageName", "stng01020"); + + Map> commonCodes = getCodesOf("FIM054","FIM047","FIM078","FIM080"); + + mav.addObject("FIM047List", commonCodes.get("FIM047")); + mav.addObject("FIM054List", commonCodes.get("FIM054")); + mav.addObject("TaskListForSgg", stngBean.filterTaskSectionCodeForSgg(commonCodes.get("FIM054"))); + mav.addObject("FIM078List", commonCodes.get("FIM078")); + mav.addObject("FIM080List", commonCodes.get("FIM080")); + addCodes(commonCodes, mav, "FIM047", "FIM054", "FIM078","FIM080"); + + return mav; + } } diff --git a/src/main/java/cokr/xit/fims/task/web/CmnController.java b/src/main/java/cokr/xit/fims/task/web/CmnController.java index 5faaff30..f2c02cb2 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -721,5 +721,10 @@ public class CmnController { return super.saveOtptStngInfo(otptForm, backgroundFile); } + @Override + @RequestMapping(name="PDF 자료 추출 설정 메인 화면", value=METHOD_URL.extrStngMain) + public ModelAndView extrStngMain() { + return super.extrStngMain(); + } } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp new file mode 100644 index 00000000..83e06555 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp @@ -0,0 +1,510 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> + +PDF 추출 설정 + +
+
+
+
+
+
+ + 업무 + + 템플릿 + + + +
+
+
+ +
+
+
+ +
+ + +
+ + + + + +
+
+ +
+
+ 템플릿 문자열 + +
+
+ +
+
+
+ 기초 항목 + + + +
+
+
+
+ +
+ +
+
+
+ 사용자 정의 항목 + + +
+
+
+
+ +
+ +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp index c3a5d891..18de8e13 100644 --- a/src/main/webapp/WEB-INF/jsp/include/top.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp @@ -170,7 +170,7 @@ - + @@ -217,7 +217,6 @@ function fnOpenOtptStngDialog(){ $("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd); - //$("#"+dialogId).find("form[name='frmSearch']").find("[name='sndngSeCd']").val("03"); } , onClose : () => { } }); @@ -226,6 +225,35 @@ function fnOpenOtptStngDialog(){ } +function fnOpenExtrStngDialog(){ + dialog.close("selectStngDialog"); + + var url = wctx.url("/stng/stng01/020/main.do"); + var dialogId = "extrStngDialog"; + + ajax.post({ + url : url, + data : {}, + success : (resp) => { + + dialog.open({ + id : dialogId + , title : "PDF자료 추출 설정" + , size : "xxl" + , content : resp + , init : () => { + + $("#"+dialogId).find("input[name='dialogId']").val(dialogId); + + $("#"+dialogId).find("form[name='frmSearch']").find("[name='sggCd']").val(MY_INFO.info.sggCd); + + } + , onClose : () => { } + }); + } + }); +} + function fnOpenMyInfo(){ window.open( wctx.url("/user/openMyInfo.do")