|
|
|
@ -143,15 +143,16 @@
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var FIM002 = new CommonCodes(${FIM002});
|
|
|
|
|
var FIM010 = new CommonCodes(${FIM010});
|
|
|
|
|
var FIM026 = new CommonCodes(${FIM026});
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var thisPO = pageObject["${pageName}"];
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
thisPO.crdnControl = new DatasetControl({
|
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
|
prefix:"crdn",
|
|
|
|
|
prefixName:"종합",
|
|
|
|
|
infoSize:"xl",
|
|
|
|
@ -169,20 +170,21 @@ $(document).ready(function(){
|
|
|
|
|
RCVMT_AMT : numberFormat,
|
|
|
|
|
|
|
|
|
|
CRDN_SE_CD: FIM002,
|
|
|
|
|
CRDN_REG_SE_CD: FIM026
|
|
|
|
|
CRDN_STTS_CD : FIM010,
|
|
|
|
|
CRDN_REG_SE_CD: FIM026,
|
|
|
|
|
},
|
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
|
appendData:true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
thisPO.crdnControl.onDatasetChange = obj => {
|
|
|
|
|
$P.crdnControl.onDatasetChange = obj => {
|
|
|
|
|
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
thisPO.renderCrdnList(obj);
|
|
|
|
|
$P.renderCrdnList(obj);
|
|
|
|
|
|
|
|
|
|
$("#crdnPaging--${pageName}").setPagingInfo({
|
|
|
|
|
list: thisPO.crdnControl.dataset,
|
|
|
|
|
list: $P.crdnControl.dataset,
|
|
|
|
|
prefix: "crdnPaging--${pageName}",
|
|
|
|
|
start: obj[prefix+"Start"],
|
|
|
|
|
totalSize: obj[prefix+"Total"],
|
|
|
|
@ -193,32 +195,32 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
thisPO.fnResetAndChangeBiz = taskSeCd => {
|
|
|
|
|
$P.fnResetAndChangeBiz = taskSeCd => {
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
thisPO.crdnControl.urls.load = wctx.url("/crdn/crdn06/040/"+ taskSeCd +"/list.do");
|
|
|
|
|
thisPO.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do");
|
|
|
|
|
$P.crdnControl.urls.load = wctx.url("/crdn/crdn06/040/"+ taskSeCd +"/list.do");
|
|
|
|
|
$P.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thisPO.searchCrdnList = () => {
|
|
|
|
|
thisPO.crdnControl.query = thisPO.getParams();
|
|
|
|
|
$P.searchCrdnList = () => {
|
|
|
|
|
$P.crdnControl.query = $P.getParams();
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
thisPO.crdnControl.load(1);
|
|
|
|
|
$P.crdnControl.load(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thisPO.scrollCrdnList = () => {
|
|
|
|
|
thisPO.crdnControl.load(thisPO.crdnControl.query.pageNum + 1);
|
|
|
|
|
$P.scrollCrdnList = () => {
|
|
|
|
|
$P.crdnControl.load($P.crdnControl.query.pageNum + 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thisPO.renderCrdnList = data => {
|
|
|
|
|
if(!thisPO.crdnControl.appendData){
|
|
|
|
|
$P.renderCrdnList = data => {
|
|
|
|
|
if(!$P.crdnControl.appendData){
|
|
|
|
|
$("#crdnTbody--${pageName}").html("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var crdnList = thisPO.crdnControl.dataset;
|
|
|
|
|
var crdnList = $P.crdnControl.dataset;
|
|
|
|
|
|
|
|
|
|
var empty = crdnList.empty;
|
|
|
|
|
|
|
|
|
|
var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : crdnList.inStrings(thisPO.tbodyTemplate.found);
|
|
|
|
|
var trs = empty ? [ $P.tbodyTemplate.notFound ] : crdnList.inStrings($P.tbodyTemplate.found);
|
|
|
|
|
|
|
|
|
|
$("#crdnTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
@ -230,7 +232,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thisPO.getParams = () => {
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
|
var data = formFields.get();
|
|
|
|
|
data.fetchSize = 30;
|
|
|
|
@ -243,7 +245,7 @@ $(document).ready(function(){
|
|
|
|
|
/* *******************************
|
|
|
|
|
* Grid
|
|
|
|
|
******************************* */
|
|
|
|
|
thisPO.gridColumns = [
|
|
|
|
|
$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' },
|
|
|
|
@ -254,7 +256,7 @@ $(document).ready(function(){
|
|
|
|
|
{ header: '처리상태', name: 'CRDN_STTS_CD', width: 80},
|
|
|
|
|
{ header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true }
|
|
|
|
|
];
|
|
|
|
|
thisPO.gridOptions = {
|
|
|
|
|
$P.gridOptions = {
|
|
|
|
|
by : 'by--${pageName}',
|
|
|
|
|
byOutput : 'byOutput--${pageName}',
|
|
|
|
|
theadTr: 'crdnTheadTr--${pageName}',
|
|
|
|
@ -264,13 +266,13 @@ $(document).ready(function(){
|
|
|
|
|
prefixName : "단속",
|
|
|
|
|
clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')",
|
|
|
|
|
dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})",
|
|
|
|
|
columns: thisPO.gridColumns
|
|
|
|
|
columns: $P.gridColumns
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
thisPO.tbodyTemplate = {};
|
|
|
|
|
$P.tbodyTemplate = {};
|
|
|
|
|
|
|
|
|
|
//그리드 정보 초기화
|
|
|
|
|
thisPO.tbodyTemplate = initGrid(thisPO.gridOptions);
|
|
|
|
|
$P.tbodyTemplate = initGrid($P.gridOptions);
|
|
|
|
|
|
|
|
|
|
//달력 초기화
|
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
@ -282,7 +284,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
|
thisPO.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
|
|
|
|
|
|
//스크롤 이벤트 추가
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){
|
|
|
|
@ -291,19 +293,12 @@ $(document).ready(function(){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()){
|
|
|
|
|
thisPO.scrollCrdnList();
|
|
|
|
|
$P.scrollCrdnList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => thisPO.searchCrdnList());
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
|
|
|
|
|
|
$('#btnMenualRegist--${pageName}').on('click', () => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#btnExtrRegist--${pageName}').on('click', () => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
if($("#securityMode--top").is(":checked")){
|
|
|
|
|