소스 정리

main
이범준 9 months ago
parent ca078c5a3b
commit de877f33cd

@ -461,7 +461,7 @@ $(document).ready(function(){
$P.photoInspectionControl.tableRenderComplete = true;
};
$P.photoInspectionControl.onCurrentChange = (item) => {
$P.photoInspectionControl.onCurrentChange = (DI) => {
if(!$P.photoInspectionControl.tableRenderComplete){
return;
@ -492,7 +492,7 @@ $(document).ready(function(){
}
$P.photoInspectionControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickInspectionDataList("","photoInspection", true);
} else {
$P.clickInspectionDataList($P.photoInspectionControl.getCurrent()["CRDN_ID"],"photoInspection", true);
@ -513,7 +513,7 @@ $(document).ready(function(){
$P.sameVehicleControl.main.tableRenderComplete = true;
};
$P.sameVehicleControl.main.onCurrentChange = (item) => {
$P.sameVehicleControl.main.onCurrentChange = (DI) => {
if(!$P.sameVehicleControl.main.tableRenderComplete){
return;
}
@ -543,7 +543,7 @@ $(document).ready(function(){
}
$P.sameVehicleControl.main.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickInspectionDataList("","sameVehicleInspectionMain", true);
} else {
$P.clickInspectionDataList($P.sameVehicleControl.main.getCurrent()["CRDN_ID_LIST"],"sameVehicleInspectionMain", true);
@ -555,13 +555,13 @@ $(document).ready(function(){
$P.sameVehicleControl.sub.tableRenderComplete = true;
};
$P.sameVehicleControl.sub.onCurrentChange = (item) => {
$P.sameVehicleControl.sub.onCurrentChange = (DI) => {
if(!$P.sameVehicleControl.sub.tableRenderComplete){
return;
}
$P.sameVehicleControl.sub.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickInspectionDataList("","sameVehicleInspectionSub", true);
} else {
$P.clickInspectionDataList($P.sameVehicleControl.sub.getCurrent()["CRDN_ID"],"sameVehicleInspectionSub", true);

@ -67,8 +67,8 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl.on, Dataset.on
**************************************************************************/
$P.crdnControl.onCurrentChange = (item) => {
$P.formFields.set(item);
$P.crdnControl.onCurrentChange = (DI) => {
$P.formFields.set(DI);
}
$P.crdnControl.onSave = (resp) => {

@ -176,14 +176,14 @@ $(document).ready(function(){
$P.crdnControl.tableRenderComplete = true;
};
$P.crdnControl.onCurrentChange = (item) => {
$P.crdnControl.onCurrentChange = (DI) => {
if(!$P.crdnControl.tableRenderComplete){
return;
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);

@ -186,14 +186,14 @@ $(document).ready(function(){
};
$P.crdnControl.onCurrentChange = (item) => {
$P.crdnControl.onCurrentChange = (DI) => {
if(!$P.crdnControl.tableRenderComplete){
return;
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);

@ -202,25 +202,25 @@ $(document).ready(function(){
});
};
$P.parsedInfoControl.onCurrentChange = (item) => {
$P.parsedInfoControl.onCurrentChange = (DI) => {
$("#imageArea--${pageName}").html("");
if(item && item.data){
var dataKey = item.data.FILE_NAME;
if(DI && DI.data){
var dataKey = DI.data.FILE_NAME;
$("#table-responsive--${pageName}").find("tbody").setCurrentRow(dataKey);
if(item.data.FILE_GROUP_TYPE == "BIN"){
if(DI.data.FILE_GROUP_TYPE == "BIN"){
var srcArr = [];
for(var i=1; i <= item.data.PHOTO_CNT; i++){
srcArr.push("data:image/jpg;base64," + item.data["B64IMAGE"+i])
for(var i=1; i <= DI.data.PHOTO_CNT; i++){
srcArr.push("data:image/jpg;base64," + DI.data["B64IMAGE"+i])
}
$P.renderImage(srcArr);
} else {
if(!dataKey.endsWith(".txt") && !dataKey.endsWith(".TXT")){
var src = item.data.FILE_PATH;
var src = DI.data.FILE_PATH;
$P.renderImage(src);
}
}

@ -332,14 +332,14 @@ $(document).ready(function(){
$P.crdnControl.tableRenderComplete = true;
};
$P.crdnControl.onCurrentChange = (item) => {
$P.crdnControl.onCurrentChange = (DI) => {
if(!$P.crdnControl.tableRenderComplete){
return;
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);
@ -434,10 +434,10 @@ $(document).ready(function(){
}
$P.dblclickCrdnList = (dataKey) => {
let params = {
callControlName : "pageObject['${pageName}'].crdnControl"
, crdnId : dataKey
}
var params = {
callControlName : "pageObject['${pageName}'].crdnControl",
crdnId : dataKey
};
ajax.get({
url : $P.crdnControl.urls.getInfo,

@ -324,17 +324,17 @@
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
$P.control.onCurrentChange = (item) => {
if (!item) return;
$P.control.onCurrentChange = (DI) => {
if (!DI) return;
// Dataset 셋팅
$P.formFields.set(item);
$P.formFields.set(DI);
// 업무별 입력 항목
$P.renderTask(item.data.TASK_SE_CD);
$P.renderTask(DI.data.TASK_SE_CD);
// 업무구분에 따른 URL 변경
$P.setURL(item.data.TASK_SE_CD);
$P.setURL(DI.data.TASK_SE_CD);
}
// 저장 callback

@ -93,14 +93,14 @@
* DatasetControl 이벤트
**************************************************************************/
// 현재 선택 자료 변경 이벤트
$P.control.onCurrentChange = (item) => {
if (!item) return;
$P.control.onCurrentChange = (DI) => {
if (!DI) return;
// Dataset 셋팅
$P.formFields.set(item);
$P.formFields.set(DI);
// 업무구분에 따른 URL 변경
$P.setURL(item.data.TASK_SE_CD);
$P.setURL(DI.data.TASK_SE_CD);
}
// 저장 callback

@ -302,8 +302,8 @@ $(document).ready(function(){
};
$P.useTeamControl.onCurrentChange = (item) => {
if(!item){
$P.useTeamControl.onCurrentChange = (DI) => {
if(!DI){
$("#teamNm--${pageName}").val("");
$("#crdnSeCd--${pageName}").val("");
$("#teamer1--${pageName}").val("");
@ -314,17 +314,17 @@ $(document).ready(function(){
return;
}
$("#useTeamTbody--${pageName}").setCurrentRow(item.data.TEAM_ID);
$("#useTeamTbody--${pageName}").setCurrentRow(DI.data.TEAM_ID);
$("#teamNm--${pageName}").val(item.data.TEAM_NM);
$("#crdnSeCd--${pageName}").val(item.data.CRDN_SE_CD);
$("#teamer1--${pageName}").val(item.data.TEAMER_1);
$("#teamer2--${pageName}").val(item.data.TEAMER_2);
$("#teamer3--${pageName}").val(item.data.TEAMER_3);
$("#teamer4--${pageName}").val(item.data.TEAMER_4);
$("#etcCn--${pageName}").val(item.data.ETC_CN);
$("#teamNm--${pageName}").val(DI.data.TEAM_NM);
$("#crdnSeCd--${pageName}").val(DI.data.CRDN_SE_CD);
$("#teamer1--${pageName}").val(DI.data.TEAMER_1);
$("#teamer2--${pageName}").val(DI.data.TEAMER_2);
$("#teamer3--${pageName}").val(DI.data.TEAMER_3);
$("#teamer4--${pageName}").val(DI.data.TEAMER_4);
$("#etcCn--${pageName}").val(DI.data.ETC_CN);
$("#deletedTeamNm--${pageName}").val(item.data.TEAM_NM);
$("#deletedTeamNm--${pageName}").val(DI.data.TEAM_NM);
}

@ -257,7 +257,7 @@ $(document).ready(function(){
};
$P.exmptnVhclControl.onCurrentChange = (item) => {
$P.exmptnVhclControl.onCurrentChange = (DI) => {
if(!$P.exmptnVhclControl.tableRenderComplete){
return;
@ -265,7 +265,7 @@ $(document).ready(function(){
$P.exmptnVhclControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickExmptnVhclList("", true);
} else {
$P.clickExmptnVhclList($P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"], true);

@ -264,7 +264,7 @@ $(document).ready(function(){
$P.crdnControl.tableRenderComplete = true;
};
$P.crdnControl.onCurrentChange = (item) => {
$P.crdnControl.onCurrentChange = (DI) => {
if(!$P.crdnControl.tableRenderComplete){
return;
}
@ -294,7 +294,7 @@ $(document).ready(function(){
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);

@ -458,8 +458,8 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl.on, Dataset.on
**************************************************************************/
$P.crdnControl.onCurrentChange = (item) => {
$P.formFields.set(item);
$P.crdnControl.onCurrentChange = (DI) => {
$P.formFields.set(DI);
}

@ -132,8 +132,8 @@ $(document).ready(function() {
/**************************************************************************
* DatasetControl.on, Dataset.on
**************************************************************************/
$P.cvlcptControl.onCurrentChange = (item) => {
$P.formFields.set(item);
$P.cvlcptControl.onCurrentChange = (DI) => {
$P.formFields.set(DI);
}
/**************************************************************************

@ -292,7 +292,7 @@ $(document).ready(function(){
$P.crdnControl.tableRenderComplete = true;
};
$P.crdnControl.onCurrentChange = (item) => {
$P.crdnControl.onCurrentChange = (DI) => {
if(!$P.crdnControl.tableRenderComplete){
return;
@ -323,7 +323,7 @@ $(document).ready(function(){
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);

@ -114,8 +114,8 @@ $(document).ready(function() {
/**************************************************************************
* DatasetControl.on, Dataset.on
**************************************************************************/
$P.cvlcptControl.onCurrentChange = (item) => {
$P.formFields.set(item);
$P.cvlcptControl.onCurrentChange = (DI) => {
$P.formFields.set(DI);
}
$P.cvlcptControl.onSave = (resp) => {

@ -260,7 +260,7 @@ $(document).ready(function(){
$P.crdnControl.tableRenderComplete = true;
};
$P.crdnControl.onCurrentChange = (item) => {
$P.crdnControl.onCurrentChange = (DI) => {
if(!$P.crdnControl.tableRenderComplete){
return;
}
@ -290,7 +290,7 @@ $(document).ready(function(){
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickCrdnList("", true);
} else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true);

@ -211,7 +211,7 @@ $(document).ready(function(){
$P.dmndControl.tableRenderComplete = true;
};
$P.dmndControl.onCurrentChange = (item) => {
$P.dmndControl.onCurrentChange = (DI) => {
if(!$P.dmndControl.tableRenderComplete){
return;
}
@ -241,7 +241,7 @@ $(document).ready(function(){
}
$P.dmndControl.tableRenderComplete = false;
if(!item){
if(!DI){
$P.clickDmndList("", true);
} else {
$P.clickDmndList($P.dmndControl.getCurrent()["INDIV_ID"], true);

@ -107,15 +107,15 @@ $(document).ready(function() {
};
// 현재 선택 자료 변경 이벤트
$P.integrationSearchControl.updataset.onCurrentChange = (item) => {
if (!item) return;
var key = item.data.CRDN_ID;
$P.integrationSearchControl.updataset.onCurrentChange = (DI) => {
if (!DI) return;
var key = DI.data.CRDN_ID;
$("#upTbody--${pageName}").setCurrentRow(key);
};
$P.integrationSearchControl.downdataset.onCurrentChange = (item) => {
if (!item) return;
var key = item.data.CRDN_ID;
$P.integrationSearchControl.downdataset.onCurrentChange = (DI) => {
if (!DI) return;
var key = DI.data.CRDN_ID;
$("#downTbody--${pageName}").setCurrentRow(key);
};

Loading…
Cancel
Save