Files
wace_plm/WebContent/WEB-INF/view/bom/bomMnglist.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

298 lines
9.1 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(){
//구조 등록
$("#btnSetStructure").click(function(){
fn_openSetStandardInfo();
});
//end of 구조 등록
//excel import
$("#btnFileUpload").click(function(){
//window.open("/common/fileList.do", "", "width=500, height=500");
window.open("/part/structureExcelImportPopup.do", "", "width=700, height=700");
});
//end of excel import
//상세 팝업
$(".btnDetail").click(function(){
var objId = $(this).attr("data-OBJID");
fn_openSetStructure(objId);
});
//end of 상세 팝업
//조회
$("#btnSearch").click(function(){
/*
var oem = $("#search_oemObjId").val();
var car = $("#search_carTypeObjId").val();
var productGroup = $("#search_productGroupObjId").val();
var product = $("#search_productObjId").val();
var region = $("#search_regionObjId").val();
Swal.fire("oem : "+oem+", car : "+car+", productGroup : "+productGroup+", product : "+product+", region : "+region);
*/
document.form1.action = "/part/searchStructureList.do";
document.form1.submit();
});
//end of 조회
//차명 조회
$("#search_oemObjId").change(function(){
$(".carTypeDataOptions").remove();
if($(this).val() != ""){
$.ajax({
url:"/common/getCarTypetList_combo.do",
type:"POST",
data:{"search_oemObjId":$(this).val(),"isJson":true},
dataType:"json",
async:true,
success:function(data){
//Swal.fire(data.length);
$.each(data, function(i){
$("#search_carTypeObjId").append("<option value=\""+data[i].OBJID+"\" class=\"carTypeDataOptions\" "+(data[i].OBJID == '${param.search_carTypeObjId}'?'selected':'')+">"+data[i].CAR_CODE+"</option>");
});
},
error: function(jqxhr, status, error){
Swal.fire(jqxhr.statusText + ", " + status + ", " + error);
Swal.fire(jqxhr.status);
Swal.fire(jqxhr.responseText);
}
});
}
});
//end of 차명 조회
//제품 조회
$("#search_productGroupObjId").change(function(){
$(".productDataOptions").remove();
if($(this).val() != ""){
$.ajax({
url:"/common/getProductList_combo.do",
type:"POST",
data:{"search_productGroupObjId":$(this).val(),"isJson":true},
dataType:"json",
async:true,
success:function(data){
//Swal.fire(data.length);
$.each(data, function(i){
$("#search_productObjId").append("<option value=\""+data[i].OBJID+"\" class=\"productDataOptions\" "+(data[i].OBJID == '${param.search_productObjId}'?'selected':'')+">"+data[i].PRODUCT_NAME+"</option>");
});
},
error: function(jqxhr, status, error){
Swal.fire(jqxhr.statusText + ", " + status + ", " + error);
Swal.fire(jqxhr.status);
Swal.fire(jqxhr.responseText);
}
});
}
});
//end of 제품 조회
$(document).ready(function(){
$("#search_oemObjId").trigger("change");
$("#search_productGroupObjId").trigger("change");
});
});
/**
* 구조 기준정보 팝업
*/
function fn_openSetStandardInfo(){
window.open("/part/setStructureStandardFormPopup.do", "", "width=400, height=260");
}
/**
* 구조등록 팝업
*/
function fn_openSetStructure(objId){
window.open("/part/setStructurePopupMainFS.do?objId="+objId, "", "width=1200, height=850, resizable=no");
}
function fn_search(){
document.form1.action = "/part/searchStructureList.do";
document.form1.submit();
}
</script>
</head>
<body class="backcolor">
<form name="form1" action="" method="post">
<section class="min_part_search">
<div class="plm_menu_name">
<h2>
<span>구조등록</span>
</h2>
</div>
<div id="plmSearchZon">
<table>
<tr>
<td class="align_r">
<label>고객사</label>
</td>
<td>
<select name="search_oemObjId" id="search_oemObjId">
<option value="">전체</option>
<c:forEach var="item" items="${oemList}" varStatus="status">
<option value="${item.OBJID}" ${item.OBJID eq param.search_oemObjId?'selected':''}>${item.OEM_NAME}(${item.OEM_CODE})</option>
</c:forEach>
</select>
</td>
<td class="align_r">
<label>차종</label>
</td>
<td>
<select name="search_carTypeObjId" id="search_carTypeObjId">
<option value="">전체</option>
</select>
</td>
<td class="align_r">
<label>제품군</label>
</td>
<td>
<select name="search_productGroupObjId" id="search_productGroupObjId">
<option value="">전체</option>
<c:forEach var="item" items="${productGroupList}" varStatus="status">
<option value="${item.OBJID}" ${item.OBJID eq param.search_productGroupObjId?'selected':''}>${item.PRODUCT_GROUP_NAME}</option>
</c:forEach>
</select>
</td>
<td class="align_r">
<label>제품</label>
</td>
<td>
<select name="search_productObjId" id="search_productObjId">
<option value="">전체</option>
</select>
</td>
<td class="align_r">
<label>사양</label>
</td>
<td>
<select name="search_regionObjId" id="search_regionObjId">
<option value="">전체</option>
<c:forEach var="item" items="${regionList}" varStatus="status">
<option value="${item.OBJID}" ${item.OBJID eq param.search_regionObjId?'selected':''}>${item.REGION_NAME}</option>
</c:forEach>
</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" id="btnSetStructure">
<!-- <input type="button" value="Excel Upload" class="plm_btns" id="btnFileUpload"> -->
<input type="button" value="조회" class="plm_btns" id="btnSearch">
</div>
</div>
<div class="plm_table_wrap">
<table class="plm_table">
<colgroup>
<col width="3%" />
<col width="10%" />
<col width="10%" />
<col width="*" />
<col width="*" />
<col width="*" />
<col width="10%" />
<col width="7%" />
</colgroup>
<tr class="plm_thead">
<td>No</td>
<td>고객사</td>
<td>차종</td>
<td>제품군</td>
<td>제품</td>
<td>사양</td>
<td>작성자</td>
<td>등록일</td>
</tr>
<c:choose>
<c:when test="${!empty LIST}">
<c:forEach var="item" items="${LIST}" varStatus="status">
<tr style="cursor:pointer;" class="btnDetail" data-OBJID="${item.OBJID}">
<td>${item.RNUM}</td>
<td>${item.OEM_NAME}</td>
<td>${item.CAR_NAME}(${item.CAR_CODE})</td>
<td>${item.PRODUCT_GROUP_NAME}</td>
<td>${item.PRODUCT_NAME}</td>
<td>${item.REGION_NAME}</td>
<td>${item.DEPT_NAME} ${item.USER_NAME}</td>
<td>${item.REGDATE}</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" align="center">조회된 정보가 없습니다.</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
</section>
<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>
<p id="adminPageCount">총 ${totalCount}건</p>
</div>
</c:if>
</div>
</section>
</form>
</body>
</html>