단속내역서,단속확인서 출력대상 확인 화면 추가

main
이범준 1 year ago
parent 7152c66825
commit ccd39384b4

@ -39,8 +39,10 @@ public class Sprt01Controller extends ApplicationController {
integrationSearchMain = "/010/main.do",
getIntegrationDataList = "/010/list.do",
manageEtcCnMain = "/020/info.do",
inputEtcCnMain = "/030/info.do",
inputEtcCn = "/030/update.do"
inputEtcCnMain = "/100/info.do",
inputEtcCn = "/100/update.do",
printCrdnMain = "/110/info.do"
;
}
@ -234,10 +236,10 @@ public class Sprt01Controller extends ApplicationController {
/** .
*
* @return /fims/sprt/sprt01030
* @return /fims/sprt/sprt01100
*/
public ModelAndView inputEtcCnMain(String... crdnIds) {
ModelAndView mav = new ModelAndView("fims/sprt/sprt01030-info");
ModelAndView mav = new ModelAndView("fims/sprt/sprt01100-info");
mav.addObject("crdnIds", toJson(crdnIds));
@ -263,4 +265,16 @@ public class Sprt01Controller extends ApplicationController {
return mav;
}
/**, .
*
* @return /fims/sprt/sprt01110
*/
public ModelAndView printCrdnMain(String... crdnIds) {
ModelAndView mav = new ModelAndView("fims/sprt/sprt01110-info");
mav.addObject("crdnIds", toJson(crdnIds));
return mav;
}
}

@ -360,6 +360,12 @@ public class CmnController {
return super.inputEtcCn(etcCn, crdnIds);
}
@Override
@RequestMapping(name="단속 내역서,확인서 출력 화면", value=METHOD_URL.printCrdnMain)
public ModelAndView printCrdnMain(String... crdnIds) {
return super.printCrdnMain(crdnIds);
}
}
@Controller

@ -339,7 +339,7 @@ integrationSearch.fnInputEtcCn = (updown) => {
}
if(cur == null && cur.length <= 0){
if(cur.length <= 0){
return;
}
@ -347,7 +347,7 @@ integrationSearch.fnInputEtcCn = (updown) => {
var grouped = Object.groupBy(list, ({ CRDN_ID }) => CRDN_ID);
var crdnIds = Object.keys(grouped);
var url = wctx.url("/sprt/sprt01/030/info.do");
var url = wctx.url("/sprt/sprt01/100/info.do");
var dialogId = "inputEtcCnDialog";
ajax.get({
@ -373,6 +373,51 @@ integrationSearch.fnInputEtcCn = (updown) => {
}
//단속내역서,단속확인서
integrationSearch.fnPrintCrdn = () => {
var upDataset = integrationSearchControl.updataset;
var downDataset = integrationSearchControl.downdataset;
if((upDataset.length <= 0) && (downDataset.length <= 0)){
return;
}
var upArr = upDataset.getDataset();
var downArr = downDataset.getDataset();
var unionArray = [...upArr, ...downArr];
var crdnIds = Object.keys(Object.groupBy(unionArray, ({ CRDN_ID }) => CRDN_ID));
var url = wctx.url("/sprt/sprt01/110/info.do");
var dialogId = "printCrdnDialog";
ajax.get({
url : url
, data : { crdnIds : crdnIds.join(",") }
, success : resp => {
dialog.open({
id : dialogId
, title : "종합조회-단속내역"
, size : "xl"
, content : resp
, init : () => {
$("#"+dialogId).find("input[name='dialogId']").val(dialogId);
var found = $("#"+dialogId).find("template")[0].innerHTML;
var trs1 = upDataset.inStrings(found, null);
var trs2 = downDataset.inStrings(found, null);
$("#"+dialogId).find("tbody").html(trs1.join()+trs2.join());
}
, onClose : () => { }
});
}
});
}
//개별총정보 dialog
integrationSearch.getInfo = (taskSeCd, crdnId) => {
if (crdnId == undefined || crdnId == null || crdnId == "") {
@ -411,6 +456,8 @@ integrationSearch.setEvent = () => {
$("#btnReset--${pageName}").on("click", function(){ integrationSearch.fnReset(); });
$("#btnSearch--${pageName}").on("click", function(){ integrationSearch.fnSearchList(); });
$("#btnPrintCrdn--${pageName}").on("click", function(){ integrationSearch.fnPrintCrdn(); });
$("#btnUpExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("up"); });
$("#btnDownExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("down"); });

@ -15,8 +15,8 @@
title="압류 조서/해제조서" onclick="">
압류 조서/헤제조서
</button>
<button type="button" id="" class="btn btn-info w-px-120"
title="단속 내역서/확인서" onclick="">
<button type="button" id="btnPrintCrdn--${pageName}" class="btn btn-info w-px-120"
title="단속 내역서/확인서">
단속 내역서/확인서
</button>
<button type="button" id="" class="btn btn-info w-px-120"

@ -49,7 +49,7 @@
title="위택스자료전송">
위택스자료전송
</button>
<button type="button" id="btnUpExcel--${pageName}" class="btn btn-excel"
<button type="button" id="btnUpExcel--${pageName}" class="btn btn-excel w-px-120"
title="엑셀 저장">
엑셀
</button>

@ -57,7 +57,7 @@
title="결손취소-일괄">
결손취소-일괄
</button>
<button type="button" id="btnDownExcel--${pageName}" class="btn btn-excel"
<button type="button" id="btnDownExcel--${pageName}" class="btn btn-excel w-px-120"
title="엑셀 저장">
엑셀
</button>

@ -79,7 +79,7 @@ $(document).ready(function(){
}
ajax.get({
url : wctx.url("/sprt/sprt01/030/update.do"),
url : wctx.url("/sprt/sprt01/100/update.do"),
data : {
crdnIds : $P.crdnIds.join(","),
etcCn : etcCn

@ -0,0 +1,91 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="prefixName" scope="request">출력대상-단속내역서/단속확인서</c:set>
<div class="d-flex flex-row justify-content-evenly">
<div class="card">
<div class="row mt-4 mb-3 justify-content-start">
<div class="col-md-12">
<div class="float-start ps-4">
<button type="button" id="" class="btn btn-excel">엑셀</button>
<button type="button" id="" class="btn btn-info">단속내역서출력</button>
<button type="button" id="" class="btn btn-info">단속확인서출력</button>
<label>
<input type="checkbox" id="" name="" class="form-check-input"/>
개인정보 비공개(내역서)
</label>
</div>
</div>
</div>
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive"
style="overflow-x:scroll; height:300px; overflow-y:scroll;" >
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer"
id="table--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead" >
<tr id="theadTr--${pageName}">
<th style="width:120px">시군구명</th>
<th style="width:180px">과태료명</th>
<th style="width:120px">대체차량번호</th>
<th style="width:120px">차량번호</th>
<th style="width:120px">단속구분</th>
<th style="width:200px">단속일시</th>
<th style="width:200px">단속장소</th>
<th style="width:120px">고지번호</th>
<th style="width:120px">수납일자</th>
<th style="width:120px">처리상태</th>
<th style="width:120px">수납금액</th>
<th style="width:120px">잔액</th>
<th style="width:120px">성명</th>
<th style="width:200px">주소</th>
<th style="width:200px">번지</th>
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="found--${pageName}">
<tr>
<td>{SGG_NM}</td>
<td>{TASK_SE_NM}</td>
<td>{RPM_SZR_VHRNO}</td>
<td>{VHRNO}</td>
<th>{CRDN_SE_NM}</th>
<td>{CRDN_YMD_TM}</td>
<td>{CRDN_PLC}</td>
<td>{GOJI_NO}</td>
<td>{RCVMT_YMD}</td>
<td>{CRDN_STTS_NM}</td>
<td>{RCVMT_AMT}</td>
<td>{SUM_AMT}</td>
<td>{RTPYR_NM}</td>
<td>{RTPYR_ADDR}</td>
<td>{RTPYR_DTL_ADDR}</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<form id="frmEdit--${pageName}">
<input type="text" name="dialogId" hidden />
</form>
</div>
</div>
<script>
pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.crdnIds = ${crdnIds};
});
</script>
Loading…
Cancel
Save