|
|
|
@ -335,7 +335,6 @@ pageObject["${pageName}"] = {};
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
$P.scrollable = true;
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl
|
|
|
|
@ -398,9 +397,10 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.main.onDatasetChange = (obj) => {
|
|
|
|
|
$P.renderInspectionDataList("sameVehicleInspectionMain");
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionMain");
|
|
|
|
|
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
$("#sameVehicleInspectionMainPaging--${pageName}").setPagingInfo({
|
|
|
|
|
list: $P.sameVehicleControl.main.dataset,
|
|
|
|
|
prefix: "sameVehicleInspectionMainPaging--${pageName}",
|
|
|
|
@ -412,7 +412,10 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.sameVehicleControl.sub.onDatasetChange = (obj) => {
|
|
|
|
|
$P.renderInspectionDataList("sameVehicleInspectionSub");
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionSub");
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
@ -487,7 +490,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.scrollEnd = (obj) => {
|
|
|
|
|
if(!$P.scrollable){
|
|
|
|
|
if(obj.dataset.scrollStatus){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -497,7 +500,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
|
|
|
|
|
$P.scrollable = false;
|
|
|
|
|
obj.dataset.scrollStatus = "waiting";
|
|
|
|
|
$P.scrollInspectionDataList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -586,7 +589,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$P.renderInspectionDataList = (renderDataType) => {
|
|
|
|
|
$P.renderInspectionDataList = (total, renderDataType) => {
|
|
|
|
|
|
|
|
|
|
switch (renderDataType) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
@ -599,6 +602,12 @@ $(document).ready(function(){
|
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
|
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
|
$("#photoInspectionTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
if(total == dataList.length){
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
|
} else {
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").removeAttr("data-scroll-status");
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionMain":
|
|
|
|
|
var dataList = $P.sameVehicleControl.main.dataset;
|
|
|
|
@ -609,6 +618,12 @@ $(document).ready(function(){
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
|
|
|
|
|
var trs = empty ? notFound : dataList.inStrings(found, replacer);
|
|
|
|
|
$("#sameVehicleInspectionMainTbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
|
|
if(total == dataList.length){
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").attr("data-scroll-status", "complete");
|
|
|
|
|
} else {
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").removeAttr("data-scroll-status");
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "sameVehicleInspectionSub":
|
|
|
|
|
var dataList = $P.sameVehicleControl.sub.dataset;
|
|
|
|
@ -626,8 +641,6 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
$P.scrollable = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
|