218 lines
6.8 KiB
Plaintext
218 lines
6.8 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>
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
if(""!="${product_code}"){
|
|
$("#TARGET_PRODUCT_MGMT_OBJID").val("${product_code}");
|
|
fnc_getProductRevtList("TARGET_REV","${product_code}");
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#btnConfirm").click(function(){
|
|
if(fnc_validate("form1")){
|
|
|
|
if($("#REV").val()==""){
|
|
Swal.fire('Source Rev를 선택해 주세요');
|
|
return;
|
|
}
|
|
|
|
if($("#TARGET_PRODUCT_MGMT_OBJID").val()==""){
|
|
Swal.fire('대상 기종명을 선택해 주세요');
|
|
return;
|
|
}
|
|
|
|
if($("#PRODUCT_MGMT_OBJID").val() == $("#TARGET_PRODUCT_MGMT_OBJID").val() && $("#REV").val() == $("#TARGET_REV").val()){
|
|
Swal.fire("같은 기종 같은 REV로 복사 할수 없습니다.");
|
|
return;
|
|
}
|
|
|
|
if(confirm("복사하시겠습니까?")){
|
|
|
|
$.ajax({
|
|
url:"/partMng/saveBomCopy.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(data=="SUCCESS"){
|
|
Swal.fire('복사되었습니다');
|
|
}else{
|
|
Swal.fire('복사에 실패하였습니다.');
|
|
}
|
|
opener.fn_search();
|
|
self.close();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
/* $("#PRODUCT_MGMT_OBJID").change(function(){
|
|
fn_productSpecList(this.value, "PRODUCT_MGMT_SPEC", "");
|
|
}); */
|
|
|
|
$("#REV").change(function(){
|
|
$("#SPEC_NAME").val("");
|
|
var spec_name = $("#REV").find("option:selected").attr("id");
|
|
$("#SPEC_NAME").val(spec_name);
|
|
});
|
|
|
|
|
|
$("#TARGET_REV").change(function(){
|
|
$("#TARGET_SPEC_NAME").val("");
|
|
var spec_name = $("#TARGET_REV").find("option:selected").attr("ids");
|
|
$("#TARGET_SPEC_NAME").val(spec_name);
|
|
if(this.value!=""){
|
|
$("#TARGET_SPEC_NAME").attr("readonly",true);
|
|
}else{
|
|
$("#TARGET_SPEC_NAME").attr("readonly",false);
|
|
}
|
|
});
|
|
|
|
|
|
|
|
$("#TARGET_PRODUCT_MGMT_OBJID").change(function(){
|
|
|
|
fnc_getProductRevtList("TARGET_REV",this.value);
|
|
});
|
|
|
|
|
|
|
|
fnc_getProductMgmtList("PRODUCT_MGMT_OBJID", "${product_code}");
|
|
//fn_productSpecList("${product_code}", "PRODUCT_MGMT_SPEC", "${product_mgmt_spec}");
|
|
//fnc_productUPGNEWList("","${product_mgmt_spec}","PRODUCT_MGMT_UPG", "${upg_no}");
|
|
|
|
$("#PRODUCT_MGMT_SPEC").change(function(){
|
|
fnc_productUPGList("",this.value,"PRODUCT_MGMT_UPG", "${resultMap.PRODUCT_MGMT_UPG}");
|
|
});
|
|
|
|
$('.select2').select2();
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>BOM COPY</span>
|
|
</h2>
|
|
</div>
|
|
|
|
<div id="businessPopupFormWrap">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="48%;">
|
|
<col width="*">
|
|
<col width="48%;">
|
|
</colgroup>
|
|
|
|
<tr>
|
|
<td>
|
|
<h3>SOURCE</h3>
|
|
<br>
|
|
<font color="red">※복사할 Version 을 선택하세요.</font>
|
|
|
|
<table width="100%">
|
|
<tr >
|
|
<td class="input_title"><label for="">기종(모델)명</label></td>
|
|
<td class="input_sub_title" >
|
|
<select style="width:100%;" name="PRODUCT_MGMT_OBJID" id="PRODUCT_MGMT_OBJID" class="select2" disabled="disabled"></select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">Source Version</label></td>
|
|
<td class="input_sub_title" >
|
|
<select style="width:100%;" name="REV" id="REV" class="select2" autocomplete="off" required reqTitle="원본Version">
|
|
<option value="">선택</option>
|
|
${code_map.rev}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">사양명</label></td>
|
|
<td class="input_sub_title" >
|
|
<input type="text" id="SPEC_NAME" name="SPEC_NAME" disabled="disabled" readonly>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
</td>
|
|
|
|
<td>
|
|
<table width="100%">
|
|
<tr>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
<h3>TARGET</h3>
|
|
<br>
|
|
<font color="red">※Version 미선택시 새로운 Version으로 신규 생성 되며 기등록된 BOM구조는 삭제 됩니다.</font>
|
|
<table width="100%">
|
|
<tr>
|
|
<td class="input_title"><label for="">대상 기종명</label></td>
|
|
<td class="input_sub_title" >
|
|
<select style="width:100%;" name="TARGET_PRODUCT_MGMT_OBJID" id="TARGET_PRODUCT_MGMT_OBJID" class="select2" autocomplete="off" required reqTitle="대상기종">
|
|
<option value="">선택</option>
|
|
${code_map.product_code}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="input_title"><label for="">Target Version</label></td>
|
|
<td class="input_sub_title" >
|
|
<select style="width:100%;" name="TARGET_REV" id="TARGET_REV" class="select2"></select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="input_title"><label for="">대상 사양명</label></td>
|
|
<td class="input_sub_title" >
|
|
<input type="text" id="TARGET_SPEC_NAME" name="TARGET_SPEC_NAME" required reqTitle="대상사양명">
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap" style="clear:both;">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="복사" class="plm_btns" id="btnConfirm">
|
|
<input type="button" value="닫기" class="plm_btns" id="btnClose">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |