feat: CUD 완료
parent
7f322a4ac9
commit
ecd54bd1af
@ -0,0 +1,183 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
|
||||
|
||||
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
|
||||
<validator:javascript formName="progrmMngVO" staticJavascript="true" xhtml="true" cdata="false"/>
|
||||
<%--@elvariable id="progrmMngVO" type=""--%>
|
||||
<form:form name="progrmMngVO" commandName="progrmMngVO">
|
||||
|
||||
<div class="popup" style="min-width: 700px;">
|
||||
<div class="popup_inner" style="max-width:700px;">
|
||||
<p class="pop_title"> 프로그램 상세조회 /수정</p>
|
||||
<table class="tbl03">
|
||||
<caption>프로그램 상세조회 /수정</caption>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmFileNm">프로그램파일명</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<c:choose>
|
||||
<c:when test="${!empty progrmMngVO.progrmFileNm and fn:length(progrmMngVO.progrmFileNm) > 0}">
|
||||
<input type="text" id='progrmFileNm' name='progrmFileNm' disabled="disabled" value="<c:out value='${progrmMngVO.progrmFileNm}'/>">
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" id='progrmFileNm' name='progrmFileNm' value="<c:out value='${progrmMngVO.progrmFileNm}'/>">
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<form:input path="progrmFileNm" size="50" maxlength="50" title="프로그램파일명" cssStyle="display:none" />
|
||||
<form:errors path="progrmFileNm"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmStrePath">저장경로</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="progrmStrePath" size="50" maxlength="50" title="저장경로" disabled="disabled"/>
|
||||
<form:errors path="progrmStrePath"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmKoreanNm">프로그램 한글명</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="progrmKoreanNm" size="60" maxlength="50" title="프로그램 한글명"/>
|
||||
<form:errors path="progrmKoreanNm" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="URL">URL</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="URL" size="100" maxlength="100" title="URL" />
|
||||
<form:errors path="URL" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th height="23" class="required" scope="row"><label for="progrmDc">프로그램설명</label></th>
|
||||
<td>
|
||||
<form:textarea path="progrmDc" rows="14" cols="75" title="프로그램설명"/>
|
||||
<form:errors path="progrmDc"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="popup_btn">
|
||||
<span class="flr" colspan="4">
|
||||
<c:choose>
|
||||
<c:when test="${!empty progrmMngVO.progrmFileNm and fn:length(progrmMngVO.progrmFileNm) > 0}">
|
||||
<a href="#LINK" class="btn blue" id="btnUpdate" onclick="mngProgramMgtPopup.modifyProgram()">변경</a>
|
||||
<a href="#LINK" class="btn red" id="btnDelete" onclick="mngProgramMgtPopup.removeProgram()">삭제</a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<a href="#LINK" class="btn blue" id="btnUpdate" onClick="mngProgramMgtPopup.addProgram()">등록</a>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<a href="#" class="btn lightgray" id="btnClose" onclick="window.close()">닫기</a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- //등록버튼 -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //popup -->
|
||||
</form:form>
|
||||
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
/* *******************************
|
||||
* 프로그램 목록관리 수정화면 Functions
|
||||
******************************* */
|
||||
var mngProgramMgtPopup = {
|
||||
init : function(){
|
||||
//닫기 버튼 Event
|
||||
$("#btnClose").click(function() {
|
||||
window.close();
|
||||
});
|
||||
|
||||
$(".popup").css("position","absolute");
|
||||
$(".content_header").css("display","none");
|
||||
$("#cur_loc").css("display","none");
|
||||
},
|
||||
/* ========================
|
||||
* 데이터 등록
|
||||
======================== */
|
||||
addProgram : function(){
|
||||
if(!validateProgrmMngVO(document.getElementById("progrmMngVO")))
|
||||
return;
|
||||
|
||||
var varFrom = document.getElementById("progrmMngVO");
|
||||
if(confirm("저장 하시겠습니까?")){
|
||||
var param = $(varFrom).serialize();
|
||||
$.ajax({
|
||||
url : "<c:url value='/'/>framework/biz/mng/menu/addProgram.do",
|
||||
data : param,
|
||||
type : "post",
|
||||
dataType : "json",
|
||||
success : function(data) {
|
||||
alert(data.message);
|
||||
window.opener.findPrograms();
|
||||
window.close();
|
||||
},
|
||||
error: function(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
/* ========================
|
||||
* 데이터 수정
|
||||
======================== */
|
||||
,modifyProgram : function(){
|
||||
if(!validateProgrmMngVO(document.getElementById("progrmMngVO")))
|
||||
return;
|
||||
|
||||
var varFrom = document.getElementById("progrmMngVO");
|
||||
if(confirm("변경 하시겠습니까?")){
|
||||
var param = $(varFrom).serialize();
|
||||
$.ajax({
|
||||
url : "<c:url value='/'/>framework/biz/mng/menu/modifyProgram.do",
|
||||
data : param,
|
||||
type : "post",
|
||||
dataType : "json",
|
||||
success : function(data) {
|
||||
alert(data.message);
|
||||
window.opener.findPrograms();
|
||||
window.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
/* ========================
|
||||
* 데이터 삭제
|
||||
======================== */
|
||||
,removeProgram : function(){
|
||||
var varFrom = document.getElementById("progrmMngVO");
|
||||
if(confirm("삭제 하시겠습니까?")){
|
||||
var param = $(varFrom).serialize();
|
||||
$.ajax({
|
||||
url : "<c:url value='/'/>framework/biz/mng/menu/removeProgram.do",
|
||||
data : {progrmFileNm: $('#progrmFileNm').val()},
|
||||
type : "post",
|
||||
dataType : "json",
|
||||
success : function(data) {
|
||||
alert(data.message);
|
||||
console.log(data)
|
||||
window.opener.findPrograms();//.mngProgramMgtForm.findData();
|
||||
window.close();
|
||||
},
|
||||
error: function(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
mngProgramMgtPopup.init();
|
||||
});
|
||||
</script>
|
@ -1,185 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
|
||||
|
||||
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
|
||||
<validator:javascript formName="progrmMngVO" staticJavascript="true" xhtml="true" cdata="false"/>
|
||||
<%--@elvariable id="progrmMngVO" type=""--%>
|
||||
<form:form name="progrmMngVO" commandName="progrmMngVO">
|
||||
|
||||
<div class="popup" style="min-width: 700px;">
|
||||
<div class="popup_inner" style="max-width:700px;">
|
||||
<p class="pop_title"> 프로그램 상세조회 /수정</p>
|
||||
<table class="tbl03">
|
||||
<caption>프로그램 상세조회 /수정</caption>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmFileNm">프로그램파일명</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<input type="text" disabled="disabled" value="<c:out value="${progrmMngVO.progrmFileNm }"/>" >
|
||||
<form:input path="progrmFileNm" size="50" maxlength="50" title="프로그램파일명" cssStyle="display:none" />
|
||||
<form:errors path="progrmFileNm"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmStrePath">저장경로</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="progrmStrePath" size="50" maxlength="50" title="저장경로"/>
|
||||
<form:errors path="progrmStrePath"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmKoreanNm">프로그램 한글명</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="progrmKoreanNm" size="60" maxlength="50" title="프로그램 한글명"/>
|
||||
<form:errors path="progrmKoreanNm" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="URL">URL</label>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="URL" size="100" maxlength="100" title="URL" />
|
||||
<form:errors path="URL" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th height="23" class="required" scope="row"><label for="progrmDc">프로그램설명</label></th>
|
||||
<td>
|
||||
<form:textarea path="progrmDc" rows="14" cols="75" title="프로그램설명"/>
|
||||
<form:errors path="progrmDc"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="popup_btn">
|
||||
<span class="flr" colspan="4">
|
||||
<a href="#LINK" class="btn blue" id="btnUpdate">변경</a>
|
||||
<a href="#LINK" class="btn red" id="btnDelete">삭제</a>
|
||||
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- //등록버튼 -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //popup -->
|
||||
</form:form>
|
||||
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
/* *******************************
|
||||
* 프로그램 목록관리 수정화면 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.findPrograms();
|
||||
window.close();
|
||||
},
|
||||
error: function(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
/* ========================
|
||||
* 데이터 수정
|
||||
======================== */
|
||||
,modifyData : function(){
|
||||
if(!validateProgrmMngVO(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/modifyProgram.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>
|
@ -1,215 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
|
||||
<c:url var="ImgUrl" value="/images"/>
|
||||
|
||||
<script type="text/javascript" src="<c:url value="/_cmmn_/util/validator.do"/>"></script>
|
||||
<validator:javascript formName="progrmMngVO" staticJavascript="false" xhtml="true" cdata="false"/>
|
||||
<form:form commandName="progrmMngVO" action="">
|
||||
|
||||
<div class="popup" style="min-width: 700px;">
|
||||
<div class="popup_inner" style="max-width:700px;">
|
||||
<p class="pop_title"> 프로그램 등록</p>
|
||||
<table class="tbl03">
|
||||
<caption>프로그램 등록</caption>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="F1">프로그램파일명</label>
|
||||
<img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"></th>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="progrmFileNm" size="50" maxlength="50" id="F1" title="프로그램파일명"/>
|
||||
<form:errors path="progrmFileNm" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmStrePath">저장경로</label>
|
||||
<img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"></th>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="progrmStrePath" size="60" maxlength="60" title="저장경로"/>
|
||||
<form:errors path="progrmStrePath" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="progrmKoreanNm">프로그램 한글명</label>
|
||||
<img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"></th>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="progrmKoreanNm" size="60" maxlength="50" title="프로그램 한글명"/>
|
||||
<form:errors path="progrmKoreanNm"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%" height="23" class="required" scope="row"><label for="URL">URL</label>
|
||||
<img src="${ImgUrl}/required.gif" width="15" height="15" alt="필수"></th>
|
||||
<td width="80%" nowrap="nowrap">
|
||||
<form:input path="URL" size="100" maxlength="100" title="URL"/>
|
||||
<form:errors path="URL"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th height="23" class="required" scope="row"><label for="progrmDc">프로그램설명</label></th>
|
||||
<td>
|
||||
<form:textarea path="progrmDc" rows="14" cols="75" title="프로그램설명"/>
|
||||
<form:errors path="progrmDc"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="popup_btn">
|
||||
<span class="flr" colspan="4">
|
||||
<a href="#LINK" class="btn blue" id="btnSave">등록</a>
|
||||
<a href="#LINK" class="btn blue" id="btnSearch">목록조회</a>
|
||||
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- //등록버튼 -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //popup -->
|
||||
</form:form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javaScript" language="javascript">
|
||||
|
||||
$(document).ready(function(){
|
||||
XitProgramMng_input.init();
|
||||
});
|
||||
/* *******************************
|
||||
* 프로그램 목록관리 등록화면 Functions
|
||||
******************************* */
|
||||
var XitProgramMng_input = {
|
||||
init : function(){
|
||||
//닫기 버튼 Event
|
||||
$("#btnClose").click(function() {
|
||||
window.close();
|
||||
});
|
||||
//저장 버튼 Event 설정
|
||||
$('#btnSave').on({
|
||||
click: function(){
|
||||
XitProgramMng_input.addData();
|
||||
}
|
||||
});
|
||||
$('#update_btn').on({
|
||||
click: function(){
|
||||
XitProgramMng_input.modifyData();
|
||||
}
|
||||
});
|
||||
$('#delete_btn').on({
|
||||
click: function(){
|
||||
XitProgramMng_input.removeData();
|
||||
}
|
||||
});
|
||||
$('#btnSearch').on({
|
||||
click: function(){
|
||||
XitProgramMng_input.pagePopup('scrch', "<c:url value='/_mng_/menu/program/ProgramMngList.do' />");
|
||||
}
|
||||
});
|
||||
$(".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) {
|
||||
alert(data.resp.message);
|
||||
// window.opener.XitProgramMng_list.findData();
|
||||
// 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='/'/>_mng_/menu/program/ProgramMng_update_proc.do",
|
||||
data : param,
|
||||
type : "post",
|
||||
dataType : "json",
|
||||
success : function(data) {
|
||||
alert(data.resp.message);
|
||||
window.opener.XitProgramMng_list.findData();
|
||||
window.close();
|
||||
},
|
||||
error: function(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
/* ========================
|
||||
* 데이터 삭제
|
||||
======================== */
|
||||
,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);
|
||||
window.opener.XitProgramMng_list.findData();
|
||||
window.close();
|
||||
},
|
||||
error: function(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
,pagePopup: function(flag, url, params){
|
||||
var popUrl = url;
|
||||
if(!(params == undefined || params == null)){
|
||||
popUrl += "?";
|
||||
popUrl += params;
|
||||
popUrl += "&tilesDef=popup";
|
||||
}else{
|
||||
popUrl += "?";
|
||||
popUrl += "&tilesDef=popup";
|
||||
}
|
||||
var popTitle = '';
|
||||
switch (flag) {
|
||||
case "scrch": //프로그램목록조회
|
||||
popTitle = "프로그램 목록조회";
|
||||
popOption = "scrollbars = yes, top=100px, left=100px, height=595px, width=920px;";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
window.open(popUrl, popTitle ,popOption);
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue