- 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
260 lines
8.4 KiB
Plaintext
260 lines
8.4 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>
|
|
|
|
<c:set var="actionType" value="${param.actionType}" />
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
partSearch();
|
|
});
|
|
});
|
|
|
|
function btn_close(){
|
|
self.close();
|
|
}
|
|
|
|
//제품군에 따른 제품의 목록을 가져온다.
|
|
function getChangeProductList(areaObjId,productGroupObjId,targetProductObjId){
|
|
$("#"+areaObjId).find("option").remove();
|
|
$("#"+areaObjId).append("<option value=''>선택</option>");
|
|
|
|
if("" != productGroupObjId && null != productGroupObjId){
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/common/getProductList_combo.do",
|
|
data:{"search_productGroupObjId" : productGroupObjId, "isJson":true},
|
|
dataType:"json",
|
|
async:false,
|
|
error: function(jqxhr, status, error){
|
|
Swal.fire(jqxhr.statusText + ", " + status + ", " + error);
|
|
Swal.fire(jqxhr.status);
|
|
Swal.fire(jqxhr.responseText);
|
|
},
|
|
success: function(result){
|
|
if(null != result){
|
|
for(var i=0;i<result.length;i++){
|
|
var resultAppendText = "";
|
|
var productName = result[i].PRODUCT_NAME;
|
|
var selectedFlag = "";
|
|
if(targetProductObjId == result[i].OBJID){
|
|
selectedFlag = "selected";
|
|
}
|
|
resultAppendText="<option value='"+result[i].OBJID+"' "+selectedFlag+">"+productName+"</option>";
|
|
$("#"+areaObjId).append(resultAppendText);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function partSearch(){
|
|
var param = $("#form1").serialize();
|
|
|
|
$.ajax({
|
|
type : "POST",
|
|
url:"/part/partListAjax.do",
|
|
data:param,
|
|
dataType:"json",
|
|
async:false,
|
|
error: function(jqxhr, status, error){
|
|
Swal.fire(jqxhr.statusText + ", " + status + ", " + error);
|
|
Swal.fire(jqxhr.status);
|
|
Swal.fire(jqxhr.responseText);
|
|
},
|
|
success: function(result){
|
|
if(null != result){
|
|
$("#partBody").empty();
|
|
if(0 < result.length){
|
|
$("#partBodyDefault").hide();
|
|
}else{
|
|
$("#partBodyDefault").show();
|
|
}
|
|
for(var i=0;i<result.length;i++){
|
|
var appendText = "";
|
|
appendText+= "<tr>";
|
|
appendText+= " <td><input type='checkbox' name='partObjId' value='"+result[i].OBJID+"'></td>";
|
|
appendText+= " <td><a href='#' onclick=\"openPartFormPopup('','"+result[i].OBJID+"')\">"+fnc_checkNull(result[i].PART_NO)+"</a></td>";
|
|
appendText+= " <td><a href='#' onclick=\"openPartFormPopup('','"+result[i].OBJID+"')\">"+fnc_checkNull(result[i].PART_NAME)+"</a></td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].OEM_NAME)+"("+fnc_checkNull(result[i].OEM_CODE)+")</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].CAR_CODE)+"("+fnc_checkNull(result[i].CAR_NAME)+")</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].PRODUCT_GROUP_NAME)+"</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].PRODUCT_NAME)+"</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].MATERIAL_NAME)+"</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].THICKNESS)+"</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].REV)+"</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].DRAWING_TYPE_TITLE)+"</td>";
|
|
appendText+= " <td>"+fnc_checkNull(result[i].DRAWING_RELEASE_TYPE_TITLE)+"</td>";
|
|
appendText+= "</tr>";
|
|
$("#partBody").append(appendText);
|
|
}
|
|
}else{
|
|
$("#partBodyDefault").show();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
//모든 Revision 목록에서 Part의 상세 화면을 호출한다.
|
|
function openPartFormPopup(actionType,objid){
|
|
var hiddenForm = document.hiddenForm;
|
|
var url = "/part/partFormPopup.do";
|
|
var target = "revHistoryTempPartListPopup";
|
|
if("" != objid){
|
|
url = "/part/partDetailViewPopup.do";
|
|
}
|
|
|
|
window.open(url,target,"width=700, height=930");
|
|
|
|
hiddenForm.action = url;
|
|
hiddenForm.actionType.value = actionType;
|
|
hiddenForm.objid.value = objid;
|
|
hiddenForm.target = target;
|
|
hiddenForm.submit();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="hiddenForm" id="hiddenForm" action="" method="post">
|
|
<input type="hidden" name="actionType" id="actionType">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<input type="hidden" name="objid" id="objid">
|
|
</form>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="status" value="all">
|
|
<section class="min_part_enroll_popup2">
|
|
<div class="pdm_menu_name">
|
|
<h2>
|
|
<span>Part Revision 이력</span>
|
|
</h2>
|
|
</div>
|
|
<div id="pdmFormWrap" class="eo_part_search_popup">
|
|
<div class="pdm_commonSection">
|
|
<table id="pdmForm">
|
|
<tbody class="">
|
|
<tr>
|
|
<td class="">
|
|
<label for="" class="">차종</label>
|
|
</td>
|
|
<td>
|
|
<select id="search_car" name="search_car">
|
|
<c:choose>
|
|
<c:when test="${empty carList}">
|
|
<option value="">선택</option>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<option value="">선택</option>
|
|
<c:forEach var="item" items="${carList}" varStatus="varStatus">
|
|
<option value="${item.OBJID}" ${item.OBJID eq param.search_car ? 'selected':''}>${item.CAR_CODE}(${item.CAR_NAME})</option>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</select>
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">제품군</label>
|
|
</td>
|
|
<td>
|
|
<select id="search_productGroup" name="search_productGroup" onchange="getChangeProductList('search_product',this.value,'')">
|
|
<c:choose>
|
|
<c:when test="${empty productGroupList}">
|
|
<option value="">선택</option>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<option value="">선택</option>
|
|
<c:forEach var="item" items="${productGroupList}" varStatus="varStatus">
|
|
<option value="${item.OBJID}" ${item.OBJID eq param.search_productGroup ? 'selected':''}>${item.PRODUCT_GROUP_NAME}</option>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</select>
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">제품</label>
|
|
</td>
|
|
<td>
|
|
<select id="search_product" name="search_product">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<label for="" class="">품번</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" class="text_area" name="search_partNo" id="search_partNo" value="${empty param.partNo ? param.search_partNo:param.partNo}">
|
|
</td>
|
|
<td>
|
|
<label for="" class="">품명</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" class="" name="search_partName" id="search_partName" style="width:250px;">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="contents_page_basic_margin">
|
|
<div id="pdmSearchBtnWrap">
|
|
<input type="button" value="조회" class="pdm_btns" id="btnDistributionPopup" onclick="partSearch();">
|
|
</div>
|
|
<div class="pdm_table_wrap">
|
|
<table class="pdm_table no_img_table_td_height" style="text-align:center";>
|
|
<colgroup>
|
|
<col width="2%">
|
|
<col width="9%" />
|
|
<col width="*" />
|
|
<col width="7%" />
|
|
<col width="7%" />
|
|
<col width="11%" />
|
|
<col width="10%" />
|
|
<col width="7%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
</colgroup>
|
|
<tr class="pdm_thead">
|
|
<td>
|
|
<input type="checkbox" name="" value="" id="" class="checkBox" onclick="fn_allChk(this);">
|
|
</td>
|
|
<td>품번</td>
|
|
<td>품명</td>
|
|
<td>고객사</td>
|
|
<td>차종</td>
|
|
<td>제품군</td>
|
|
<td>제품</td>
|
|
<td>재질</td>
|
|
<td>두께</td>
|
|
<td>Rev</td>
|
|
<td>도면구분</td>
|
|
<td>출도구분</td>
|
|
</tr>
|
|
<tr id="partBodyDefault">
|
|
<td colspan="12">조회된 내용이 없습니다.</td>
|
|
</tr>
|
|
<tbody id="partBody">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="btnCenterWrap">
|
|
<center class="center_btns_wrap">
|
|
<input type="button" value="닫기" class="pdm_btns" id="btnDistributionPopup" onclick="javascript:btn_close()">
|
|
</center>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html>
|