- 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
268 lines
7.7 KiB
Plaintext
268 lines
7.7 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" %>
|
|
<%
|
|
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
|
|
String userId = CommonUtils.checkNull(person.getUserId());
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
</head>
|
|
<style>
|
|
.pmsPopupForm td {height:24px; font-size: 12px;border-bottom:solid 1px #ccc;border-left:solid 1px #ccc;padding:0px 2px;}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(to bottom, #f5d78e, #f5d78e);
|
|
}
|
|
</style>
|
|
<script>
|
|
/* var isEditMode = "${empty info?'false':'true'}"; */
|
|
var isEditMode = "true";
|
|
var oEditors = [];
|
|
$(document).ready(function(){
|
|
|
|
nhn.husky.EZCreator.createInIFrame({
|
|
oAppRef: oEditors,
|
|
elPlaceHolder: 'content',
|
|
sSkinURI: '/SE2/SmartEditor2Skin.html',
|
|
fCreator: 'createSEditor2',
|
|
htParams : {
|
|
bUseToolbar : true,
|
|
bUseVerticalResizer : true,
|
|
bUseModeChanger : true,
|
|
}
|
|
});
|
|
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
//수정
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
fnc_setFileDropZone("MasterFileDropZone", "${objId}", "WORK_TEST_RESULT", "WORK_TEST_RESULT", "fileAreaDraw",false,null,null);
|
|
//파일표시
|
|
fileAreaDraw();
|
|
|
|
});
|
|
|
|
|
|
function fileAreaDraw(){
|
|
fn_fileCallback("WORK_TEST_RESULT","WORK_TEST_RESULT");
|
|
}
|
|
|
|
function fn_deletephone(num){
|
|
$("#row"+num).remove();
|
|
}
|
|
//첨부파일 목록을 가져온다.
|
|
function fn_fileCallback(areaId,fileType){
|
|
$.ajax({
|
|
url:"/common/getFileList.do",
|
|
type:"POST",
|
|
data:{"targetObjId":"${objId}", "docType":fileType},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
|
|
if(0 < data.length){
|
|
//첨부파일 목록 영역 show
|
|
$("#"+areaId+"FileArea").empty();
|
|
|
|
if(0 < $("#"+areaId+"DefaultRow").length){
|
|
$("#"+areaId+"DefaultRow").hide();
|
|
}
|
|
|
|
$.each(data, function(i){
|
|
|
|
var appendText = "";
|
|
if("WORK_ORDER" == areaId){
|
|
var path = data[i].FILE_PATH;
|
|
var fileName = data[i].SAVED_FILE_NAME;
|
|
var fileExt = data[i].UPPER_FILE_EXT;
|
|
appendText += "<colgroup>";
|
|
appendText +=" <col width='10%'>";
|
|
appendText +=" <col width='70%'>";
|
|
appendText +=" <col width='20%'>";
|
|
appendText +=" </colgroup>";
|
|
appendText+= "<tr>";
|
|
appendText+= " <td>"+[i+1]+"</td>";
|
|
appendText+= " <td class='align_l'><a href='javascript:fnc_downloadFile(\""+data[i].OBJID+"\")'> "+data[i].REAL_FILE_NAME+"</a>";
|
|
appendText+= "<a href='javascript:fileDelete(\""+data[i].OBJID+"\",\""+areaId+"\")'><div class='delete_btn'></div></a>";
|
|
appendText+= "</td>";
|
|
appendText+= " <td>"+data[i].REGDATE+"</td>";
|
|
appendText+= "</tr>";
|
|
}
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
});
|
|
}else{
|
|
$("#"+areaId+"DropZone").show();
|
|
$("#"+areaId+"AttachFileList").hide();
|
|
$("#"+areaId+"FileArea").empty();
|
|
var appendText = "";
|
|
appendText += "<tr>";
|
|
appendText += "<td>첨부 파일이 없습니다.</td>";
|
|
appendText +="</tr>";
|
|
$("#"+areaId+"FileArea").append(appendText);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}//파일 첨부 END
|
|
|
|
//저장
|
|
function fn_save(){
|
|
//에디터 데이터 추출
|
|
oEditors.getById["content"].exec("UPDATE_CONTENTS_FIELD",[]);
|
|
var flag = false;
|
|
var contents = $("#content").val();
|
|
$("#test_contents").val(contents);
|
|
if(fnc_valitate("form1")){
|
|
if(confirm("저장하시겠습니까?")){
|
|
var param = $("#form1").serialize();
|
|
$.ajax({
|
|
url:"/Production/TestResultFormSave.do",
|
|
type:"POST",
|
|
data: param,
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(data=="SUCCESS"){
|
|
Swal.fire('저장되었습니다.');
|
|
opener.fn_search();
|
|
self.close();
|
|
}else{
|
|
Swal.fire('저장에 실패했습니다 관리자 에게 문의해주세요.');
|
|
opener.fn_search();
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/*첨부 파일 삭제 */
|
|
function fileDelete(fileObjId,areaId){
|
|
var type =areaId;
|
|
if(confirm("파일을 삭제하시겠습니까?")){
|
|
$.ajax({
|
|
url:"/common/deleteFileInfo.do",
|
|
type:"POST",
|
|
data:{"objId":fileObjId},
|
|
dataType:"json",
|
|
async:true,
|
|
success:function(data){
|
|
// Swal.fire(type)
|
|
fn_fileCallback("WORK_ORDER","WORK_ORDER");
|
|
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
</script>
|
|
<body>
|
|
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="ORDER_PLAN_OBJID" id="ORDER_PLAN_OBJID" value="${paramMap.PARENT_OBJID}">
|
|
<input type="hidden" name="PARENT_OBJID" id="CONTRACT_OBJID" value="${paramMap.PARENT_OBJID}">
|
|
<input type="hidden" name="PRODUCT_GROUP" id="PRODUCT_GROUP" value="${paramMap.PRODUCT_GROUP}">
|
|
<input type="hidden" name="PRODUCT" id="PRODUCT" value="${paramMap.PRODUCT}">
|
|
<input type="hidden" name="objId" id="objId" value="${objId}">
|
|
|
|
<input type="hidden" name="test_contents" id="test_contents">
|
|
<section>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>검사성적서 등록</span>
|
|
</h2>
|
|
</div>
|
|
|
|
<div id="businessPopupFormWrap" >
|
|
|
|
<table class="pmsPopupForm" style="margin-top:8px;width:100%; border:3px solid #000000;">
|
|
<tr style="width:100%;">
|
|
<td style="border-right:1px solid #000000;text-align:center;" >
|
|
<textarea id="content" rows="20" cols="100" style="width:100%; height: 600px;">${info.TEST_CONTENTS}</textarea>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
|
|
<table>
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="40%">
|
|
<col width="10%">
|
|
<col width="40%">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title" style="height:140px;">
|
|
<label for="">첨부파일</label>
|
|
</td>
|
|
<td colspan="3" style="vertical-align: top;">
|
|
<div id="MasterFileDropZone" class="dropzone"style="width:99% !important;">Drag & Drop Files Here</div>
|
|
<div class="project_form_in_table"style="width:100%" id="WORK_ORDERFileAreaTable" >
|
|
<div style="overflow-y:scroll;">
|
|
<table class=""fileListscrollThead"" style="width:100%;">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="70%">
|
|
<col width="20%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>No</td>
|
|
<td>첨부파일명</td>
|
|
<td>등록일</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="plm_scroll_table" style="height:85px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="20%">
|
|
</colgroup>
|
|
</table>
|
|
<table id="WORK_ORDERFileArea" class="fileListscrollTbody">
|
|
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<!-- <input type="button" value="행추가" class="plm_btns" id="btnAdd"> -->
|
|
<input type="button" value="저장" id="btnSave" class="plm_btns">
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |