|
|
@ -377,6 +377,7 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$P.photoInspectionControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.photoInspectionControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.photoInspectionControl.untilPageNum = 0;
|
|
|
|
$P.photoInspectionControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
$P.photoInspectionControl.beforeCurrent = null;
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = false;
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -400,6 +401,7 @@ $(document).ready(function(){
|
|
|
|
);
|
|
|
|
);
|
|
|
|
$P.sameVehicleControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.sameVehicleControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.sameVehicleControl.untilPageNum = 0;
|
|
|
|
$P.sameVehicleControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.beforeCurrent = null;
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = false;
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = false;
|
|
|
|
$P.sameVehicleControl.sub.tableRenderComplete = false;
|
|
|
|
$P.sameVehicleControl.sub.tableRenderComplete = false;
|
|
|
|
|
|
|
|
|
|
|
@ -437,6 +439,30 @@ $(document).ready(function(){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.photoInspectionControl.beforeCurrent != null){
|
|
|
|
|
|
|
|
var beforeCurrentKey = $P.photoInspectionControl.beforeCurrent.key;
|
|
|
|
|
|
|
|
var beforeCurrentIndex = $P.photoInspectionControl.beforeCurrent.index;
|
|
|
|
|
|
|
|
$P.photoInspectionControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.photoInspectionControl.dataset.empty){
|
|
|
|
|
|
|
|
var info = $P.photoInspectionControl.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
|
|
|
$P.photoInspectionControl.setCurrent(beforeCurrentKey);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(beforeCurrentIndex > ($P.photoInspectionControl.dataset.length - 1)){
|
|
|
|
|
|
|
|
info = $P.photoInspectionControl.dataset.getDataset()[$P.photoInspectionControl.dataset.length - 1];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
info = $P.photoInspectionControl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.setCurrent(info["CRDN_ID"]);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = false;
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = false;
|
|
|
|
if(!item){
|
|
|
|
if(!item){
|
|
|
|
$P.clickInspectionDataList("","photoInspection", true);
|
|
|
|
$P.clickInspectionDataList("","photoInspection", true);
|
|
|
@ -465,6 +491,30 @@ $(document).ready(function(){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.sameVehicleControl.main.beforeCurrent != null){
|
|
|
|
|
|
|
|
var beforeCurrentKey = $P.sameVehicleControl.main.beforeCurrent.key;
|
|
|
|
|
|
|
|
var beforeCurrentIndex = $P.sameVehicleControl.main.beforeCurrent.index;
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.sameVehicleControl.main.dataset.empty){
|
|
|
|
|
|
|
|
var info = $P.sameVehicleControl.main.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.setCurrent(beforeCurrentKey);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(beforeCurrentIndex > ($P.sameVehicleControl.main.dataset.length - 1)){
|
|
|
|
|
|
|
|
info = $P.sameVehicleControl.main.dataset.getDataset()[$P.sameVehicleControl.main.dataset.length - 1];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
info = $P.sameVehicleControl.main.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.setCurrent(info["CRDN_ID_LIST"]);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = false;
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = false;
|
|
|
|
if(!item){
|
|
|
|
if(!item){
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionMain", true);
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionMain", true);
|
|
|
@ -528,12 +578,20 @@ $(document).ready(function(){
|
|
|
|
case "photoInspection":
|
|
|
|
case "photoInspection":
|
|
|
|
$P.photoInspectionControl.untilPageNum = $P.photoInspectionControl.query.pageNum;
|
|
|
|
$P.photoInspectionControl.untilPageNum = $P.photoInspectionControl.query.pageNum;
|
|
|
|
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize * $P.photoInspectionControl.query.pageNum;
|
|
|
|
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize * $P.photoInspectionControl.query.pageNum;
|
|
|
|
$P.photoInspectionControl.load(1);
|
|
|
|
$P.photoInspectionControl.beforeCurrent = {
|
|
|
|
|
|
|
|
key : $P.photoInspectionControl.getCurrent()["CRDN_ID"],
|
|
|
|
|
|
|
|
index : $P.photoInspectionControl.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$P.photoInspectionControl.load(1);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "sameVehicleInspection":
|
|
|
|
case "sameVehicleInspection":
|
|
|
|
$P.sameVehicleControl.untilPageNum = $P.sameVehicleControl.main.query.pageNum;
|
|
|
|
$P.sameVehicleControl.untilPageNum = $P.sameVehicleControl.main.query.pageNum;
|
|
|
|
$P.sameVehicleControl.main.query.fetchSize = $P.sameVehicleControl.defaultFetchSize * $P.sameVehicleControl.main.query.pageNum;
|
|
|
|
$P.sameVehicleControl.main.query.fetchSize = $P.sameVehicleControl.defaultFetchSize * $P.sameVehicleControl.main.query.pageNum;
|
|
|
|
$P.sameVehicleControl.main.load(1);
|
|
|
|
$P.sameVehicleControl.main.beforeCurrent = {
|
|
|
|
|
|
|
|
key : $P.sameVehicleControl.main.getCurrent()["CRDN_ID_LIST"],
|
|
|
|
|
|
|
|
index : $P.sameVehicleControl.main.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.load(1);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default: break;
|
|
|
|
default: break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|