|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
|
|
|
|
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp" %>
|
|
|
|
|
|
|
|
|
|
<c:set var="isUpdate" value="${!empty authorInfoVO.authorCode}"/>
|
|
|
|
@ -6,131 +6,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="popup" style="min-width: 100%;">
|
|
|
|
|
<div class="popup_inner" style="max-width: 400px;">
|
|
|
|
|
<%@include file="/WEB-INF/jsp/framework/biz-popup-title.jsp"%>
|
|
|
|
|
<form>
|
|
|
|
|
<table class="tbl03">
|
|
|
|
|
<caption><c:out value="${bizName}"/> <spring:message code="title.update"/> / <spring:message code="title.create"/></caption>
|
|
|
|
|
<colgroup>
|
|
|
|
|
<col style="width: 20%;"/>
|
|
|
|
|
<col/>
|
|
|
|
|
</colgroup>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="required" scope="row" nowrap="nowrap">
|
|
|
|
|
<label>권한코드</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<c:choose>
|
|
|
|
|
<c:when test="${isUpdate}">
|
|
|
|
|
<input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorInfoVO.authorCode}'/>" readonly size="40" title="권한코드" />
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<input name="authorCode" id="authorCode" type="text" size="40" title="권한코드" />
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="required" scope="row" nowrap="nowrap">
|
|
|
|
|
<label>권한명</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorInfoVO.authorNm}'/>" maxLength="50" size="40" title="권한명" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row" nowrap="nowrap">
|
|
|
|
|
<label>설명</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorInfoVO.authorDc}'/>" maxLength="50" size="50" title="설명" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row" nowrap="nowrap">
|
|
|
|
|
<label>등록일자</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorInfoVO.authorCreatDe}'/>" maxLength="50" size="20" readonly="readonly" title="등록일자"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
<%@include file="/WEB-INF/jsp/framework/biz-popup-btn.jsp"%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="popup_inner" style="max-width: 400px;">
|
|
|
|
|
<%@include file="/WEB-INF/jsp/framework/biz-popup-title.jsp" %>
|
|
|
|
|
<form>
|
|
|
|
|
<table class="tbl03">
|
|
|
|
|
<caption><c:out value="${bizName}"/> <spring:message code="title.update"/> / <spring:message code="title.create"/></caption>
|
|
|
|
|
<colgroup>
|
|
|
|
|
<col style="width: 20%;"/>
|
|
|
|
|
<col/>
|
|
|
|
|
</colgroup>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="required" scope="row" nowrap="nowrap">
|
|
|
|
|
<label>권한코드</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<c:choose>
|
|
|
|
|
<c:when test="${isUpdate}">
|
|
|
|
|
<input name="authorCode" id="authorCode" type="text" value="<c:out value='${authorInfoVO.authorCode}'/>" readonly size="40" title="권한코드"/>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<input name="authorCode" id="authorCode" type="text" size="40" title="권한코드"/>
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="required" scope="row" nowrap="nowrap">
|
|
|
|
|
<label>권한명</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<input name="authorNm" id="authorNm" type="text" value="<c:out value='${authorInfoVO.authorNm}'/>" maxLength="50" size="40" title="권한명"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row" nowrap="nowrap">
|
|
|
|
|
<label>설명</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<input name="authorDc" id="authorDc" type="text" value="<c:out value='${authorInfoVO.authorDc}'/>" maxLength="50" size="50" title="설명"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="row" nowrap="nowrap">
|
|
|
|
|
<label>등록일자</label>
|
|
|
|
|
</th>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<input name="authorCreatDe" id="authorCreatDe" type="text" value="<c:out value='${authorInfoVO.authorCreatDe}'/>" maxLength="50" size="20"
|
|
|
|
|
readonly="readonly" title="등록일자"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
<%@include file="/WEB-INF/jsp/framework/biz-popup-btn.jsp" %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- //popup -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javaScript">
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
let orgData;
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
let orgData;
|
|
|
|
|
|
|
|
|
|
/* *******************************
|
|
|
|
|
* Biz function
|
|
|
|
|
******************************* */
|
|
|
|
|
const fnBiz = {
|
|
|
|
|
add: () => {
|
|
|
|
|
if(!fnBiz.validate()) return;
|
|
|
|
|
/* *******************************
|
|
|
|
|
* Biz function
|
|
|
|
|
******************************* */
|
|
|
|
|
const fnBiz = {
|
|
|
|
|
add: () => {
|
|
|
|
|
if (!fnBiz.validate()) return;
|
|
|
|
|
|
|
|
|
|
cmmBizAjax('add', {
|
|
|
|
|
url: '<c:url value="/framework/biz/mng/auth/addAuthAuthor.do"/>'
|
|
|
|
|
,data: $("form").serialize()
|
|
|
|
|
//,contentType: 'x-www-form-url-encoded'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
,modify: () => {
|
|
|
|
|
if(!fnBiz.validate()) return;
|
|
|
|
|
cmmBizAjax('add', {
|
|
|
|
|
url: '<c:url value="/framework/biz/mng/auth/addAuthAuthor.do"/>'
|
|
|
|
|
, data: $("form").serialize()
|
|
|
|
|
//,contentType: 'x-www-form-url-encoded'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
, modify: () => {
|
|
|
|
|
if (!fnBiz.validate()) return;
|
|
|
|
|
|
|
|
|
|
cmmBizAjax('modify', {
|
|
|
|
|
url: '<c:url value="/framework/biz/mng/auth/modifyAuthAuthor.do"/>'
|
|
|
|
|
,data: $("form").serialize()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
,remove: () => {
|
|
|
|
|
cmmBizAjax('remove', {
|
|
|
|
|
url: '<c:url value="/framework/biz/mng/auth/removeAuthAuthor.do"/>'
|
|
|
|
|
,data: {authorCode: $('#authorCode').val()}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
,validate: () => {
|
|
|
|
|
if(orgData === $('form').serialize()){
|
|
|
|
|
alert('변경된 내용이 없습니다.');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if($('#authorCode').val() === ''){
|
|
|
|
|
alert('[권한코드]는 필수 입니다.');
|
|
|
|
|
$('#authorCode').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if($('#authorNm').val() === ''){
|
|
|
|
|
alert('[권한명]은 필수 입니다.');
|
|
|
|
|
$('#authorNm').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
cmmBizAjax('modify', {
|
|
|
|
|
url: '<c:url value="/framework/biz/mng/auth/modifyAuthAuthor.do"/>'
|
|
|
|
|
, data: $("form").serialize()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
, remove: () => {
|
|
|
|
|
cmmBizAjax('remove', {
|
|
|
|
|
url: '<c:url value="/framework/biz/mng/auth/removeAuthAuthor.do"/>'
|
|
|
|
|
, data: {authorCode: $('#authorCode').val()}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
, validate: () => {
|
|
|
|
|
if (orgData === $('form').serialize()) {
|
|
|
|
|
alert('변경된 내용이 없습니다.');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ($('#authorCode').val() === '') {
|
|
|
|
|
alert('[권한코드]는 필수 입니다.');
|
|
|
|
|
$('#authorCode').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ($('#authorNm').val() === '') {
|
|
|
|
|
alert('[권한명]은 필수 입니다.');
|
|
|
|
|
$('#authorNm').focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* event
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(() => {
|
|
|
|
|
$('#btnRegist').on('click', () => fnBiz.add());
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* event
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(() => {
|
|
|
|
|
$('#btnRegist').on('click', () => fnBiz.add());
|
|
|
|
|
|
|
|
|
|
$('#btnModify').on('click', () => fnBiz.modify());
|
|
|
|
|
$('#btnModify').on('click', () => fnBiz.modify());
|
|
|
|
|
|
|
|
|
|
$('#btnRemove').on('click', () => fnBiz.remove());
|
|
|
|
|
});
|
|
|
|
|
$('#btnRemove').on('click', () => fnBiz.remove());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* initialize
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
$('#authorCreatDe').val(setDateTimeFmt('<c:out value="${authorInfoVO.authorCreatDe}"/>'));
|
|
|
|
|
orgData = $('form').serialize();
|
|
|
|
|
});
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* initialize
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$('#authorCreatDe').val(setDateTimeFmt('<c:out value="${authorInfoVO.authorCreatDe}"/>'));
|
|
|
|
|
orgData = $('form').serialize();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|