- 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
479 lines
14 KiB
Plaintext
479 lines
14 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>
|
|
<!-- 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(){
|
|
$(".btnTable").click(function(){
|
|
var url = $(this).attr("url");
|
|
document.dfmeaForm.action = url;
|
|
document.dfmeaForm.submit();
|
|
});
|
|
|
|
fnc_datepick();
|
|
|
|
//조회
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
//기술자료 등록팝업
|
|
$(".documentRegistPopupBtn").click(function(){
|
|
window.open("/documentMng/documentRegistPopup.do", "", "width=670, height=275");
|
|
});
|
|
|
|
//기술자료 개정팝업
|
|
$(".documentRevisionPopupBtn").click(function(){
|
|
window.open("/documentMng/documentRevisionPopup.do", "", "width=890, height=345");
|
|
});
|
|
|
|
//기술자료 첨부파일 상세팝업
|
|
$(".documentViewPopupBtn").click(function(){
|
|
window.open("/documentMng/documentViewPopup.do", "", "width=670, height=265");
|
|
});
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
//엔터키로 조회
|
|
$("#btnRelease").click(function(e){
|
|
var radioObj = $("input[name=targetRadio]:checked");
|
|
|
|
var radioObjCnt = radioObj.length;
|
|
|
|
if(0 < radioObjCnt){
|
|
fn_sendMail(radioObj.val());
|
|
}else{
|
|
Swal.fire("선택된 내용이 없습니다.");
|
|
}
|
|
});
|
|
});
|
|
|
|
$(document).ready(function(){
|
|
|
|
//고객사 목록 조회
|
|
fn_setOEMList();
|
|
|
|
//고객사별 차종 목록 조회
|
|
$("#search_oem").change(function(){
|
|
var oemObjId = $(this).val();
|
|
fn_setCarTypeList(oemObjId);
|
|
});
|
|
|
|
//제품군 목록 조회
|
|
fn_setProductGroupList();
|
|
|
|
//제품군 제품 목록 조회
|
|
$("#search_productGroup").change(function(){
|
|
var productGroup = $(this).val();
|
|
fn_setProductTypeList(productGroup);
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openProjectFormPopUp(objId){
|
|
window.open("","projectFormPopUp","width=1150, height=676");
|
|
|
|
var url = "/project/projectFormPopUp.do";
|
|
if("" != objId){
|
|
url = "/project/projectDetailPopUp.do";
|
|
}
|
|
var form = document.form1;
|
|
form.objId.value = objId;
|
|
form.action = url;
|
|
form.target = "projectFormPopUp";
|
|
form.submit();
|
|
}
|
|
|
|
//프로젝트 검색기능
|
|
function fn_search(){
|
|
var form = document.form1;
|
|
form.target="_self";
|
|
form.action = "";
|
|
form.actionType.value = "";
|
|
form.submit();
|
|
}
|
|
|
|
//oem 목록 조회
|
|
function fn_setOEMList(){
|
|
$.ajax({
|
|
url:"/common/getOEMList.do",
|
|
type:"POST",
|
|
data:{"isJson":true},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].OEM_NAME+"("+data[i].OEM_CODE+")</option>";
|
|
});
|
|
|
|
$("#search_oem").append(appendCode);
|
|
|
|
var paramValue = "${param.search_oem}";
|
|
if(paramValue != ""){
|
|
$("#search_oem > option[value=${param.search_oem}]").attr("selected", "true");
|
|
$("#search_oem").trigger("change");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//car 목록 조회
|
|
function fn_setCarTypeList(oemObjId){
|
|
if(oemObjId !=""){
|
|
$.ajax({
|
|
url:"/common/getCarTypeList.do",
|
|
type:"POST",
|
|
data:{"isJson":true, "search_oemObjId":oemObjId},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
appendCode += "<option value=''>선택</option>";
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].CAR_CODE+"("+data[i].CAR_NAME+")</option>";
|
|
});
|
|
$("#search_carType").children().remove();
|
|
$("#search_carType").append(appendCode);
|
|
$("#search_carType > option[value=${param.search_carType}]").attr("selected", "true");
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}else{
|
|
$("#search_carType").children().remove();
|
|
$("#search_carType").append("<option value=''>선택</option>");
|
|
}
|
|
}
|
|
|
|
//제품군 목록 조회
|
|
function fn_setProductGroupList(){
|
|
$.ajax({
|
|
url:"/common/getProductGroupList.do",
|
|
type:"POST",
|
|
data:{"isJson":true},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].PRODUCT_GROUP_NAME+"</option>";
|
|
});
|
|
|
|
$("#search_productGroup").append(appendCode);
|
|
|
|
var paramValue = "${param.search_productGroup}";
|
|
if(paramValue != ""){
|
|
$("#search_productGroup > option[value=${param.search_productGroup}]").attr("selected", "true");
|
|
$("#search_productGroup").trigger("change");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//제품 목록 조회
|
|
function fn_setProductTypeList(productGroup){
|
|
if(productGroup != ""){
|
|
$.ajax({
|
|
url:"/common/getProductList.do",
|
|
type:"POST",
|
|
data:{"isJson":true, "search_productGroupObjId":productGroup},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
appendCode += "<option value=''>선택</option>";
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].PRODUCT_NAME+"("+data[i].PRODUCT_CODE+")</option>";
|
|
});
|
|
|
|
$("#search_productType").children().remove();
|
|
$("#search_productType").append(appendCode);
|
|
$("#search_productType > option[value=${qnaMap.PROD_OBJID}]").attr("selected", "true");
|
|
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}else{
|
|
$("#search_productType").children().remove();
|
|
$("#search_productType").append("<option value=''>선택</option>");
|
|
}
|
|
}
|
|
|
|
//프로젝트 조회 Excel Export
|
|
function excelExport(){
|
|
document.form1.action = "/project/projectList.do?actionType=excel";
|
|
document.form1.submit();
|
|
}
|
|
|
|
//프로젝트에 해당하는 WBS Task 목록 PopUp을 호출한다.
|
|
function fn_openProjectWBSTask(projectObjId){
|
|
if(null != projectObjId){
|
|
window.open("/project/wbs/wbsTaskListDetailPopUp.do?objId="+projectObjId, "", "width=1520, height=960");
|
|
}else{
|
|
Swal.fire("잘못된 접근입니다.");
|
|
}
|
|
}
|
|
|
|
//선택된 프로젝트의 상태를 확정 상태로 변경한다.
|
|
function fn_changeProjectStatus(){
|
|
if(confirm("선택된 프로젝트를 확정 상태로 변경하시겠습니까? \n 확정된 프로젝트는 WBS Task를 구성합니다.")){
|
|
document.form1.status.value = "confirm";
|
|
$.ajax({
|
|
url:"/project/changeProjectStatus.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(data.result){
|
|
Swal.fire("변경되었습니다..");
|
|
fn_search();
|
|
}else{
|
|
Swal.fire("오류가 발생하였습니다.");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
//날짜 체크
|
|
function fn_checkDate(){
|
|
var fromDate = $("#search_fromDate").val().replace('-');
|
|
var toDate = $("#search_toDate").val().replace('-');
|
|
|
|
if(fromDate != '' && toDate != ''){
|
|
if(fromDate > toDate){
|
|
Swal.fire("날짜 입력이 올바르지 않습니다.");
|
|
fnc_date_empty();
|
|
}else{
|
|
return true;
|
|
}
|
|
}else{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
//메일 배포
|
|
function fn_sendMail(objId){
|
|
var params = "";
|
|
params += "?parentType=project";
|
|
params += "&objId="+objId;
|
|
window.open("/common/searchMailReceiver.do"+params, "", "width=480, height=367");
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<input type="hidden" name="actionType" id="actionType">
|
|
<input type="hidden" name="status" id="status">
|
|
<div id="pageMinWidth">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>기술자료관리</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="">구분</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</option>
|
|
<option value="">기술문서</option>
|
|
<option value="">제품카탈로그</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">대분류</label></td>
|
|
<td>
|
|
<select name="" id="" style="width:100%">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">중분류</label></td>
|
|
<td colspan="">
|
|
<select name="" id="" style="width:200px">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">소분류</label></td>
|
|
<td colspan="">
|
|
<select name="" id="" style="width:200px;">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">등록자</label></td>
|
|
<td>
|
|
<input type="text">
|
|
</td>
|
|
<td><label for="">등록일</label></td>
|
|
<td>
|
|
<input type="text" id="search_fromDate" name="search_fromDate" style="width:100px;" onchange="fn_checkDate()">-<input type="text" id="search_fromDate" name="search_fromDate" class="date_margin" style="width:100px;" onchange="fn_checkDate()">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="">개정이력</label></td>
|
|
<td colspan="">
|
|
<select name="" id="" style="">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">개정일</label></td>
|
|
<td>
|
|
<input type="text" id="search_fromDate" name="search_fromDate" style="width:100px;" onchange="fn_checkDate()">-<input type="text" id="search_fromDate" name="search_fromDate" class="date_margin" style="width:100px;" onchange="fn_checkDate()">
|
|
</td>
|
|
<td><label for="">문서번호</label></td>
|
|
<td>
|
|
<input type="text" style="width:100%;">
|
|
</td>
|
|
<td><label for="">문서명</label></td>
|
|
<td colspan="3">
|
|
<input type="text" style="width:100%;">
|
|
</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 documentRevisionPopupBtn" onclick="">
|
|
<input type="button" value="조회" class="plm_btns" onclick="">
|
|
<input type="button" value="등록" class="plm_btns documentRegistPopupBtn" id="">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="2%">
|
|
<col width="6%">
|
|
<col width="6%">
|
|
<col width="8%">
|
|
<col width="15%">
|
|
<col width="*">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
<col width="8%">
|
|
<col width="8%">
|
|
<col width="5%">
|
|
<col width="4%">
|
|
<col width="4%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td><input type="checkbox"></td>
|
|
<td>구분</td>
|
|
<td>대분류</td>
|
|
<td>중분류</td>
|
|
<td>소분류</td>
|
|
<td>문서명</td>
|
|
<td>문서번호</td>
|
|
<td>등록일</td>
|
|
<td>등록자</td>
|
|
<td>개정사유</td>
|
|
<td>개정일</td>
|
|
<td>개정이력</td>
|
|
<td>첨부파일</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="hover_tr">
|
|
<tr>
|
|
<td><input type="checkbox"></td>
|
|
<td>기술문서</td>
|
|
<td>기술표준</td>
|
|
<td>프로세스 표준화</td>
|
|
<td>제품개발</td>
|
|
<td>제품개발표준프로세스</td>
|
|
<td>TS-01-01</td>
|
|
<td>2018-8-15</td>
|
|
<td>기구설계팀 조항만</td>
|
|
<td>개발부품 추가</td>
|
|
<td>2018-11-15</td>
|
|
<td>개정(D)</td>
|
|
<td><a href="#" class="file_icon documentViewPopupBtn"></a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="pdm_page">
|
|
<input type="hidden" name="page" id="page" value="${nPage}">
|
|
<c:if test="${!empty projectList}">
|
|
<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>
|
|
<c:if test="${!empty projectList}">
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</c:if>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
<table class="pagenation_table">
|
|
<tr>
|
|
<td class="pagenation_pre"><a href="#">pre</a></td>
|
|
<td><a href="#" style="color:#f47624;">1</a></td>
|
|
<td><a href="#">2</a></td>
|
|
<td><a href="#">3</a></td>
|
|
<td><a href="#">4</a></td>
|
|
<td><a href="#">5</a></td>
|
|
<td class="pagenation_next"><a href="#">next</a></td>
|
|
</tr>
|
|
</table>
|
|
</section>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |