266 lines
8.8 KiB
Plaintext
266 lines
8.8 KiB
Plaintext
<%
|
|
/**
|
|
* 검사의뢰서(특장)
|
|
* @since 2021.11.30
|
|
* @author min
|
|
* @version 1.0
|
|
*
|
|
* << 개정 이력 >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ---------------- --------------------- --------------------------------------------------------
|
|
* 2021.11.02 민상익 최초작성
|
|
**/
|
|
%>
|
|
<%@ 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="sysMonth"><fmt:formatDate value="${now}" pattern="MM" /></c:set>
|
|
<c:set var="connector" value="<%=connector %>" />
|
|
|
|
<link rel="stylesheet" href="/css/ions-basic.css">
|
|
<script type="text/javascript" src="/js/ions-common.js" ></script>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
|
|
// 검사의뢰 조회
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
|
|
// 검사의뢰 팝업
|
|
$("#btnReg").click(function(){
|
|
window.open("/inspectionRequest/inspectionRequestFormPopup.do?actionType=regist", "", "width=1024, height=300", "menubars=no, scrollbars=yes, resizable=yes");
|
|
});
|
|
});
|
|
});
|
|
|
|
// 검사의뢰 등록 팝업
|
|
function openPopup(cRequestNo){
|
|
|
|
var url = "/inspectionRequest/inspectionRequestFormPopup.do";
|
|
|
|
var param = "";
|
|
param += "?actionType=modify";
|
|
param += "&cRequestNo=" + cRequestNo;
|
|
|
|
window.open(url + param, "", "width=1024, height=300", "menubars=no, scrollbars=yes, resizable=yes");
|
|
}
|
|
|
|
// 검색
|
|
function fn_search(){
|
|
document.form1.action = "/inspectionRequest/inspectionRequest.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
// 검사의뢰 클릭 -- 하단 탭이 생겼을 경우 사용
|
|
function customerMgmtClick(cRequestNo) {
|
|
document.form1.condCRequestNo.value = cRequestNo;
|
|
|
|
// 검색
|
|
fn_search();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" id="form1" method="get" onsubmit="return false;">
|
|
<input type="hidden" name="condCRequestNo" id="condCRequestNo" value="${condCRequestNo}" /> <!-- 검사의뢰번호 -->
|
|
|
|
<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="">사업부</label></td>
|
|
<td><select name="condAcntUnit" id="condAcntUnit" style="width: 120px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
<option value="41" ${param.condAcntUnit eq '41' ? 'selected':'' }>크레인사업부</option>
|
|
<option value="42" ${param.condAcntUnit eq '42' ? 'selected':'' }>실린더생산팀</option>
|
|
<option value="43" ${param.condAcntUnit eq '43' ? 'selected':'' }>출고</option>
|
|
<option value="44" ${param.condAcntUnit eq '44' ? 'selected':'' }>전장제작반</option>
|
|
<option value="50" ${param.condAcntUnit eq '50' ? 'selected':'' }>특장사업부</option>
|
|
<option value="F0" ${param.condAcntUnit eq 'F0' ? 'selected':'' }>정비사업부</option>
|
|
</select>
|
|
</td>
|
|
<td style="padding-right:15px;"></td>
|
|
<td><label for="" class="">의뢰년월</label></td>
|
|
<td><input type="text" id="condCYyMm" name="condCYyMm" value="${condCYyMm}" class="date_icon" style="width: 80px !important;" autocomplete="off"></td>
|
|
<td style="padding-right:15px;"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
<span class="tit">검사의뢰서</span>
|
|
<h3 class="tit"> 리스트</h3>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="검색" class="plm_btns" id="btnSearch">
|
|
<input type="button" value="등록" class="plm_btns" id="btnReg">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<div>
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="6%" />
|
|
<col width="5%" />
|
|
<col width="6%" />
|
|
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
<col width="8%" />
|
|
|
|
<col width="7%" />
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
|
|
<col width="7%" />
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
<col width="7%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>검사의뢰서번호</td>
|
|
<td>의뢰일자</td>
|
|
<td>완료 요청일</td>
|
|
|
|
<td>발신부서</td>
|
|
<td>수신부서</td>
|
|
<td>계약번호</td>
|
|
|
|
<td>계약자</td>
|
|
<td>제품명</td>
|
|
<td>계약수량</td>
|
|
|
|
<td>의뢰수량</td>
|
|
<td>고객</td>
|
|
<td>색상</td>
|
|
|
|
<td>로고</td>
|
|
<td>사시</td>
|
|
<td>특이사항</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="15">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
|
|
<tr>
|
|
<td><a href="javascript:;" onclick="openPopup('${item.CREQUESTNO}')">${item.CREQUESTNO}</a></td>
|
|
<td>${item.CREQDATE}</td>
|
|
<td>${item.CREQENDDATE}</td>
|
|
|
|
<td>${item.SENDDEPTNM}</td>
|
|
<td>${item.CRECDEPTNM}</td>
|
|
<td>${item.CORDERNO}</td>
|
|
|
|
<td>${item.CSALEMANNM}</td>
|
|
<td>${item.GOODSNM}</td>
|
|
<td>${item.CORDERQTY}</td>
|
|
|
|
<td>${item.CREQQTY}</td>
|
|
<td>${item.CUSTNM}</td>
|
|
<td>${item.COLORNM}</td>
|
|
|
|
<td>${item.CLOGONM}</td>
|
|
<td>${item.CSHASSISNM}</td>
|
|
<td>${item.CBIGO}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!--// pdm_page -->
|
|
<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>
|
|
<!--// pdm_page -->
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |