566 lines
20 KiB
Plaintext
566 lines
20 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>
|
|
$(function(){
|
|
//검사명 setting
|
|
fn_setTestTypeList();
|
|
|
|
//문제점등록리스트 팝업
|
|
$(".btnProblemList").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
window.open("/problem/problemRegistListPopup.do?targetObjId="+objId, "", "width=1505, height=705");
|
|
});
|
|
|
|
//검사명 등록 팝업
|
|
$(".btnRegistFormPopup").click(function(){
|
|
fn_openProblemGroupFormPopup();
|
|
});
|
|
|
|
//검사명 상세 팝업
|
|
$(".btnDetail").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
fn_openProblemGroupDetailPopup(objId);
|
|
});
|
|
|
|
//배포
|
|
$(".btnDistribute").click(function(){
|
|
var objId = fnc_checkNull($("input[type=radio]:checked").val());
|
|
if(objId != ""){
|
|
fn_distribute(objId);
|
|
}else{
|
|
Swal.fire("선택된 대상이 없습니다.");
|
|
}
|
|
});
|
|
|
|
//결재상세
|
|
$(".btnApprovalDetail").click(function(){
|
|
var approvalObjId = $(this).attr("data-APPROVAL_OBJID");
|
|
var routeObjId = $(this).attr("data-ROUTE_OBJID");
|
|
//Swal.fire("approvalObjId : "+approvalObjId+", routeObjId : "+routeObjId);
|
|
var params = "?approvalObjId="+approvalObjId;
|
|
params += "&routeObjId="+routeObjId;
|
|
//Swal.fire("params : "+params);
|
|
window.open("/approval/approvalDetail.do"+params,"approvalDetailPopup","width=650 height=760 menubar=no status=no");
|
|
});
|
|
|
|
$("input[type=text]").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search("1");
|
|
}
|
|
});
|
|
|
|
//조회
|
|
$(".btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
//메일배포
|
|
$(".btnDistributeMail").click(function(){
|
|
var objId = fnc_checkNull($("input[type=radio]:checked").val());
|
|
var resPIC = fnc_checkNull($("input[type=radio]:checked").attr("data-RES_PIC"));
|
|
var resDistributeDate = fnc_checkNull($("input[type=radio]:checked").attr("data-RES_DISTRIBUTE_DATE"));
|
|
|
|
//Swal.fire("objId : "+objId+", resPIC : "+resPIC+", resDistributeDate : "+resDistributeDate);
|
|
|
|
if(objId != ""){
|
|
if(resPIC == "${connectUserId}"){
|
|
fn_sendMail(objId, resDistributeDate);
|
|
}else{
|
|
Swal.fire("본인이 조치한 내용만 메일을 발송할 수 있습니다.");
|
|
}
|
|
}else{
|
|
Swal.fire("선택된 정보가 없습니다.");
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
$(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);
|
|
});
|
|
});//END
|
|
</script>
|
|
<script>
|
|
//메일 배포
|
|
function fn_sendMail(objId, resDistributeDate){
|
|
var params = "";
|
|
params += "?parentType=problemResponse";
|
|
params += "&objId="+objId;
|
|
params += "&resDistributeDate="+resDistributeDate;
|
|
|
|
if(objId != ""){
|
|
if(fnc_checkNull(resDistributeDate) == ""){
|
|
Swal.fire("배포시 취소가 되지않으며, 제기담당자에게 전달됩니다.")
|
|
}
|
|
window.open("/common/searchMailReceiver.do"+params, "", "width=480, height=367");
|
|
}
|
|
}
|
|
|
|
//배포
|
|
function fn_distribute(targetObjId){
|
|
document.form1.action = "/problem/resDistributeProblemGroupInfo.do?targetObjId="+targetObjId;
|
|
document.form1.submit();
|
|
}
|
|
|
|
//프로젝트 검색기능
|
|
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>");
|
|
}
|
|
}
|
|
|
|
//검사명 목록 조회
|
|
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>";
|
|
});
|
|
|
|
$("#search_testType").append(appendCode);
|
|
var paramValue = "${param.search_testType}";
|
|
if(paramValue != ""){
|
|
$("#search_testType > option[value=${param.search_testType}]").attr("selected", "true");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//조회
|
|
function fn_search(){
|
|
document.form1.action = "/problem/problemGroupResponseList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
//검사 상세 팝업
|
|
function fn_openProblemGroupDetailPopup(objId){
|
|
window.open("/problem/problemGroupDetailPopup.do?objId="+objId, "", "width=585, height=300");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" action="" method="post">
|
|
<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_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>
|
|
<select name="search_testType" id="search_testType" style="width:200%;">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label for="">제기팀명</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_reqDeptName" id="search_reqDeptName" value="${param.search_reqDeptName}">
|
|
</td>
|
|
<td>
|
|
<label for="">제기담당자</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_reqUserName" id="search_reqUserName" value="${param.search_reqUserName}">
|
|
</td>
|
|
<%--
|
|
<td><label for="">상태</label></td>
|
|
<td>
|
|
<select name="search_status" id="search_status">
|
|
<option value="">선택</option>
|
|
<option value="create"${param.search_status eq'create'?'selected':'' }>진행중</option>
|
|
<option value="complete"${param.search_status eq'complete'?'selected':'' }>완료</option>
|
|
</select>
|
|
</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 btnSearch">
|
|
<!-- <input type="button" value="배포" class="plm_btns btnDistribute"> -->
|
|
<input type="button" value="메일배포" class="plm_btns btnDistributeMail">
|
|
<!-- <input type="button" value="검사 등록" class="plm_btns btnRegistFormPopup"> -->
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="2%">
|
|
<col width="2%">
|
|
<col width="3%">
|
|
<col width="8%">
|
|
<col width="7%">
|
|
<col width="7%">
|
|
<col width="3%">
|
|
<col width="8%">
|
|
<col width="*">
|
|
<col width="3%">
|
|
<col width="3%">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
<col width="4%">
|
|
<!-- <col width="4%"> -->
|
|
<col width="4%">
|
|
<col width="4%">
|
|
<col width="4%">
|
|
<col width="4%">
|
|
<col width="4%">
|
|
</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>제기자<br>배포일</td>
|
|
<td>조치자<br>배포일</td>
|
|
<td>문제점<br>List</td>
|
|
<!-- <td>상태</td> -->
|
|
<td>결재상태</td>
|
|
<td>조치율(%)</td>
|
|
<td>발생건수</td>
|
|
<td>조치건수</td>
|
|
<td>미결건수</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="hover_tr">
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td><input type="radio" name="btnRadio" value="${info.OBJID}" data-RES_DISTRIBUTE_DATE="${info.RES_DISTRIBUTE_DATE}" data-APPROVAL_STATUS="${info.APPROVAL_STATUS}" data-RES_PIC="${info.RES_PIC}"/></td>
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${info.REGION eq 'D'}">
|
|
국내
|
|
</c:when>
|
|
<c:when test="${info.REGION eq 'F'}">
|
|
해외
|
|
</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_CODE}</td>
|
|
<td title="${info.PROD_GROUP_NAME}">${info.PROD_GROUP_NAME}</td>
|
|
<td title="${info.PROD_NAME}">${info.PROD_NAME}</td>
|
|
<td title="${info.STEP2}">${info.STEP2}</td>
|
|
<td title="${info.TEST_TYPE_NAME}">${info.TEST_TYPE_NAME}</td>
|
|
<td class="align_l" title="${info.TITLE}"><a href="#" class="btnDetail" data-OBJID="${info.OBJID}"> ${info.TITLE}</a></td>
|
|
<td title="${info.WRITER_USER_NAME}">${info.WRITER_USER_NAME}</td>
|
|
<td title="${info.RES_PIC_USER_NAME}">${info.RES_PIC_USER_NAME}</td>
|
|
<td title="${info.REGDATE}">${info.REGDATE}</td>
|
|
<td title="${info.DISTRIBUTE_DATE}">${info.DISTRIBUTE_DATE}</td>
|
|
<td title="${info.RES_DISTRIBUTE_DATE}">${info.RES_DISTRIBUTE_DATE}</td>
|
|
<td><a href="#" class="file_icon btnProblemList" data-OBJID="${info.OBJID}"></a></td>
|
|
<%--
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${info.STATUS_ORG eq 'create' && empty info.DISTRIBUTE_DATE}">
|
|
작성중
|
|
</c:when>
|
|
<c:when test="${info.STATUS_ORG eq 'create' && !empty info.DISTRIBUTE_DATE && empty info.RES_DISTRIBUTE_DATE}">
|
|
조치중
|
|
</c:when>
|
|
<c:when test="${info.STATUS_ORG eq 'create' && !empty info.DISTRIBUTE_DATE && !empty info.RES_DISTRIBUTE_DATE}">
|
|
조치완료
|
|
</c:when>
|
|
<c:when test="${info.STATUS_ORG eq 'complete'}">
|
|
완료
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.STATUS_ORG}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
--%>
|
|
<td>
|
|
<a href="#" class="btnApprovalDetail" data-ROUTE_OBJID="${info.ROUTE_OBJID}" data-APPROVAL_OBJID="${info.APPROVAL_OBJID}">
|
|
<c:choose>
|
|
<c:when test="${empty info.APPROVAL_STATUS}">
|
|
미결재
|
|
</c:when>
|
|
<c:when test="${info.APPROVAL_STATUS eq 'approval'}">
|
|
결재중
|
|
</c:when>
|
|
<c:when test="${info.APPROVAL_STATUS eq 'reject'}">
|
|
반려
|
|
</c:when>
|
|
<c:when test="${info.APPROVAL_STATUS eq 'release'}">
|
|
결재완료
|
|
</c:when>
|
|
<c:otherwise>
|
|
${info.STATUS_ORG}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</a>
|
|
</td>
|
|
<td title="${info.COMPLETE_RATIO}">${info.COMPLETE_RATIO}</td>
|
|
<td title="${info.ALL_CNT}">${info.ALL_CNT}</td>
|
|
<td title="${info.COMPLETE_CNT}">${info.COMPLETE_CNT}</td>
|
|
<td title="${info.UNCOMPLETE_CNT}">${info.UNCOMPLETE_CNT}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="21" 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>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |