|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
<div class="wrapper-list">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="container-page-btn">
|
|
|
|
|
<button type="button" class="btn btn-outline-dark">초기화</button>
|
|
|
|
|
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}">초기화</button>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
|
|
|
|
|
</span>
|
|
|
|
@ -21,27 +21,24 @@
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<label class="form-label fw-bold form-search-title">시스템구분</label>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<c:forEach items="${FIM001List}" var="item">
|
|
|
|
|
<c:forEach items="${FIM054List}" var="item">
|
|
|
|
|
<label>
|
|
|
|
|
<input name="taskSeCd" type="radio" value="${item.code}"
|
|
|
|
|
class="form-check-input" alt="업무구분"
|
|
|
|
|
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);">
|
|
|
|
|
${item.value}
|
|
|
|
|
</label>
|
|
|
|
|
</label>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select">
|
|
|
|
|
<option value="crdnYmd">단속일자</option>
|
|
|
|
|
<option value="regDt">등록일자</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schDateFrom--${pageName}" name="schDateFrom" class="form-control form-date"
|
|
|
|
|
<label class="form-label fw-bold form-search-title">감액일자</label>
|
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
|
<input type="text" id="schRductYmdFrom--${pageName}" name="schRductYmdFrom" class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="시작 날짜 선택" />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
~
|
|
|
|
|
<input type="text" id="schDateTo--${pageName}" name="schDateTo" class="form-control form-date"
|
|
|
|
|
<input type="text" id="schRductYmdTo--${pageName}" name="schRductYmdTo" class="form-control form-date"
|
|
|
|
|
data-fmt-type="day" title="종료 날짜 선택">
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</span>
|
|
|
|
@ -50,38 +47,8 @@
|
|
|
|
|
<input type="hidden" id="by--${pageName}" name="by" />
|
|
|
|
|
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
|
|
|
|
|
<input type="text" id="term--${pageName}" name="term" class="form-control" />
|
|
|
|
|
<span class="flr">
|
|
|
|
|
<button type="button" class="btn btn-open-detail"
|
|
|
|
|
data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
|
|
|
|
<i class="bx bx-chevron-down"></i>
|
|
|
|
|
상세조회조건
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<label class="form-label fw-bold form-search-title">차량번호</label>
|
|
|
|
|
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
|
|
|
|
|
<label class="form-label fw-bold form-search-title">단속구분</label>
|
|
|
|
|
<select id="crdnSeCd--${pageName}" name="crdnSeCd" class="form-select">
|
|
|
|
|
<option value="">전체</option>
|
|
|
|
|
<c:forEach items="${FIM002List}" var="item">
|
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
<label class="form-label fw-bold form-search-title">자료상태</label>
|
|
|
|
|
<select id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select">
|
|
|
|
|
<option value="">전체</option>
|
|
|
|
|
<c:forEach items="${FIM010List}" var="item">
|
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<div>
|
|
|
|
@ -97,18 +64,42 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
|
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
|
|
|
|
<div id="table-responsive--${pageName}" class="table-responsive"
|
|
|
|
|
style="overflow-x: scroll;height:400px;overflow-y: scroll;">
|
|
|
|
|
<div id="table-responsive--${pageName}" class="table-responsive"
|
|
|
|
|
style="overflow-x: scroll;height:550px;overflow-y: scroll;">
|
|
|
|
|
<table id="DataTables_Table_0--${pageName}"
|
|
|
|
|
class="datatables-ajax table table-bordered dataTable no-footer"
|
|
|
|
|
aria-describedby="DataTables_Table_0_info"
|
|
|
|
|
>
|
|
|
|
|
class="datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr id="crdnTheadTr--${pageName}">
|
|
|
|
|
<th width="80">No.</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','RDUCT_YMD',this.innerText);">감액일자</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','RDUCT_RSN_CD',this.innerText);">감액사유</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','CRDN_YMD','위반일자');">접수(위반)일시</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','VHRNO',this.innerText);">차량번호</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','RDCAMT_PCPTAX',this.innerText);">감액금액</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','SUM_AMT',this.innerText);">잔액</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','RDUCT_ETC_CN',this.innerText);">감액특기사항</th>
|
|
|
|
|
<th width="80" onclick="searchFromGridTitle('by--${pageName}','byOutput--${pageName}','CRDN_STTS_CD',this.innerText);">처리상태</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="crdnTbody--${pageName}">
|
|
|
|
|
</tbody>
|
|
|
|
|
<tbody id="crdnTbody--${pageName}"></tbody>
|
|
|
|
|
<template id="crdnRow--${pageName}">
|
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
|
<td {onclick} {ondblclick} class="text-end">{ROW_NUM}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-center">{RDUCT_YMD}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-start">{RDUCT_RSN_CD}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-center">{CRDN_YMD_TM}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-center">{VHRNO}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-end">{RDCAMT_PCPTAX}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-end">{SUM_AMT}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-start">{RDUCT_ETC_CN}</td>
|
|
|
|
|
<td {onclick} {ondblclick} class="text-center">{CRDN_STTS_CD}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="crdnNotFound--${pageName}">
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" colspan="9" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -130,61 +121,50 @@
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var FIM002 = new CommonCodes(${FIM002});
|
|
|
|
|
var FIM010 = new CommonCodes(${FIM010});
|
|
|
|
|
var FIM026 = new CommonCodes(${FIM026});
|
|
|
|
|
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
|
prefix:"crdn",
|
|
|
|
|
prefixName:"종합",
|
|
|
|
|
infoSize:"xl",
|
|
|
|
|
urls : {
|
|
|
|
|
load : "",
|
|
|
|
|
getInfo : ""
|
|
|
|
|
},
|
|
|
|
|
prefix:"crdn", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
|
|
|
|
|
formats: {
|
|
|
|
|
CRDN_YMD_TM : datetimeFormat,
|
|
|
|
|
REG_DT : datetimeFormat,
|
|
|
|
|
MDFCN_DT : datetimeFormat,
|
|
|
|
|
CVLCPT_PRCS_PRNMNT_DT : dateFormat,
|
|
|
|
|
CVLCPT_RCPT_YMD : dateFormat,
|
|
|
|
|
|
|
|
|
|
RCVMT_AMT : numberFormat,
|
|
|
|
|
|
|
|
|
|
CRDN_SE_CD: FIM002,
|
|
|
|
|
CRDN_STTS_CD : FIM010,
|
|
|
|
|
CRDN_REG_SE_CD: FIM026,
|
|
|
|
|
RDUCT_YMD : dateFormat,
|
|
|
|
|
CRDN_YMD_TM : datetimeFormat,
|
|
|
|
|
RDCAMT_PCPTAX : numberFormat,
|
|
|
|
|
SUM_AMT : numberFormat,
|
|
|
|
|
CRDN_STTS_CD : FIM010
|
|
|
|
|
},
|
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
|
appendData:true
|
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.onDatasetChange = obj => {
|
|
|
|
|
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
$P.renderCrdnList(obj);
|
|
|
|
|
$P.renderCrdnList();
|
|
|
|
|
|
|
|
|
|
$("#crdnPaging--${pageName}").setPagingInfo({
|
|
|
|
|
$("#crdnPaging--${pageName}").setPagingInfo({
|
|
|
|
|
list: $P.crdnControl.dataset,
|
|
|
|
|
prefix: "crdnPaging--${pageName}",
|
|
|
|
|
start: obj[prefix+"Start"],
|
|
|
|
|
totalSize: obj[prefix+"Total"],
|
|
|
|
|
fetchSize: obj[prefix+"Fetch"],
|
|
|
|
|
start: obj["crdnStart"],
|
|
|
|
|
totalSize: obj["crdnTotal"],
|
|
|
|
|
fetchSize: obj["crdnFetch"],
|
|
|
|
|
func: "pageObject['${pageName}'].crdnControl.load({index})"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
|
$('#schRductYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
|
|
|
|
|
$('#schRductYmdTo--${pageName}').datepicker('setDate', new Date());
|
|
|
|
|
$P.crdnControl.setData([]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz = taskSeCd => {
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
$P.crdnControl.urls.load = wctx.url("/crdn/crdn06/040/"+ taskSeCd +"/list.do");
|
|
|
|
|
$P.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do");
|
|
|
|
|
}
|
|
|
|
@ -199,19 +179,23 @@ $(document).ready(function(){
|
|
|
|
|
$P.crdnControl.load($P.crdnControl.query.pageNum + 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = data => {
|
|
|
|
|
if(!$P.crdnControl.appendData){
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = () => {
|
|
|
|
|
|
|
|
|
|
var crdnList = $P.crdnControl.dataset;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var empty = crdnList.empty;
|
|
|
|
|
|
|
|
|
|
var trs = empty ? [ $P.tbodyTemplate.notFound ] : crdnList.inStrings($P.tbodyTemplate.found);
|
|
|
|
|
|
|
|
|
|
var trs = empty ?
|
|
|
|
|
[document.getElementById("crdnNotFound--${pageName}").innerHTML] :
|
|
|
|
|
crdnList.inStrings(
|
|
|
|
|
document.getElementById("crdnRow--${pageName}").innerHTML,
|
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, 'onclick="pageObject[\'${pageName}\'].crdnControl.setCurrent(\'' + dataItem.getValue("CRDN_ID") + '\');"')
|
|
|
|
|
.replace(/{ondblclick}/gi, 'ondblclick="pageObject[\'${pageName}\'].crdnControl.getInfo(\'' + dataItem.getValue("CRDN_ID") + '\')"')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
if($("#securityMode--top").is(":checked")){
|
|
|
|
|
fn_securityModeToggle(true);
|
|
|
|
@ -224,56 +208,18 @@ $(document).ready(function(){
|
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
|
var data = formFields.get();
|
|
|
|
|
data.fetchSize = 30;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *******************************
|
|
|
|
|
* Grid
|
|
|
|
|
******************************* */
|
|
|
|
|
$P.gridColumns = [
|
|
|
|
|
{ header: '감액일자', name: 'uknown1', width: 80, className: 'text-center' },
|
|
|
|
|
{ header: '감액사유', name: 'uknown2', width: 80, className: 'text-start' },
|
|
|
|
|
{ header: '접수(위반)일시', name: 'CRDN_YMD_TM', width: 80, className: 'text-center' },
|
|
|
|
|
{ header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' },
|
|
|
|
|
{ header: '감액금액', name: 'uknown4', width: 80, className: 'text-end' },
|
|
|
|
|
{ header: '감액잔액', name: 'uknown5', width: 80, className: 'text-end' },
|
|
|
|
|
{ header: '감액특기사항', name: 'uknown6', width: 80, className: 'text-start' },
|
|
|
|
|
{ header: '처리상태', name: 'CRDN_STTS_CD', width: 80},
|
|
|
|
|
{ header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true }
|
|
|
|
|
];
|
|
|
|
|
$P.gridOptions = {
|
|
|
|
|
by : 'by--${pageName}',
|
|
|
|
|
byOutput : 'byOutput--${pageName}',
|
|
|
|
|
theadTr: 'crdnTheadTr--${pageName}',
|
|
|
|
|
rowHeader: 'No.',
|
|
|
|
|
trDataKey: 'CRDN_ID',
|
|
|
|
|
infoPrefix: "crdn",
|
|
|
|
|
prefixName : "단속",
|
|
|
|
|
clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')",
|
|
|
|
|
dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})",
|
|
|
|
|
columns: $P.gridColumns
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.tbodyTemplate = {};
|
|
|
|
|
|
|
|
|
|
//그리드 정보 초기화
|
|
|
|
|
$P.tbodyTemplate = initGrid($P.gridOptions);
|
|
|
|
|
|
|
|
|
|
//달력 초기화
|
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
|
|
|
|
|
|
$('#schDateFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
|
|
|
|
|
$('#schDateTo--${pageName}').datepicker('setDate', new Date());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//스크롤 이벤트 추가
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){
|
|
|
|
|
var el = $(this);
|
|
|
|
@ -284,16 +230,13 @@ $(document).ready(function(){
|
|
|
|
|
$P.scrollCrdnList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
if($("#securityMode--top").is(":checked")){
|
|
|
|
|
fn_securityModeToggle(true);
|
|
|
|
|
} else {
|
|
|
|
|
fn_securityModeToggle(false);
|
|
|
|
|
}
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|