단속관리, 민원관리 수정

main
이범준 1 year ago
parent 4efc3dd1bb
commit 74c1fa9a0f

@ -126,6 +126,8 @@ $(document).ready(function(){
}); });
$P.crdnControl.defaultFetchSize = FETCH_XS; $P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0; $P.crdnControl.untilPageNum = 0;
$P.crdnControl.tableRenderComplete = false;
$P.crdnControl.urls.newInfoByFile = ""; $P.crdnControl.urls.newInfoByFile = "";
$P.crdnControl.urls.newInfoByHand = ""; $P.crdnControl.urls.newInfoByHand = "";
@ -174,13 +176,21 @@ $(document).ready(function(){
func: "pageObject['${pageName}'].crdnControl.load({index})" func: "pageObject['${pageName}'].crdnControl.load({index})"
}); });
$P.crdnControl.tableRenderComplete = true;
}; };
$P.crdnControl.onCurrentChange = (item) => { $P.crdnControl.onCurrentChange = (item) => {
if (!item) return;
var key = item.data.CRDN_ID; if($P.crdnControl.tableRenderComplete){
$("#crdnTbody--${pageName}").setCurrentRow(key); $P.crdnControl.tableRenderComplete = false;
if(!item){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
}
}
} }
/************************************************************************** /**************************************************************************
@ -241,9 +251,15 @@ $(document).ready(function(){
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
} }
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey, auto) => {
$P.crdnControl.setCurrent(dataKey); if(dataKey == ""){
return;
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey); $("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if(!auto) {
$P.crdnControl.setCurrent(dataKey);
}
} }
$P.renderCrdnList = (total) => { $P.renderCrdnList = (total) => {

@ -255,11 +255,12 @@ $(document).ready(function(){
}); });
$P.crdnControl.defaultFetchSize = FETCH_XS; $P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0; $P.crdnControl.untilPageNum = 0;
$P.crdnControl.tableRenderComplete = false;
/************************************************************************** /**************************************************************************
* DatasetControl.on * DatasetControl.on
**************************************************************************/ **************************************************************************/
$P.crdnControl.onDatasetChange = obj => { $P.crdnControl.onDatasetChange = (obj) => {
$P.renderCrdnList(obj["Total"]); $P.renderCrdnList(obj["Total"]);
@ -272,13 +273,20 @@ $(document).ready(function(){
func: "pageObject['${pageName}'].crdnControl.load({index})" func: "pageObject['${pageName}'].crdnControl.load({index})"
}); });
$P.crdnControl.tableRenderComplete = true;
}; };
$P.crdnControl.onCurrentChange = (item) => { $P.crdnControl.onCurrentChange = (item) => {
if (!item) return;
var key = item.data.CRDN_ID; if($P.crdnControl.tableRenderComplete){
$("#crdnTbody--${pageName}").setCurrentRow(key); $P.crdnControl.tableRenderComplete = false;
if(!item){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
}
}
} }
/************************************************************************** /**************************************************************************
@ -341,9 +349,16 @@ $(document).ready(function(){
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
} }
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey, auto) => {
$P.crdnControl.setCurrent(dataKey); if(dataKey == ""){
return;
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey); $("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if(!auto){
$P.crdnControl.setCurrent(dataKey);
}
} }
$P.dblclickCrdnList = (dataKey) => { $P.dblclickCrdnList = (dataKey) => {

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

@ -151,11 +151,12 @@ $(document).ready(function(){
}); });
$P.crdnControl.defaultFetchSize = FETCH_XS; $P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0; $P.crdnControl.untilPageNum = 0;
$P.crdnControl.tableRenderComplete = false;
/************************************************************************** /**************************************************************************
* DatasetControl.on * DatasetControl.on
**************************************************************************/ **************************************************************************/
$P.crdnControl.onDatasetChange = obj => { $P.crdnControl.onDatasetChange = (obj) => {
$P.renderCrdnList(obj["Total"]); $P.renderCrdnList(obj["Total"]);
@ -167,13 +168,21 @@ $(document).ready(function(){
fetchSize: obj["Fetch"], fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})" func: "pageObject['${pageName}'].crdnControl.load({index})"
}); });
$P.crdnControl.tableRenderComplete = true;
}; };
$P.crdnControl.onCurrentChange = (item) => { $P.crdnControl.onCurrentChange = (item) => {
if (!item) return;
var key = item.data.CRDN_ID; if($P.crdnControl.tableRenderComplete){
$("#crdnTbody--${pageName}").setCurrentRow(key); $P.crdnControl.tableRenderComplete = false;
if(!item){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
}
}
}; };
/************************************************************************** /**************************************************************************
@ -210,16 +219,22 @@ $(document).ready(function(){
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
} }
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey, auto) => {
$P.crdnControl.setCurrent(dataKey); if(dataKey == ""){
return;
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey); $("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if(!auto){
$P.crdnControl.setCurrent(dataKey);
}
} }
$P.dblclickCrdnList = (dataKey) => { $P.dblclickCrdnList = (dataKey) => {
$P.crdnControl.getInfo(dataKey); $P.crdnControl.getInfo(dataKey);
} }
$P.renderCrdnList = (total) => { $P.renderCrdnList = (total) => {
var crdnList = $P.crdnControl.dataset; var crdnList = $P.crdnControl.dataset;

@ -161,6 +161,7 @@ $(document).ready(function(){
}); });
$P.crdnControl.defaultFetchSize = FETCH_XS; $P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0; $P.crdnControl.untilPageNum = 0;
$P.crdnControl.tableRenderComplete = false;
/************************************************************************** /**************************************************************************
* DatasetControl.on * DatasetControl.on
@ -178,13 +179,20 @@ $(document).ready(function(){
func: "pageObject['${pageName}'].crdnControl.load({index})" func: "pageObject['${pageName}'].crdnControl.load({index})"
}); });
$P.crdnControl.tableRenderComplete = true;
}; };
$P.crdnControl.onCurrentChange = (item) => { $P.crdnControl.onCurrentChange = (item) => {
if (!item) return;
var key = item.data.CRDN_ID; if($P.crdnControl.tableRenderComplete){
$("#crdnTbody--${pageName}").setCurrentRow(key); $P.crdnControl.tableRenderComplete = false;
if(!item){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
}
}
} }
/************************************************************************** /**************************************************************************
@ -233,9 +241,16 @@ $(document).ready(function(){
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
} }
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey, auto) => {
$P.crdnControl.setCurrent(dataKey); if(dataKey == ""){
return;
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey); $("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if(!auto){
$P.crdnControl.setCurrent(dataKey);
}
} }
$P.dblclickCrdnList = (dataKey) => { $P.dblclickCrdnList = (dataKey) => {

@ -216,9 +216,9 @@ $(document).ready(function(){
if($P.crdnControl.tableRenderComplete){ if($P.crdnControl.tableRenderComplete){
$P.crdnControl.tableRenderComplete = false; $P.crdnControl.tableRenderComplete = false;
if(!item){ if(!item){
$P.clickCrdnList(""); $P.clickCrdnList("", true);
} else { } else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"]); $P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
} }
$("label[for='table-responsive--${pageName}']").trigger("refreshEnd"); $("label[for='table-responsive--${pageName}']").trigger("refreshEnd");
} }
@ -288,7 +288,7 @@ $(document).ready(function(){
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
} }
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey, auto) => {
if(dataKey == ""){ if(dataKey == ""){
$("#bottomCrdnPlc--${pageName}").val(""); $("#bottomCrdnPlc--${pageName}").val("");
return; return;
@ -308,8 +308,10 @@ $(document).ready(function(){
$("#btnDeleteSameRcptYmd--${pageName}").show(); $("#btnDeleteSameRcptYmd--${pageName}").show();
} }
if(!auto){
$P.crdnControl.setCurrent(dataKey); $P.crdnControl.setCurrent(dataKey);
} }
}
$P.dblclickCrdnList = (dataKey) => { $P.dblclickCrdnList = (dataKey) => {

@ -188,6 +188,7 @@ $(document).ready(function(){
}); });
$P.crdnControl.defaultFetchSize = FETCH_XS; $P.crdnControl.defaultFetchSize = FETCH_XS;
$P.crdnControl.untilPageNum = 0; $P.crdnControl.untilPageNum = 0;
$P.crdnControl.tableRenderComplete = false;
/************************************************************************** /**************************************************************************
* DatasetControl.on * DatasetControl.on
@ -205,13 +206,18 @@ $(document).ready(function(){
func: "pageObject['${pageName}'].crdnControl.load({index})" func: "pageObject['${pageName}'].crdnControl.load({index})"
}); });
$P.crdnControl.tableRenderComplete = true;
}; };
$P.crdnControl.onCurrentChange = (item) => { $P.crdnControl.onCurrentChange = (item) => {
if (!item) return; if($P.crdnControl.tableRenderComplete){
$P.crdnControl.tableRenderComplete = false;
var key = item.data.CRDN_ID; if(!item){
$("#crdnTbody--${pageName}").setCurrentRow(key); $P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
}
}
} }
/************************************************************************** /**************************************************************************
@ -260,9 +266,15 @@ $(document).ready(function(){
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
} }
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey, auto) => {
$P.crdnControl.setCurrent(dataKey); if(dataKey == ""){
return;
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey); $("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if(!auto){
$P.crdnControl.setCurrent(dataKey);
}
} }
$P.dblclickCrdnList = (dataKey) => { $P.dblclickCrdnList = (dataKey) => {

Loading…
Cancel
Save