- 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
145 lines
4.4 KiB
Plaintext
145 lines
4.4 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(){
|
|
$(document).ready(function(){
|
|
var actionType = "${actionType}";
|
|
if(actionType == 'modify'){
|
|
$('#overlapCheckId').remove();
|
|
$('#overlapStatus').remove();
|
|
}
|
|
});
|
|
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fnc_carOptionSubmit();
|
|
}
|
|
});
|
|
});
|
|
|
|
//중복확인
|
|
function fnc_overlapCheck(){
|
|
var result;
|
|
var optionName = $('#optionName').val();
|
|
if(!fnc_valitate('form1')){
|
|
$('#overlapStatus').empty();
|
|
$('#optionName').focus();
|
|
}else{
|
|
$.ajax({
|
|
url:"/admin/carOptionOverlapCheck.do",
|
|
type:"POST",
|
|
data:{"search_optionName":optionName},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(overlap){
|
|
if(overlap.OPTION_NAME == optionName){
|
|
$('#overlapStatus').text("등록된 정보입니다.");
|
|
$('#optionName').focus();
|
|
}else{
|
|
$('#overlapStatus').text("등록 가능한 정보입니다.");
|
|
$('#optionName').focus();
|
|
}
|
|
|
|
result = overlap;
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
return result;
|
|
}
|
|
}
|
|
|
|
//저장
|
|
function fnc_carOptionSubmit(){
|
|
|
|
var optionName = $('#optionName').val();
|
|
var optionDescription = $('#optionDescription').val();
|
|
var optionObjid = $('#optionObjid').val();
|
|
var status = $('#status').val();
|
|
var actionType = "${param.actionType}";
|
|
|
|
var overlap = fnc_overlapCheck();
|
|
|
|
if(overlap.OPTION_NAME == optionName && actionType == 'regist'){
|
|
Swal.fire("등록된 정보입니다.");
|
|
$('#optionName').focus();
|
|
}else if(overlap.OBJID == optionObjid || overlap.OPTION_NAME == undefined){
|
|
if(confirm("저장하시겠습니까?")){
|
|
$.ajax({
|
|
url:"/admin/mergeCarOption.do",
|
|
type:"POST",
|
|
data:{"optionName":optionName, "optionObjid":optionObjid, "status":status, "actionType":actionType, "optionDescription":optionDescription},
|
|
dataType:"text",
|
|
async:false,
|
|
success:function(data){
|
|
opener.fn_search();
|
|
self.close(0);
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}else{
|
|
Swal.fire("등록된 정보입니다.");
|
|
}
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form id="form1" name="form1" method="post">
|
|
<input type="hidden" id="optionObjid" name="optionObjid" value="${carOptionInfo.OBJID}">
|
|
<section id="commonSection" class="admin_option_min">
|
|
<div class="admin_title">
|
|
<h2>옵션(사양) 관리</h2>
|
|
</div>
|
|
<div id="adminPopupFormWrap">
|
|
<table id="adminPopupForm">
|
|
<colgroup>
|
|
<col width="37%" />
|
|
<col width="63%" />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td><label>옵션명</label></td>
|
|
<td><input type="text" title="옵션" id="optionName" value="${carOptionInfo.OPTION_NAME}" maxlength="100" required></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>설명</label></td>
|
|
<td><input type="text" id="optionDescription" value="${carOptionInfo.DESCRIPTION}" maxlength="20"></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>활성화 여부</label></td>
|
|
<td>
|
|
<select name="status" id="status">
|
|
<option value="active" ${carOptionInfo.STATUS eq 'active'?'selected':''}>활성화</option>
|
|
<option value="inActive" ${carOptionInfo.STATUS eq 'inActive'?'selected':''}>비활성화</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div id="adminPopupBtnWrap">
|
|
<span id="overlapStatus"></span>
|
|
<input type="button" value="저장" class="btns" onclick="javascript:fnc_carOptionSubmit()">
|
|
<input type="button" value="중복확인" class="btns" id="overlapCheckId" onclick="javascript:fnc_overlapCheck()">
|
|
</div>
|
|
</div>
|
|
<div class="btnCenterWrap">
|
|
<center class="center_btns_wrap">
|
|
<input type="button" value="닫기" name="" id="btn_close" class="btns" onclick="javascript:self.close();">
|
|
</center>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |