403 lines
12 KiB
Plaintext
403 lines
12 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(){
|
|
//등록 팝업
|
|
$(".btnRegist").click(function(){
|
|
var params = "?actionType=regist"
|
|
window.open("/project/gate/issueFormPopup.do"+params, "", "width=1140, height=620");
|
|
});
|
|
|
|
//상세 팝업
|
|
$(".btnDetail").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
var params = "?objId="+objId;
|
|
window.open("/project/gate/issueDetailPopup.do"+params, "", "width=1140, height=620");
|
|
});
|
|
// 첨부파일 팝업
|
|
$(".btnFile").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
var params = "?targetObjId="+objId;
|
|
window.open("/project/gate/issueFileRegistPopup.do"+params, "", "width=800, height=330");
|
|
});
|
|
|
|
//조회
|
|
$(".btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
fnc_datepick();
|
|
});
|
|
|
|
//고객사 목록 조회
|
|
fn_setOEMList();
|
|
|
|
//제품군 목록 조회
|
|
fn_setProductGroupList();
|
|
|
|
//고객사별 차종 목록 조회
|
|
$("#search_oem").change(function(){
|
|
var oemObjId = $(this).val();
|
|
fn_setCarTypeList(oemObjId);
|
|
});
|
|
|
|
//제품군 제품 목록 조회
|
|
$("#search_productGroup").change(function(){
|
|
var productGroup = $(this).val();
|
|
fn_setProductTypeList(productGroup);
|
|
});
|
|
|
|
});
|
|
</script>
|
|
<script>
|
|
//oem 목록 조회
|
|
function fn_setOEMList(){
|
|
$.ajax({
|
|
url:"/common/getOEMList.do",
|
|
type:"POST",
|
|
data:{"isJson":true},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].OEM_NAME+"("+data[i].OEM_CODE+")</option>";
|
|
});
|
|
|
|
$("#search_oem").append(appendCode);
|
|
|
|
var paramValue = "${param.search_oem}";
|
|
|
|
if(paramValue != ""){
|
|
$("#search_oem > option[value=${param.search_oem}]").attr("selected", "true");
|
|
$("#search_oem").trigger("change");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//car 목록 조회
|
|
function fn_setCarTypeList(oemObjId){
|
|
if(oemObjId !=""){
|
|
$.ajax({
|
|
url:"/common/getCarTypeList.do",
|
|
type:"POST",
|
|
data:{"isJson":true, "search_oemObjId":oemObjId},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
appendCode += "<option value=''>선택</option>";
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].CAR_CODE+"("+data[i].CAR_NAME+")</option>";
|
|
});
|
|
$("#search_carType").children().remove();
|
|
$("#search_carType").append(appendCode);
|
|
$("#search_carType > option[value=${param.search_carType}]").attr("selected", "true");
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}else{
|
|
$("#search_carType").children().remove();
|
|
$("#search_carType").append("<option value=''>선택</option>");
|
|
}
|
|
}
|
|
//제품군 목록 조회
|
|
function fn_setProductGroupList(){
|
|
$.ajax({
|
|
url:"/common/getProductGroupList.do",
|
|
type:"POST",
|
|
data:{"isJson":true},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].PRODUCT_GROUP_NAME+"</option>";
|
|
});
|
|
|
|
$("#search_productGroup").append(appendCode);
|
|
|
|
var paramValue = "${param.search_productGroup}";
|
|
if(paramValue != ""){
|
|
$("#search_productGroup > option[value=${param.search_productGroup}]").attr("selected", "true");
|
|
$("#search_productGroup").trigger("change");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
//제품 목록 조회
|
|
function fn_setProductTypeList(productGroup){
|
|
if(productGroup != ""){
|
|
$.ajax({
|
|
url:"/common/getProductList.do",
|
|
type:"POST",
|
|
data:{"isJson":true, "search_productGroupObjId":productGroup},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
appendCode += "<option value=''>선택</option>";
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].PRODUCT_NAME+"("+data[i].PRODUCT_CODE+")</option>";
|
|
});
|
|
|
|
$("#search_productType").children().remove();
|
|
$("#search_productType").append(appendCode);
|
|
$("#search_productType > option[value=${param.search_productType}]").attr("selected", "true");
|
|
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}else{
|
|
$("#search_productType").children().remove();
|
|
$("#search_productType").append("<option value=''>선택</option>");
|
|
}
|
|
}
|
|
|
|
function fn_search(){
|
|
if(fnc_dateFormChk($("#search_fromDate").val(),$("#search_toDate").val())){
|
|
document.form1.action="/project/gate/issueList.do";
|
|
document.form1.target="_self";
|
|
document.form1.submit();
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" action="" method="post">
|
|
<div style="min-width:1600px;">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<section>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>이슈 관리</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="">지역</label></td>
|
|
<td>
|
|
<select name="search_region" id="search_region">
|
|
<option value="">선택</option>
|
|
<option value="D"${param.search_region eq'D'?'selected':''}>국내</option>
|
|
<option value="F"${param.search_region eq'F'?'selected':''}>해외</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">고객사</label></td>
|
|
<td>
|
|
<select name="search_oem" id="search_oem">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">차종</label></td>
|
|
<td>
|
|
<select name="search_carType" id="search_carType">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">제품군</label></td>
|
|
<td>
|
|
<select name="search_productGroup" id="search_productGroup">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">제품</label></td>
|
|
<td>
|
|
<select name="search_productType" id="search_productType" style="width:250px;">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">팀명</label></td>
|
|
<td>
|
|
<input type="text" id="search_dept" name="search_dept" value="${param.search_dept}">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="">
|
|
<label for="" class="">등록자</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" id="search_writer" name="search_writer" value="${param.search_writer}">
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">등록일</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" id="search_fromDate" name="search_fromDate" class="date_margin" value="${param.search_fromDate}" style="width:80px;">
|
|
~ <input type="text" id="search_toDate" name="search_toDate" value="${param.search_toDate}" style="width:80px;">
|
|
<input type="button" class="date_delete" value="x" onclick="javascript:fnc_date_empty()">
|
|
</td>
|
|
<td><label for="">수행팀</label></td>
|
|
<td>
|
|
<input type="text" id="search_pic_dept" name="search_pic_dept" value="${param.search_pic_dept}">
|
|
</td>
|
|
<td><label for="">상태</label></td>
|
|
<td>
|
|
<select name="search_status" id="search_status">
|
|
<option value="">선택</option>
|
|
<option value="진행중"${param.search_status eq'진행중'?'selected':'' }>진행중</option>
|
|
<option value="완료"${param.search_status eq'완료'?'selected':'' }>완료</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 btnSearch">
|
|
<input type="button" value="등록" class="plm_btns btnRegist">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="3%" />
|
|
<col width="4%" />
|
|
<col width="5%" />
|
|
<col width="13%" />
|
|
<col width="7%" />
|
|
<col width="7%" />
|
|
<col width="*" />
|
|
<col width="7%" />
|
|
<col width="7%" />
|
|
<col width="7%" />
|
|
<col width="7%" />
|
|
<col width="5%" />
|
|
<col width="3%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>No</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>
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="13">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="info" items="${LIST}" varStatus="varStatus">
|
|
<tr>
|
|
<td>${info.RNUM}</td>
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${info.REGION eq 'F'}">
|
|
해외
|
|
</c:when>
|
|
<c:when test="${info.REGION eq 'D'}">
|
|
국내
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.REGION}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
<td title="${info.OEM_NAME}">${info.OEM_NAME}</td>
|
|
<td title="${info.CAR_CODE} (${info.CAR_NAME})">${info.CAR_CODE} (${info.CAR_NAME})</td>
|
|
<td title="${info.PROD_GROUP_NAME}">${info.PROD_GROUP_NAME}</td>
|
|
<td title="${info.PROD_NAME}">${info.PROD_NAME}</td>
|
|
<td class="align_l" title="${info.SUBJECT}"><a href="#" class="btnDetail" data-OBJID="${info.OBJID}"> ${info.SUBJECT}</a></td>
|
|
<td title="${info.WRITER_USER_NAME}">${info.WRITER_USER_NAME}</td>
|
|
<td title="${info.REGDATE}">${info.REGDATE}</td>
|
|
<td title="${info.PIC_DEPT}">${info.PIC_DEPT}</td>
|
|
<td title="${info.COMPLETE_PLAN_DATE}">${info.COMPLETE_PLAN_DATE}</td>
|
|
<td title="${info.STATUS}">${info.STATUS}</td>
|
|
<td><a href="#" class="btnFile file_${info.ISSUE_FILE_CNT eq 0?'empty_':''}icon" data-OBJID="${info.OBJID}"></a></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>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |