diff --git a/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsn.java b/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsnList.java similarity index 98% rename from src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsn.java rename to src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsnList.java index bd5ee440..6af17069 100644 --- a/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsn.java +++ b/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsnList.java @@ -9,7 +9,7 @@ import cokr.xit.fims.sprt.PrintOption; import cokr.xit.foundation.data.DataObject; import kr.dogfoot.hwplib.object.HWPFile; -public class DlbrDecsn implements HWPFormatWriter { +public class DlbrDecsnList implements HWPFormatWriter { @Override public void setting(HWPPrintUtil hwpPrintUtil) { diff --git a/src/main/java/cokr/xit/fims/cmmn/hwp/format/SvbtcList.java b/src/main/java/cokr/xit/fims/cmmn/hwp/format/SvbtcList.java new file mode 100644 index 00000000..a747d81a --- /dev/null +++ b/src/main/java/cokr/xit/fims/cmmn/hwp/format/SvbtcList.java @@ -0,0 +1,49 @@ +package cokr.xit.fims.cmmn.hwp.format; + +import java.util.List; + +import cokr.xit.fims.cmmn.hwp.ClickHereEditor; +import cokr.xit.fims.cmmn.hwp.HWPFormatWriter; +import cokr.xit.fims.cmmn.hwp.HWPPrintUtil; +import cokr.xit.fims.sprt.PrintOption; +import cokr.xit.foundation.data.DataObject; +import kr.dogfoot.hwplib.object.HWPFile; + +public class SvbtcList implements HWPFormatWriter { + + @Override + public void setting(HWPPrintUtil hwpPrintUtil) { + hwpPrintUtil.setFormatName("svbtc"); + hwpPrintUtil.setFormatKorName("공시송달"); + + hwpPrintUtil.setFormatType("list"); + hwpPrintUtil.setRecordPerPartFile(9); + + hwpPrintUtil.setBaseFormatFilePath("template/hwp/svbtcList_root.hwp"); + hwpPrintUtil.setAttachFormatFilePath("template/hwp/svbtcList_inner.hwp"); + } + + @Override + public void writeGlobalInfo(HWPFile baseFile, List dataObjectList, PrintOption printOption, HWPPrintUtil hwpPrintUtil) { + // + ClickHereEditor baseFileEditor = new ClickHereEditor(baseFile); + + baseFileEditor.set("공시송달일자", dataObjectList.get(0).string("SVBTC_YMD")); + baseFileEditor.set("공시송달종료일자", dataObjectList.get(0).string("SVBTC_END_YMD")); + } + + @Override + public void writeSingleDataInfo(HWPFile baseFile, HWPFile attachFile, DataObject dataObject, HWPPrintUtil hwpPrintUtil) { + // + ClickHereEditor attachFileEditor = new ClickHereEditor(attachFile); + + attachFileEditor.set("성명", dataObject.string("RCPN_NM_MASK")); + attachFileEditor.set("주소", dataObject.string("RCPN_WHOL_ADDR_MASK")); + attachFileEditor.set("차량번호", dataObject.string("VHRNO_MASK")); + attachFileEditor.set("위반장소", dataObject.string("CRDN_PLC")); + attachFileEditor.set("위반일자", dataObject.string("CRDN_DT")); + attachFileEditor.set("반송일자", dataObject.string("DLVR_YMD")); + attachFileEditor.set("반송사유", dataObject.string("UNDLVR_RSN_NM")); + } + +} diff --git a/src/main/java/cokr/xit/fims/excl/service/bean/OpnnSbmsnServiceBean.java b/src/main/java/cokr/xit/fims/excl/service/bean/OpnnSbmsnServiceBean.java index 119a0f45..65412da0 100644 --- a/src/main/java/cokr/xit/fims/excl/service/bean/OpnnSbmsnServiceBean.java +++ b/src/main/java/cokr/xit/fims/excl/service/bean/OpnnSbmsnServiceBean.java @@ -11,9 +11,9 @@ import org.springframework.stereotype.Service; import cokr.xit.base.file.FileInfo; import cokr.xit.fims.cmmn.hwp.AddUtil; +import cokr.xit.fims.cmmn.hwp.format.DlbrDecsnList; import cokr.xit.fims.cmmn.hwp.HWPFormatWriter; import cokr.xit.fims.cmmn.hwp.HWPPrintUtil; -import cokr.xit.fims.cmmn.hwp.format.DlbrDecsn; import cokr.xit.fims.excl.LevyExclQuery; import cokr.xit.fims.excl.OpnnSbmsn; import cokr.xit.fims.excl.service.OpnnSbmsnService; @@ -120,7 +120,7 @@ public class OpnnSbmsnServiceBean extends AbstractServiceBean implements OpnnSbm Map result = new HashMap<>(); HWPPrintUtil printUtil = new HWPPrintUtil(); - HWPFormatWriter hwpFormatWriter = new DlbrDecsn(); + HWPFormatWriter hwpFormatWriter = new DlbrDecsnList(); hwpFormatWriter.setting(printUtil); UserInfo userInfo = currentUser(); diff --git a/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java b/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java index b52a8fa8..25447d3a 100644 --- a/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java +++ b/src/main/java/cokr/xit/fims/excl/web/Excl02Controller.java @@ -46,16 +46,16 @@ public class Excl02Controller extends ApplicationController { public class METHOD_URL { public static final String - opinionSubmissionMain = "/010/main.do" // 의견제출 관리 메인 화면 - , getOpinionSubmissionList = "/010/list.do" // 의견제출 대장 목록 조회 - , getOpinionSubmissionInfo = "/020/info.do" // 의견제출 대장 조회 - , createOpinionSubmission = "/020/create.do" // 의견제출 대장 등럭 - , updateOpinionSubmission = "/020/update.do" // 의견제출 대장 수정 - , getOpinionSubmissionAnswerInfo = "/030/info.do" // 의견제출 대장 심의 조회 - , updateOpinionSubmissionAnswer = "/030/update.do" // 의견제출 대장 심의 수정 - , removeOpinionSubmission = "/010/remove.do" // 의견제출 대장 삭제 - , removeOpinionSubmissionList = "/010/removes.do" // 의견제출 대장 목록 삭제 - , makeDlbrDecsnFileFromHwpFormat = "/040/makeDlbrDecsnHwp.do" // 의견제출 심의 의결서 HWP 저장 + opinionSubmissionMain = "/010/main.do" // 의견제출 관리 메인 화면 + , getOpinionSubmissionList = "/010/list.do" // 의견제출 대장 목록 조회 + , getOpinionSubmissionInfo = "/020/info.do" // 의견제출 대장 조회 + , createOpinionSubmission = "/020/create.do" // 의견제출 대장 등럭 + , updateOpinionSubmission = "/020/update.do" // 의견제출 대장 수정 + , getOpinionSubmissionAnswerInfo = "/030/info.do" // 의견제출 대장 심의 조회 + , updateOpinionSubmissionAnswer = "/030/update.do" // 의견제출 대장 심의 수정 + , removeOpinionSubmission = "/010/remove.do" // 의견제출 대장 삭제 + , removeOpinionSubmissionList = "/010/removes.do" // 의견제출 대장 목록 삭제 + , makeDlbrDecsnFileFromHwpFormat = "/010/makeHwp.do" // 의견제출 심의의결서 HWP 저장 ; } diff --git a/src/main/java/cokr/xit/fims/sndb/Svbtc.java b/src/main/java/cokr/xit/fims/sndb/Svbtc.java index 3e2a1ea8..a92f4c5f 100644 --- a/src/main/java/cokr/xit/fims/sndb/Svbtc.java +++ b/src/main/java/cokr/xit/fims/sndb/Svbtc.java @@ -37,6 +37,11 @@ public class Svbtc extends AbstractEntity { */ private String svbtcYmd; + /** + * 공시송달 종료 일자 + */ + private String svbtcEndYmd; + /** * 제목 명 */ diff --git a/src/main/java/cokr/xit/fims/sndb/dao/SvbtcMapper.java b/src/main/java/cokr/xit/fims/sndb/dao/SvbtcMapper.java index ee6261c3..dfc1b784 100644 --- a/src/main/java/cokr/xit/fims/sndb/dao/SvbtcMapper.java +++ b/src/main/java/cokr/xit/fims/sndb/dao/SvbtcMapper.java @@ -66,6 +66,12 @@ public interface SvbtcMapper extends AbstractMapper { */ List selectSvbtcDtls(SndbQuery req); + /**지정한 조건에 따라 공시송달 상세 객체들을 반환한다. + * @param req 공시송달 대장 조회 조건 + * @return 공시송달 대장 객체 목록 + */ + List selectSvbtcPrint(SndbQuery req); + /**공시송달 대장 정보를 등록한다. * @param params 파라미터 *
  • "svbtc" - 공시송달 대장
  • diff --git a/src/main/java/cokr/xit/fims/sndb/service/SvbtcService.java b/src/main/java/cokr/xit/fims/sndb/service/SvbtcService.java index ba7b8f46..0a80335e 100644 --- a/src/main/java/cokr/xit/fims/sndb/service/SvbtcService.java +++ b/src/main/java/cokr/xit/fims/sndb/service/SvbtcService.java @@ -1,10 +1,12 @@ package cokr.xit.fims.sndb.service; import java.util.List; +import java.util.Map; import cokr.xit.foundation.data.DataObject; import cokr.xit.fims.sndb.Svbtc; +import cokr.xit.fims.sprt.PrintOption; import cokr.xit.fims.sndb.SndbQuery; /**공시송달 대장 관리 서비스 인터페이스. @@ -49,6 +51,11 @@ public interface SvbtcService { */ List getSvbtcDtls(SndbQuery req); + /**지정한 조건에 따라 공시송달 상세 객체들을 반환한다. + * @param req 공시송달 IDs + * @return + */ + Map makeSvbtcFileFromHwpFormat(String formatType, String formatName, PrintOption printOption, String... svbtcIDs); /**공시송달 대장 정보를 등록한다. * @param svbtc 공시송달 대장 diff --git a/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java b/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java index 0992ab64..6e54842d 100644 --- a/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java +++ b/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcBean.java @@ -110,6 +110,14 @@ public class SvbtcBean extends AbstractComponent { return svbtcMapper.selectSvbtcDtls(req); } + /**지정한 조건에 따라 공시송달 상세 객체들을 반환한다. + * @param req 공시송달 대장 조회 조건 + * @return 공시송달 대장 객체 목록 + */ + public List getSvbtcPrint(SndbQuery req) { + return svbtcMapper.selectSvbtcPrint(req); + } + /**공시송달 대장 정보를 등록한다. * @param svbtc 공시송달 대장 * @return 저장 여부 diff --git a/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcServiceBean.java b/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcServiceBean.java index c66273bd..c2001a32 100644 --- a/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcServiceBean.java +++ b/src/main/java/cokr/xit/fims/sndb/service/bean/SvbtcServiceBean.java @@ -1,17 +1,31 @@ package cokr.xit.fims.sndb.service.bean; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import javax.annotation.Resource; +import org.springframework.core.io.ClassPathResource; import org.springframework.stereotype.Service; +import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.data.DataObject; - +import kr.dogfoot.hwplib.object.HWPFile; +import kr.dogfoot.hwplib.reader.HWPReader; +import kr.dogfoot.hwplib.writer.HWPWriter; import cokr.xit.fims.sndb.Svbtc; +import cokr.xit.fims.cmmn.hwp.AddUtil; +import cokr.xit.fims.cmmn.hwp.HWPFormatWriter; +import cokr.xit.fims.cmmn.hwp.HWPPrintUtil; +import cokr.xit.fims.cmmn.hwp.format.SvbtcList; +import cokr.xit.fims.mngt.service.bean.FactionBean; import cokr.xit.fims.sndb.SndbQuery; import cokr.xit.fims.sndb.service.SvbtcService; +import cokr.xit.fims.sprt.PrintOption; /**공시송달 대장 서비스 구현체. * @@ -30,6 +44,10 @@ public class SvbtcServiceBean extends AbstractServiceBean implements SvbtcServic @Resource(name = "svbtcBean") private SvbtcBean svbtcBean; + /* Bean */ + @Resource(name="factionBean") + protected FactionBean factionBean; + @Override public List getSvbtcList(SndbQuery req) { return svbtcBean.getSvbtcList(req); @@ -55,6 +73,102 @@ public class SvbtcServiceBean extends AbstractServiceBean implements SvbtcServic return svbtcBean.getSvbtcDtls(req); } + @Override + public Map makeSvbtcFileFromHwpFormat(String formatType, String formatName, PrintOption printOption, String... selectIDs) { + Map result = new HashMap<>(); + + HWPPrintUtil printUtil = new HWPPrintUtil(); + HWPFormatWriter hwpFormatWriter = new SvbtcList(); + hwpFormatWriter.setting(printUtil); + + UserInfo userInfo = currentUser(); + factionBean.initUserInfo(userInfo); + printUtil.setPrintRequestUserInfo(userInfo); + + // 자료 조회 + SndbQuery req = new SndbQuery(); + + if (formatName.equals("svbtc") ) { + req.setSvbtcId(selectIDs[0]); + req.setDelYN("N"); + } else if (formatName.equals("svbtcDtl") ) { + req.setSndngDtlIDs(selectIDs); + req.setDelYN("N"); + } + List dataObjectList = svbtcBean.getSvbtcPrint(req); + + int totalDataCount = dataObjectList.size(); + List partFileList = new ArrayList<>(); + printUtil.calcTotalPartFileCount(totalDataCount); + + try { + int dataIndex = 0; + for(int partFileIndex = 0; partFileIndex < printUtil.getTotalPartFileCount(); partFileIndex++) { + + // 새 파일 생성 + String resultHwpPath = printUtil.newFileFromFormatFile(); + HWPFile resultFile = HWPReader.fromFile(resultHwpPath); + + // 공통사항 세팅 + hwpFormatWriter.writeGlobalInfo(resultFile, dataObjectList, printOption, printUtil); + HWPWriter.toFile(resultFile, resultHwpPath); + + // 데이터 건별 처리 + for (int recordIndex = 0; recordIndex < printUtil.getRecordPerPartFile(); recordIndex++) { + if (dataIndex < dataObjectList.size()) { + DataObject dataObject = dataObjectList.get(dataIndex); + + if (formatType.equals("list")) { + InputStream attachFormatIS = new ClassPathResource(printUtil.getAttachFormatFilePath()).getInputStream(); + HWPFile attachFormatFile = HWPReader.fromInputStream(attachFormatIS); + + hwpFormatWriter.writeSingleDataInfo(null, attachFormatFile, dataObject, printUtil); + + AddUtil.insertTableInCell(attachFormatFile, resultFile, "내부"); + } else { + hwpFormatWriter.writeSingleDataInfo(resultFile, null, dataObject, printUtil); + } + } + + if (formatType.equals("list")) { + dataIndex++; + } + } + + if (!formatType.equals("list")) { + dataIndex++; + } + + HWPWriter.toFile(resultFile, resultHwpPath); + partFileList.add(resultHwpPath); + } + + // 결과 파일 병합 + if (partFileList.size() >= 2) { + String basePath = partFileList.get(0); + HWPFile baseFile = HWPReader.fromFile(basePath); + + for (int iLoop = 2; iLoop <= partFileList.size(); iLoop++) { + String attachPath = partFileList.get(iLoop - 1); + HWPFile attachFile = HWPReader.fromFile(attachPath); + AddUtil.appendToLast(attachFile, baseFile); + } + + HWPWriter.toFile(baseFile, basePath); + } + + String downlaodFileName = printUtil.getFormatKorName() + "_" + printUtil.getPrintRequestDt() + ".hwp"; + + result.put("fileName", downlaodFileName); + result.put("filePath", partFileList.get(0)); + } catch (Exception e) { + e.printStackTrace(); + throw new RuntimeException("한글 파일 출력 중 오류가 발생하였습니다."); + } + + return result; + } + @Override public String create(Svbtc svbtc) { return svbtcBean.create(svbtc); diff --git a/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java b/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java index 1a41fbce..a738061f 100644 --- a/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java +++ b/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java @@ -29,6 +29,7 @@ import cokr.xit.fims.sndb.Svbtc; import cokr.xit.fims.sndb.service.SndngDtlService; import cokr.xit.fims.sndb.service.SndngService; import cokr.xit.fims.sndb.service.SvbtcService; +import cokr.xit.fims.sprt.PrintOption; import cokr.xit.foundation.data.DataObject; /**발송 대장 서비스의 웹 컨트롤러 @@ -76,8 +77,10 @@ public class Sndb01Controller extends ApplicationController { , serviceByPublicNoticeMain = "/240/main.do" // 공시송달 현황 메인 화면 , getServiceByPublicNoticeList = "/240/list.do" // 공시송달 현황 목록 조회 , removeServiceByPublicNotice = "/240/remove.do" // 공시송달 삭제 + , makeSvbtcFileFromHwpFormat = "/240/makeSvbtcHwp.do" // 공시송달 한글 파일 출력 , getServiceByPublicNoticeDetailInfo = "/250/info.do" // 공시송달 상세 화면 , getServiceByPublicNoticeDetailList = "/250/list.do" // 공시송달 상세 목록 조회 + , makeSvbtcDetailsFileFromHwpFormat = "/250/makeSvbtcDtlHwp.do" // 공시송달 상세 한글 파일 출력 , getServiceByPublicNoticeInfo = "/260/info.do" // 공시송달 정보 , createServiceByPublicNotice = "/260/create.do" // 공시송달 등록 , updateServiceByPublicNotice = "/260/update.do" // 공시송달 수정 @@ -1434,6 +1437,40 @@ public class Sndb01Controller extends ApplicationController { } } + /** 공시송달 한글 파일로 작성한다. + * @return 공시송달 hwp파일 + */ + public ModelAndView makeSvbtcFileFromHwpFormat(String... svbtcIDs) { + Map result = null; + + PrintOption printOption = new PrintOption(); + + result = svbtcService.makeSvbtcFileFromHwpFormat("list", "svbtc", printOption, svbtcIDs); + + ModelAndView mav = new ModelAndView("jsonView"); + + mav.addAllObjects(result); + + return mav; + } + + /** 공시송달 한글 파일로 작성한다. + * @return 공시송달 hwp파일 + */ + public ModelAndView makeSvbtcDetailsFileFromHwpFormat(String... sndngDtlIDs) { + Map result = null; + + PrintOption printOption = new PrintOption(); + + result = svbtcService.makeSvbtcFileFromHwpFormat("list", "svbtcDtl", printOption, sndngDtlIDs); + + ModelAndView mav = new ModelAndView("jsonView"); + + mav.addAllObjects(result); + + return mav; + } + /**지정한 ID의 공시송달 정보를 반환한다. * @param svbtcId 공시송달 ID * @return fims/sndb/sndb01260-info 또는 jsonView diff --git a/src/main/java/cokr/xit/fims/task/web/DpvController.java b/src/main/java/cokr/xit/fims/task/web/DpvController.java index abe795c8..86132dc8 100644 --- a/src/main/java/cokr/xit/fims/task/web/DpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/DpvController.java @@ -673,6 +673,12 @@ public class DpvController { return super.getServiceByPublicNoticeList(req); } + @Override + @RequestMapping(name="공시송달 한글 저장", value=METHOD_URL.makeSvbtcFileFromHwpFormat) + public ModelAndView makeSvbtcFileFromHwpFormat(String... svbtcIDs) { + return super.makeSvbtcFileFromHwpFormat(svbtcIDs); + } + @Override @RequestMapping(name="공시송달 상세 화면", value=METHOD_URL.getServiceByPublicNoticeDetailInfo) public ModelAndView getServiceByPublicNoticeDetailInfo(SndbQuery req) { @@ -685,6 +691,12 @@ public class DpvController { return super.getServiceByPublicNoticeDetailList(req); } + @Override + @RequestMapping(name="공시송달 상세 한글 저장", value=METHOD_URL.makeSvbtcDetailsFileFromHwpFormat) + public ModelAndView makeSvbtcDetailsFileFromHwpFormat(String... sndngDtlIDs) { + return super.makeSvbtcDetailsFileFromHwpFormat(sndngDtlIDs); + } + @Override @RequestMapping(name="공시송달 정보", value=METHOD_URL.getServiceByPublicNoticeInfo) public ModelAndView getServiceByPublicNoticeInfo(SndbQuery req) { diff --git a/src/main/resources/sql/mapper/fims/sndb/svbtc-mapper.xml b/src/main/resources/sql/mapper/fims/sndb/svbtc-mapper.xml index 7076bdaa..f6f87f6f 100644 --- a/src/main/resources/sql/mapper/fims/sndb/svbtc-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sndb/svbtc-mapper.xml @@ -8,23 +8,24 @@ ============================ --> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -33,6 +34,7 @@ , SV.TASK_SE_CD , SV.SNDNG_SE_CD , SV.SVBTC_YMD + , SV.SVBTC_END_YMD , SV.TTL_NM , SV.DOC_NO , SV.ETC_CN @@ -148,6 +150,7 @@ , SV.TASK_SE_CD , SV.SNDNG_SE_CD , SV.SVBTC_YMD + , SV.SVBTC_END_YMD , SV.DOC_NO , SV.TTL_NM , SV.ETC_CN @@ -230,6 +233,11 @@ AND SV.SVBTC_ID = #{svbtcId} + + AND SV.SNDNG_DTL_ID IN ( + #{sndngDtlId} + ) + AND SD.SNDNG_DTL_ID = #{sndngDtlId} @@ -246,6 +254,74 @@ + + /* 공시송달 대장 등록(svbtcMapper.insertSvbtc) */ SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(SVBTC_ID, 5)) + 1, 1) AS INT), 16, '0')) AS NEW_ID @@ -259,6 +335,7 @@ , TASK_SE_CD , SNDNG_SE_CD , SVBTC_YMD + , SVBTC_END_YMD , TTL_NM , DOC_NO , ETC_CN @@ -275,6 +352,7 @@ , #{svbtc.taskSeCd} , #{svbtc.sndngSeCd} , #{svbtc.svbtcYmd} + , #{svbtc.svbtcEndYmd} , #{svbtc.ttlNm} , #{svbtc.docNo} , #{svbtc.etcCn} @@ -290,6 +368,7 @@ /* 공시송달 대장 수정(svbtcMapper.updateSvbtc) */ UPDATE TB_SVBTC SET SVBTC_YMD = #{svbtc.svbtcYmd} + , SVBTC_END_YMD= #{svbtc.svbtcEndYmd} , TTL_NM = #{svbtc.ttlNm} , DOC_NO = #{svbtc.docNo} , ETC_CN = #{svbtc.etcCn} diff --git a/src/main/resources/template/hwp/svbtcList_inner.hwp b/src/main/resources/template/hwp/svbtcList_inner.hwp new file mode 100644 index 00000000..2b7d6124 Binary files /dev/null and b/src/main/resources/template/hwp/svbtcList_inner.hwp differ diff --git a/src/main/resources/template/hwp/svbtcList_root.hwp b/src/main/resources/template/hwp/svbtcList_root.hwp new file mode 100644 index 00000000..2207642b Binary files /dev/null and b/src/main/resources/template/hwp/svbtcList_root.hwp differ diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp index 84ce60eb..b87a2151 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp @@ -10,211 +10,211 @@
    -
    - -
    - + + - - - - -
    - - - -
    - - - - -
    -
    - + + +
    @@ -437,6 +437,37 @@ }); } + // 한글파일 출력 + makeHwpFileSvbtc${pageName} = (params) => { + let selected = ${pageName}Control.dataset.getKeys("selected"); + + if (selected.length < 1) return; + + if (!params) { + params = {}; + params["svbtcIDs"] = selected.join(","); + } + + let taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val(); + + ajax.get({ + url : wctx.url("/" + taskSeCd + "/sndb/sndb01/240/makeSvbtcHwp.do") + , data : params || {} + , success : resp => { + if (resp.filePath != null && resp.filePath != "") { + let a = document.createElement("a"); + + a.href = resp.filePath; + a.download = resp.fileName; + + document.getElementById("tempArea--${pageName}").appendChild(a); + a.click(); + document.getElementById("tempArea--${pageName}").removeChild(a); + } + } + }); + } + // 공시송달 수정 getSvbtcInfo${pageName} = (params) => { if (!params) return; @@ -543,6 +574,11 @@ getFindUser${pageName}(); } + // 한글파일 출력 버튼 이벤트 + fnHwpSvbtc${pageName} = () => { + makeHwpFileSvbtc${pageName}(); + } + // 수정 버튼 이벤트 fnUpdateSvbtc${pageName} = () => { let svbtcId = ${pageName}Control.dataset.getValue("SVBTC_ID"); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp index e3e70e75..72de4a9e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp @@ -31,7 +31,7 @@ -
    + diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp index 4419d515..08e1e48f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp @@ -28,7 +28,7 @@ - @@ -174,7 +174,6 @@ -