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