|
|
|
@ -373,6 +373,8 @@ $(document).ready(function(){
|
|
|
|
|
//감경금액
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$P.photoInspectionControl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.photoInspectionControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
|
|
//동일차량검사 datasetControl 인스턴스
|
|
|
|
|
$P.sameVehicleControl = new InspectionControl({
|
|
|
|
@ -392,6 +394,8 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
$P.sameVehicleControl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.sameVehicleControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.getNext = (key) => {
|
|
|
|
|
|
|
|
|
@ -467,6 +471,23 @@ $(document).ready(function(){
|
|
|
|
|
$('#btnPhotoInspection--${pageName}').trigger("click");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
$P.photoInspectionControl.untilPageNum = $P.photoInspectionControl.query.pageNum;
|
|
|
|
|
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize * $P.photoInspectionControl.query.pageNum;
|
|
|
|
|
$P.photoInspectionControl.load(1);
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspection":
|
|
|
|
|
$P.sameVehicleControl.untilPageNum = $P.sameVehicleControl.main.query.pageNum;
|
|
|
|
|
$P.sameVehicleControl.main.query.fetchSize = $P.sameVehicleControl.defaultFetchSize * $P.sameVehicleControl.main.query.pageNum;
|
|
|
|
|
$P.sameVehicleControl.main.load(1);
|
|
|
|
|
break;
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.searchInspectionList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
@ -617,9 +638,12 @@ $(document).ready(function(){
|
|
|
|
|
title : "부과제외 정보",
|
|
|
|
|
content : resp,
|
|
|
|
|
size : "lg",
|
|
|
|
|
init : () => $P.photoInspectionControl.setInfo(info),
|
|
|
|
|
onClose : () => { $P.photoInspectionControl.load(1); } // callback
|
|
|
|
|
init : () => {},
|
|
|
|
|
onClose : () => {
|
|
|
|
|
$P.refreshInspectionList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
@ -643,6 +667,12 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").removeAttr("data-scroll-status");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($P.photoInspectionControl.untilPageNum != 0){
|
|
|
|
|
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize;
|
|
|
|
|
$P.photoInspectionControl.query.pageNum = $P.photoInspectionControl.untilPageNum;
|
|
|
|
|
$P.photoInspectionControl.untilPageNum = 0;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
var dataList = $P.sameVehicleControl.main.dataset;
|
|
|
|
@ -659,6 +689,12 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").removeAttr("data-scroll-status");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($P.sameVehicleControl.untilPageNum != 0){
|
|
|
|
|
$P.sameVehicleControl.main.query.fetchSize = $P.sameVehicleControl.defaultFetchSize;
|
|
|
|
|
$P.sameVehicleControl.main.query.pageNum = $P.sameVehicleControl.untilPageNum;
|
|
|
|
|
$P.sameVehicleControl.untilPageNum = 0;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
var dataList = $P.sameVehicleControl.sub.dataset;
|
|
|
|
@ -681,7 +717,12 @@ $(document).ready(function(){
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
|
var data = formFields.get();
|
|
|
|
|
data.fetchSize = 30;
|
|
|
|
|
|
|
|
|
|
if($P.currentDisplay == "photoInspection"){
|
|
|
|
|
data.fetchSize = $P.photoInspectionControl.defaultFetchSize;
|
|
|
|
|
} else if($P.currentDisplay == "sameVehicleInspection"){
|
|
|
|
|
data.fetchSize = $P.sameVehicleControl.defaultFetchSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|