목록 재조회 함수 수정

main
이범준 1 year ago
parent 82ceb19a79
commit d4792eb9a1

@ -126,6 +126,7 @@ $(document).ready(function(){
});
$P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
$P.crdnControl.urls.newInfoByFile = "";

@ -255,6 +255,7 @@ $(document).ready(function(){
});
$P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
/**************************************************************************

@ -377,6 +377,7 @@ $(document).ready(function(){
});
$P.photoInspectionControl.defaultFetchSize = FETCH_XS;
$P.photoInspectionControl.untilPageNum = 0;
$P.photoInspectionControl.beforeCurrent = null;
$P.photoInspectionControl.tableRenderComplete = false;
@ -400,6 +401,7 @@ $(document).ready(function(){
);
$P.sameVehicleControl.defaultFetchSize = FETCH_XS;
$P.sameVehicleControl.untilPageNum = 0;
$P.sameVehicleControl.main.beforeCurrent = null;
$P.sameVehicleControl.main.tableRenderComplete = false;
$P.sameVehicleControl.sub.tableRenderComplete = false;
@ -437,6 +439,30 @@ $(document).ready(function(){
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;
if(!item){
$P.clickInspectionDataList("","photoInspection", true);
@ -465,6 +491,30 @@ $(document).ready(function(){
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;
if(!item){
$P.clickInspectionDataList("","sameVehicleInspectionMain", true);
@ -528,11 +578,19 @@ $(document).ready(function(){
case "photoInspection":
$P.photoInspectionControl.untilPageNum = $P.photoInspectionControl.query.pageNum;
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize * $P.photoInspectionControl.query.pageNum;
$P.photoInspectionControl.beforeCurrent = {
key : $P.photoInspectionControl.getCurrent()["CRDN_ID"],
index : $P.photoInspectionControl.getCurrent()["ROW_NUM"] - 1
};
$P.photoInspectionControl.load(1);
break;
case "sameVehicleInspection":
$P.sameVehicleControl.untilPageNum = $P.sameVehicleControl.main.query.pageNum;
$P.sameVehicleControl.main.query.fetchSize = $P.sameVehicleControl.defaultFetchSize * $P.sameVehicleControl.main.query.pageNum;
$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;
default: break;

@ -151,6 +151,7 @@ $(document).ready(function(){
});
$P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
/**************************************************************************

@ -161,6 +161,7 @@ $(document).ready(function(){
});
$P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
/**************************************************************************

@ -82,6 +82,8 @@
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th style="min-width: 80px;">No.</th>
<th
style="min-width: 80px;">단속키</th>
<th onclick="searchFromGridTitle('CRDN_REG_SE_CD',this.innerText,'codeValue','FIM026');"
style="min-width: 80px;">등록구분</th>
<th onclick="searchFromGridTitle('CVLCPT_APLCNT_NM',this.innerText,'match','part');"
@ -110,6 +112,7 @@
<template id="crdnRow--${pageName}">
<tr data-key="{CRDN_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
<td class="text-end">{CRDN_ID}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_REG_SE_CD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_APLCNT_NM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PIC_NM}</td>
@ -190,6 +193,7 @@ $(document).ready(function(){
});
$P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
/**************************************************************************
@ -216,6 +220,29 @@ $(document).ready(function(){
return;
}
if($P.crdnControl.beforeCurrent != null){
var beforeCurrentKey = $P.crdnControl.beforeCurrent.key;
var beforeCurrentIndex = $P.crdnControl.beforeCurrent.index;
$P.crdnControl.beforeCurrent = null;
if(!$P.crdnControl.dataset.empty){
var info = $P.crdnControl.dataset.getData(beforeCurrentKey);
if(info != null){
$P.crdnControl.setCurrent(beforeCurrentKey);
return;
}
if(beforeCurrentIndex > ($P.crdnControl.dataset.length - 1)){
info = $P.crdnControl.dataset.getDataset()[$P.crdnControl.dataset.length - 1];
} else {
info = $P.crdnControl.dataset.getDataset()[beforeCurrentIndex];
}
$P.crdnControl.setCurrent(info["CRDN_ID"]);
return;
}
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
@ -256,6 +283,10 @@ $(document).ready(function(){
$P.refreshCrdnList = () => {
$P.crdnControl.untilPageNum = $P.crdnControl.query.pageNum;
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize * $P.crdnControl.query.pageNum;
$P.crdnControl.beforeCurrent = {
key : $P.crdnControl.getCurrent()["CRDN_ID"],
index : $P.crdnControl.getCurrent()["ROW_NUM"] - 1
};
$P.crdnControl.load(1);
}

@ -188,6 +188,7 @@ $(document).ready(function(){
});
$P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
/**************************************************************************

Loading…
Cancel
Save