openerPageName 제거

main
이범준 3 months ago
parent 46ed1e23c7
commit 5076170757

@ -899,7 +899,6 @@ $(document).ready(function(){
var params = { var params = {
"crdnId" : info.data.CRDN_ID, "crdnId" : info.data.CRDN_ID,
"levyExclSeCd" : levyExclSeCd, "levyExclSeCd" : levyExclSeCd,
"openerPageName" : "${pageName}",
"savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']", "savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']",
"callPurpose" : "create" "callPurpose" : "create"
}; };
@ -954,7 +953,6 @@ $(document).ready(function(){
var params = { var params = {
"crdnId" : info.data.CRDN_ID, "crdnId" : info.data.CRDN_ID,
"openerPageName" : "${pageName}",
"savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']" "savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']"
}; };
@ -1010,12 +1008,11 @@ $(document).ready(function(){
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트
$P.fnGetFindUser = () => { $P.fnGetFindUser = () => {
let params = { let params = {
openerPageName: "${pageName}" callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']" };
}
ajax.get({ ajax.get({
url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}" url: wctx.url("/user/user02/010/main.do")
, data: params || {} , data: params || {}
, success: resp => { , success: resp => {

@ -561,12 +561,11 @@ $(document).ready(function(){
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트
$P.fnGetFindUser = () => { $P.fnGetFindUser = () => {
let params = { let params = {
openerPageName: "${pageName}" callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']" };
}
ajax.get({ ajax.get({
url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}" url: wctx.url("/user/user02/010/main.do")
, data: params || {} , data: params || {}
, success: resp => { , success: resp => {

@ -260,7 +260,7 @@
// 저장 callback // 저장 callback
$P.control.onSave = (resp) => { $P.control.onSave = (resp) => {
let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html(); let dialogTitle = $("#" + $P.selfDlgId()).find("h5.modal-title").html();
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle); let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle);
dialog.alert({ dialog.alert({
@ -272,7 +272,7 @@
}); });
if (resp.saved) { if (resp.saved) {
dialog.close($P.control.prefix + "Dialog--${openerPageName}"); dialog.close($P.selfDlgId());
} }
} }

@ -100,7 +100,7 @@
// 저장 callback // 저장 callback
$P.control.onSave = (resp) => { $P.control.onSave = (resp) => {
let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html(); let dialogTitle = $("#" + $P.selfDlgId()).find("h5.modal-title").html();
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle); let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle);
dialog.alert({ dialog.alert({
@ -112,7 +112,7 @@
}); });
if (resp.saved) { if (resp.saved) {
dialog.close($P.control.prefix + "Dialog--${openerPageName}"); dialog.close($P.selfDlgId());
} }
} }

@ -472,8 +472,7 @@ $(document).ready(function(){
ajax.get({ ajax.get({
url : $P.ctrl.urls.getInfo, url : $P.ctrl.urls.getInfo,
data : { data : {
"crdnId" : dataKey, "crdnId" : dataKey
"openerPageName" : "${pageName}"
}, },
success : (resp) => { success : (resp) => {

@ -472,7 +472,6 @@ $(document).ready(function(){
var taskSeCd = $P.$find("taskSeCd").val(); var taskSeCd = $P.$find("taskSeCd").val();
var params = { var params = {
"openerPageName" : "${pageName}",
"saveCallbackFuncName" : "pageObject['${pageName}']['exclSaveCallback']", "saveCallbackFuncName" : "pageObject['${pageName}']['exclSaveCallback']",
"callPurpose" : "create", "callPurpose" : "create",
"crdnId" : crdnId, "crdnId" : crdnId,

@ -195,12 +195,10 @@ $(document).ready(function() {
var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val()); var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val());
$P.$find("countStauts").val(cs); $P.$find("countStauts").val(cs);
let openerPageName = "${openerPageName}"; if($("#"+$P.selfDlgId()).attr("data-ref-doctx") == "cvlc02010") {
if (openerPageName == "sprt02020") {
$P.$find("btnSave").hide();
} else {
$P.$find("btnSave").show(); $P.$find("btnSave").show();
} else {
$P.$find("btnSave").hide();
} }
}); });

Loading…
Cancel
Save