- 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
335 lines
10 KiB
Plaintext
335 lines
10 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@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>
|
|
<style type="text/css">
|
|
tr > td {
|
|
text-align:center;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
|
|
if("${actionType}"=="U"){
|
|
$("#btnSave").remove();
|
|
}
|
|
|
|
$('.select2').select2();
|
|
|
|
//첨부파일
|
|
//fnc_setFileDropZone("contractMgmt01DropZone", "${objId}", "contractMgmt01", "contractMgmt01", "fileAreaDraw",false,null,null);
|
|
//fnc_setFileDropZone("contractMgmt02DropZone", "${objId}", "contractMgmt02", "contractMgmt02", "fileAreaDraw",false,null,null);
|
|
//fileAreaDraw();
|
|
|
|
/* $("#btnUpload").click(function(){
|
|
var files = $("#file1")[0].files;
|
|
if(files.length > 0){
|
|
fnc_fileMultiUpload(files, null, "${objId}", "contractMgmt01", "contractMgmt01", null, "fileAreaDraw");
|
|
//file객체 초기화
|
|
$("#file1").val("");
|
|
}else{
|
|
Swal.fire("선택된 File이 없습니다.");
|
|
}
|
|
|
|
});
|
|
$("#btnUpload1").click(function(){
|
|
var files = $("#file2")[0].files;
|
|
if(files.length > 0){
|
|
fnc_fileMultiUpload(files, null, "${objId}", "contractMgmt02", "contractMgmt02", null, "fileAreaDraw");
|
|
//file객체 초기화
|
|
$("#file2").val("");
|
|
}else{
|
|
Swal.fire("선택된 File이 없습니다.");
|
|
}
|
|
|
|
}); */
|
|
|
|
//날짜
|
|
_fnc_datepick();
|
|
|
|
//저장
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
$("#btnClose").click(function(){
|
|
self.close();
|
|
});
|
|
|
|
|
|
//SR자료등록 팝업
|
|
$(".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+"&callbackFnc=file_check";
|
|
var url = "/common/FileRegistPopup.do"+params;
|
|
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
});
|
|
});
|
|
|
|
/* function addComma(data) {
|
|
return data.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
} */
|
|
|
|
function file_check(doctype,filesize){
|
|
//파일 다시그리기
|
|
|
|
if(filesize > 0){
|
|
$("#"+doctype).removeClass("file_icon file_empty_icon");
|
|
$("#"+doctype).addClass("file_icon");
|
|
}else{
|
|
$("#"+doctype).removeClass("file_icon file_empty_icon");
|
|
$("#"+doctype).addClass("file_empty_icon");
|
|
}
|
|
|
|
}
|
|
|
|
function fn_save(){
|
|
if(fnc_valitate("form1")){
|
|
var message="수정";
|
|
if("${actionType}"=='regist'){
|
|
message="등록";
|
|
}
|
|
if(confirm(message+"하시겠습니까?")){
|
|
// 날짜 - 제거
|
|
/* var $dateinput = $("input.date_icon");
|
|
for(var i=0; i<$dateinput.length; i++){
|
|
$dateinput.eq(i).val( $dateinput.eq(i).val().replace(/-/gi,"") );
|
|
} */
|
|
|
|
$.ajax({
|
|
url:"/contractMgmt/saveContractMgmtReviewInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
opener.fn_search();
|
|
self.close();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fnc_datepick(){
|
|
var $dateinput = $("input.date_icon");
|
|
for(var i=0; i<$dateinput.length; i++){
|
|
$dateinput.eq(i).attr("size","10");
|
|
$dateinput.eq(i).datepicker({
|
|
changeMonth:true,
|
|
changeYear:true
|
|
});
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${objId}">
|
|
<input type="hidden" name="option" id="option">
|
|
<input type="hidden" name="actionType" id="actionType" value="${actionType}">
|
|
|
|
<section>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>영업관리_검토내용등록</span>
|
|
</h2>
|
|
</div>
|
|
|
|
<div id="businessPopupFormWrap">
|
|
<h4><span>검토내용</span></h4>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="20%">
|
|
<col width="20%">
|
|
<col width="20%">
|
|
<col width="20%">
|
|
<col width="20%">
|
|
<col width="10%">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title"><label for="category1_cd">업무구분</label></td>
|
|
<td class="input_title"><label for="chg_user_id">담당자</label></td>
|
|
<!-- <td class="input_title"><label for="plan_date">계획일</label></td>
|
|
<td class="input_title"><label for="complete_date">완료일</label></td> -->
|
|
<td class="input_title"><label for="">차수</label></td>
|
|
<td class="input_title"><label for="">제출일</label></td>
|
|
<td class="input_title"><label for="result_cd">검토결과</label></td>
|
|
<td class="input_title"><label for="result_cd">첨부파일</label></td>
|
|
</tr>
|
|
<tr>
|
|
<%-- <td class="input_sub_title">
|
|
<select name="category1_cd" id="category1_cd" required reqTitle="구분1" type="select" class="select2">
|
|
<option value="">선택</option>${code_map.category1_cd}
|
|
</select>
|
|
</td> --%>
|
|
|
|
<td class="input_sub_title">
|
|
제안서
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<select name="chg_user_id" id="chg_user_id" reqTitle="담당자" type="select" class="select2">
|
|
<option value="">선택</option>${code_map.chg_user_id}
|
|
</select>
|
|
</td>
|
|
|
|
<%-- <td class="input_sub_title">
|
|
<input type="text" class="date_icon" name="plan_date" id="plan_date" value="${info.PLAN_DATE}" reqTitle="계획일" />
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<input type="text" class="date_icon" name="complete_date" id="complete_date" value="${info.COMPLETE_DATE}" reqTitle="완료일" />
|
|
</td> --%>
|
|
|
|
<c:choose>
|
|
<c:when test="${info.FILE_CNT3 eq '0'}">
|
|
<td></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="input_sub_title">
|
|
${info.FILE_CNT3}차
|
|
</td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
<td class="input_sub_title">
|
|
${info.FILE_DATE3}
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<select name="result_cd" id="result_cd" reqTitle="결과" type="select" class="select2">
|
|
<option value="">선택</option>${code_map.result_cd}
|
|
</select>
|
|
</td>
|
|
<td style="text-align:center;">
|
|
<a href="#" id="contractMgmt03" class="File file_${info.FILE_CNT3 eq 0 or info.FILE_CNT3 eq null?'empty_':''}icon" data-OBJID="${objId}" data-docType="contractMgmt03" data-docTypeName="contractMgmt03"></a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td class="input_sub_title">
|
|
사양서
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<select name="spec_user_id" id="spec_user_id" reqTitle="사양담당자" type="select" class="select2">
|
|
<option value="">선택</option>${code_map.spec_user_id}
|
|
</select>
|
|
</td>
|
|
|
|
<%-- <td class="input_sub_title">
|
|
<input type="text" class="date_icon" name="spec_plan_date" id="spec_plan_date" value="${info.SPEC_PLAN_DATE}" reqTitle="사양계획일" />
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<input type="text" class="date_icon" name="spec_comp_date" id="spec_comp_date" value="${info.SPEC_COMP_DATE}" reqTitle="사양완료일" />
|
|
</td> --%>
|
|
<c:choose>
|
|
<c:when test="${info.FILE_CNT4 eq '0'}">
|
|
<td></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="input_sub_title">
|
|
${info.FILE_CNT4}차
|
|
</td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
<td class="input_sub_title">
|
|
${info.FILE_DATE4}
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<select name="spec_result_cd" id="spec_result_cd" reqTitle="사양검토결과" type="select" class="select2">
|
|
<option value="">선택</option>${code_map.spec_result_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td style="text-align:center;">
|
|
<a href="#" id="contractMgmt04" class="File file_${info.FILE_CNT4 eq 0 or info.FILE_CNT4 eq null?'empty_':''}icon" data-OBJID="${objId}" data-docType="contractMgmt04" data-docTypeName="contractMgmt04"></a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_sub_title">
|
|
견적서
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<select name="est_user_id" id="est_user_id" reqTitle="견적담당자" type="select" class="select2">
|
|
<option value="">선택</option>${code_map.est_user_id}
|
|
</select>
|
|
</td>
|
|
|
|
<%-- <td class="input_sub_title">
|
|
<input type="text" class="date_icon" name="est_plan_date" id="est_plan_date" value="${info.EST_PLAN_DATE}" reqTitle="계획일" />
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<input type="text" class="date_icon" name="est_comp_date" id="est_comp_date" value="${info.EST_COMP_DATE}" reqTitle="완료일" />
|
|
</td> --%>
|
|
|
|
<c:choose>
|
|
<c:when test="${info.FILE_CNT5 eq '0'}">
|
|
<td></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="input_sub_title">
|
|
${info.FILE_CNT5}차
|
|
</td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
|
|
<td class="input_sub_title">
|
|
${info.FILE_DATE5}
|
|
</td>
|
|
|
|
<td class="input_sub_title">
|
|
<select name="est_result_cd" id="est_result_cd" reqTitle="결과" type="select" class="select2">
|
|
<option value="">선택</option>${code_map.est_result_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td>
|
|
<a href="#" id="contractMgmt05" class="File file_${info.FILE_CNT5 eq 0 or info.FILE_CNT5 eq null ?'empty_':''}icon" data-OBJID="${objId}" data-docType="contractMgmt05" data-docTypeName="contractMgmt05"></a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<c:choose>
|
|
<c:when test="${actionType eq 'regist'}">
|
|
<input type="button" value="저장" id="btnSave" class="plm_btns">
|
|
</c:when>
|
|
<c:otherwise>
|
|
<input type="button" value="수정" id="btnSave" class="plm_btns">
|
|
</c:otherwise>
|
|
</c:choose>
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |