fix: tiles fims-popup 적용

main
minuk926 2 years ago
parent cfaa52fbcd
commit 254f0282c8

@ -362,11 +362,12 @@
},
clickRegBtn: function(props){
let rowData = props.grid.getRow(props.rowKey);
const rowData = props.grid.getRow(props.rowKey);
<%--
let params = '';
params += "selectedId=" + rowData.reglt_id;
this.pagePopup('detail', '<c:url value="/cmm/fimsPopup/fimsTotalPopup.do"/>', params);
<%--
--%>
CmmPopup.open('<c:url value="/cmm/fimsPopup/fimsTotalPopup.do"/>',
{
tilesDef: 'popup',
@ -378,7 +379,6 @@
},
'단속자료 상세 현황'
)
--%>
},
pagePopup: function(flag, url, params){

@ -63,10 +63,18 @@
<script type="text/javaScript" language="javascript">
let GRID = null;
/* ========================
* 데이터 조회 : popup에서 사용
======================== */
var findPrograms = function(){
GRID.reloadData();
};
/* *******************************
* 프로그램 목록관리 Functions
******************************* */
var mngProgramMgtForm = {
const mngProgramMgtForm = {
init : function(){
/* ******************************
@ -158,10 +166,6 @@
//GRID.refreshLayout();
});
/**
* Elements EventListener Settings
*/
@ -183,12 +187,7 @@
},
/* ========================
* 데이터 조회
======================== */
findData : function(){
GRID.reloadData();
},
/* ========================
* 데이터 등록
======================== */
@ -208,11 +207,11 @@
//Parameter Get
var arrKey = [];
instance.getCheckedRows().forEach(function(row){
const arrKey = [];
GRID.getCheckedRows().forEach(function(row){
arrKey.push(row.progrmFileNm);
});
var checkProgrmFileNms = arrKey.join(',');
const checkProgrmFileNms = arrKey.join(',');
//Call
@ -225,7 +224,7 @@
dataType : "json",
success : function(data) {
alert(data.resp.message);
this.findData();
findPrograms();
},
error: function(){
@ -277,7 +276,6 @@
default:
break;
}
window.open(popUrl, popTitle ,popOption);
},
/* ========================
@ -286,26 +284,24 @@
======================== */
fnClickProgramBtn: function(props){
var rowData = props.grid.getRow(props.rowKey);
var params = "";
params += "progrmFileNm=" + rowData.progrmFileNm;
mngProgramMgtForm.pagePopup('detail', "<c:url value='/framework/biz/mng/menu/program_edit.do'/>", params);
const rowData = props.grid.getRow(props.rowKey);
<%--
let rowData = props.grid.getRow(props.rowKey);
let params = "";
params += "progrmFileNm=" + rowData.progrmFileNm;
this.pagePopup('detail', "<c:url value='/framework/biz/mng/menu/program_edit.do'/>", params);
--%>
CmmPopup.open('<c:url value="/framework/biz/mng/menu/program_edit.do"/>',
{
tilesDef: 'popup',
progrmFileNm: rowData.progrmFileNm
},
{
width: 655,
height: 720
width: 720,
height: 655
},
'프로그램 상세'
)
--%>
}
}

@ -75,113 +75,114 @@
<script type="text/javaScript" language="javascript">
$(document).ready(function(){
XitProgramMng_edit.init();
});
/* *******************************
* 프로그램 목록관리 수정화면 Functions
******************************* */
var XitProgramMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
this.addData();
}
});
$('#btnUpdate').on({
click: function(){
XitProgramMng_edit.modifyData();
}
});
$('#delete_btn').on({
click: function(){
XitProgramMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateProgrmManageVO(document.getElementById("progrmMngVO")))
return;
var varFrom = document.getElementById("progrmMngVO");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/'/>_mng_/menu/program/ProgramMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
console.log('~~~~~~~~~~~~~~~~',data);
alert(data.message);
window.opener.mngProgramMgtForm.findData();
window.close();
},
error: function(){
/* *******************************
* 프로그램 목록관리 수정화면 Functions
******************************* */
var XitProgramMng_edit = {
init : function(){
//닫기 버튼 Event
$("#btnClose").click(function() {
window.close();
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
this.addData();
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
//if(!validateProgrmManageVO(document.getElementById("progrmMngVO")))
// return;
var varFrom = document.getElementById("progrmMngVO");
if(confirm("변경 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
<%--url : "<c:url value='/'/>framework/biz/mng/menu/program_update_proc.do",--%>
url : "<c:url value='/'/>framework/biz/mng/menu/updateProgram.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.message);
window.opener.mngProgramMgtForm.findData();
window.close();
$('#btnUpdate').on({
click: function(){
XitProgramMng_edit.modifyData();
}
});
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("progrmMngVO");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/'/>_mng_/menu/program/ProgramMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
console.log(data)
window.opener.findData();//.mngProgramMgtForm.findData();
window.close();
},
error: function(){
$('#delete_btn').on({
click: function(){
XitProgramMng_edit.removeData();
}
});
$(".popup").css("position","absolute");
$(".content_header").css("display","none");
$("#cur_loc").css("display","none");
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
if(!validateProgrmManageVO(document.getElementById("progrmMngVO")))
return;
var varFrom = document.getElementById("progrmMngVO");
if(confirm("저장 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/'/>_mng_/menu/program/ProgramMng_insert_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
console.log('~~~~~~~~~~~~~~~~',data);
alert(data.message);
window.opener.findPrograms();
window.close();
},
error: function(){
}
});
}
}
/* ========================
* 데이터 수정
======================== */
,modifyData : function(){
//if(!validateProgrmManageVO(document.getElementById("progrmMngVO")))
// return;
var varFrom = document.getElementById("progrmMngVO");
if(confirm("변경 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
<%--url : "<c:url value='/'/>framework/biz/mng/menu/program_update_proc.do",--%>
url : "<c:url value='/'/>framework/biz/mng/menu/updateProgram.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.message);
window.opener.findPrograms();
window.close();
}
});
}
}
}
/* ========================
* 데이터 삭제
======================== */
,removeData : function(){
var varFrom = document.getElementById("progrmMngVO");
if(confirm("삭제 하시겠습니까?")){
var param = $(varFrom).serialize();
$.ajax({
url : "<c:url value='/'/>_mng_/menu/program/ProgramMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
console.log(data)
window.opener.findData();//.mngProgramMgtForm.findData();
window.close();
},
error: function(){
}
});
}
}
}
}
$(document).ready(function(){
XitProgramMng_edit.init();
});
</script>

Loading…
Cancel
Save