|
|
|
@ -58,20 +58,30 @@
|
|
|
|
|
class="datatables-ajax table table-bordered dataTable no-footer">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr id="crdnTheadTr--${pageName}">
|
|
|
|
|
<th width="80">No.</th>
|
|
|
|
|
<th width="80">temp</th>
|
|
|
|
|
<th width="50">No.</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>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="crdnTbody--${pageName}"></tbody>
|
|
|
|
|
<template id="crdnRow--${pageName}">
|
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
|
<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>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="crdnNotFound--${pageName}">
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" colspan="2" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
|
|
|
|
|
<td valign="top" colspan="7" class="dataTables_empty text-center">단속 정보를 찾지 못했습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
</table>
|
|
|
|
@ -91,6 +101,9 @@
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var FIM003 = new CommonCodes(${FIM003});
|
|
|
|
|
var FIM026 = new CommonCodes(${FIM026});
|
|
|
|
|
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -108,7 +121,9 @@ $(document).ready(function(){
|
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
|
appendData:true,
|
|
|
|
|
formats: {
|
|
|
|
|
|
|
|
|
|
CRDN_INPT_SE_CD : FIM003,
|
|
|
|
|
CRDN_REG_SE_CD : FIM026,
|
|
|
|
|
CRDN_YMD_TM : datetimeFormat
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$P.crdnControl.urls.newInfoByFile = "";
|
|
|
|
@ -146,7 +161,7 @@ $(document).ready(function(){
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.crdnControl.onDatasetChange = obj => {
|
|
|
|
|
$P.crdnControl.onDatasetChange = (obj) => {
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList();
|
|
|
|
|
|
|
|
|
@ -176,6 +191,13 @@ $(document).ready(function(){
|
|
|
|
|
$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.crdnControl.query = $P.getParams();
|
|
|
|
|
$P.crdnControl.load(1);
|
|
|
|
@ -201,10 +223,6 @@ $(document).ready(function(){
|
|
|
|
|
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.dblclickCrdnList = (dataKey) => {
|
|
|
|
|
$P.crdnControl.getInfo(dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = () => {
|
|
|
|
|
|
|
|
|
|
var crdnList = $P.crdnControl.dataset;
|
|
|
|
@ -212,8 +230,8 @@ $(document).ready(function(){
|
|
|
|
|
var notFound = [document.getElementById("crdnNotFound--${pageName}").innerHTML];
|
|
|
|
|
var found = document.getElementById("crdnRow--${pageName}").innerHTML;
|
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "");
|
|
|
|
|
|
|
|
|
|
var trs = empty ? notFound : crdnList.inStrings(found,replacer);
|
|
|
|
|
|
|
|
|
@ -230,16 +248,11 @@ $(document).ready(function(){
|
|
|
|
|
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
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.searchCrdnList());
|
|
|
|
|
$("#btnInsertByFile--${pageName}").on('click', () => { $P.crdnControl.newInfo("file"); });
|
|
|
|
|
$("#btnInsertByHand--${pageName}").on('click', () => { $P.crdnControl.newInfo("hand"); });
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|