|
|
@ -58,20 +58,30 @@
|
|
|
|
class="datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
class="datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr id="crdnTheadTr--${pageName}">
|
|
|
|
<tr id="crdnTheadTr--${pageName}">
|
|
|
|
<th width="80">No.</th>
|
|
|
|
<th width="50">No.</th>
|
|
|
|
<th width="80">temp</th>
|
|
|
|
<th width="80">등록구분</th>
|
|
|
|
|
|
|
|
<th width="80">자료출처</th>
|
|
|
|
|
|
|
|
<th width="80">위반일시</th>
|
|
|
|
|
|
|
|
<th width="80">차량번호</th>
|
|
|
|
|
|
|
|
<th width="200">위반장소</th>
|
|
|
|
|
|
|
|
<th width="80">위반내용</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="crdnTbody--${pageName}"></tbody>
|
|
|
|
<tbody id="crdnTbody--${pageName}"></tbody>
|
|
|
|
<template id="crdnRow--${pageName}">
|
|
|
|
<template id="crdnRow--${pageName}">
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{temp}</td>
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_REG_SE_CD}</td>
|
|
|
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_INPT_SE_CD}</td>
|
|
|
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_YMD_TM}</td>
|
|
|
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VHRNO}</td>
|
|
|
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{CRDN_PLC}</td>
|
|
|
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-start">{ASVLTN_ARTCL}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="crdnNotFound--${pageName}">
|
|
|
|
<template id="crdnNotFound--${pageName}">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" colspan="2" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="7" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -91,6 +101,9 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
var FIM003 = new CommonCodes(${FIM003});
|
|
|
|
|
|
|
|
var FIM026 = new CommonCodes(${FIM026});
|
|
|
|
|
|
|
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -108,7 +121,9 @@ $(document).ready(function(){
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
appendData:true,
|
|
|
|
appendData:true,
|
|
|
|
formats: {
|
|
|
|
formats: {
|
|
|
|
|
|
|
|
CRDN_INPT_SE_CD : FIM003,
|
|
|
|
|
|
|
|
CRDN_REG_SE_CD : FIM026,
|
|
|
|
|
|
|
|
CRDN_YMD_TM : datetimeFormat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$P.crdnControl.urls.newInfoByFile = "";
|
|
|
|
$P.crdnControl.urls.newInfoByFile = "";
|
|
|
@ -146,7 +161,7 @@ $(document).ready(function(){
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl.on
|
|
|
|
* DatasetControl.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.crdnControl.onDatasetChange = obj => {
|
|
|
|
$P.crdnControl.onDatasetChange = (obj) => {
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList();
|
|
|
|
$P.renderCrdnList();
|
|
|
|
|
|
|
|
|
|
|
@ -175,7 +190,14 @@ $(document).ready(function(){
|
|
|
|
$("#regDt--${pageName}").datepicker('setDate', new Date());
|
|
|
|
$("#regDt--${pageName}").datepicker('setDate', new Date());
|
|
|
|
$P.crdnControl.setData([]);
|
|
|
|
$P.crdnControl.setData([]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
|
|
|
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn05/010/list.do");
|
|
|
|
|
|
|
|
$P.crdnControl.urls.newInfoByFile = wctx.url("/"+taskSeCd+"/crdn/crdn05/020/info.do");
|
|
|
|
|
|
|
|
$P.crdnControl.urls.newInfoByHand = wctx.url("/"+taskSeCd+"/crdn/crdn05/030/info.do");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchCrdnList = () => {
|
|
|
|
$P.searchCrdnList = () => {
|
|
|
|
$P.crdnControl.query = $P.getParams();
|
|
|
|
$P.crdnControl.query = $P.getParams();
|
|
|
|
$P.crdnControl.load(1);
|
|
|
|
$P.crdnControl.load(1);
|
|
|
@ -201,10 +223,6 @@ $(document).ready(function(){
|
|
|
|
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.dblclickCrdnList = (dataKey) => {
|
|
|
|
|
|
|
|
$P.crdnControl.getInfo(dataKey);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = () => {
|
|
|
|
$P.renderCrdnList = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var crdnList = $P.crdnControl.dataset;
|
|
|
|
var crdnList = $P.crdnControl.dataset;
|
|
|
@ -212,8 +230,8 @@ $(document).ready(function(){
|
|
|
|
var notFound = [document.getElementById("crdnNotFound--${pageName}").innerHTML];
|
|
|
|
var notFound = [document.getElementById("crdnNotFound--${pageName}").innerHTML];
|
|
|
|
var found = document.getElementById("crdnRow--${pageName}").innerHTML;
|
|
|
|
var found = document.getElementById("crdnRow--${pageName}").innerHTML;
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
|
|
|
|
.replace(/{ondblclick}/gi, "");
|
|
|
|
|
|
|
|
|
|
|
|
var trs = empty ? notFound : crdnList.inStrings(found,replacer);
|
|
|
|
var trs = empty ? notFound : crdnList.inStrings(found,replacer);
|
|
|
|
|
|
|
|
|
|
|
@ -230,16 +248,11 @@ $(document).ready(function(){
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
|
|
|
$P.crdnControl.urls.newInfoByFile = wctx.url("/"+taskSeCd+"/crdn/crdn05/020/info.do");
|
|
|
|
|
|
|
|
$P.crdnControl.urls.newInfoByHand = wctx.url("/"+taskSeCd+"/crdn/crdn05/030/info.do");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* element.on
|
|
|
|
* element.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.searchCrdnList());
|
|
|
|
$("#btnInsertByFile--${pageName}").on('click', () => { $P.crdnControl.newInfo("file"); });
|
|
|
|
$("#btnInsertByFile--${pageName}").on('click', () => { $P.crdnControl.newInfo("file"); });
|
|
|
|
$("#btnInsertByHand--${pageName}").on('click', () => { $P.crdnControl.newInfo("hand"); });
|
|
|
|
$("#btnInsertByHand--${pageName}").on('click', () => { $P.crdnControl.newInfo("hand"); });
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|