211 lines
6.4 KiB
Plaintext
211 lines
6.4 KiB
Plaintext
<%@ 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">
|
|
$(document).ready(function(){
|
|
fnc_datepick();
|
|
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fn_search();
|
|
}
|
|
});
|
|
});
|
|
function openSpecDataPopUp(objid){
|
|
window.open("","specDataPopUp","width=900 height=780 menubar=no status=no");
|
|
|
|
var hiddenForm = document.hiddenForm;
|
|
var url = "/specData/specDataFormPopup.do";
|
|
|
|
if("" != objid){
|
|
url = "/specData/specDataDetailViewPopup.do";
|
|
}
|
|
|
|
hiddenForm.objid.value = objid;
|
|
hiddenForm.target = "specDataPopUp";
|
|
hiddenForm.action = url;
|
|
hiddenForm.submit();
|
|
|
|
}
|
|
|
|
function search(){
|
|
document.form1.action="/specData/specDataSPECList.do";
|
|
document.form1.target="_self";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_search(){
|
|
search();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="hiddenForm" id="hiddenForm" >
|
|
<input type="hidden" name="objid" id="objid">
|
|
</form>
|
|
<form name="form1" action="" method="post">
|
|
<section class="min_part_search">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>SPEC 조회</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td class="align_r">
|
|
<label for="" class="">구분</label>
|
|
</td>
|
|
<td>
|
|
<select name="search_categoryName" style="width:100px;">
|
|
<option value="">-</option>
|
|
<option value="MS SPEC" ${'MS SPEC' eq param.search_categoryName ? 'selected' : ''}>MS SPEC</option>
|
|
<option value="ES SPEC" ${'ES SPEC' eq param.search_categoryName ? 'selected' : ''}>ES SPEC</option>
|
|
</select>
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">문서번호</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_docNo" id="search_docNo" value="${param.search_docNo}">
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">SPEC No</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_specNo" id="search_specNo" value="${param.search_specNo}">
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">문서명</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_docName" id="search_docName" value="${param.search_docName}">
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">개정일</label>
|
|
</td>
|
|
<td style="width:254px;">
|
|
<input type="text" id="search_revisionFromDate" name="search_revisionFromDate" class="date_margin" value="${param.search_revisionFromDate}" style="width:100px;"> ~ <input type="text" id="search_revisionToDate" name="search_revisionToDate" value="${param.search_revisionToDate}" style="width:100px;">
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">상태</label>
|
|
</td>
|
|
<td>
|
|
<select name="search_isLast" id="search_isLast" style="width:100px;">
|
|
<option value="1" ${'1' eq param.search_isLast ? 'selected':''}>Current</option>
|
|
<option value="0" ${'0' eq param.search_isLast ? 'selected':''}>All</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="조회" class="plm_btns" onclick="search();">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="3%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="12%" />
|
|
<col width="*%" />
|
|
<col width="7%" />
|
|
<col width="6%" />
|
|
</colgroup>
|
|
<tr class="plm_thead">
|
|
<td>No</td>
|
|
<td>문서번호</td>
|
|
<td>구분</td>
|
|
<td>SPEC No</td>
|
|
<td>문서명</td>
|
|
<td>개정일</td>
|
|
<td>Rev</td>
|
|
</tr>
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="7">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
|
|
<tr style="text-align:center;">
|
|
<td>${item.RNUM}</td>
|
|
<td>${item.DOC_NO}</td>
|
|
<td>${item.CATEGORY_NAME}</td>
|
|
<td><a href="#" onclick="openSpecDataPopUp('${item.OBJID}')">${item.SPEC_NO}</a></td>
|
|
<td>${item.DOC_NAME}</td>
|
|
<td>${item.REVISION_DATE}</td>
|
|
<td>${item.REV}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
<div class="pdm_page">
|
|
<input type="hidden" name="page" id="page" value="${nPage}">
|
|
<c:if test="${!empty LIST}">
|
|
<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>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |