256 lines
7.7 KiB
Plaintext
256 lines
7.7 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(){
|
|
$(document).ready(function(){
|
|
fnc_datepick();
|
|
|
|
$("input[type=text]").keyup(function(e){
|
|
if(e.keyCode == 13) search();
|
|
});
|
|
});
|
|
|
|
$('.btn_temporaryEoPopup').click(function(){
|
|
window.open("/eo/temporaryEoPopup.do?retrieve="+1,"temporaryPopup","width=1500,height=750");
|
|
});
|
|
|
|
getChangeCarList("search_car","${param.search_oem}","${param.search_car}");
|
|
|
|
if("${listType}" == "new"){
|
|
$("#pdmFormWrap").hide();
|
|
$("#pdmSearchBtnWrap").hide();
|
|
$(".pdm_menu_name").hide();
|
|
}else{
|
|
$(".pdm_menu_name_new_eo").hide();
|
|
$(".new_eo_text").hide();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
function getChangeCarList(areaObjId,oemObjId,targetCarObjId){
|
|
$("#"+areaObjId).find("option").remove();
|
|
$("#"+areaObjId).append("<option value=''>선택</option>");
|
|
|
|
if("" != oemObjId && null != oemObjId){
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/common/getCarTypetList_combo.do",
|
|
data:{"search_oemObjId" : oemObjId, "isJson":true},
|
|
dataType:"json",
|
|
async:false,
|
|
error: function(jqxhr, status, error){
|
|
Swal.fire(jqxhr.statusText + ", " + status + ", " + error);
|
|
Swal.fire(jqxhr.status);
|
|
Swal.fire(jqxhr.responseText);
|
|
},
|
|
success: function(result){
|
|
if(null != result){
|
|
for(var i=0;i<result.length;i++){
|
|
var resultAppendText = "";
|
|
var objid = result[i].OBJID;
|
|
var carName = result[i].CAR_NAME;
|
|
var carCode = result[i].CAR_CODE;
|
|
var selectedFlag = "";
|
|
if(targetCarObjId == objid){
|
|
selectedFlag = "selected";
|
|
}
|
|
resultAppendText="<option value='"+objid+"' "+selectedFlag+">"+carCode+"</option>";
|
|
|
|
$("#"+areaObjId).append(resultAppendText);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function openEOPopup(objId,actionType){
|
|
var hiddenForm = document.hiddenForm;
|
|
|
|
var target = "tempEoListPopup";
|
|
var url = "/eo/eoDetailViewPopup.do";
|
|
|
|
window.open("",target,"width=1500,height=700");
|
|
hiddenForm.objId.value = objId;
|
|
hiddenForm.actionType.value = actionType;
|
|
hiddenForm.action = url;
|
|
hiddenForm.target = target;
|
|
hiddenForm.submit();
|
|
}
|
|
|
|
function search(){
|
|
document.form1.action=location.href;
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_search(){
|
|
search();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="hiddenForm" id="hiddenForm" method="post">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<input type="hidden" name="actionType" id="actionType">
|
|
</form>
|
|
<form name="form1" action="" method="post">
|
|
<section class="min_part_search">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>ECO 조회</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td class="align_r">
|
|
<label for="" class="">고객사</label>
|
|
</td>
|
|
<td>
|
|
<select name="search_oem" id="search_oem" onchange="getChangeCarList('search_car',this.value,'');">
|
|
<c:choose>
|
|
<c:when test="${empty oemList}">
|
|
<option value="">선택</option>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<option value="">선택</option>
|
|
<c:forEach var="item" items="${oemList}" varStatus="varStatus">
|
|
<option value="${item.OBJID}" ${item.OBJID eq param.search_oem ? 'selected':''}>${item.OEM_NAME}</option>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</select>
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">차종</label>
|
|
</td>
|
|
<td>
|
|
<select name="search_car" id="search_car">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">ECO No</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_eoNo" id="search_eoNo" value="${param.search_eoNo}"/>
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">ECO Date</label>
|
|
</td>
|
|
<td style="">
|
|
<input type="text" name="search_eoFromDate" id="search_eoFromDate" class="input_date" value="${param.search_eoFromDate}"> ~ <input type="text" name="search_eoToDate" id="search_eoToDate" class="input_date" value="${param.search_eoToDate}">
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">배포자</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="" id="" value=""/>
|
|
</td>
|
|
<td class="align_r">
|
|
<label for="" class="">배포일</label>
|
|
</td>
|
|
<td style="">
|
|
<input type="text" name="search_eoFromDate" id="search_eoFromDate" class="input_date" value="${param.search_eoFromDate}"> ~ <input type="text" name="search_eoToDate" id="search_eoToDate" class="input_date" value="${param.search_eoToDate}">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</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="new_eo_text">※ 신규ECO조회는 고객사 발행 ECO정보를 근거로 당사에서 ECO를 발행한 일(배포일) 기준으로 10일 前 발행한 정보를 모두 표시합니다.</div>
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="3%" />
|
|
<col width="9%" />
|
|
<col width="9%" />
|
|
<col width="6%" />
|
|
<col width="9%" />
|
|
<col width="9%" />
|
|
<col width="19%" />
|
|
<col width="9%" />
|
|
<col width="9%" />
|
|
<col width="9%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>No</td>
|
|
<td>고객사</td>
|
|
<td>차종</td>
|
|
<td>ECO종류</td>
|
|
<td>ECO No</td>
|
|
<td>ECO Date</td>
|
|
<td>ECO 배포팀</td>
|
|
<td>구매배포일</td>
|
|
<td>배포자</td>
|
|
<td>배포일</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${empty eoList}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="10">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${eoList}" varStatus="varStatus">
|
|
<tr style="text-align:center;">
|
|
<td>${item.RNUM}</td>
|
|
<td>${item.OEM_NAME}</td>
|
|
<td>${item.CAR_CODE}</td>
|
|
<td>${item.EO_TYPE_TITLE}</td>
|
|
<td><a href="#" onclick="openEOPopup('${item.OBJID}','')">${item.EO_NO}</a></td>
|
|
<td>${item.EO_ISSUE_DATE}</td>
|
|
<td>${item.DESIGN_TEAM}</td>
|
|
<td>${item.HKMC_DISTRIBUTE_DATE}</td>
|
|
<td>${item.WRITER}</td>
|
|
<td>${item.APPROVAL_COMPLETE_DATE}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<table class="pagenation_table">
|
|
<tr>
|
|
<td class="pagenation_pre"><a href="#">pre</a></td>
|
|
<td><a href="#" style="color:#f47624;">1</a></td>
|
|
<td><a href="#">2</a></td>
|
|
<td><a href="#">3</a></td>
|
|
<td><a href="#">4</a></td>
|
|
<td><a href="#">5</a></td>
|
|
<td class="pagenation_next"><a href="#">next</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |