292 lines
8.7 KiB
Plaintext
292 lines
8.7 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<%
|
|
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
|
|
String connector = person.getUserId();
|
|
|
|
%>
|
|
<!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}" />
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
|
|
<c:set var="connector" value="<%=connector %>" />
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
/* $('#projectno').select2();
|
|
$('#spec_cd').select2();
|
|
$('#process_cd').select2();
|
|
$('#sort_cd').select2();
|
|
$('#supply_cd').select2(); */
|
|
|
|
fnc_datepick();
|
|
|
|
|
|
$("input[type=text]").keyup(function(e){
|
|
if(e.keyCode == 13) search();
|
|
});
|
|
|
|
//image src encoding
|
|
$("img").each(function(i){
|
|
var imgSrc = $(this).attr("data-SRC");
|
|
$(this).attr("src", encodeURI(imgSrc));
|
|
});
|
|
|
|
$(".btnRevision").click(function(){
|
|
var partNo = $(this).attr("data-PART_NO");
|
|
fn_openPartListPop(partNo);
|
|
});
|
|
|
|
|
|
//체크박스 전체선택/전체해제
|
|
$("#allCheck").click(function(){
|
|
if($("#allCheck").prop("checked")) {
|
|
$("input[type=checkbox]").prop("checked",true);
|
|
} else {
|
|
$("input[type=checkbox]").prop("checked",false);
|
|
}
|
|
});
|
|
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
|
|
|
|
$(".btnApprovalDetail").click(function(){
|
|
var approvalObjId = $(this).attr("data-APPROVAL_OBJID");
|
|
var routeObjId = $(this).attr("data-ROUTE_OBJID");
|
|
//Swal.fire("approvalObjId : "+approvalObjId+", routeObjId : "+routeObjId);
|
|
var params = "?approvalObjId="+approvalObjId;
|
|
params += "&routeObjId="+routeObjId;
|
|
//Swal.fire("params : "+params);
|
|
window.open("/approval/approvalDetail.do"+params,"approvalDetailPopup","width=650 height=760 menubar=no status=no");
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
function savepop(){
|
|
var url = "/partmgmt/partmgmtsaveFormPopup.do";
|
|
var target = "partmgmtsaveFormPopup";
|
|
|
|
window.open(url,target,"width=1300, height=550, menubars=no, scrollbars=yes, resizable=yes");
|
|
}
|
|
|
|
function excelExport(){
|
|
var form = document.form1;
|
|
|
|
form.target = "_self";
|
|
form.actionType.value = "excel"
|
|
form.action = "/partmgmt/partmgmtList.do";
|
|
form1.submit();
|
|
}
|
|
|
|
//수주활동 검색 기능
|
|
function fn_search(){
|
|
document.form1.action = "/materMgmt/materDetailInfoList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" id="form1" method="post">
|
|
<input type="hidden" name="actionType">
|
|
<input type="hidden" name="gubun" id="gubun" value="${param.gubun}">
|
|
<input type="hidden" name="objId" id="objId" value="${param.objId}">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>자재현황</span>
|
|
</h2>
|
|
</div>
|
|
<%-- <div id="plmSearchZon">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td class="align_r">
|
|
<label for="" class="">Project No.</label>
|
|
</td>
|
|
<td>
|
|
<select name="projectno" id="projectno" style="width:200px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
${code_map.projectno}
|
|
</select>
|
|
</td>
|
|
|
|
<td class="align_r">
|
|
<label for="" class="">부품구분</label>
|
|
</td>
|
|
<td>
|
|
<select name="sort_cd" id="sort_cd" style="width:140px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
${code_map.sort_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td class="align_r">
|
|
<label for="" class="">공급업체</label>
|
|
</td>
|
|
<td>
|
|
<select name="supply_cd" id="supply_cd" style="width:230px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
${code_map.supply_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td class="align_r">
|
|
<label for="" class="">발주자</label>
|
|
</td>
|
|
<td>
|
|
<select name="recv_userid" id="recv_userid" style="width:230px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
${code_map.recv_userid}
|
|
</select>
|
|
</td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div> --%>
|
|
<section class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<!-- <table class="plm_table" style="width:2200px;overflow-x:scroll;"> -->
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<!-- <col width="2%" /> -->
|
|
<col width="3%" />
|
|
<col width="15%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="3%" />
|
|
<col width="8%" />
|
|
<col width="5%" />
|
|
<col width="10%" />
|
|
<col width="3%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<!-- <td><input type="checkbox" id="allCheck" class="checkBox"></td> -->
|
|
<td>Level</td>
|
|
<td>품명</td>
|
|
<td>품번</td>
|
|
<td>규격(재질)</td>
|
|
<td>제조사</td>
|
|
<td>수량</td>
|
|
<td>후처리</td>
|
|
<td>부품구분</td>
|
|
<td>공급업체</td>
|
|
<td>Rev.</td>
|
|
<td>Date</td>
|
|
<td>PART발주</td>
|
|
</tr>
|
|
</thead>
|
|
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="12">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
|
|
<tr>
|
|
<td>${item.LEV}</td>
|
|
<td align="left" title="${item.PART_NAME}" style="padding:0px 0px 0px 15px;">${item.PART_NAME}</td>
|
|
<td title="${item.PART_NO}" style="text-align:left; padding:0px 0px 0px 15px;">${item.PART_NO}</td>
|
|
<td title="${item.SPEC_CD}">${item.SPEC_CD}</td>
|
|
<td title="${item.MFA_CD}">${item.MFA_CD}</td>
|
|
<td title="${item.QTY}">${item.QTY}</td>
|
|
<td title="${item.PROCESS_NAME}">${item.PROCESS_NAME}</td>
|
|
<td title="${item.SORT_NAME}">${item.SORT_NAME}</td>
|
|
<td title="${item.SUP_NAME}">${item.SUP_NAME}</td>
|
|
<td title="${item.REV}">${item.REV}</td>
|
|
<td title="${item.REL_DATE}">${item.REL_DATE}</td>
|
|
<td title="${item.REL_STATUS_NAME}">${item.REL_STATUS_NAME}</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 align="center">
|
|
<tr>
|
|
<c:choose>
|
|
<c:when test="${nPage > 1}">
|
|
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
|
|
<td> </td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">prev</td>
|
|
<td> </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>
|
|
<td> </td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></td>
|
|
<td> </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>
|
|
<c:if test="${!empty LIST}">
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</c:if>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |