Files
wace_plm/WebContent/WEB-INF/view/partMng/structureStandardFormPopup.jsp
chpark da06c4684c Initial commit: WACE PLM with database initialization features
- Add Docker Compose configurations for dev, prod, and standalone environments
- Add database initialization scripts (init-db.sh, init-db-docker.sh)
- Add enhanced start-docker-linux.sh with DB init support
- Add comprehensive database initialization guide
- Support for automatic dbexport.pgsql import on first run
- Include safety checks for production environment
2025-08-29 15:46:08 +09:00

140 lines
4.6 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(){
$("#btnConfirm").click(function(){
if(fnc_validate("form1")){
if(confirm("진행하시겠습니까?")){
window.resizeTo(1200, 930);
document.form1.action = "/partMng/setStructurePopupMainFS.do";
document.form1.submit();
}
}
});
$("#btnClose").click(function(){
self.close(0);
});
$("#PRODUCT_MGMT_OBJID").change(function(){
fn_productSpecList(this.value, "PRODUCT_MGMT_SPEC", "");
});
$("#PRODUCT_MGMT_SPEC").change(function(){
fnc_productUPGList("",this.value,"PRODUCT_MGMT_UPG", "${resultMap.PRODUCT_MGMT_UPG}");
});
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}");
$('.select2').select2();
});
});
//양산제품에 해당하는 SPEC 정보 목록을 가져온다.
function fn_productSpecList(productObjId,selectboxId,selectedVal){
$("#"+selectboxId).empty();
$("#"+selectboxId).append("<option value=''>선택</option>");
if("" != productObjId){
$.ajax({
url:"/common/getProductSPECList.do",
type:"POST",
data:{"isJson":true,"TARGET_OBJID":productObjId},
dataType:"json",
async:false,
success:function(data){
resultList = data
if(0 < resultList.length){
for (var i = 0; i < resultList.length; i++) {
var commonCodeId = resultList[i].OBJID;
var commonCodeName = resultList[i].SPEC_NAME;
$("#"+selectboxId).append("<option value='"+commonCodeId+"'>"+commonCodeName+"</option>");
}
$("#"+selectboxId).val(selectedVal);
}
},
error: function(jqxhr, status, error){
}
});
}
}
</script>
</head>
<body class="backcolor">
<form name="form1" id="form1" action="" method="post">
<div class="plm_menu_name">
<h2>
<span>구조등록</span>
</h2>
</div>
<div id="businessPopupFormWrap">
<table class="pmsPopupForm">
<colgroup>
<col width="15%;">
<col width="*">
</colgroup>
<tr>
<td class="input_title"><label for="">기종(모델)명</label></td>
<td class="input_sub_title" >
<select name="PRODUCT_MGMT_OBJID" id="PRODUCT_MGMT_OBJID" class="select2"></select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">사양명</label></td>
<td class="input_sub_title" >
<input type="text" required id="SPEC_NAME" name="SPEC_NAME" reqTitle="사양명">
</td>
</tr>
<tr>
<td class="input_title"><label for="">Version</label></td>
<td class="input_sub_title" >
<input type="text" readonly id="REV" name="REV" value="${info.REV}">
</td>
</tr>
<tr>
<td class="input_title"><label for="">비고</label></td>
<td class="input_sub_title" >
<input type="text" id="NOTE" name="NOTE" reqTitle="비고">
</td>
</tr>
<!-- <tr>
<td class="input_title"><label for="">사양</label></td>
<td>
<select name="PRODUCT_MGMT_SPEC" id="PRODUCT_MGMT_SPEC" title="사양" required type="select" class="select2"></select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">UPG No</label></td>
<td>
<select name="PRODUCT_MGMT_UPG" id="PRODUCT_MGMT_UPG" title="UPG" required type="select" class="select2"></select>
</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>