280 lines
8.7 KiB
Plaintext
280 lines
8.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>
|
|
<script>
|
|
var productSize = 0;
|
|
|
|
$(document).ready(function(){
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
$("#btnEdit").click(function(){
|
|
//if(confirm("Edit Mode로 이동하시겠습니까?")){
|
|
document.form1.action = "/transfer/docTransferFormPopup.do";
|
|
document.form1.submit();
|
|
//}
|
|
});
|
|
|
|
fn_setProductList("${info.CAR_OBJID}");
|
|
|
|
//문서 기준정보 목록을 가져온다.
|
|
fn_searchBaseInfo();
|
|
|
|
//제품별 대표자 지정 팝업 호출
|
|
$(document).on("click",".productCharger",function(){
|
|
var productObjId = $(this).attr("data-PRODUCT_OBJID")
|
|
var targetObjId = $("#objId").val();
|
|
|
|
var param = "?targetObjId="+targetObjId;
|
|
param +="&productObjId="+productObjId;
|
|
|
|
window.open("/transfer/openDocTransferChargerDetailPopUp.do"+param,"docTransferChargerPopUp","width=500,height=435");
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
|
|
//개발 제품 목록 설정
|
|
function fn_setProductList(carObjId){
|
|
$.ajax({
|
|
url:"/transfer/getProductList_byCarObjId.do",
|
|
type:"POST",
|
|
data:{"carObjId":carObjId},
|
|
dataType:"json",
|
|
success:function(data){
|
|
$("#productList").children().remove();
|
|
var append = "";
|
|
productSize = data.length;
|
|
if(data.length > 0){
|
|
$.each(data, function(i){
|
|
append += "<tr>";
|
|
|
|
append += " <input type='hidden' name='targetProductObjId' value='"+data[i].PROD_OBJID+"'>";
|
|
append += " <td>"+data[i].RNUM+"</td>";
|
|
append += " <td>"+data[i].PROD_GROUP_NAME+"</td>";
|
|
append += " <td>"+data[i].PROD_NAME+"</td>";
|
|
append += " <td><a href='#' class='search_btn productCharger' data-PRODUCT_OBJID='"+data[i].PROD_OBJID+"'></a></td>";
|
|
append += "</tr>";
|
|
});
|
|
}else{
|
|
append += "<tr><td colspan='4' align='center'>개발중인 제품이 없습니다.</td></tr>";
|
|
}
|
|
|
|
$("#productList").append(append);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//조건에 해당하는 기준정보 문서 목록을 가져온다.
|
|
function fn_searchBaseInfo(){
|
|
var appenText = "";
|
|
var actionType = $("#actionType").val();
|
|
$("#baseInfoArea").empty();
|
|
|
|
$.ajax({
|
|
url:"/transfer/getTransferDocBaseList.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if(data.length > 0){
|
|
for(var i=0;i<data.length;i++){
|
|
appenText+="<tr>";
|
|
var checkTxt = "";
|
|
|
|
if(actionType != "regist"){
|
|
if(data[i].REL_CNT != 0){
|
|
checkTxt = "checked";
|
|
}
|
|
}
|
|
appenText+=" <td><input type='checkbox' name='baseInfoObjId' value='"+data[i].OBJID+"' "+checkTxt+" disabled></td>";
|
|
|
|
appenText+=" <td>"+fnc_checkNull(data[i].RNUM)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].DOC_TITLE)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].DOC_TYPE_TITLE)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].TRANSLATE_TYPE_TITLE)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].HAND_OVER_DEPT_NAME)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].IS_PRODUCTION_TITLE)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].IS_PRODUCT_MNG_TITLE)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].IS_INTEGRITY_TITLE)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].IS_COMPONENT_BUY_TITLE)+"</td>";
|
|
appenText+=" <td>"+fnc_checkNull(data[i].IS_PRODUCT_QUALITY_TITLE)+"</td>";
|
|
appenText+="</tr>";
|
|
}
|
|
}else{
|
|
appenText+="<tr>";
|
|
appenText+="<td colspan='11'>조회된 내용이 없습니다.</td>";
|
|
appenText+="</tr>";
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
|
|
$("#baseInfoArea").append(appenText);
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="nonTargetBaseDocArr" id="nonTargetBaseDocArr"/>
|
|
<input type="hidden" name="objId" id="objId" value="${info.OBJID}" />
|
|
<input type="hidden" name="actionType" id="actionType" value="${param.actionType}" />
|
|
<section class="business_staff_popup_min_width">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>금형이관</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<div class="form_popup_title"> 금형이관 정보등록</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="10%"/>
|
|
<col width="*"/>
|
|
<col width="10%"/>
|
|
<col width="*"/>
|
|
<col width="10%"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">고객사</label>
|
|
</td>
|
|
<td colspan="">${info.OEM_NAME}</td>
|
|
<td class="input_title">
|
|
<label for="">차종</label>
|
|
</td>
|
|
<td colspan="">${info.CAR_CODE}</td>
|
|
<td class="input_title">
|
|
<label for="">양산일자</label>
|
|
</td>
|
|
<td colspan="">${info.SOP}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">개발품목</label>
|
|
</td>
|
|
<td colspan="5">
|
|
<div style="overflow-y:scroll;">
|
|
<table class="project_form_in_table" style="width:100% !important;">
|
|
<colgroup>
|
|
<col width="5%"/>
|
|
<col width="20%"/>
|
|
<col width="*"/>
|
|
<col width="15%"/>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td>No</td>
|
|
<td>제품군</td>
|
|
<td>제품</td>
|
|
<td>대표자 지정</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="in_table_scroll_wrap" style="width:100%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="5%"/>
|
|
<col width="20%"/>
|
|
<col width="*"/>
|
|
<col width="15%"/>
|
|
</colgroup>
|
|
<tbody id="productList">
|
|
<tr>
|
|
<td colspan="4" align="center">차종을 선택해 주시기 바랍니다.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">문서<br> 기준정보</label>
|
|
</td>
|
|
<td colspan="5">
|
|
<div style="overflow-y:scroll;">
|
|
<table class="project_form_in_table" style="width:100% !important;">
|
|
<colgroup>
|
|
<col width="2%"/>
|
|
<col width="5%"/>
|
|
<col width="30%"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td rowspan="2"><input type="checkbox" name="allCheck" id="allCheck"></td>
|
|
<td rowspan="2">No</td>
|
|
<td rowspan="2">문서명</td>
|
|
<td rowspan="2">이관유형</td>
|
|
<td rowspan="2">문서유형</td>
|
|
<td rowspan="2">인계팀</td>
|
|
<td colspan="5">대상</td>
|
|
</tr>
|
|
<tr>
|
|
<td>생산팀</td>
|
|
<td>생산관리팀</td>
|
|
<td>보전팀</td>
|
|
<td>부품구매</td>
|
|
<td>양산품질</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="in_table_scroll_wrap" style="width:100%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="2%"/>
|
|
<col width="5%"/>
|
|
<col width="30%"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<tbody id="baseInfoArea">
|
|
<tr>
|
|
<td colspan="11" align="center">차종을 선택해 주시기 바랍니다.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="수정" id="btnEdit" class="plm_btns">
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |