|
|
@ -152,148 +152,145 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
var FIM002 = new CommonCodes(${FIM002});
|
|
|
|
var FIM002 = new CommonCodes(${FIM002});
|
|
|
|
var FIM026 = new CommonCodes(${FIM026});
|
|
|
|
var FIM026 = new CommonCodes(${FIM026});
|
|
|
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'] = {};
|
|
|
|
var thisPO = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].crdnControl = new DatasetControl({
|
|
|
|
thisPO.crdnControl = new DatasetControl({
|
|
|
|
prefix:"crdn",
|
|
|
|
prefix:"crdn",
|
|
|
|
prefixName:"종합",
|
|
|
|
prefixName:"종합",
|
|
|
|
infoSize:"xl",
|
|
|
|
infoSize:"xl",
|
|
|
|
urls : {
|
|
|
|
urls : {
|
|
|
|
load : "",
|
|
|
|
load : "",
|
|
|
|
getInfo : ""
|
|
|
|
getInfo : ""
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formats: {
|
|
|
|
formats: {
|
|
|
|
CRDN_YMD_TM : datetimeFormat,
|
|
|
|
CRDN_YMD_TM : datetimeFormat,
|
|
|
|
REG_DT : datetimeFormat,
|
|
|
|
REG_DT : datetimeFormat,
|
|
|
|
MDFCN_DT : datetimeFormat,
|
|
|
|
MDFCN_DT : datetimeFormat,
|
|
|
|
CVLCPT_PRCS_PRNMNT_DT : dateFormat,
|
|
|
|
CVLCPT_PRCS_PRNMNT_DT : dateFormat,
|
|
|
|
CVLCPT_RCPT_YMD : dateFormat,
|
|
|
|
CVLCPT_RCPT_YMD : dateFormat,
|
|
|
|
|
|
|
|
|
|
|
|
RCVMT_AMT : numberFormat,
|
|
|
|
RCVMT_AMT : numberFormat,
|
|
|
|
|
|
|
|
|
|
|
|
CRDN_SE_CD: FIM002,
|
|
|
|
CRDN_SE_CD: FIM002,
|
|
|
|
CRDN_REG_SE_CD: FIM026
|
|
|
|
CRDN_REG_SE_CD: FIM026
|
|
|
|
},
|
|
|
|
},
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
appendData:true
|
|
|
|
appendData:true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].crdnControl.onDatasetChange = obj => {
|
|
|
|
thisPO.crdnControl.onDatasetChange = obj => {
|
|
|
|
|
|
|
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
pageObject['${pageName}'].renderCrdnList(obj);
|
|
|
|
thisPO.renderCrdnList(obj);
|
|
|
|
|
|
|
|
|
|
|
|
$("#crdnPaging--${pageName}").setPagingInfo({
|
|
|
|
$("#crdnPaging--${pageName}").setPagingInfo({
|
|
|
|
list: pageObject['${pageName}'].crdnControl.dataset,
|
|
|
|
list: thisPO.crdnControl.dataset,
|
|
|
|
prefix: "crdn",
|
|
|
|
prefix: "crdn",
|
|
|
|
start: obj[prefix+"Start"],
|
|
|
|
start: obj[prefix+"Start"],
|
|
|
|
totalSize: obj[prefix+"Total"],
|
|
|
|
totalSize: obj[prefix+"Total"],
|
|
|
|
fetchSize: obj[prefix+"Fetch"],
|
|
|
|
fetchSize: obj[prefix+"Fetch"],
|
|
|
|
func: "pageObject['${pageName}'].crdnControl.load({index})"
|
|
|
|
func: "pageObject['${pageName}'].crdnControl.load({index})"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].fnResetAndChangeBiz = sysSeCd => {
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
|
|
|
pageObject['${pageName}'].crdnControl.urls.load = wctx.url("/crdn/crdn06/010/"+ sysSeCd +"/list.do");
|
|
|
|
|
|
|
|
pageObject['${pageName}'].crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ sysSeCd +"/info.do");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].searchCrdnList = () => {
|
|
|
|
|
|
|
|
pageObject['${pageName}'].crdnControl.query = pageObject['${pageName}'].getParams();
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
|
|
|
pageObject['${pageName}'].crdnControl.load(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].scrollCrdnList = () => {
|
|
|
|
|
|
|
|
pageObject['${pageName}'].crdnControl.load(pageObject['${pageName}'].crdnControl.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].renderCrdnList = data => {
|
|
|
|
|
|
|
|
if(!pageObject['${pageName}'].crdnControl.appendData){
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var crdnList = pageObject['${pageName}'].crdnControl.dataset;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var empty = crdnList.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var trs = empty ? [ pageObject['${pageName}'].tbodyTemplate.notFound ] : crdnList.inStrings(pageObject['${pageName}'].tbodyTemplate.found);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].getParams = () => {
|
|
|
|
|
|
|
|
var form = $("#frmSearch--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
sysSeCd: form.find("[name='sysSeCd']:checked").val()
|
|
|
|
|
|
|
|
,[form.find("[name='schOpt']").val()]: form.find("[name='schWord']").val()
|
|
|
|
|
|
|
|
,schDateOpt: form.find("[name='schDateOpt']").val()
|
|
|
|
|
|
|
|
,schDateFrom: form.find("[name='schDateFrom']").val()
|
|
|
|
|
|
|
|
,schDateTo: form.find("[name='schDateTo']").val()
|
|
|
|
|
|
|
|
,crdnSeCd: form.find("[name='crdnSeCd']").val()
|
|
|
|
|
|
|
|
,crdnSttsCd: form.find("[name='crdnSttsCd']").val()
|
|
|
|
|
|
|
|
,ctznAnsYn: form.find("[name='ctznAnsYn']:checked").val()
|
|
|
|
|
|
|
|
,fetchSize: 30
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *******************************
|
|
|
|
|
|
|
|
* Grid
|
|
|
|
|
|
|
|
******************************* */
|
|
|
|
|
|
|
|
pageObject['${pageName}'].gridColumns = [
|
|
|
|
|
|
|
|
{ header: '차량번호', name: 'VHRNO', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '위반일시', name: 'CRDN_YMD_TM', width: 120, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '수납금액', name: 'RCVMT_AMT', width: 100, align: 'right' },
|
|
|
|
|
|
|
|
{ header: '위반횟수', name: 'VLTN_NMTM', width: 80, align: 'right' },
|
|
|
|
|
|
|
|
{ header: '위반장소', name: 'CRDN_PLC', width: 150 },
|
|
|
|
|
|
|
|
{ header: '주민번호(전체)', name: 'RTPYR_NO', width: 110, align: 'center', className: "privacy" },
|
|
|
|
|
|
|
|
{ header: '주민번호(마스킹)', name: 'RTPYR_NO_MASK', width: 110, align: 'center', className: "privacy-mask" },
|
|
|
|
|
|
|
|
{ header: '특기사항', name: 'ETC_CN', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '서손사유', name: 'ETC_CN', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '처리상태명', name: 'CRDN_STTS_NM', width: 80},
|
|
|
|
|
|
|
|
{ header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '등록일시', name: 'REG_DT', width: 150, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '최종처리일시', name: 'MDFCN_DT', width: 150, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '상태', name: 'CRDN_STTS_CD', hidden: true },
|
|
|
|
|
|
|
|
{ header: '서손ID', name: 'LEVY_EXCL_ID', hidden: true },
|
|
|
|
|
|
|
|
{ header: '소유자ID', name: 'RTPYR_ID', hidden: true },
|
|
|
|
|
|
|
|
{ header: '서손사유코드', name: 'LEVY_EXCL_RSN_CD', hidden: true },
|
|
|
|
|
|
|
|
{ header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true }
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
pageObject['${pageName}'].gridOptions = {
|
|
|
|
|
|
|
|
theadTr: 'crdnTheadTr--${pageName}',
|
|
|
|
|
|
|
|
rowHeader: 'No.',
|
|
|
|
|
|
|
|
trDataKey: 'CRDN_ID',
|
|
|
|
|
|
|
|
infoPrefix: "crdn",
|
|
|
|
|
|
|
|
prefixName : "단속",
|
|
|
|
|
|
|
|
clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')",
|
|
|
|
|
|
|
|
dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})",
|
|
|
|
|
|
|
|
columns: pageObject['${pageName}'].gridColumns
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject['${pageName}'].tbodyTemplate = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
thisPO.fnResetAndChangeBiz = sysSeCd => {
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
|
|
|
thisPO.crdnControl.urls.load = wctx.url("/crdn/crdn06/010/"+ sysSeCd +"/list.do");
|
|
|
|
|
|
|
|
thisPO.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ sysSeCd +"/info.do");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
thisPO.searchCrdnList = () => {
|
|
|
|
|
|
|
|
thisPO.crdnControl.query = thisPO.getParams();
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
|
|
|
thisPO.crdnControl.load(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
thisPO.scrollCrdnList = () => {
|
|
|
|
|
|
|
|
thisPO.crdnControl.load(thisPO.crdnControl.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
thisPO.renderCrdnList = data => {
|
|
|
|
|
|
|
|
if(!thisPO.crdnControl.appendData){
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var crdnList = thisPO.crdnControl.dataset;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var empty = crdnList.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : crdnList.inStrings(thisPO.tbodyTemplate.found);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
thisPO.getParams = () => {
|
|
|
|
|
|
|
|
var form = $("#frmSearch--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
sysSeCd: form.find("[name='sysSeCd']:checked").val()
|
|
|
|
|
|
|
|
,[form.find("[name='schOpt']").val()]: form.find("[name='schWord']").val()
|
|
|
|
|
|
|
|
,schDateOpt: form.find("[name='schDateOpt']").val()
|
|
|
|
|
|
|
|
,schDateFrom: form.find("[name='schDateFrom']").val()
|
|
|
|
|
|
|
|
,schDateTo: form.find("[name='schDateTo']").val()
|
|
|
|
|
|
|
|
,crdnSeCd: form.find("[name='crdnSeCd']").val()
|
|
|
|
|
|
|
|
,crdnSttsCd: form.find("[name='crdnSttsCd']").val()
|
|
|
|
|
|
|
|
,ctznAnsYn: form.find("[name='ctznAnsYn']:checked").val()
|
|
|
|
|
|
|
|
,fetchSize: 30
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *******************************
|
|
|
|
|
|
|
|
* Grid
|
|
|
|
|
|
|
|
******************************* */
|
|
|
|
|
|
|
|
thisPO.gridColumns = [
|
|
|
|
|
|
|
|
{ header: '차량번호', name: 'VHRNO', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '위반일시', name: 'CRDN_YMD_TM', width: 120, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '사진건수', name: 'ATCH_FILE_CNT', width: 40, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '수납금액', name: 'RCVMT_AMT', width: 100, align: 'right' },
|
|
|
|
|
|
|
|
{ header: '위반횟수', name: 'VLTN_NMTM', width: 80, align: 'right' },
|
|
|
|
|
|
|
|
{ header: '위반장소', name: 'CRDN_PLC', width: 150 },
|
|
|
|
|
|
|
|
{ header: '주민번호(전체)', name: 'RTPYR_NO', width: 110, align: 'center', className: "privacy" },
|
|
|
|
|
|
|
|
{ header: '주민번호(마스킹)', name: 'RTPYR_NO_MASK', width: 110, align: 'center', className: "privacy-mask" },
|
|
|
|
|
|
|
|
{ header: '특기사항', name: 'ETC_CN', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '서손사유', name: 'ETC_CN', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '처리상태명', name: 'CRDN_STTS_NM', width: 80},
|
|
|
|
|
|
|
|
{ header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '처리기한', name: 'CVLCPT_PRCS_PRNMNT_DT', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '신고자', name: 'CVLCPT_APLCNT_NM', width: 80, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '등록구분', name: 'CRDN_REG_SE_CD', width: 50, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '등록일시', name: 'REG_DT', width: 150, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '최종처리일시', name: 'MDFCN_DT', width: 150, align: 'center' },
|
|
|
|
|
|
|
|
{ header: '상태', name: 'CRDN_STTS_CD', hidden: true },
|
|
|
|
|
|
|
|
{ header: '서손ID', name: 'LEVY_EXCL_ID', hidden: true },
|
|
|
|
|
|
|
|
{ header: '소유자ID', name: 'RTPYR_ID', hidden: true },
|
|
|
|
|
|
|
|
{ header: '서손사유코드', name: 'LEVY_EXCL_RSN_CD', hidden: true },
|
|
|
|
|
|
|
|
{ header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true }
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
thisPO.gridOptions = {
|
|
|
|
|
|
|
|
theadTr: 'crdnTheadTr--${pageName}',
|
|
|
|
|
|
|
|
rowHeader: 'No.',
|
|
|
|
|
|
|
|
trDataKey: 'CRDN_ID',
|
|
|
|
|
|
|
|
infoPrefix: "crdn",
|
|
|
|
|
|
|
|
prefixName : "단속",
|
|
|
|
|
|
|
|
clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')",
|
|
|
|
|
|
|
|
dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})",
|
|
|
|
|
|
|
|
columns: thisPO.gridColumns
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var thisPO = pageObject['${pageName}'];
|
|
|
|
thisPO.tbodyTemplate = {};
|
|
|
|
|
|
|
|
|
|
|
|
//페이지로딩 후 초기화
|
|
|
|
//페이지로딩 후 초기화
|
|
|
|
thisPO.tbodyTemplate = initGrid(thisPO.gridOptions);
|
|
|
|
thisPO.tbodyTemplate = initGrid(thisPO.gridOptions);
|
|
|
|