소스 정리

main
이범준 9 months ago
parent ca078c5a3b
commit de877f33cd

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

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

@ -176,14 +176,14 @@ $(document).ready(function(){
$P.crdnControl.tableRenderComplete = true; $P.crdnControl.tableRenderComplete = true;
}; };
$P.crdnControl.onCurrentChange = (item) => { $P.crdnControl.onCurrentChange = (DI) => {
if(!$P.crdnControl.tableRenderComplete){ if(!$P.crdnControl.tableRenderComplete){
return; return;
} }
$P.crdnControl.tableRenderComplete = false; $P.crdnControl.tableRenderComplete = false;
if(!item){ if(!DI){
$P.clickCrdnList("", true); $P.clickCrdnList("", true);
} else { } else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true); $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){ if(!$P.crdnControl.tableRenderComplete){
return; return;
} }
$P.crdnControl.tableRenderComplete = false; $P.crdnControl.tableRenderComplete = false;
if(!item){ if(!DI){
$P.clickCrdnList("", true); $P.clickCrdnList("", true);
} else { } else {
$P.clickCrdnList($P.crdnControl.getCurrent()["CRDN_ID"], true); $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(""); $("#imageArea--${pageName}").html("");
if(item && item.data){ if(DI && DI.data){
var dataKey = item.data.FILE_NAME; var dataKey = DI.data.FILE_NAME;
$("#table-responsive--${pageName}").find("tbody").setCurrentRow(dataKey); $("#table-responsive--${pageName}").find("tbody").setCurrentRow(dataKey);
if(item.data.FILE_GROUP_TYPE == "BIN"){ if(DI.data.FILE_GROUP_TYPE == "BIN"){
var srcArr = []; var srcArr = [];
for(var i=1; i <= item.data.PHOTO_CNT; i++){ for(var i=1; i <= DI.data.PHOTO_CNT; i++){
srcArr.push("data:image/jpg;base64," + item.data["B64IMAGE"+i]) srcArr.push("data:image/jpg;base64," + DI.data["B64IMAGE"+i])
} }
$P.renderImage(srcArr); $P.renderImage(srcArr);
} else { } else {
if(!dataKey.endsWith(".txt") && !dataKey.endsWith(".TXT")){ if(!dataKey.endsWith(".txt") && !dataKey.endsWith(".TXT")){
var src = item.data.FILE_PATH; var src = DI.data.FILE_PATH;
$P.renderImage(src); $P.renderImage(src);
} }
} }

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

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

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

@ -302,8 +302,8 @@ $(document).ready(function(){
}; };
$P.useTeamControl.onCurrentChange = (item) => { $P.useTeamControl.onCurrentChange = (DI) => {
if(!item){ if(!DI){
$("#teamNm--${pageName}").val(""); $("#teamNm--${pageName}").val("");
$("#crdnSeCd--${pageName}").val(""); $("#crdnSeCd--${pageName}").val("");
$("#teamer1--${pageName}").val(""); $("#teamer1--${pageName}").val("");
@ -314,17 +314,17 @@ $(document).ready(function(){
return; return;
} }
$("#useTeamTbody--${pageName}").setCurrentRow(item.data.TEAM_ID); $("#useTeamTbody--${pageName}").setCurrentRow(DI.data.TEAM_ID);
$("#teamNm--${pageName}").val(item.data.TEAM_NM); $("#teamNm--${pageName}").val(DI.data.TEAM_NM);
$("#crdnSeCd--${pageName}").val(item.data.CRDN_SE_CD); $("#crdnSeCd--${pageName}").val(DI.data.CRDN_SE_CD);
$("#teamer1--${pageName}").val(item.data.TEAMER_1); $("#teamer1--${pageName}").val(DI.data.TEAMER_1);
$("#teamer2--${pageName}").val(item.data.TEAMER_2); $("#teamer2--${pageName}").val(DI.data.TEAMER_2);
$("#teamer3--${pageName}").val(item.data.TEAMER_3); $("#teamer3--${pageName}").val(DI.data.TEAMER_3);
$("#teamer4--${pageName}").val(item.data.TEAMER_4); $("#teamer4--${pageName}").val(DI.data.TEAMER_4);
$("#etcCn--${pageName}").val(item.data.ETC_CN); $("#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){ if(!$P.exmptnVhclControl.tableRenderComplete){
return; return;
@ -265,7 +265,7 @@ $(document).ready(function(){
$P.exmptnVhclControl.tableRenderComplete = false; $P.exmptnVhclControl.tableRenderComplete = false;
if(!item){ if(!DI){
$P.clickExmptnVhclList("", true); $P.clickExmptnVhclList("", true);
} else { } else {
$P.clickExmptnVhclList($P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"], true); $P.clickExmptnVhclList($P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"], true);

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

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

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

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

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

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

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

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

Loading…
Cancel
Save