단속 자료 검사 메뉴에 비부과등록 버튼 기능 추가.

main
jjh 1 year ago
parent c7b4e7a631
commit 64d42806d6

@ -150,7 +150,8 @@
</ul> </ul>
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<a href="#" id="btnInstLevyExcl--${pageName}" class="btn btn-blue" title="비부과 등록">비부과 등록</a> <button class="btn btn-primary" id="btnInstLevyExcl--${pageName}" title="비부과 등록">비부과 등록</button>
<%-- <a href="#" id="btnInstLevyExcl--${pageName}" class="btn btn-blue" title="비부과 등록">비부과 등록</a> --%>
<span class="slot-button" data-slot-index="0"> <span class="slot-button" data-slot-index="0">
</span> </span>
@ -587,8 +588,35 @@ $(document).ready(function(){
} }
} }
$P.openLevyExclPop = () => { $P.openLevyExclPop = (levyExclSeCd) => {
let info = $P.photoInspectionControl.dataset.getCurrent("item");
// info 가 없다면.. return
if (info == undefined || info == "") {
return;
}
let params = {
crdnId : info.data.CRDN_ID
, levyExclSeCd : levyExclSeCd
};
ajax.get({
url : wctx.url("/excl/excl01/020/info.do")
, data : params || {}
, success : resp => {
resp = resp.replace(/infoPrefix/g, this.prefix)
.replace(/prefixName/g, this.prefixName)
dialog.open({
id : "levyExcldialog"
, title : "부과제외 정보"
, content : resp
, size : "lg"
, init : () => $P.photoInspectionControl.setInfo(info)
, onClose : () => { $P.photoInspectionControl.load(1); } // callback
});
}
});
}; };
$P.renderInspectionDataList = (total, renderDataType) => { $P.renderInspectionDataList = (total, renderDataType) => {
@ -677,7 +705,7 @@ $(document).ready(function(){
}); });
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼 $('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop()); $("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
//스크롤 이벤트 추가(동일차량검사) //스크롤 이벤트 추가(동일차량검사)
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });

@ -493,8 +493,15 @@
// 수정 // 수정
function fnModify${pageName}() { function fnModify${pageName}() {
let levyExclId = excl01010Control.dataset.getValue("LEVY_EXCL_ID");
// 부과 제외 ID 가 없다면.. return
if (levyExclId == undefined || levyExclId == "") {
return;
}
let params = { let params = {
levyExclId : excl01010Control.dataset.getValue("LEVY_EXCL_ID") levyExclId : levyExclId
}; };
${pageName}Control.getInfo(params); ${pageName}Control.getInfo(params);

Loading…
Cancel
Save