납부확인서 출력 추가

main
이범준 12 months ago
parent 1051e93af4
commit 33a7e4058b

@ -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) {

@ -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();

@ -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<String,String> result = sprt01Service.makeFileFromHwpFormat("info", "rcvmtConfirm", printOption, crdnIds);
mav.addAllObjects(result);
return mav;
}
}

@ -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

@ -26,6 +26,8 @@
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01014-info.jsp" />
<jsp:include page="/WEB-INF/jsp/fims/sprt/sprt01015-info.jsp" />
<span id="tempArea--${pageName}" hidden></span>
<script type="module"
src="<c:url value='/resources/js/fims/sprt/integrationSearch.js?${ver}'/>"></script>
<script ${module}>
@ -477,6 +479,41 @@ integrationSearch.fnPrintBill = () => {
}
integrationSearch.fnPrintRcvmtConfirm = () => {
var downDataset = integrationSearchControl.downdataset;
if(downDataset.length <= 0){
dialog.alert("출력할 자료가 없습니다.");
return;
}
var downArr = downDataset.getDataset();
var crdnIds = Object.keys(Object.groupBy(downArr, ({ CRDN_ID }) => CRDN_ID));
var url = wctx.url("/sprt/sprt01/130/makeRcvmtConfirmFileFromHwpFormat.do");
ajax.post({
url : url,
data : {
crdnIds : crdnIds.join(","),
globalVariable : {}
},
success : resp => {
if(resp.filePath != null && resp.filePath != ""){
var 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);
}
}
});
}
//개별총정보 dialog
integrationSearch.getInfo = (taskSeCd, crdnId) => {
if (crdnId == undefined || crdnId == null || crdnId == "") {
@ -553,6 +590,8 @@ integrationSearch.setEvent = () => {
$("#btnUpInputEtcCn--${pageName}").on("click", function(){ integrationSearch.fnInputEtcCn("up"); });
$("#btnDownInputEtcCn--${pageName}").on("click", function(){ integrationSearch.fnInputEtcCn("down"); });
$("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ integrationSearch.fnPrintRcvmtConfirm(); });
//$("#btn").on("click", function(){ });

@ -65,7 +65,7 @@
title="대납고지서">
대납고지서
</button>
<button type="button" id="" class="btn btn-info"
<button type="button" id="btnDownPrintRcvmtConfirm--${pageName}" class="btn btn-info"
title="납부확인서">
납부확인서
</button>

@ -290,8 +290,7 @@ $(document).ready(function(){
ajax.post({
url : url,
data : {
crdnIds : $P.crdnIds.join(","),
globalVariable : globalVariable
crdnIds : $P.crdnIds.join(",")
},
success : resp => {
if(resp.filePath != null && resp.filePath != ""){

Loading…
Cancel
Save