474 lines
17 KiB
Plaintext
474 lines
17 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" %>
|
|
<!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>
|
|
$(function(){
|
|
//검사명 setting
|
|
fn_setTestTypeList();
|
|
|
|
//과거차 문제점 반영이력 팝업
|
|
$(".btnReflect").click(function(){
|
|
window.open("/problem/problemContinualMngReflectListPopup.do", "", "width=1120, height=263");
|
|
});
|
|
|
|
//문제점 디테일뷰 팝업
|
|
$(".problem_detail_popup").click(function(){
|
|
window.open("/problem/problemDetailFormPopup.do", "", "width=1325, height=780");
|
|
});
|
|
|
|
//문제점등록리스트 팝업
|
|
$(".btnProblemList").click(function(){
|
|
var objId = $(this).attr("data-PROBLEM_GROUP_OBJID");
|
|
window.open("/problem/problemRegistListPopup.do?targetObjId="+objId, "", "width=1505, height=705");
|
|
});
|
|
|
|
//문제점 상세 팝업
|
|
$(".btnDetail").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
var dataType = $(this).attr("data-DATA_TYPE");
|
|
if(dataType == "problem"){
|
|
window.open("/problem/problemDetailPopup.do?objId="+objId, "", "width=1337, height=800");
|
|
}else if(dataType == "structure"){
|
|
window.open("/structureReviewReport/structureReviewReportDetailPopup.do?objId="+objId, "StructureReviewReport", "width=1250, height=540")
|
|
}
|
|
});
|
|
|
|
//조회
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
$(function() {
|
|
//고객사 목록 조회
|
|
fn_setOEMList();
|
|
|
|
//제품군 목록 조회
|
|
fn_setProductGroupList();
|
|
|
|
});
|
|
$(document).ready(function(){
|
|
//고객사별 차종 목록 조회
|
|
$("#search_oem").change(function(){
|
|
var oemObjId = $(this).val();
|
|
|
|
fn_setCarTypeList(oemObjId);
|
|
});
|
|
|
|
//제품군 제품 목록 조회
|
|
$("#search_productGroup").change(function(){
|
|
var productGroup = $(this).val();
|
|
fn_setProductTypeList(productGroup);
|
|
});
|
|
|
|
//단계 change
|
|
$("#step1").change(function(){
|
|
fnc_setStep2($(this).val(), "${param.step2}");
|
|
});
|
|
|
|
//단계1 change trigger
|
|
$("#step1").trigger("change");
|
|
|
|
//유형 change
|
|
$("#type1").change(function(){
|
|
fnc_setType2($(this).val(), "${param.type2}");
|
|
});
|
|
|
|
$("#unManageTypeLebel").click(function(){
|
|
if($("#unManageaType").prop("checked")){
|
|
$("#unManageType").prop("checked", false);
|
|
}else{
|
|
$("#unManageType").prop("checked", true);
|
|
}
|
|
});
|
|
$("#type1").trigger("change");
|
|
fnc_datepick();
|
|
|
|
$(".searchPart").click(function(){
|
|
fn_openSearchPart();
|
|
});
|
|
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
$(".btnDetailPart").click(function(){
|
|
var partNo = $(this).attr("data-PART_NO");
|
|
fnc_openPartDetailPopup("${connectUserId}", partNo);
|
|
});
|
|
});//END
|
|
</script>
|
|
<script>
|
|
//프로젝트 검색기능
|
|
function fn_search(){
|
|
var form = document.form1;
|
|
form.target="_self";
|
|
form.action = "";
|
|
form.submit();
|
|
}
|
|
//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="+paramValue+"]").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 = "<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="+paramValue+"]").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 = "<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_setTestTypeList(i){
|
|
$.ajax({
|
|
url:"/common/getTestTypeList.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].TEST_TYPE_NAME+"</option>";
|
|
});
|
|
|
|
var paramValue = "${param.search_testType}";
|
|
if(paramValue != ""){
|
|
$("#search_testType").append(appendCode);
|
|
$("#search_testType > option[value=${param.search_testType}]").attr("selected", "true");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" action="" method="post">
|
|
<div style="min-width:1700px;">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>과거차 문제점 심의결과</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="">구분</label></td>
|
|
<td>
|
|
<select name="search_dataType" id="search_dataType">
|
|
<option value="">선택</option>
|
|
<option value="structure" ${param.search_dataType eq'structure'?'selected':''}>구조검토제안서</option>
|
|
<option value="problem" ${param.search_dataType eq'problem'?'selected':''}>문제점</option>
|
|
</select>
|
|
</td>
|
|
<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>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="">품번</label></td>
|
|
<td>
|
|
<input type="text" id="search_partNo" name="search_partNo" value="${param.search_partNo}">
|
|
</td>
|
|
<td><label for="">단계1</label></td>
|
|
<td>
|
|
<select name="step1" id="step1" >
|
|
<option value="">선택</option>
|
|
<option value="design" ${param.step1 eq 'design'?'selected':''}>설계</option>
|
|
<option value="develop" ${param.step1 eq 'develop'?'selected':''}>개발</option>
|
|
<option value="production" ${param.step1 eq 'production'?'selected':''}>양산</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">단계2</label></td>
|
|
<td>
|
|
<select name="step2" id="step2">
|
|
<option value="">선택</option>
|
|
<option value=""></option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">반영결과</label></td>
|
|
<td>
|
|
<select name="search_result" id="search_result">
|
|
<option value="">선택</option>
|
|
<option value="Y" ${param.search_result eq'structure'?'selected':''}>승인</option>
|
|
<option value="N" ${param.search_result eq'problem'?'selected':''}>반려</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">제목</label></td>
|
|
<td colspan="3">
|
|
<input type="text" id="search_subject" name="search_subject" style="width:100%;" value="${param.search_subject}">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch">
|
|
</div>
|
|
</div>
|
|
<section id="pastProblemListTableWrap">
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="2%">
|
|
<col width="6%">
|
|
<col width="3%">
|
|
<col width="10%">
|
|
<col width="8%">
|
|
<col width="6%">
|
|
<col width="3%">
|
|
<col width="3%">
|
|
<col width="4%">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
<col width="*">
|
|
<col width="4%">
|
|
<col width="10%">
|
|
<col width="7%">
|
|
<col width="6%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>No</td>
|
|
<td>구분</td>
|
|
<td>지역</td>
|
|
<td>차종</td>
|
|
<td>제품</td>
|
|
<td>품번</td>
|
|
<td colspan="2">단계</td>
|
|
<td>심의구분</td>
|
|
<td colspan="2">과거차 유형</td>
|
|
<td>제목</td>
|
|
<td>반영결과</td>
|
|
<td>Comment</td>
|
|
<td>승인(반려)자</td>
|
|
<td>승인(반려)일</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td>${info.RNUM}</td>
|
|
<td title="${info.DATA_TYPE_TITLE}">${info.DATA_TYPE_TITLE}</td>
|
|
<td title="${info.REGION_TITLE}">${info.REGION_TITLE}</td>
|
|
<td title="${info.CAR_CODE} (${info.CAR_NAME})">${info.CAR_CODE} (${info.CAR_NAME})</td>
|
|
<td title="${info.PROD_NAME}">${info.PROD_NAME}</td>
|
|
<td title="${info.PART_NO}"><a href="#" class="btnDetailPart" data-PART_NO="${info.PART_NO}">${info.PART_NO}</a></td>
|
|
<td title="${info.STEP1_TITLE}">${info.STEP1_TITLE}</td>
|
|
<td title="${info.STEP2}">${info.STEP2}</td>
|
|
<td title="${info.CONTINUAL_MNG_REVIEW_TYPE}">${info.CONTINUAL_MNG_REVIEW_TYPE}</td>
|
|
<td title="${info.CONTINUAL_MNG_TYPE1_TITLE}">${info.CONTINUAL_MNG_TYPE1_TITLE}</td>
|
|
<td title="${info.CONTINUAL_MNG_TYPE2}">${info.CONTINUAL_MNG_TYPE2}</td>
|
|
<td class="align_l" title="${info.SUBJECT}"><a href="#" class="btnDetail" data-OBJID="${info.OBJID}" data-DATA_TYPE="${info.DATA_TYPE}"> ${info.SUBJECT}</a></td>
|
|
<td title="${info.RESULT_TITLE}">${info.RESULT_TITLE}</td>
|
|
<td title="${info.RESULT_COMMENT}">${info.RESULT_COMMENT}</td>
|
|
<td title="${info.APPLY_DEPT_NAME} ${info.APPLY_USER_NAME}">${info.APPLY_DEPT_NAME} ${info.APPLY_USER_NAME}</td>
|
|
<td title="${info.APPLY_DATE}">${info.APPLY_DATE}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="16" align="center">조회된 결과가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</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>
|
|
<c:if test="${!empty LIST}">
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</c:if>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |