|
|
@ -179,64 +179,6 @@ $(document).ready(function(){
|
|
|
|
$P.exmptnVhclControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.exmptnVhclControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.exmptnVhclControl.untilPageNum = 0;
|
|
|
|
$P.exmptnVhclControl.untilPageNum = 0;
|
|
|
|
$P.exmptnVhclControl.beforeCurrent = null;
|
|
|
|
$P.exmptnVhclControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
$P.exmptnVhclControl.newInfo = () => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : $P.exmptnVhclControl.urls.newInfo,
|
|
|
|
|
|
|
|
data: {},
|
|
|
|
|
|
|
|
success:(resp) => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id: "exmptnvhcldialog",
|
|
|
|
|
|
|
|
title: "면제차량 등록",
|
|
|
|
|
|
|
|
content:resp,
|
|
|
|
|
|
|
|
size: "lg",
|
|
|
|
|
|
|
|
init:() => {
|
|
|
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.exmptnVhclControl.getInfo = (param) => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : $P.exmptnVhclControl.urls.getInfo,
|
|
|
|
|
|
|
|
data: param,
|
|
|
|
|
|
|
|
success:(resp) => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id: "exmptnvhcldialog",
|
|
|
|
|
|
|
|
title: "면제차량 수정",
|
|
|
|
|
|
|
|
content:resp,
|
|
|
|
|
|
|
|
size: "lg",
|
|
|
|
|
|
|
|
init:() => {
|
|
|
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Dataset.on
|
|
|
|
* Dataset.on
|
|
|
@ -261,7 +203,7 @@ $(document).ready(function(){
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
|
|
|
|
|
|
|
|
$P.exmptnVhclControl.setData([]);
|
|
|
|
$P.exmptnVhclControl.dataset.setData([]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
$P.getParams = () => {
|
|
|
@ -367,10 +309,67 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$P.exmptnVhclControl.getInfo({"exmptnVhclId" : dataKey});
|
|
|
|
$P.getInfo({"exmptnVhclId" : dataKey});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.getInfo = (param) => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : $P.exmptnVhclControl.urls.getInfo,
|
|
|
|
|
|
|
|
data: param,
|
|
|
|
|
|
|
|
success:(resp) => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id: "exmptnvhclDialog",
|
|
|
|
|
|
|
|
title: "면제차량 수정",
|
|
|
|
|
|
|
|
content:resp,
|
|
|
|
|
|
|
|
size: "lg",
|
|
|
|
|
|
|
|
init:() => {
|
|
|
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.newInfo = () => {
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : $P.exmptnVhclControl.urls.newInfo,
|
|
|
|
|
|
|
|
data: {},
|
|
|
|
|
|
|
|
success:(resp) => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id: "exmptnvhclDialog",
|
|
|
|
|
|
|
|
title: "면제차량 등록",
|
|
|
|
|
|
|
|
content:resp,
|
|
|
|
|
|
|
|
size: "lg",
|
|
|
|
|
|
|
|
init:() => {
|
|
|
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnOpenDelRsnDialog = () => {
|
|
|
|
$P.fnOpenDelRsnDialog = () => {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : "delRsnDialog--${pageName}",
|
|
|
|
id : "delRsnDialog--${pageName}",
|
|
|
@ -387,7 +386,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnRemove = () => {
|
|
|
|
$P.fnRemove = () => {
|
|
|
|
var dataKey = $P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
var dataKey = $P.exmptnVhclControl.dataset.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : $P.exmptnVhclControl.urls.remove,
|
|
|
|
url : $P.exmptnVhclControl.urls.remove,
|
|
|
|
data : {
|
|
|
|
data : {
|
|
|
@ -404,14 +403,14 @@ $(document).ready(function(){
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnOpenHistory = () => {
|
|
|
|
$P.fnOpenHistory = () => {
|
|
|
|
var dataKey = $P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
var dataKey = $P.exmptnVhclControl.dataset.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : wctx.url("/BPV/crdn/crdn08/030/list.do"),
|
|
|
|
url : wctx.url("/BPV/crdn/crdn08/030/list.do"),
|
|
|
|
data: { "exmptnVhclId" : dataKey },
|
|
|
|
data: { "exmptnVhclId" : dataKey },
|
|
|
|
success:(resp) => {
|
|
|
|
success:(resp) => {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id: "exmptnvhclHistorydialog",
|
|
|
|
id: "exmptnvhclHistoryDialog",
|
|
|
|
title: "면제차량 이력",
|
|
|
|
title: "면제차량 이력",
|
|
|
|
content : resp,
|
|
|
|
content : resp,
|
|
|
|
size: "xxl",
|
|
|
|
size: "xxl",
|
|
|
@ -437,7 +436,7 @@ $(document).ready(function(){
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.searchExmptnVhclList());
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.searchExmptnVhclList());
|
|
|
|
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
|
|
|
|
$('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown());
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnCreate--${pageName}").on('click', () => { $P.exmptnVhclControl.newInfo(); });
|
|
|
|
$("#btnCreate--${pageName}").on('click', () => { $P.newInfo(); });
|
|
|
|
$("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); });
|
|
|
|
$("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); });
|
|
|
|
$("#btnHistory--${pageName}").on('click', () => { $P.fnOpenHistory(); });
|
|
|
|
$("#btnHistory--${pageName}").on('click', () => { $P.fnOpenHistory(); });
|
|
|
|
|
|
|
|
|
|
|
|