- 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
314 lines
11 KiB
Plaintext
314 lines
11 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ 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="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
<style type="text/css">
|
|
::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(to bottom, #f5d78e, #f5d78e);
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$(document).ready(function() {
|
|
|
|
fnc_datepick();
|
|
|
|
$("input[type=text]").keyup(function(e) {
|
|
if (e.keyCode == 13)
|
|
fn_search();
|
|
});
|
|
|
|
$("#btnAdd").click(function() {
|
|
fn_addPartMng();
|
|
});
|
|
|
|
|
|
$("#btnDeploy").click(function(){
|
|
fn_partMngDeploy();
|
|
});
|
|
|
|
//image src encoding
|
|
$("img").each(function(i) {
|
|
var imgSrc = $(this).attr("data-SRC");
|
|
$(this).attr("src", encodeURI(imgSrc));
|
|
});
|
|
|
|
$("#btnSearch").click(function() {
|
|
fn_search();
|
|
});
|
|
|
|
$("#btnConnectFile").click(function() {
|
|
var form = document.form1;
|
|
|
|
form.action = "/partMng/partConnectDrawingFile.do";
|
|
form.submit();
|
|
});
|
|
|
|
$("#btnExcel").click(function() {
|
|
fn_excel();
|
|
});
|
|
|
|
|
|
$("#product_code").change(function(){
|
|
fnc_productUPGNEWList(this.value,"","upg_no", "");
|
|
});
|
|
|
|
if("${param.product_code}"!=""){
|
|
|
|
fnc_productUPGNEWList("${param.product_code}","","upg_no", "");
|
|
$("#upg_no").val("${param.upg_no}");
|
|
|
|
}
|
|
|
|
fnc_getCodeListAppend("<%=Constants.PART_TYPE_CODE%>","SEARCH_PART_TYPE","${param.SEARCH_PART_TYPE}");
|
|
|
|
$("#SEARCH_REVISION_RELEASE").val("${param.SEARCH_REVISION_RELEASE}");
|
|
|
|
if("${param.SEARCH_REVISION_RELEASE}"==""){
|
|
$("#SEARCH_REVISION_RELEASE").val("0");
|
|
}
|
|
|
|
$('.select2').select2();
|
|
|
|
//첨부팝업
|
|
$(".File").click(function(){
|
|
var popup_width = 800;
|
|
var popup_height = 335;
|
|
|
|
var objId = $(this).attr("data-OBJID");
|
|
var docType =$(this).attr("data-docType");
|
|
var docTypeName = $(this).attr("data-docTypeName");
|
|
var params = "?targetObjId="+objId+"&docType="+docType+"&docTypeName="+docTypeName;
|
|
var url = "/projectConcept/FileRegistPopup.do"+params;
|
|
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
});
|
|
|
|
fn_search();
|
|
});
|
|
});
|
|
|
|
var columns = [
|
|
{title:'OBJID', field:'OBJID' ,visible:false },
|
|
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '60', title : '순', field : 'NUM' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', /* width : '270', */ title : '품명', field : 'PART_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '180', title : '품번', field : 'PART_NO',
|
|
formatter:fnc_createGridAnchorTag,
|
|
cellClick:function(e, cell){
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
openPartMngPopup(objid);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '70', title : '수량', field : 'QTY' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '60', title : '3D', field : 'CU01_CNT',
|
|
formatter:fnc_subInfoValueFormatter,
|
|
cellClick:function(e, cell){
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
var docType = '3D_CAD';
|
|
var docTypeName = '3D CAD 첨부파일';
|
|
fnc_fileDetailPopup(objid, docType, docTypeName);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '60', title : '2D', field : 'CU02_CNT',
|
|
formatter:fnc_subInfoValueFormatter,
|
|
cellClick:function(e, cell){
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
var docType = '2D_DRAWING_CAD';
|
|
var docTypeName = '2D(Drawing) CAD 첨부파일';
|
|
fnc_fileDetailPopup(objid, docType, docTypeName);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '60', title : 'PDF', field : 'CU03_CNT',
|
|
formatter:fnc_subInfoValueFormatter,
|
|
cellClick:function(e, cell){
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
var docType = '2D_PDF_CAD';
|
|
var docTypeName = '2D(PDF) CAD 첨부파일';
|
|
fnc_fileDetailPopup(objid, docType, docTypeName);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '재질', field : 'MATERIAL' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '190', title : '사양(규격)', field : 'SPEC' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '후처리', field : 'POST_PROCESSING' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : 'MAKER', field : 'MAKER' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '80', title : 'Revision', field : 'REVISION' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : 'EO No', field : 'EO_NO' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : 'EO Date', field : 'EO_DATE' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : 'PART 구분', field : 'PART_TYPE_TITLE' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : 'REMARK', field : 'REMARK' }
|
|
];
|
|
|
|
//var grid;
|
|
function fn_search(){
|
|
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngGridList.do", columns, true);
|
|
}
|
|
|
|
|
|
function fn_addPartMng(){
|
|
var checkedObj = _tabulGrid.getSelectedData();
|
|
if(0 == checkedObj.length){
|
|
Swal.fire("선택된 대상이 없습니다.");
|
|
}else{
|
|
if (checkedObj.length > 1) {
|
|
Swal.fire("추가할 파트는 1개만 선택 되어야 합니다.");
|
|
return false;
|
|
} else {
|
|
var PART_OBJID="";
|
|
var PART_NO="";
|
|
var PART_NAME="";
|
|
for(var i=0;i<checkedObj.length;i++){
|
|
PART_OBJID = fnc_checkNull(checkedObj[i].OBJID);
|
|
PART_NO = fnc_checkNull(checkedObj[i].PART_NO);
|
|
PART_NAME = fnc_checkNull(checkedObj[i].PART_NAME);
|
|
}
|
|
|
|
|
|
var CALL_FN = fnc_checkNull($("#CALL_FN").val());
|
|
|
|
var params = {
|
|
"PART_OBJID" : PART_OBJID
|
|
,"PART_NO" : PART_NO
|
|
,"PART_NAME" : PART_NAME
|
|
}
|
|
opener.fn_setPartInfo(params);
|
|
if("" != CALL_FN){
|
|
}
|
|
}
|
|
self.close();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function openPartMngPopup(objId){
|
|
var popup_width = 600;
|
|
var popup_height = 500;
|
|
|
|
var hiddenForm = document.hiddenForm;
|
|
var url = "/partMng/partMngFormPopUp.do";
|
|
|
|
if("" != objId){
|
|
url = "/partMng/partMngDetailPopUp.do";
|
|
}
|
|
|
|
var target = "partMngPopUp";
|
|
|
|
fn_centerPopup(popup_width, popup_height, url, target);
|
|
|
|
hiddenForm.action = url;
|
|
hiddenForm.OBJID.value = objId;
|
|
hiddenForm.target = target;
|
|
hiddenForm.submit();
|
|
}
|
|
|
|
function fn_FileRegist(objId, docType, docTypeName){
|
|
var popup_width = 800;
|
|
var popup_height = 335;
|
|
|
|
var objId = objId;
|
|
var docType = docType;
|
|
var docTypeName = docTypeName;
|
|
var params = "?targetObjId="+objId+"&docType="+docType+"&docTypeName="+docTypeName;
|
|
var url = "/projectConcept/FileRegistPopup.do"+params;
|
|
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="hiddenForm" id="hiddenForm" method="post">
|
|
<input type="hidden" name="OBJID" id="OBJID">
|
|
</form>
|
|
<form name="form1" id="form1" method="post">
|
|
<input type="hidden" name="search" id="search" value="Y">
|
|
<input type="hidden" name="actionType" id="actionType">
|
|
<div>
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name_gdnsi">
|
|
<h2>
|
|
<span>제품관리_PART 조회</span>
|
|
</h2>
|
|
<div class="btnArea">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch">
|
|
<input type="button" value="추가" class="plm_btns" id="btnAdd">
|
|
</div>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<%-- <td><label for="product_code">기종(모델)명</label></td>
|
|
<td>
|
|
<select name="product_code" id="product_code" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.product_code}
|
|
</select>
|
|
</td> --%>
|
|
<!-- <td><label for="">UPG_NO</label></td> -->
|
|
<!-- <td> -->
|
|
<!-- <select name="upg_no" id="upg_no" class="select2" style="width:250px;" autocomplete="off"></select> -->
|
|
<!-- </td> -->
|
|
<td><label for="">품번</label></td>
|
|
<td>
|
|
<input type="text" name="SEARCH_PART_NO" id="SEARCH_PART_NO" style="width:194px;" autocomplete="off" value="${param.SEARCH_PART_NO}">
|
|
</td>
|
|
<td><label for="">품명</label></td>
|
|
<td>
|
|
<input type="text" name="SEARCH_PART_NAME" id="SEARCH_PART_NAME" style="width:150px;" autocomplete="off" value="${param.SEARCH_PART_NAME}">
|
|
</td>
|
|
|
|
<td><label for="">Revision</label></td>
|
|
<td colspan="7">
|
|
<select name="SEARCH_REVISION_RELEASE" id="SEARCH_REVISION_RELEASE" style="width:150px;" autocomplete="off">
|
|
<option value="1">current</option>
|
|
<option value="0">all</option>
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="">재질</label></td>
|
|
<td>
|
|
<input type="text" name="SEARCH_MATERIAL" id="SEARCH_MATERIAL" style="width:150px;" autocomplete="off" value="${param.SEARCH_MATERIAL}">
|
|
</td>
|
|
<td><label for="">사양(규격)</label></td>
|
|
<td>
|
|
<input type="text" name="SEARCH_SPEC" id="SEARCH_SPEC" style="width:150px;" autocomplete="off" value="${param.SEARCH_SPEC}">
|
|
</td>
|
|
|
|
<!-- <td><label for="">EO No.</label></td> -->
|
|
<!-- <td> -->
|
|
<%-- <input type="text" name="SEARCH_EO" id="SEARCH_EO" style="width:150px;" autocomplete="off" value="${param.SEARCH_EO}"> --%>
|
|
<!-- </td> -->
|
|
|
|
<%-- <td><label for="">최초설계일</label></td>
|
|
<td>
|
|
<input type="text" name="SEARCH_DESIGN_DATE_FROM" id="SEARCH_DESIGN_DATE_FROM" style="width:90px;" autocomplete="off" value="${param.SEARCH_DESIGN_DATE_FROM}">~
|
|
<input type="text" name="SEARCH_DESIGN_DATE_TO" id="SEARCH_DESIGN_DATE_TO" style="width:90px;" autocomplete="off" value="${param.SEARCH_DESIGN_DATE_TO}">
|
|
</td> --%>
|
|
|
|
<td><label for="">부품 유형</label></td>
|
|
<td>
|
|
<select name="SEARCH_PART_TYPE" id="SEARCH_PART_TYPE" style="width:150px;" autocomplete="off"></select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |