최초커밋
This commit is contained in:
@@ -0,0 +1,311 @@
|
||||
<%@ 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();
|
||||
});
|
||||
|
||||
//엔터키로 조회
|
||||
$("input").keyup(function(e){
|
||||
if(e.keyCode == 13){
|
||||
document.form1.page.value = "1";
|
||||
fn_search();
|
||||
}
|
||||
});
|
||||
|
||||
//Form Popup
|
||||
$("#btnRegist").click(function(){
|
||||
fn_registFormPopup();
|
||||
});
|
||||
|
||||
//Detail Popup
|
||||
$(".btnDetail").click(function(){
|
||||
var objId = $(this).attr("data-OBJID");
|
||||
fn_openDetailPopup(objId);
|
||||
});
|
||||
|
||||
//change status
|
||||
$(".comboStatus").change(function(){
|
||||
var objId = $(this).attr("data-OBJID");
|
||||
var status = $(this).val();
|
||||
|
||||
fn_changeStatus(objId, status);
|
||||
});
|
||||
|
||||
//search
|
||||
$("#btnSearch").click(function(){
|
||||
if(fnc_dateFormChk($("#search_fromDate").val(),$("#search_toDate").val())){
|
||||
document.form1.page.value = "1";
|
||||
fn_search();
|
||||
}
|
||||
});
|
||||
});
|
||||
//조회 기능
|
||||
function fn_search(){
|
||||
document.form1.action = "/admin/translateDocMngList.do";
|
||||
document.form1.submit();
|
||||
}
|
||||
//엑셀 기능
|
||||
function excelExport(){
|
||||
document.form1.action = "/admin/translateDocMngList.do?actionType=excel";
|
||||
document.form1.submit();
|
||||
}
|
||||
|
||||
//문서 기준정보 등록 Form Popup
|
||||
function fn_registFormPopup(){
|
||||
var params = "?actionType=regist"
|
||||
window.open("/admin/translateDocFormPopUp.do"+params,"testTypeFormPopup","width=500,height=530");
|
||||
}
|
||||
|
||||
//문서 기준정보 상세 Detail Popup
|
||||
function fn_openDetailPopup(objId){
|
||||
var params = "?objId="+objId;
|
||||
window.open("/admin/translateDocDetailPopUp.do"+params,"testTypeDetailPopup","width=500,height=530");
|
||||
}
|
||||
|
||||
//문서명에 대한 상태값 수정
|
||||
function fn_changeStatus(objId, status){
|
||||
$.ajax({
|
||||
url:"/admin/changeTranslateDocListStatus.do",
|
||||
type:"POST",
|
||||
data:{"objId":objId, "status":status},
|
||||
dataType:"text",
|
||||
success:function(data){
|
||||
fn_search();
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="form1" method="POST">
|
||||
<input type="hidden" name="actionType" id="actionType" value="" />
|
||||
<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_testTypeName" name="search_testTypeName" value="${param.search_testTypeName}" maxlength="16"></td>
|
||||
<td><label>문서유형</label></td>
|
||||
<td>
|
||||
<select id="docType" name="docType" style="width:80px;">
|
||||
<option value="">선택</option>
|
||||
<option value="file" ${'file' eq param.docType ? 'selected':''}>파일</option>
|
||||
<option value="output" ${'output' eq param.docType ? 'selected':''}>출력</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><label>이관유형</label></td>
|
||||
<td>
|
||||
<select id="translateType" name="translateType" style="width:80px;">
|
||||
<option value="">선택</option>
|
||||
<option value="facility" ${'facility' eq param.translateType ? 'selected':''}>설계</option>
|
||||
<option value="quality" ${'file' eq param.quality ? 'selected':''}>품질</option>
|
||||
<option value="etc" ${'output' eq param.etc ? 'selected':''}>기타</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="label"><label>등록일</label></td>
|
||||
<td colspan="3">
|
||||
<input type="text" style="width:80px;" id="search_fromDate" name="search_fromDate" class="date_margin" value="${param.search_fromDate}" readonly>
|
||||
~ <input type="text" style="width:80px; margin-right:0;" 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>
|
||||
<td class="label"><label>상태</label></td>
|
||||
<td>
|
||||
<select id="search_status" name="search_status" style="width:80px;">
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><label>인계팀</label></td>
|
||||
<td><input type="text" id="search_deptName" name="search_deptName" value="${param.search_deptName}" maxlength="16"></td>
|
||||
<td><label>생산팀</label></td>
|
||||
<td>
|
||||
<select id="isProduction" name="isProduction" style="width:80px;">
|
||||
<option value="">선택</option>
|
||||
<option value="target" ${'target' eq param.isProduction ? 'selected':''}>대상</option>
|
||||
<option value="nonTarget" ${'nonTarget' eq param.isProduction ? 'selected':''}>비대상</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><label>생산관리팀</label></td>
|
||||
<td>
|
||||
<select id="isProductMng" name="isProductMng" style="width:80px;">
|
||||
<option value="">선택</option>
|
||||
<option value="target" ${'target' eq param.isProductMng ? 'selected':''}>대상</option>
|
||||
<option value="nonTarget" ${'nonTarget' eq param.isProductMng ? 'selected':''}>비대상</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><label>보전팀</label></td>
|
||||
<td>
|
||||
<select id="isIntegrity" name="isIntegrity" style="width:80px;">
|
||||
<option value="">선택</option>
|
||||
<option value="target" ${'target' eq param.isIntegrity ? 'selected':''}>대상</option>
|
||||
<option value="nonTarget" ${'nonTarget' eq param.isIntegrity ? 'selected':''}>비대상</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><label>부품구매팀</label></td>
|
||||
<td>
|
||||
<select id="isComponentBuy" name="isComponentBuy" style="width:80px;">
|
||||
<option value="">선택</option>
|
||||
<option value="target" ${'target' eq param.isComponentBuy ? 'selected':''}>대상</option>
|
||||
<option value="nonTarget" ${'nonTarget' eq param.isComponentBuy ? 'selected':''}>비대상</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><label>양산품질팀</label></td>
|
||||
<td>
|
||||
<select id="isProductQuality" name="isProductQuality" style="width:80px;">
|
||||
<option value="">선택</option>
|
||||
<option value="target" ${'target' eq param.isProductQuality ? 'selected':''}>대상</option>
|
||||
<option value="nonTarget" ${'nonTarget' eq param.isProductQuality ? 'selected':''}>비대상</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="adminBtnWrap">
|
||||
<input type="button" value="조회" class="btns" id="btnSearch">
|
||||
<input type="button" value="문서기준정보 등록" class="btns" id="btnRegist">
|
||||
<input type="button" value="Excel Export" class="btns" onclick="excelExport()">
|
||||
</div>
|
||||
<div id="adminTableWrap">
|
||||
<div id="tableWrap">
|
||||
<table id="adminTable">
|
||||
<colgroup>
|
||||
<col width="3%" />
|
||||
<col width="*%" />
|
||||
<col width="6%" />
|
||||
<col width="6%" />
|
||||
<col width="5%" />
|
||||
<col width="7%" />
|
||||
<col width="7%" />
|
||||
<col width="7%" />
|
||||
<col width="7%" />
|
||||
<col width="7%" />
|
||||
<col width="10%" />
|
||||
<col width="9%" />
|
||||
<col width="10%" />
|
||||
</colgroup>
|
||||
<tr id="thead">
|
||||
<td rowspan="2">No</td>
|
||||
<td rowspan="2">문서명</td>
|
||||
<td rowspan="2">문서유형</td>
|
||||
<td rowspan="2">이관유형</td>
|
||||
<td rowspan="2">인계팀</td>
|
||||
<td colspan="5">대상팀</td>
|
||||
<td rowspan="2">등록자</td>
|
||||
<td rowspan="2">등록일</td>
|
||||
<td rowspan="2">상태</td>
|
||||
</tr>
|
||||
<tr id="thead">
|
||||
<td>생산팀</td>
|
||||
<td>생산관리팀</td>
|
||||
<td>보전팀</td>
|
||||
<td>부품구매팀</td>
|
||||
<td>양산품질팀</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${!empty resultList}">
|
||||
<c:forEach var="info" items="${resultList}" varStatus="status">
|
||||
<tr>
|
||||
<td>${info.RNUM}</td>
|
||||
<td class="align_l"><a href="#" class="btnDetail" data-OBJID="${info.OBJID}"> ${info.DOC_TITLE}</a></td>
|
||||
<td>${info.DOC_TYPE_TITLE}</td>
|
||||
<td>${info.TRANSLATE_TYPE_TITLE}</td>
|
||||
<td>${info.HAND_OVER_DEPT_NAME}</td>
|
||||
<td>${info.IS_PRODUCTION_TITLE}</td>
|
||||
<td>${info.IS_PRODUCT_MNG_TITLE}</td>
|
||||
<td>${info.IS_INTEGRITY_TITLE}</td>
|
||||
<td>${info.IS_COMPONENT_BUY_TITLE}</td>
|
||||
<td>${info.IS_PRODUCT_QUALITY_TITLE}</td>
|
||||
<td>${info.DEPT_NAME} ${info.USER_NAME}</td>
|
||||
<td>${info.REGDATE}</td>
|
||||
<td>
|
||||
<select name="status" id="status" data-OBJID="${info.OBJID}" class="comboStatus">
|
||||
<option value="active" ${info.STATUS eq 'active'?'selected':''}>활성화</option>
|
||||
<option value="inActive" ${info.STATUS eq 'inActive'?'selected':''}>비활성화</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td align="center" colspan="13">조회된 정보가 없습니다.</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pdm_page">
|
||||
<input type="hidden" name="page" id="page" value="${nPage}">
|
||||
<c:if test="${!empty resultList}">
|
||||
<div class="page_pro">
|
||||
<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