ERP-node/WebContent/WEB-INF/view/admin/takeOver/takeOverMngList.jsp

125 lines
3.6 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">
$(function(){
$("#btnSearch").click(function(){
$("#page").val("1");
fn_search();
});
$(document).ready(function(){
fnc_datepick();
});
//엑셀 다운로드
$("#btnExcel").click(function(){
document.form1.action = "/admin/takeOverPICMngList.do?actionType=excel";
document.form1.submit();
});
//엔터키로 조회
$("input").keyup(function(e){
if(e.keyCode == 13){
$("#page").val("1");
fn_search();
}
});
//인수담당자 지정
$(".btnSetTakeOverPIC").click(function(){
var producingCompany = $(this).attr("data-PRODUCING_COMPANY");
window.open("/admin/takeOverFormPopup.do?producingCompany="+producingCompany, "takeOverFormPopup", "width=500, height=300");
});
});
</script>
<script>
function fn_refreshTakeOverList(){
document.form1.action = "/admin/takeOverPICMngList.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></td>
</tr>
</tbody>
</table>
</div>
<div id="adminBtnWrap">
<input type="button" value="Excel Download" class="btns" id="btnExcel">
</div>
<div id="adminTableWrap">
<div id="tableWrap">
<table id="adminTable">
<colgroup>
<col width="4%" />
<col width="*%" />
<col width="20%" />
<col width="20%" />
</colgroup>
<tr id="thead">
<td>No</td>
<td>생산처명</td>
<td>인수담당자</td>
<td>등록일</td>
</tr>
<c:choose>
<c:when test="${!empty LIST}">
<c:forEach var="info" items="${LIST}" varStatus="status">
<tr>
<td>${info.RNUM}</td>
<td>[${info.PRODUCING_COMPANY}]</td>
<td>
<c:choose>
<c:when test="${empty info.USER_ID}">
<a href="#" class="btnSetTakeOverPIC" data-PRODUCING_COMPANY="${info.PRODUCING_COMPANY}">등록</a>
</c:when>
<c:otherwise>
<a href="#" class="btnSetTakeOverPIC" data-PRODUCING_COMPANY="${info.PRODUCING_COMPANY}">${info.DEPT_NAME} ${info.USER_NAME}</a>
</c:otherwise>
</c:choose>
</td>
<td>${info.REGDATE}</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<td align="center" colspan="4">조회된 정보가 없습니다.</td>
</c:otherwise>
</c:choose>
</table>
</div>
</div>
</section>
</form>
</body>
</html>