422 lines
13 KiB
Plaintext
422 lines
13 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(){
|
|
$(".btnTable").click(function(){
|
|
var url = $(this).attr("url");
|
|
document.dfmeaForm.action = url;
|
|
document.dfmeaForm.submit();
|
|
});
|
|
|
|
$(".btnFile").click(function(){
|
|
window.open("businessChanceFilePopup.html", "", "width=466, height=380");
|
|
});
|
|
|
|
$(".btnChart").click(function(){
|
|
var url = $(this).attr("url");
|
|
var carType = $(this).attr("carType");
|
|
var productType = $(this).attr("productType");
|
|
|
|
var pageUrl = url+"_"+carType+"_"+productType+".html";
|
|
|
|
window.open(pageUrl, "" ,"width=1000, height=400");
|
|
});
|
|
|
|
fnc_datepick();
|
|
|
|
//조회
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
});
|
|
|
|
$(document).ready(function(){
|
|
|
|
//고객사 목록 조회
|
|
fn_setOEMList();
|
|
|
|
//고객사별 차종 목록 조회
|
|
$("#search_oem").change(function(){
|
|
var oemObjId = $(this).val();
|
|
fn_setCarTypeList(oemObjId);
|
|
});
|
|
|
|
//제품군 목록 조회
|
|
fn_setProductGroupList();
|
|
|
|
//제품군 제품 목록 조회
|
|
$("#search_productGroup").change(function(){
|
|
var productGroup = $(this).val();
|
|
fn_setProductTypeList(productGroup);
|
|
});
|
|
|
|
$(".searchEmployee").click(function(){
|
|
var params = "";
|
|
params += "?title=시작업체 지정";
|
|
params += "&callback=fn_searchEmployeeCallback";
|
|
params += "&dataType=etc";
|
|
window.open("/common/searchEmployeePopup.do"+params, "", "width=480, height=400");
|
|
});
|
|
|
|
//FN Task에 연결된 WBS Task 목록 Pop Up
|
|
$(".taskLink").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
window.open("/project/wbs/openFNTaskConnectedTaskListPopUp.do?subObjId="+objId+"", "", "width=900, height=400");
|
|
});
|
|
|
|
});
|
|
</script>
|
|
<script>
|
|
//시작품 입고관리 갑지 검색기능
|
|
function fn_search(){
|
|
var form = document.form1;
|
|
form.target="_self";
|
|
form.action = "";
|
|
form.actionType.value = "";
|
|
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=${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>");
|
|
}
|
|
}
|
|
|
|
//시작품 검사관리 갑지 PopUp
|
|
function fn_openBaseInfoPopUp(objId){
|
|
url = "";
|
|
if("" == objId){
|
|
var params = "?actionType=regist"
|
|
window.open("/protoDevMng/protoTestBaseInfoFormPopUp.do"+params,"","width=500, height=210");
|
|
}else{
|
|
window.open("/protoDevMng/protoTestBaseInfoDetailPopUp.do?objId="+objId,"","width=500, height=210");
|
|
}
|
|
}
|
|
|
|
//갑지에 해당하는 시작Part의 입고내용 팝업을 보여준다.
|
|
function fn_openTestInfoPopUP(objId){
|
|
window.open("/protoDevMng/protoTestListFormPopUp.do?objId="+objId,"","width=1600, height=670");
|
|
}
|
|
|
|
//프로젝트에 해당하는 WBS Task 목록 PopUp
|
|
function fn_openProjectWBSTaskList(){
|
|
|
|
var radioObj = $("input[name=targetRadio]:checked");
|
|
var radioObjCnt = $("input[name=targetRadio]:checked").length;
|
|
|
|
if(0 < radioObjCnt){
|
|
|
|
$("#connectTargetObjId").val(radioObj.val());
|
|
|
|
window.open("", "connectWBSTaskPopUp", "width=590, height=490");
|
|
|
|
var form = document.form1;
|
|
form.action = "/project/wbs/openProjectWBSTaskListPopUp.do";
|
|
form.target = "connectWBSTaskPopUp";
|
|
form.submit();
|
|
}else{
|
|
Swal.fire("선택된 정보가 없습니다.");
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<input type="hidden" name="actionType" id="actionType">
|
|
<input type="hidden" name="status" id="status">
|
|
<input type="hidden" name="connectTaskType" id="connectTaskType" value="${connectTaskType}">
|
|
<input type="hidden" name="connectTaskName" id="connectTaskName" value="${connectTaskName}">
|
|
<input type="hidden" name="connectTargetObjId" id="connectTargetObjId">
|
|
<div id="pageMinWidth">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>검사결과 관리</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<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" style="width:100%;" value="${param.search_dept }"maxlength="16"/>
|
|
</td>
|
|
<td><label for="">등록자</label></td>
|
|
<td>
|
|
<input type="text" id="search_writer" name="search_writer" style="width:100%;" value="${param.search_writer }"maxlength="16"/>
|
|
</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">
|
|
<input type="button" value="검사관리 갑지 등록" class="plm_btns" onclick="fn_openBaseInfoPopUp('');">
|
|
<input type="button" value="WBS Task 연결" class="plm_btns" onclick="fn_openProjectWBSTaskList();">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="2%">
|
|
<col width="2%">
|
|
<col width="3%">
|
|
<col width="*">
|
|
<col width="*">
|
|
<col width="*">
|
|
<col width="8%">
|
|
<col width="8%">
|
|
<col width="8%">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td rowspan="2"></td>
|
|
<td rowspan="2">No</td>
|
|
<td rowspan="2">고객사</td>
|
|
<td rowspan="2">차종</td>
|
|
<td rowspan="2">제품군</td>
|
|
<td rowspan="2">제품</td>
|
|
<td colspan="3">등록정보</td>
|
|
<td rowspan="2">상세</td>
|
|
<td rowspan="2">Part List</td>
|
|
<td rowspan="2">Task Link</td>
|
|
</tr>
|
|
<tr class="plm_sub_thead">
|
|
<td>팀명</td>
|
|
<td>담당자</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${empty testMngList}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="12">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${testMngList}" varStatus="varStatus">
|
|
<tr>
|
|
<td><input type="radio" value="${item.OBJID}" name="targetRadio"></td>
|
|
<td>${item.RNUM}</td>
|
|
<td title="${item.OEM_NAME}">${item.OEM_NAME}</td>
|
|
<td title="${item.CAR_CODE} (${item.CAR_NAME})">${item.CAR_CODE} (${item.CAR_NAME})</td>
|
|
<td title="${item.PRODUCT_GROUP_NAME}">${item.PRODUCT_GROUP_NAME}</td>
|
|
<td title="${item.PRODUCT_NAME}">${item.PRODUCT_NAME}</td>
|
|
<td title="${item.DEPT_NAME}">${item.DEPT_NAME}</td>
|
|
<td title="${item.USER_NAME}">${item.USER_NAME}</td>
|
|
<td title="${item.REGDATE_TITLE}">${item.REGDATE_TITLE}</td>
|
|
<td><a href="#" class="file_icon" onclick="fn_openBaseInfoPopUp('${item.OBJID}');"></a></td>
|
|
<td><a href="#" class="file_${item.PART_CNT eq 0?'empty_':''}icon" onclick="fn_openTestInfoPopUP('${item.OBJID}');"></a></td>
|
|
<td><a href="#" class="file_${item.REL_TASK_CNT eq 0?'empty_':''}icon taskLink" data-OBJID="${item.OBJID}"></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="pdm_page">
|
|
<input type="hidden" name="page" id="page" value="${nPage}">
|
|
<c:if test="${!empty testMngList}">
|
|
<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 testMngList}">
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</c:if>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |