|
|
|
@ -878,16 +878,16 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
switch (renderDataType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
|
var dataList = $P.photoInspectionControl.dataset;
|
|
|
|
|
var empty = dataList.empty;
|
|
|
|
|
var DS = $P.photoInspectionControl.dataset;
|
|
|
|
|
var empty = DS.empty;
|
|
|
|
|
var notFound = [document.getElementById("photoInspectionNotFound--${pageName}").innerHTML]
|
|
|
|
|
var found = document.getElementById("photoInspectionRow--${pageName}").innerHTML;
|
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
|
|
|
|
|
|
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
|
var noMore = (total == dataList.length);
|
|
|
|
|
var trs = empty ? notFound : DS.inStrings(found, replacer);
|
|
|
|
|
var noMore = (total == DS.length);
|
|
|
|
|
var initScroll = ($P.photoInspectionControl.query.pageNum < 2) && ($P.photoInspectionControl.untilPageNum == 0);
|
|
|
|
|
|
|
|
|
|
$("#photoInspection-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
|
|
|
|
@ -899,15 +899,15 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
var dataList = $P.sameVehicleControl.main.dataset;
|
|
|
|
|
var empty = dataList.empty;
|
|
|
|
|
var DS = $P.sameVehicleControl.main.dataset;
|
|
|
|
|
var empty = DS.empty;
|
|
|
|
|
var notFound = [document.getElementById("sameVehicleInspectionMainNotFound--${pageName}").innerHTML];
|
|
|
|
|
var found = document.getElementById("sameVehicleInspectionMainRow--${pageName}").innerHTML;
|
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
|
|
|
|
|
|
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
|
var noMore = (total == dataList.length);
|
|
|
|
|
var trs = empty ? notFound : DS.inStrings(found, replacer);
|
|
|
|
|
var noMore = (total == DS.length);
|
|
|
|
|
var initScroll = ($P.sameVehicleControl.main.query.pageNum < 2) && ($P.sameVehicleControl.untilPageNum == 0);
|
|
|
|
|
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
|
|
|
|
@ -920,14 +920,14 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
var dataList = $P.sameVehicleControl.sub.dataset;
|
|
|
|
|
var empty = dataList.empty;
|
|
|
|
|
var DS = $P.sameVehicleControl.sub.dataset;
|
|
|
|
|
var empty = DS.empty;
|
|
|
|
|
var notFound = [document.getElementById("sameVehicleInspectionSubNotFound--${pageName}").innerHTML]
|
|
|
|
|
var found = document.getElementById("sameVehicleInspectionSubRow--${pageName}").innerHTML;
|
|
|
|
|
var replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');")
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');");
|
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
|
var trs = empty ? notFound : DS.inStrings(found, replacer);
|
|
|
|
|
$("#sameVehicleInspectionSubTbody--${pageName}").html(trs.join());
|
|
|
|
|
break;
|
|
|
|
|
default: break;
|
|
|
|
|