diff --git a/src/main/java/cokr/xit/fims/cmmn/hwp/PrintUtil.java b/src/main/java/cokr/xit/fims/cmmn/hwp/PrintUtil.java index d295b50d..0df763a2 100644 --- a/src/main/java/cokr/xit/fims/cmmn/hwp/PrintUtil.java +++ b/src/main/java/cokr/xit/fims/cmmn/hwp/PrintUtil.java @@ -149,6 +149,12 @@ public class PrintUtil { this.attachFormatFilePath = "format/reportOnClaims_inner.hwp"; break; } + case "rcvmtConfirm": { + this.formatKorName = "납부확인서"; + this.baseFormatFilePath = "format/rcvmtConfirm.hwp"; + this.attachFormatFilePath = ""; + break; + } } } @@ -409,6 +415,30 @@ public class PrintUtil { } } + else if(this.formatName.equals("rcvmtConfirm")) { + + baseFileEditor.set("위반명1", dataObject.string("TASK_SE_NM")); + baseFileEditor.set("위반명2", dataObject.string("TASK_SE_NM")); + baseFileEditor.set("위반차량", dataObject.string("VHRNO")); + baseFileEditor.set("대체차량", dataObject.string("RPM_SZR_VHRNO")); + baseFileEditor.set("위반금액", CmmnUtil.addCommaToNumber(dataObject.string("FFNLG_AMT"))); + baseFileEditor.set("단속일자", DataFormat.yyyy_mm_dd(dataObject.string("CRDN_YMD"))); + baseFileEditor.set("단속장소", dataObject.string("CRDN_PLC")); + baseFileEditor.set("소유자", dataObject.string("RTPYR_NM")); + baseFileEditor.set("주민번호", dataObject.string("RTPYR_NO")); + baseFileEditor.set("주소", dataObject.string("RTPYR_FULL_ADDR")); + baseFileEditor.set("고지번호", dataObject.string("GOJI_NO")); + baseFileEditor.set("수납일자", DataFormat.yyyy_mm_dd(dataObject.string("RCVMT_YMD"))); + baseFileEditor.set("수납금액", CmmnUtil.addCommaToNumber(dataObject.string("RCVMT_AMT"))); + + baseFileEditor.set("연월일시분초", CmmnUtil.yyyy_mm_dd_hh_mm_ss(this.printRequestDt)); + baseFileEditor.set("확인자", this.printRequestUserInfo.getName()); + + String instNm = (String) this.printRequestUserInfo.getInfo().get("instNm"); + instNm = FactionUtil.getInstituteLeader(instNm, false); + baseFileEditor.set("발신", instNm); + + } } } catch(Exception e) { diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java index ac1a0c8a..7b54f0eb 100644 --- a/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/sprt/service/bean/Sprt01ServiceBean.java @@ -145,6 +145,10 @@ public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Serv globalVariable.put("offcsFilePath", sggStngInfo.string("OFFCS_FILE_PATH")); printOption.setGlobalVariable(globalVariable); + } else if(formatName.equals("rcvmtConfirm")) { + SprtQuery sprtQuery = new SprtQuery(); + sprtQuery.setCrdnIDs(crdnIds); + dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery); } int totalDataCount = dataObjectList.size(); diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index d2d171a0..cab92465 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -44,12 +44,13 @@ public class Sprt01Controller extends ApplicationController { inputEtcCnMain = "/100/info.do", inputEtcCn = "/100/update.do", - printCrdnMain = "/110/info.do", - makeCrdnListFileFromHwpFormat = "/110/makeCrdnListFileFromHwpFormat.do", + printCrdnMain = "/110/info.do", + makeCrdnListFileFromHwpFormat = "/110/makeCrdnListFileFromHwpFormat.do", makeCrdnConfirmFileFromHwpFormat = "/110/makeCrdnConfirmFileFromHwpFormat.do", - printBillMain = "/120/info.do", + printBillMain = "/120/info.do", makeRequestForDeliveryFileFromHwpFormat = "/120/makeRequestForDeliveryFileFromHwpFormat.do", - makeReportOnClaimsFileFromHwpFormat = "/120/makeReportOnClaimsFileFromHwpFormat.do" + makeReportOnClaimsFileFromHwpFormat = "/120/makeReportOnClaimsFileFromHwpFormat.do", + makeRcvmtConfirmFileFromHwpFormat = "/130/makeRcvmtConfirmFileFromHwpFormat.do" ; } @@ -350,4 +351,18 @@ public class Sprt01Controller extends ApplicationController { return mav; } + + /** 납부확인서를 한글 파일로 작성한다. + * @return hwp파일 + */ + public ModelAndView makeRcvmtConfirmFileFromHwpFormat(String[] crdnIds) { + ModelAndView mav = new ModelAndView("jsonView"); + + PrintOption printOption = new PrintOption(); + + Map result = sprt01Service.makeFileFromHwpFormat("info", "rcvmtConfirm", printOption, crdnIds); + mav.addAllObjects(result); + + 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 82dda93d..efae6a11 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -398,6 +398,12 @@ public class CmnController { return super.makeReportOnClaimsFileFromHwpFormat(printOption, crdnIds); } + @Override + @RequestMapping(name="납부확인서 한글 파일 생성", value=METHOD_URL.makeRcvmtConfirmFileFromHwpFormat) + public ModelAndView makeRcvmtConfirmFileFromHwpFormat(String... crdnIds) { + return super.makeRcvmtConfirmFileFromHwpFormat(crdnIds); + } + } @Controller diff --git a/src/main/resources/format/rcvmtConfirm.hwp b/src/main/resources/format/rcvmtConfirm.hwp new file mode 100644 index 00000000..10e181f7 Binary files /dev/null and b/src/main/resources/format/rcvmtConfirm.hwp differ diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp index e3550731..f21d2ba4 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp @@ -26,6 +26,8 @@ + +