- 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
313 lines
9.8 KiB
Plaintext
313 lines
9.8 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(){
|
|
//첨부파일
|
|
suggestAreaDraw();
|
|
designAreaDraw();
|
|
|
|
$(document).ready(function(){
|
|
|
|
//close
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
//Edit Mode
|
|
$("#btnModify").click(function(){
|
|
fn_goEdit();
|
|
});
|
|
|
|
//확정
|
|
$("#btnComplete").click(function(){
|
|
fn_complete();
|
|
});
|
|
|
|
$(".btnDetailPart").click(function(){
|
|
var partNo = $(this).attr("data-PART_NO");
|
|
fnc_openPartDetailPopup("${connectUserId}", partNo);
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
//첨부파일 목록을 가져온다.
|
|
function suggestAreaDraw(){
|
|
fn_pptFileCallback("suggest","${suggestPptCode}");
|
|
}
|
|
|
|
function designAreaDraw(){
|
|
fn_pptFileCallback("design","${designPptCode}");
|
|
}
|
|
|
|
//첨부파일 목록을 가져온다.
|
|
function fn_pptFileCallback(areaId, fileType){
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${info.OBJID}", "docType":fileType},
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(0 <data.length){
|
|
|
|
$("#"+areaId+"FileArea").empty();
|
|
$.each(data, function(i){
|
|
var appendText ="";
|
|
appendText+= "<tr>";
|
|
appendText+= " <td title='"+data[i].REAL_FILE_NAME+"' class='align_l'><a href='javascript:fnc_downloadFile(\""+data[i].OBJID+"\")'> "+data[i].REAL_FILE_NAME+"</a></td>";
|
|
appendText+= " <td title='"+data[i].DEPT_NAME+"' '"+data[i].USER_NAME+"'>"+data[i].DEPT_NAME+" "+ data[i].USER_NAME+"</td>"
|
|
appendText+= " <td title='"+data[i].REGDATE+"'>"+data[i].REGDATE+"</td>";
|
|
appendText+= "</tr>";
|
|
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
$("#"+areaId+"FileZone").hide();
|
|
});
|
|
}else{
|
|
$("#"+areaId+"FileArea").empty();
|
|
$("#"+areaId+"FileZone").show();
|
|
var appendText = "";
|
|
appendText +="<tr>";
|
|
appendText += "<td colspan='3'>첨부 파일이 없습니다.</td>";
|
|
appendText +="</tr>";
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
}
|
|
},
|
|
error: function(jqxhr,status,error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//첨부파일 미리보기
|
|
function openImagePopUp(url){
|
|
var img=new Image();
|
|
img.src=url;
|
|
var img_width=img.width;
|
|
var img_height=img.height;
|
|
var win_width=img.width+25;
|
|
var height=img.height+30;
|
|
|
|
window.open(url,"structureListShapeImgPopUp","width="+img_width+",height="+height+", menubars=no, scrollbars=yes'");
|
|
}
|
|
|
|
//확정
|
|
function fn_complete(){
|
|
if(confirm("확정하시겠습니까?")){
|
|
var objId = $("#objId").val();
|
|
$.ajax({
|
|
url:"/structureReviewReport/completeStructureReviewReportInfo.do",
|
|
type:"POST",
|
|
data:{"objId":objId},
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
opener.fn_search();
|
|
self.close(0);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
//edit mode
|
|
function fn_goEdit(){
|
|
//if(confirm("Edit Mode로 변경하시겠습니까?")){
|
|
document.form1.action = "/structureReviewReport/structureReviewReportFormPopup.do";
|
|
document.form1.submit();
|
|
//}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${info.OBJID}" />
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>구조검토 제안서</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<div class="form_popup_title"> 구조검토제안서 등록</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="14%">
|
|
<col width="*">
|
|
<col width="14%">
|
|
<col width="*">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">지역</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.REGION_TITLE}">${info.REGION_TITLE}</td>
|
|
<td class="input_title" >
|
|
<label for="">고객사</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.OEM_NAME}">${info.OEM_NAME}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">차종</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.CAR_CODE}">${info.CAR_CODE}</td>
|
|
<td class="input_title" >
|
|
<label for="">제안일</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.REGDATE}">${info.REGDATE}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">제품군</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.PROD_GROUP_NAME}">${info.PROD_GROUP_NAME}</td>
|
|
<td class="input_title" >
|
|
<label for="">제품</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.PROD_NAME}">${info.PROD_NAME}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">품번</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.PART_NO}"><a href="#" class="btnDetailPart" data-PART_NO="${info.PART_NO}">${info.PART_NO}</a></td>
|
|
<td class="input_title" >
|
|
<label for="">품명</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.PART_NAME}"><a href="#" class="btnDetailPart" data-PART_NO="${info.PART_NO}">${info.PART_NAME}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">단계</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.STEP1_TITLE} ${info.STEP2}">${info.STEP1_TITLE} ${info.STEP2}</td>
|
|
<td class="input_title" >
|
|
<label for="">유형</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="유형 ${info.TYPE2}">유형 ${info.TYPE2}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">제목</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" align="left" title="${info.SUBJECT}"> ${info.SUBJECT}</td>
|
|
<td class="input_title" >
|
|
<label for="">과거차대상유무</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.CONTINUAL_MNG_TYPE_TITLE}">${info.CONTINUAL_MNG_TYPE_TITLE}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">문제점</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" title="${info.PROBLEM_CONTENTS}">
|
|
<textarea name="problemContents" id="problemContents" placeholder="내용을 입력하세요." style="width:90%; height:100px;" title="${info.PROBLEM_CONTENTS}" readonly>${info.PROBLEM_CONTENTS}</textarea>
|
|
</td>
|
|
<td class="input_title" >
|
|
<label for="">제안내용</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom" >
|
|
<textarea name="suggestContents" id="suggestContents" placeholder="내용을 입력하세요." style="width:90%; height:100px;" title="${info.SUGGEST_CONTENTS}">${info.SUGGEST_CONTENTS}</textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" >
|
|
<label for="">조치결과</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom">
|
|
<c:choose>
|
|
<c:when test="${info.ACTION_RESULT eq 'reflect'}">반영</c:when>
|
|
<c:when test="${info.ACTION_RESULT eq 'review'}">검토</c:when>
|
|
<c:when test="${info.ACTION_RESULT eq 'reject'}">불가</c:when>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">구조제안서<br> (제안자등록)</label>
|
|
</td>
|
|
<td colspan="3">
|
|
<div>
|
|
<table class="project_form_in_table" style="width:100%;">
|
|
<colgroup>
|
|
<col width="*">
|
|
<col width="25%">
|
|
<col width="20%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td>첨부파일명</td>
|
|
<td>등록자</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="" style="width:100%;height:25px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="*">
|
|
<col width="25%">
|
|
<col width="20%">
|
|
</colgroup>
|
|
<tbody id="suggestFileArea"></tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">설계의견<br> (설계담당자등록)</label>
|
|
</td>
|
|
<td colspan="3">
|
|
<div>
|
|
<table class="project_form_in_table" style="width:100%; border-right:1px solid #ccc;">
|
|
<colgroup>
|
|
<col width="*">
|
|
<col width="25%">
|
|
<col width="20%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td>첨부파일명</td>
|
|
<td>등록자</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="" style="width:100%;height:25px; border-bottom:1px solid #ccc;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="*">
|
|
<col width="25%">
|
|
<col width="20%">
|
|
</colgroup>
|
|
<tbody id="designFileArea"></tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<c:if test="${info.STATUS ne 'complete'}">
|
|
<input type="button" value="Edit" id="btnModify" class="plm_btns">
|
|
</c:if>
|
|
<c:if test="${info.STATUS eq 'suggestComplete'}">
|
|
<input type="button" value="확정" id="btnComplete" class="plm_btns">
|
|
</c:if>
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |