|
|
@ -42,7 +42,7 @@
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" id="btnCreate--${pageName}"
|
|
|
|
<button type="button" id="btnCreate--${pageName}"
|
|
|
|
class="btn btn-primary" title="면제차량 등록">면제차량 등록</button>
|
|
|
|
class="btn btn-primary" title="면제차량 등록">면제차량 등록</button>
|
|
|
|
<button type="button" id="btnRemove--${pageName}"
|
|
|
|
<button type="button" id="btnOpenDelRsn--${pageName}"
|
|
|
|
class="btn btn-primary" title="면제차량 삭제">면제차량 삭제</button>
|
|
|
|
class="btn btn-primary" title="면제차량 삭제">면제차량 삭제</button>
|
|
|
|
<button type="button" id="btnHistory--${pageName}"
|
|
|
|
<button type="button" id="btnHistory--${pageName}"
|
|
|
|
class="btn btn-primary" title="면제차량 수정이력">면제차량 수정이력</button>
|
|
|
|
class="btn btn-primary" title="면제차량 수정이력">면제차량 수정이력</button>
|
|
|
@ -112,6 +112,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template id="delRsnDialogTemplate--${pageName}">
|
|
|
|
|
|
|
|
<form id="frmEdit--${pageName}">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
<label for="delRsn--${pageName}"
|
|
|
|
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">삭제사유</label>
|
|
|
|
|
|
|
|
<input type="text" id="delRsn--${pageName}" name="delRsn"
|
|
|
|
|
|
|
|
class="form-control w-80" type="text" maxlength="1000" data-maxlengthb="1000" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<span class="container-page-btn">
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnRemove--${pageName}" title="확인">확인</button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
@ -129,6 +152,7 @@ $(document).ready(function(){
|
|
|
|
$P.exmptnVhclControl = new DatasetControl({
|
|
|
|
$P.exmptnVhclControl = new DatasetControl({
|
|
|
|
urls : {
|
|
|
|
urls : {
|
|
|
|
load : wctx.url("/BPV/crdn/crdn08/010/list.do"),
|
|
|
|
load : wctx.url("/BPV/crdn/crdn08/010/list.do"),
|
|
|
|
|
|
|
|
remove : wctx.url("/BPV/crdn/crdn08/010/remove.do"),
|
|
|
|
newInfo : wctx.url("/BPV/crdn/crdn08/020/info.do"),
|
|
|
|
newInfo : wctx.url("/BPV/crdn/crdn08/020/info.do"),
|
|
|
|
getInfo : wctx.url("/BPV/crdn/crdn08/020/info.do")
|
|
|
|
getInfo : wctx.url("/BPV/crdn/crdn08/020/info.do")
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -233,6 +257,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.exmptnVhclControl.tableRenderComplete = false;
|
|
|
|
$P.exmptnVhclControl.tableRenderComplete = false;
|
|
|
|
|
|
|
|
|
|
|
|
if(!item){
|
|
|
|
if(!item){
|
|
|
|
$P.clickExmptnVhclList("", true);
|
|
|
|
$P.clickExmptnVhclList("", true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -252,7 +277,10 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshExmptnVhclList = () => {
|
|
|
|
$P.refreshExmptnVhclList = () => {
|
|
|
|
$P.exmptnVhclControl.untilPageNum = $P.exmptnVhclControl.query.pageNum;
|
|
|
|
if($P.exmptnVhclControl.query.pageNum == null){
|
|
|
|
|
|
|
|
$P.exmptnVhclControl.query.pageNum = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$P.exmptnVhclControl.untilPageNum = $P.exmptnVhclControl.query.pageNum;
|
|
|
|
$P.exmptnVhclControl.query.fetchSize = $P.exmptnVhclControl.defaultFetchSize * $P.exmptnVhclControl.query.pageNum;
|
|
|
|
$P.exmptnVhclControl.query.fetchSize = $P.exmptnVhclControl.defaultFetchSize * $P.exmptnVhclControl.query.pageNum;
|
|
|
|
$P.exmptnVhclControl.load(1);
|
|
|
|
$P.exmptnVhclControl.load(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -284,8 +312,18 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$P.clickExmptnVhclList = (dataKey, auto) => {
|
|
|
|
$P.clickExmptnVhclList = (dataKey, auto) => {
|
|
|
|
if(dataKey == ""){
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
|
|
|
$("#btnOpenDelRsn--${pageName}").prop("disabled", true);
|
|
|
|
|
|
|
|
$("#btnHistory--${pageName}").prop("disabled", true);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.exmptnVhclControl.dataset.getData(dataKey)["DEL_YN"] == "N"){
|
|
|
|
|
|
|
|
$("#btnOpenDelRsn--${pageName}").prop("disabled", false);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#btnOpenDelRsn--${pageName}").prop("disabled", true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$("#btnHistory--${pageName}").prop("disabled", false);
|
|
|
|
|
|
|
|
|
|
|
|
$("#exmptnVhclTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
$("#exmptnVhclTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
if(!auto) {
|
|
|
|
if(!auto) {
|
|
|
@ -343,6 +381,38 @@ $(document).ready(function(){
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnOpenDelRsnDialog = () => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "delRsnDialog--${pageName}",
|
|
|
|
|
|
|
|
title : "삭제사유입력다이얼로그",
|
|
|
|
|
|
|
|
content : document.getElementById("delRsnDialogTemplate--${pageName}").innerHTML,
|
|
|
|
|
|
|
|
size : "xl",
|
|
|
|
|
|
|
|
init : () => {
|
|
|
|
|
|
|
|
$("#delRsnDialog--${pageName} .modal-content").css("min-width","700px");
|
|
|
|
|
|
|
|
$('#btnRemove--${pageName}').on("click", () => $P.fnRemove());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onClose : () => {}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnRemove = () => {
|
|
|
|
|
|
|
|
var dataKey = $P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"];
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : $P.exmptnVhclControl.urls.remove,
|
|
|
|
|
|
|
|
data : {
|
|
|
|
|
|
|
|
"exmptnVhclId" : dataKey,
|
|
|
|
|
|
|
|
"delRsn" : $("#delRsn--${pageName}").val()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
if(resp.saved){
|
|
|
|
|
|
|
|
dialog.close("delRsnDialog--${pageName}");
|
|
|
|
|
|
|
|
$P.refreshExmptnVhclList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.provide = {
|
|
|
|
$P.provide = {
|
|
|
|
"refreshList" : function(){
|
|
|
|
"refreshList" : function(){
|
|
|
|
$P.refreshExmptnVhclList();
|
|
|
|
$P.refreshExmptnVhclList();
|
|
|
@ -356,7 +426,7 @@ $(document).ready(function(){
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.searchExmptnVhclList());
|
|
|
|
$("#btnSearch--${pageName}").on("click", () => $P.searchExmptnVhclList());
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnCreate--${pageName}").on('click', () => { $P.exmptnVhclControl.newInfo(); });
|
|
|
|
$("#btnCreate--${pageName}").on('click', () => { $P.exmptnVhclControl.newInfo(); });
|
|
|
|
//$("#btnRemove--${pageName}").on('click', () => { ; });
|
|
|
|
$("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); });
|
|
|
|
//$("#btnHistory--${pageName}").on('click', () => { ; });
|
|
|
|
//$("#btnHistory--${pageName}").on('click', () => { ; });
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|