|
|
|
@ -435,9 +435,9 @@ $(document).ready(function(){
|
|
|
|
|
if($P.photoInspectionControl.tableRenderComplete){
|
|
|
|
|
$P.photoInspectionControl.tableRenderComplete = false;
|
|
|
|
|
if(!item){
|
|
|
|
|
$P.clickInspectionDataList("","photoInspection");
|
|
|
|
|
$P.clickInspectionDataList("","photoInspection", true);
|
|
|
|
|
} else {
|
|
|
|
|
$P.clickInspectionDataList($P.photoInspectionControl.getCurrent()["CRDN_ID"],"photoInspection");
|
|
|
|
|
$P.clickInspectionDataList($P.photoInspectionControl.getCurrent()["CRDN_ID"],"photoInspection", true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -461,9 +461,9 @@ $(document).ready(function(){
|
|
|
|
|
if($P.sameVehicleControl.main.tableRenderComplete){
|
|
|
|
|
$P.sameVehicleControl.main.tableRenderComplete = false;
|
|
|
|
|
if(!item){
|
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionMain");
|
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionMain", true);
|
|
|
|
|
} else {
|
|
|
|
|
$P.clickInspectionDataList($P.sameVehicleControl.main.getCurrent()["CRDN_ID_LIST"],"sameVehicleInspectionMain");
|
|
|
|
|
$P.clickInspectionDataList($P.sameVehicleControl.main.getCurrent()["CRDN_ID_LIST"],"sameVehicleInspectionMain", true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -477,9 +477,9 @@ $(document).ready(function(){
|
|
|
|
|
if($P.sameVehicleControl.sub.tableRenderComplete){
|
|
|
|
|
$P.sameVehicleControl.sub.tableRenderComplete = false;
|
|
|
|
|
if(!item){
|
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionSub");
|
|
|
|
|
$P.clickInspectionDataList("","sameVehicleInspectionSub", true);
|
|
|
|
|
} else {
|
|
|
|
|
$P.clickInspectionDataList($P.sameVehicleControl.sub.getCurrent()["CRDN_ID"],"sameVehicleInspectionSub");
|
|
|
|
|
$P.clickInspectionDataList($P.sameVehicleControl.sub.getCurrent()["CRDN_ID"],"sameVehicleInspectionSub", true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
@ -578,7 +578,7 @@ $(document).ready(function(){
|
|
|
|
|
default: break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$P.clickInspectionDataList = (dataKey, gridType) => {
|
|
|
|
|
$P.clickInspectionDataList = (dataKey, gridType, auto) => {
|
|
|
|
|
switch (gridType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
|
|
|
|
@ -629,7 +629,10 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if(!auto){
|
|
|
|
|
$P.photoInspectionControl.setCurrent(dataKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
@ -638,14 +641,18 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
$P.searchDetailInspectionDataList(dataKey);
|
|
|
|
|
if(!auto){
|
|
|
|
|
$P.sameVehicleControl.main.setCurrent(dataKey);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
if(dataKey == ""){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$("#sameVehicleInspectionSubTbody--${pageName}").setCurrentRow(dataKey);
|
|
|
|
|
if(!auto){
|
|
|
|
|
$P.sameVehicleControl.sub.setCurrent(dataKey);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|