- 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
132 lines
3.8 KiB
Plaintext
132 lines
3.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">
|
|
<link rel="stylesheet" href="css/basic.css">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
|
|
<script>
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
var actionType = "${actionType}";
|
|
if(actionType == 'modify'){
|
|
$('#overlapCheckId').remove();
|
|
$('#overlapStatus').remove();
|
|
}
|
|
});
|
|
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fnc_materialSubmit();
|
|
}
|
|
});
|
|
|
|
//사원조회
|
|
$(".searchEmployee").click(function(){
|
|
var params = "";
|
|
params += "?title=인수담당자 지정";
|
|
params += "&callback=fn_searchEmployeeCallback";
|
|
window.open("/common/searchEmployeePopup.do"+params, "", "width=480, height=400");
|
|
});
|
|
|
|
//사원조회
|
|
$("#userName").click(function(){
|
|
var params = "";
|
|
params += "?title=인수담당자 지정";
|
|
params += "&callback=fn_searchEmployeeCallback";
|
|
window.open("/common/searchEmployeePopup.do"+params, "", "width=480, height=400");
|
|
});
|
|
|
|
//저장
|
|
$(".btnSave").click(function(){
|
|
if(confirm("저장하시겠습니까?")){
|
|
fn_save();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
//사원조회 callback function
|
|
function fn_searchEmployeeCallback(userId, userName, deptName){
|
|
//Swal.fire("parent "+"userId : "+userId+", userName : "+userName+", deptName : "+deptName);
|
|
$("#userName").val("["+deptName+"] "+userName);
|
|
$("#userId").val(userId);
|
|
}
|
|
|
|
function fn_save(){
|
|
$.ajax({
|
|
url:"/admin/saveTakeOverPICInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true" || data.result == true || data.result){
|
|
opener.fn_refreshTakeOverList();
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<section id="commonSection">
|
|
<div class=admin_title>
|
|
<h2>생산처 인수담당자 관리</h2>
|
|
</div>
|
|
<div id="adminPopupFormWrap">
|
|
<form id="form1" name="form1" method="post">
|
|
<input type="hidden" id="producingCompany" name="producingCompany" value="${info.PRODUCING_COMPANY}">
|
|
<table id="adminPopupForm">
|
|
<colgroup>
|
|
<col width="37%" />
|
|
<col width="63%" />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td><label>생산처명</label></td>
|
|
<td>${info.PRODUCING_COMPANY}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>인수담당자</label></td>
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${empty info.USER_ID}">
|
|
<input type="text" name="userName" id="userName" value="" style="width:90%;" readonly><span class="search_btn searchEmployee">
|
|
<input type="hidden" name="userId" id="userId" value="" />
|
|
</c:when>
|
|
<c:otherwise>
|
|
<input type="text" name="userName" id="userName" value="[${info.DEPT_NAME}] ${info.USER_NAME}" style="width:90%;" readonly><span class="search_btn searchEmployee">
|
|
<input type="hidden" name="userId" id="userId" value="${info.USER_ID}" />
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div id="adminPopupBtnWrap">
|
|
<span id="overlapStatus"></span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="btnCenterWrap">
|
|
<center class="center_btns_wrap">
|
|
<input type="button" value="저장" class="btns btnSave">
|
|
<input type="button" value="닫기" name="" id="btn_close" class="btns" onclick="javascript:self.close();">
|
|
</center>
|
|
</div>
|
|
</secsion>
|
|
</body>
|
|
</html> |