최초커밋
This commit is contained in:
@@ -0,0 +1,258 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<%@ page import="com.pms.common.utils.*"%>
|
||||
<%@ page import="java.util.*"%>
|
||||
<%@include file="/init.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><%=Constants.SYSTEM_NAME%></title>
|
||||
|
||||
<!-- //JSTL 변수선언 -->
|
||||
<c:set var="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
|
||||
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
|
||||
<c:set var="nPage" value="${empty param.page?1:param.page}" />
|
||||
<c:set var="pageIndex" value="${(nPage-1)/10}" />
|
||||
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
|
||||
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function(){
|
||||
$(document).ready(function(){
|
||||
fnc_datepick();
|
||||
});
|
||||
|
||||
//체크된 설계적용시점 목록의 상태 활성화 및 비활성화 변경
|
||||
$(".btnActive").click(function(){
|
||||
var buttonType = $(this).attr("buttonType");
|
||||
|
||||
var choice = [];
|
||||
$("input[name='choice']:checked").each(function(i){
|
||||
choice.push($(this).val());
|
||||
});
|
||||
if(choice == ''){
|
||||
Swal.fire("설계적용시점을 선택하세요.")
|
||||
}
|
||||
else if(confirm("상태를 변경하시겠습니까?")){
|
||||
$("#actionType").val(buttonType);
|
||||
$.ajax({
|
||||
url:"/admin/updateCheckApplyPointStatus.do",
|
||||
type:"POST",
|
||||
data:{"actionType":buttonType, "choice":choice},
|
||||
dataType:"text",
|
||||
success:function(data){
|
||||
fn_search();
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
//엑셀 다운로드
|
||||
$("#btnExcel").click(function(){
|
||||
document.form1.action = "/admin/getApplyPointMngList.do?actionType=excel";
|
||||
document.form1.submit();
|
||||
});
|
||||
|
||||
//체크박스 전체선택/전체해제
|
||||
$("#allCheck").click(function(){
|
||||
if($("#allCheck").prop("checked")) {
|
||||
$("input[type=checkbox]").prop("checked",true);
|
||||
} else {
|
||||
$("input[type=checkbox]").prop("checked",false);
|
||||
}
|
||||
});
|
||||
|
||||
// 부분체크해제
|
||||
$("input[name=choice]").click(function(){
|
||||
if($("#allCheck").is(":checked")){
|
||||
$("#allCheck").prop("checked",false);
|
||||
}
|
||||
});
|
||||
|
||||
//설계적용시점수정
|
||||
$(".btnModify").click(function(){
|
||||
var objId = $(this).attr("data-OBJID");
|
||||
var actionType = $(this).attr("data-actionType");
|
||||
|
||||
fnc_adminApplicationFormPopup(objId, actionType);
|
||||
});
|
||||
|
||||
//엔터키로 조회
|
||||
$("input").keyup(function(e){
|
||||
if(e.keyCode == 13){
|
||||
$("#page").val("1");
|
||||
fn_search();
|
||||
}
|
||||
});
|
||||
|
||||
$("#btnSearch").click(function(){
|
||||
$("#page").val("1");
|
||||
fn_search();
|
||||
});
|
||||
});
|
||||
|
||||
//설계적용시점 생성
|
||||
function fnc_adminApplicationFormPopup(applyPointObjid, actionType){
|
||||
var params = "";
|
||||
params += "?search_applyPointObjid="+applyPointObjid;
|
||||
params += "&actionType="+actionType;
|
||||
window.open("/admin/adminApplicationFormPopup.do"+params,"adminApplicaticationFormPopup","width=500,height=238");
|
||||
}
|
||||
|
||||
//설계적용시점 목록 리스트에서 상태만 변경
|
||||
function fnc_updateApplyPointStatus(applyPointObjid, applyPointStatus){
|
||||
var modifyStatus = confirm("설계적용시점의 상태를 전환하시겠습니까?");
|
||||
if(modifyStatus) {
|
||||
$.ajax({
|
||||
url:"/admin/updateApplyPointStatus.do",
|
||||
type:"POST",
|
||||
data:{"applyPointObjid":applyPointObjid, "applyPointStatus":applyPointStatus},
|
||||
dataType:"text",
|
||||
success:function(data){
|
||||
fn_search();
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
//검색조건에 따라 설계적용시점 목록 리스트 출력
|
||||
function fn_search(){
|
||||
if(fnc_dateFormChk($("#search_fromDate").val(),$("#search_toDate").val())){
|
||||
document.form1.action="/admin/getApplyPointMngList.do";
|
||||
document.form1.submit();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="form1" method="post">
|
||||
<section id="commonSection" class="admin1">
|
||||
<div class="admin_title">
|
||||
<h2>설계적용시점명 관리</h2>
|
||||
</div>
|
||||
<div id="adminFormWrap">
|
||||
<table id="adminForm">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label"><label>설계적용시점명</label></td>
|
||||
<td><input type="text" id="search_applyPointName" name="search_applyPointName" value="${param.search_applyPointName}" maxlength="16"></td>
|
||||
<td class="label"><label>등록자</label></td>
|
||||
<td><input type="text" id="search_writer" name="search_writer" value="${param.search_writer}" maxlength="8"></td>
|
||||
<td class="label"><label>상태</label></td>
|
||||
<td><select id="search_status" name="search_status">
|
||||
<option value="">전체선택</option>
|
||||
<option value="active" ${param.search_status eq 'active'?'selected':''}>활성화</option>
|
||||
<option value="inActive" ${param.search_status eq 'inActive'?'selected':''}>비활성화</option>
|
||||
</select></td>
|
||||
<td class="label"><label>등록일</label></td>
|
||||
<td colspan="3"><input type="text" id="search_fromDate" name="search_fromDate" class="date_margin" value="${param.search_fromDate}" readonly>
|
||||
~ <input type="text" id="search_toDate" name="search_toDate" value="${param.search_toDate}" readonly>
|
||||
<input type="button" class="date_delete" value="x" onclick="javascript:fnc_date_empty()"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="adminBtnWrap">
|
||||
<input type="button" value="조회" class="btns" id="btnSearch" >
|
||||
<input type="button" value="설계적용시점명등록" class="btns" onclick="javascript:fnc_adminApplicationFormPopup('', 'regist')">
|
||||
<input type="button" value="활성화" class="btns btnActive" buttonType="active">
|
||||
<input type="button" value="비활성화" class="btns btnActive" buttonType="inActive">
|
||||
<input type="button" value="Excel Download" class="btns" id="btnExcel">
|
||||
</div>
|
||||
<div id="adminTableWrap">
|
||||
<div id="tableWrap">
|
||||
<table id="adminTable">
|
||||
<colgroup>
|
||||
<col width="3%" />
|
||||
<col width="4%" />
|
||||
<col width="22%" />
|
||||
<col width="32%" />
|
||||
<col width="13%" />
|
||||
<col width="13%" />
|
||||
<col width="13%" />
|
||||
</colgroup>
|
||||
<tr id="thead">
|
||||
<td><input type="checkbox" id="allCheck" class="checkBox"></td>
|
||||
<td>No</td>
|
||||
<td>설계적용시점명</td>
|
||||
<td>설명</td>
|
||||
<td>등록자</td>
|
||||
<td>등록일</td>
|
||||
<td>상태</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${!empty applyPointMngList}">
|
||||
<c:forEach var="applyPoint" items="${applyPointMngList}">
|
||||
<tr>
|
||||
<td><input type="checkbox" name="choice" value="${applyPoint.OBJID}"></td>
|
||||
<td>${applyPoint.RNUM}</td>
|
||||
<td><a href="#" style="cursor:pointer;" class="btnModify" data-OBJID="${applyPoint.OBJID}" data-actionType="modify">${applyPoint.APPLY_POINT_NAME}</a></td>
|
||||
<td>${applyPoint.DESCRIPTION}</td>
|
||||
<td>${applyPoint.DEPT_NAME} ${applyPoint.USER_NAME}</td>
|
||||
<td>${applyPoint.REGDATE}</td>
|
||||
<td>
|
||||
<select onchange="javascript:fnc_updateApplyPointStatus('${applyPoint.OBJID}', '${applyPoint.STATUS}')">
|
||||
<option value="active" ${applyPoint.STATUS eq 'active'?'selected':''}>활성화</option>
|
||||
<option value="inActive" ${applyPoint.STATUS eq 'inActive'?'selected':''}>비활성화</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td align="center" colspan="7">조회된 정보가 없습니다.</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pdm_page">
|
||||
<c:if test="${!empty applyPointMngList}">
|
||||
<div class="page_pro">
|
||||
<input type="hidden" name="page" id="page" value="${nPage}">
|
||||
<table>
|
||||
<tr>
|
||||
<c:choose>
|
||||
<c:when test="${nPage > 1}">
|
||||
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td class="no_more_page">prev</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<c:forEach var="v" begin="${nPage>5?nPage-5:1}" end="${nPage>5?nPage+4:10}" step="1" varStatus="status">
|
||||
<c:if test="${status.index -1 < maxPage}">
|
||||
<c:choose>
|
||||
<c:when test="${status.index eq nPage}">
|
||||
<td><a href="#" class="now_page">${nPage}</a></td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:choose>
|
||||
<c:when test="${nPage < maxPage}">
|
||||
<td><a href="javascript:fnc_goNext('${nextPage}');">next</a></td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td class="no_more_page">next</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tr>
|
||||
</table>
|
||||
<p id="adminPageCount">총 ${totalCount}건</p>
|
||||
</div>
|
||||
</c:if>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user