From 3353aad7038cffdeaaa663fc49e50e54ef28161c Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 28 Jul 2023 17:21:38 +0900 Subject: [PATCH 01/20] =?UTF-8?q?=ED=95=9C=EA=B8=80=20=EC=84=9C=EC=8B=9D?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/crdn/service/bean/Crdn01ServiceBean.java | 14 +++++++++++--- .../cokr/xit/fims/crdn/web/Crdn01Controller.java | 5 ++--- .../resources/format/cvlcptOrgnl_photo.hwp | Bin .../resources/format/cvlcptOrgnl_text.hwp | Bin 4 files changed, 13 insertions(+), 6 deletions(-) rename src/main/{webapp => }/resources/format/cvlcptOrgnl_photo.hwp (100%) rename src/main/{webapp => }/resources/format/cvlcptOrgnl_text.hwp (100%) diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java index a1638a0b..adc457b3 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java @@ -9,6 +9,7 @@ import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; +import org.springframework.util.ResourceUtils; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.file.service.FileQuery; @@ -65,7 +66,10 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic return crdn01Bean.removeCivilComplaint(crdnIDs); } - public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, String baseFormatFilePath, String attachFormatFilePath) { + public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery) { + + String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp"); + String attachFormatFilePath = ("classpath:format/cvlcptOrgnl_photo.hwp"); crdnQuery.setView("hwp"); DataObject dataObject = crdn01Bean.getCivilComplaintOriginalInfo(crdnQuery); @@ -74,7 +78,10 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic SimpleDateFormat ymdHypenFormat = new SimpleDateFormat("yyyy-MM-dd"); try { - HWPFile baseFormatFile = HWPReader.fromFile(baseFormatFilePath); + + File file = ResourceUtils.getFile(baseFormatFilePath); + + HWPFile baseFormatFile = HWPReader.fromFile(file); ArrayList strings = new ArrayList(); strings.add(dataObject.string("CVLCPT_APLCNT_NM")); @@ -136,7 +143,8 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic int PHOTO_COUNT_PER_PAGE = 4; for(int i=0; i < photoCnt; i += PHOTO_COUNT_PER_PAGE) { - HWPFile attachFormatFile = HWPReader.fromFile(attachFormatFilePath); + file = ResourceUtils.getFile(attachFormatFilePath); + HWPFile attachFormatFile = HWPReader.fromFile(file); InsertingImageCell.IMPL_InsertPicture(attachFormatFile, "왼쪽위사진", fileInfoList.get(i).string("URL")); if(i+1 < photoCnt) InsertingImageCell.IMPL_InsertPicture(attachFormatFile, "오른쪽위사진", fileInfoList.get(i+1).string("URL")); diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java index 06d80884..453aaded 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java @@ -189,10 +189,9 @@ public class Crdn01Controller extends ApplicationController { @RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do") public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery, HttpServletRequest request) { - String baseFormatFilePath = request.getServletContext().getRealPath("resources/format/cvlcptOrgnl_text.hwp"); - String attachFormatFilePath = request.getServletContext().getRealPath("resources/format/cvlcptOrgnl_photo.hwp"); - return crdn01Service.makeFileFromHwpFormat(crdnQuery, baseFormatFilePath, attachFormatFilePath); + + return crdn01Service.makeFileFromHwpFormat(crdnQuery); } /** 민원답변내용 미리보기 화면을 연다. diff --git a/src/main/webapp/resources/format/cvlcptOrgnl_photo.hwp b/src/main/resources/format/cvlcptOrgnl_photo.hwp similarity index 100% rename from src/main/webapp/resources/format/cvlcptOrgnl_photo.hwp rename to src/main/resources/format/cvlcptOrgnl_photo.hwp diff --git a/src/main/webapp/resources/format/cvlcptOrgnl_text.hwp b/src/main/resources/format/cvlcptOrgnl_text.hwp similarity index 100% rename from src/main/webapp/resources/format/cvlcptOrgnl_text.hwp rename to src/main/resources/format/cvlcptOrgnl_text.hwp From 6cca0884d9375eac730ff9331404e689ff3d6ba2 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 31 Jul 2023 09:09:13 +0900 Subject: [PATCH 02/20] =?UTF-8?q?=EC=83=89=EC=83=81=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=20=EA=B0=80=EB=8A=A5=ED=95=9C=20svg=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/FileController.java | 13 +--- .../svg}/계도장 발송현황.svg | 0 .../svg}/고정형cctv.svg | 0 .../svg}/고지서 발송현황.svg | 0 .../framework => resources/svg}/도보단속.svg | 0 .../framework => resources/svg}/등록대상.svg | 0 .../svg}/민원(즉시단속).svg | 0 .../svg}/사전통보 발송현황.svg | 0 .../svg}/수용_미수용.svg | 0 .../svg}/이동형cctv.svg | 0 .../framework => resources/svg}/이첩대상.svg | 0 .../framework => resources/svg}/자진취하.svg | 0 .../fims/framework => resources/svg}/접수.svg | 0 .../css/fims/framework/common/xit-icon.css | 72 +++++++++---------- 14 files changed, 39 insertions(+), 46 deletions(-) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/계도장 발송현황.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/고정형cctv.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/고지서 발송현황.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/도보단속.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/등록대상.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/민원(즉시단속).svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/사전통보 발송현황.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/수용_미수용.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/이동형cctv.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/이첩대상.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/자진취하.svg (100%) rename src/main/{webapp/resources/image/fims/framework => resources/svg}/접수.svg (100%) diff --git a/src/main/java/cokr/xit/fims/base/FileController.java b/src/main/java/cokr/xit/fims/base/FileController.java index b305c9f1..c8282513 100644 --- a/src/main/java/cokr/xit/fims/base/FileController.java +++ b/src/main/java/cokr/xit/fims/base/FileController.java @@ -45,18 +45,11 @@ public class FileController extends cokr.xit.base.file.web.FileController { public void modifySvg(HttpServletRequest request, HttpServletResponse response) throws URISyntaxException, IOException, ParserConfigurationException, SAXException { String requestURI = request.getRequestURI().toString(); - String filepath = requestURI.replace("/file/modifySvg","/resources/image"); - System.out.println("log : "+filepath); + String filepath = requestURI.split("modifySvg")[1]; filepath = URLDecoder.decode(filepath); - System.out.println("log : "+filepath); - filepath = request.getSession().getServletContext().getRealPath(filepath); - System.out.println("log : "+filepath); filepath = filepath.replace("\\","/"); - System.out.println("log : "+filepath); - String contextPath = request.getSession().getServletContext().getContextPath(); - filepath = filepath.replace("webapp"+contextPath+"/resources", "webapp/resources"); - System.out.println("log : "+filepath); - filepath = "file:///"+filepath; + String svgRootPath = ("classpath:svg"); + filepath = svgRootPath + filepath; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder = factory.newDocumentBuilder(); diff --git a/src/main/webapp/resources/image/fims/framework/계도장 발송현황.svg b/src/main/resources/svg/계도장 발송현황.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/계도장 발송현황.svg rename to src/main/resources/svg/계도장 발송현황.svg diff --git a/src/main/webapp/resources/image/fims/framework/고정형cctv.svg b/src/main/resources/svg/고정형cctv.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/고정형cctv.svg rename to src/main/resources/svg/고정형cctv.svg diff --git a/src/main/webapp/resources/image/fims/framework/고지서 발송현황.svg b/src/main/resources/svg/고지서 발송현황.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/고지서 발송현황.svg rename to src/main/resources/svg/고지서 발송현황.svg diff --git a/src/main/webapp/resources/image/fims/framework/도보단속.svg b/src/main/resources/svg/도보단속.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/도보단속.svg rename to src/main/resources/svg/도보단속.svg diff --git a/src/main/webapp/resources/image/fims/framework/등록대상.svg b/src/main/resources/svg/등록대상.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/등록대상.svg rename to src/main/resources/svg/등록대상.svg diff --git a/src/main/webapp/resources/image/fims/framework/민원(즉시단속).svg b/src/main/resources/svg/민원(즉시단속).svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/민원(즉시단속).svg rename to src/main/resources/svg/민원(즉시단속).svg diff --git a/src/main/webapp/resources/image/fims/framework/사전통보 발송현황.svg b/src/main/resources/svg/사전통보 발송현황.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/사전통보 발송현황.svg rename to src/main/resources/svg/사전통보 발송현황.svg diff --git a/src/main/webapp/resources/image/fims/framework/수용_미수용.svg b/src/main/resources/svg/수용_미수용.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/수용_미수용.svg rename to src/main/resources/svg/수용_미수용.svg diff --git a/src/main/webapp/resources/image/fims/framework/이동형cctv.svg b/src/main/resources/svg/이동형cctv.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/이동형cctv.svg rename to src/main/resources/svg/이동형cctv.svg diff --git a/src/main/webapp/resources/image/fims/framework/이첩대상.svg b/src/main/resources/svg/이첩대상.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/이첩대상.svg rename to src/main/resources/svg/이첩대상.svg diff --git a/src/main/webapp/resources/image/fims/framework/자진취하.svg b/src/main/resources/svg/자진취하.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/자진취하.svg rename to src/main/resources/svg/자진취하.svg diff --git a/src/main/webapp/resources/image/fims/framework/접수.svg b/src/main/resources/svg/접수.svg similarity index 100% rename from src/main/webapp/resources/image/fims/framework/접수.svg rename to src/main/resources/svg/접수.svg diff --git a/src/main/webapp/resources/css/fims/framework/common/xit-icon.css b/src/main/webapp/resources/css/fims/framework/common/xit-icon.css index 2394723f..a832dfaf 100644 --- a/src/main/webapp/resources/css/fims/framework/common/xit-icon.css +++ b/src/main/webapp/resources/css/fims/framework/common/xit-icon.css @@ -1,73 +1,73 @@ .svg-cctv-fixed:before { - --bs-origin : url("../../../../../resources/image/fims/framework/고정형cctv.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/고정형cctv.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/고정형cctv.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/고정형cctv.svg"); + --bs-active : url("../../../../../file/modifySvg/고정형cctv.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/고정형cctv.svg?modify=alert"); } .svg-cctv-drive:before { - --bs-origin : url("../../../../../resources/image/fims/framework/이동형cctv.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/이동형cctv.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/이동형cctv.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/이동형cctv.svg"); + --bs-active : url("../../../../../file/modifySvg/이동형cctv.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/이동형cctv.svg?modify=alert"); } .svg-crackdown-road:before { - --bs-origin : url("../../../../../resources/image/fims/framework/도보단속.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/도보단속.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/도보단속.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/도보단속.svg"); + --bs-active : url("../../../../../file/modifySvg/도보단속.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/도보단속.svg?modify=alert"); } .svg-crackdown-minwon:before { - --bs-origin : url("../../../../../resources/image/fims/framework/민원(즉시단속).svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/민원(즉시단속).svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/민원(즉시단속).svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/민원(즉시단속).svg"); + --bs-active : url("../../../../../file/modifySvg/민원(즉시단속).svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/민원(즉시단속).svg?modify=alert"); } .svg-target-lvy:before { - --bs-origin : url("../../../../../resources/image/fims/framework/등록대상.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/등록대상.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/등록대상.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/등록대상.svg"); + --bs-active : url("../../../../../file/modifySvg/등록대상.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/등록대상.svg?modify=alert"); } .svg-target-transfer:before { - --bs-origin : url("../../../../../resources/image/fims/framework/이첩대상.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/이첩대상.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/이첩대상.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/이첩대상.svg"); + --bs-active : url("../../../../../file/modifySvg/이첩대상.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/이첩대상.svg?modify=alert"); } .svg-sendstat-guide:before { - --bs-origin : url("../../../../../resources/image/fims/framework/계도장 발송현황.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/계도장 발송현황.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/계도장 발송현황.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/계도장 발송현황.svg"); + --bs-active : url("../../../../../file/modifySvg/계도장 발송현황.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/계도장 발송현황.svg?modify=alert"); } .svg-sendstat-before:before { - --bs-origin : url("../../../../../resources/image/fims/framework/사전통보 발송현황.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/사전통보 발송현황.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/사전통보 발송현황.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/사전통보 발송현황.svg"); + --bs-active : url("../../../../../file/modifySvg/사전통보 발송현황.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/사전통보 발송현황.svg?modify=alert"); } .svg-sendstat-nop:before { - --bs-origin : url("../../../../../resources/image/fims/framework/고지서 발송현황.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/고지서 발송현황.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/고지서 발송현황.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/고지서 발송현황.svg"); + --bs-active : url("../../../../../file/modifySvg/고지서 발송현황.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/고지서 발송현황.svg?modify=alert"); } .svg-opn-rcp:before { - --bs-origin : url("../../../../../resources/image/fims/framework/접수.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/접수.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/접수.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/접수.svg"); + --bs-active : url("../../../../../file/modifySvg/접수.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/접수.svg?modify=alert"); } .svg-opn-decision:before { - --bs-origin : url("../../../../../resources/image/fims/framework/수용_미수용.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/수용_미수용.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/수용_미수용.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/수용_미수용.svg"); + --bs-active : url("../../../../../file/modifySvg/수용_미수용.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/수용_미수용.svg?modify=alert"); } .svg-opn-selfdrop:before { - --bs-origin : url("../../../../../resources/image/fims/framework/자진취하.svg"); - --bs-active : url("../../../../../file/modifySvg/fims/framework/자진취하.svg?modify=active"); - --bs-alert : url("../../../../../file/modifySvg/fims/framework/자진취하.svg?modify=alert"); + --bs-origin : url("../../../../../file/modifySvg/자진취하.svg"); + --bs-active : url("../../../../../file/modifySvg/자진취하.svg?modify=active"); + --bs-alert : url("../../../../../file/modifySvg/자진취하.svg?modify=alert"); } [class^=svg-]:before { From f9d32847a522253a0f5b806784a263843cb42181 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 31 Jul 2023 10:54:39 +0900 Subject: [PATCH 03/20] =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=ED=8E=B8?= =?UTF-8?q?=EC=A7=91=20=EC=88=98=EC=A0=95=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn01020-info.jsp | 96 ++++--- .../WEB-INF/jsp/fims/sprt/sprt03020-main.jsp | 121 +++++++- .../fims/biz/paintweb/es6-promise.auto.min.js | 1 - .../lib/fims/biz/paintweb/es6-promise.min.js | 1 - .../paintweb/interfaces/default/layout.xhtml | 13 +- .../biz/paintweb/interfaces/default/script.js | 1 + .../lib/fims/biz/paintweb/lang/en.json | 268 ------------------ .../fims/biz/paintweb/lang/{ko.json => ko.js} | 13 +- ...aintweb-config.json => paintweb-config.js} | 53 ++-- .../lib/fims/biz/paintweb/paintweb.js | 87 ++---- 10 files changed, 222 insertions(+), 432 deletions(-) delete mode 100644 src/main/webapp/resources/lib/fims/biz/paintweb/es6-promise.auto.min.js delete mode 100644 src/main/webapp/resources/lib/fims/biz/paintweb/es6-promise.min.js delete mode 100644 src/main/webapp/resources/lib/fims/biz/paintweb/lang/en.json rename src/main/webapp/resources/lib/fims/biz/paintweb/lang/{ko.json => ko.js} (98%) rename src/main/webapp/resources/lib/fims/biz/paintweb/{paintweb-config.json => paintweb-config.js} (92%) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp index a67b8443..cc6b47be 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp @@ -2,7 +2,7 @@ <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
-
+
@@ -10,7 +10,7 @@
-
-
-
-
- +
- +
- +
- +
-
- +
+ class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">답변기한
- +
- +
- +
- +
- +
- +
- + @@ -152,36 +152,36 @@
- +
- +
- +
- +