();
+ String cvlcptAplyCn = dataObject.string("CVLCPT_APLY_CN");
+ cvlcptAplyCn = CmmnUtil.escapeHTMLEntity(cvlcptAplyCn);
+ strings.add(cvlcptAplyCn);
+ FieldFinder.setClickHereText(hwpFile, "민원내용", strings);
+
+ //TODO : 사진삽입
+
+ String currentTime = ymdhmsFormat.format(new Date());
+ String resultPath = "files" + File.separator + "result" + File.separator + currentTime + ".hwp";
+ HWPWriter.toFile(hwpFile, resultPath);
+
+ FileInfo fileInfo = new FileInfo();
+ fileInfo.setPath(resultPath);
+ fileInfo.setName(currentTime+".hwp");
+ fileInfo.setMimeType("application/vnd.hancom.hwpx");
+ fileInfo.setExtension("hwp");
+ fileInfo.setSize(new File(resultPath).length());
+
+ String downlaodFileName = "민원내역원본_" + currentTime + ".hwp";
+
+ ModelAndView mav = new ModelAndView("jsonView");
+ mav.addObject("filePath", resultPath);
+ mav.addObject("fileName", downlaodFileName);
+ return mav;
+ } catch (Exception e) {
+
+ return new ModelAndView("errorView");
+
+ }
+ }
+
}
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 b033ce97..877b1eb2 100644
--- a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java
+++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java
@@ -174,4 +174,12 @@ public class Crdn01Controller extends ApplicationController {
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
+
+ /** 민원내역 원본을 한글 파일로 작성한다.
+ * @return hwp파일
+ */
+ @RequestMapping(name="민원내역 원본 한글 파일 생성", value="/050/makeFileFromHwpFormat.do")
+ public ModelAndView makeFileFromHwpFormat(CrdnQuery crdnQuery) {
+ return crdn01Service.makeFileFromHwpFormat(crdnQuery);
+ }
}
diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml
index 4497b7b4..44583d16 100644
--- a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml
+++ b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml
@@ -255,6 +255,7 @@ SELECT C.CRDN_ID
+
+
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp
index 7dc755bc..716ac977 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp
@@ -36,6 +36,10 @@
+