|
|
|
@ -179,64 +179,6 @@ $(document).ready(function(){
|
|
|
|
|
$P.exmptnVhclControl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.exmptnVhclControl.untilPageNum = 0;
|
|
|
|
|
$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
|
|
|
|
@ -261,7 +203,7 @@ $(document).ready(function(){
|
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
|
|
|
|
|
|
$P.exmptnVhclControl.setData([]);
|
|
|
|
|
$P.exmptnVhclControl.dataset.setData([]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
@ -367,10 +309,67 @@ $(document).ready(function(){
|
|
|
|
|
});
|
|
|
|
|
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 = () => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "delRsnDialog--${pageName}",
|
|
|
|
@ -387,7 +386,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnRemove = () => {
|
|
|
|
|
var dataKey = $P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
|
var dataKey = $P.exmptnVhclControl.dataset.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : $P.exmptnVhclControl.urls.remove,
|
|
|
|
|
data : {
|
|
|
|
@ -404,14 +403,14 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.fnOpenHistory = () => {
|
|
|
|
|
var dataKey = $P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
|
var dataKey = $P.exmptnVhclControl.dataset.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/BPV/crdn/crdn08/030/list.do"),
|
|
|
|
|
data: { "exmptnVhclId" : dataKey },
|
|
|
|
|
success:(resp) => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id: "exmptnvhclHistorydialog",
|
|
|
|
|
id: "exmptnvhclHistoryDialog",
|
|
|
|
|
title: "면제차량 이력",
|
|
|
|
|
content : resp,
|
|
|
|
|
size: "xxl",
|
|
|
|
@ -437,7 +436,7 @@ $(document).ready(function(){
|
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.searchExmptnVhclList());
|
|
|
|
|
$('#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(); });
|
|
|
|
|
$("#btnHistory--${pageName}").on('click', () => { $P.fnOpenHistory(); });
|
|
|
|
|
|
|
|
|
|