Initial commit: WACE PLM with database initialization features
- 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
This commit is contained in:
@@ -0,0 +1,233 @@
|
||||
<%@ 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>
|
||||
|
||||
<!-- //JSTL 변수선언 -->
|
||||
<c:set var="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
|
||||
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
|
||||
<c:set var="nPage" value="${empty param.page?1:param.page}" />
|
||||
<c:set var="pageIndex" value="${(nPage-1)/10}" />
|
||||
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
|
||||
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function(){
|
||||
$(document).ready(function(){
|
||||
fnc_datepick();
|
||||
});
|
||||
|
||||
// 설계체크리스트 대분류 수정
|
||||
$(".btnModify").click(function(){
|
||||
var objId = $(this).attr("data-OBJID");
|
||||
var actionType = $(this).attr("data-actionType");
|
||||
|
||||
fnc_registFormPopup(objId, actionType);
|
||||
});
|
||||
|
||||
//엔터키로 조회
|
||||
$("input").keyup(function(e){
|
||||
if(e.keyCode == 13){
|
||||
document.form1.page.value = "1";
|
||||
fn_search();
|
||||
}
|
||||
});
|
||||
|
||||
//Form Popup
|
||||
$("#btnRegist").click(function(){
|
||||
fn_registFormPopup();
|
||||
});
|
||||
|
||||
//Detail Popup
|
||||
$(".btnDetail").click(function(){
|
||||
var objId = $(this).attr("data-OBJID");
|
||||
fn_registDetailPopup(objId);
|
||||
});
|
||||
|
||||
//change status
|
||||
$(".comboStatus").change(function(){
|
||||
var objId = $(this).attr("data-OBJID");
|
||||
var status = $(this).val();
|
||||
|
||||
fn_changeStatus(objId, status);
|
||||
});
|
||||
|
||||
//search
|
||||
$("#btnSearch").click(function(){
|
||||
document.form1.page.value = "1";
|
||||
fn_search();
|
||||
});
|
||||
});
|
||||
//조회 기능
|
||||
function fn_search(){
|
||||
document.form1.action = "/admin/designCheckListGroupList.do";
|
||||
document.form1.submit();
|
||||
}
|
||||
//엑셀 기능
|
||||
function excelExport(){
|
||||
document.form1.action = "/admin/designCheckListGroupList.do?actionType=excel";
|
||||
document.form1.submit();
|
||||
}
|
||||
|
||||
//설계체크리스트 대분류 등록 Form Popup
|
||||
function fn_registFormPopup(){
|
||||
url = "";
|
||||
var params = "?actionType=regist"
|
||||
url = "/admin/designCheckListGroupFormPopup.do" + params;
|
||||
window.open(url,"","width=500,height=275");
|
||||
}
|
||||
|
||||
//설계체크리스트 대분류 상세 Detail Popup
|
||||
function fn_registDetailPopup(objId){
|
||||
var params = "?objId="+objId;
|
||||
window.open("/admin/designCheckListGroupDetailPopup.do"+params,"designCheckListGroupDetailPopup","width=500,height=275");
|
||||
}
|
||||
|
||||
//설계체크리스트 대분류에 대한 상태값 수정
|
||||
function fn_changeStatus(objId, status){
|
||||
$.ajax({
|
||||
url:"/admin/changeDesignCheckListGroupStatus.do",
|
||||
type:"POST",
|
||||
data:{"objId":objId, "status":status},
|
||||
dataType:"text",
|
||||
success:function(data){
|
||||
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="form1" method="POST">
|
||||
<input type="hidden" name="actionType" id="actionType" value="" />
|
||||
<section id="commonSection" class="admin1">
|
||||
<div class="admin_title">
|
||||
<h2>설계체크리스트 대분류</h2>
|
||||
</div>
|
||||
<div id="adminFormWrap">
|
||||
<table id="adminForm">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label"><label>제품명</label></td>
|
||||
<td><input type="text" id="search_productName" name="search_productName" value="${param.search_productName}" ></td>
|
||||
<td class="label"><label>설계체크리스트 대분류명</label></td>
|
||||
<td><input type="text" id="search_groupName" name="search_groupName" value="${param.search_groupName}" maxlength="16"></td>
|
||||
<td class="label"><label>등록자</label></td>
|
||||
<td><input type="text" id="search_writer" name="search_writer" value="${param.search_writer}" maxlength="8"></td>
|
||||
<td class="label"><label>상태</label></td>
|
||||
<td>
|
||||
<select id="search_status" name="search_status">
|
||||
<option value="">선택</option>
|
||||
<option value="active" ${param.search_status eq 'active'?'selected':''}>활성화</option>
|
||||
<option value="inActive" ${param.search_status eq 'inActive'?'selected':''}>비활성화</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="adminBtnWrap">
|
||||
<input type="button" value="조회" class="btns" id="btnSearch">
|
||||
<input type="button" value="설계체크리스트 대분류명등록" class="btns" id="btnRegist">
|
||||
<input type="button" value="Excel Export" class="btns" onclick="excelExport()">
|
||||
</div>
|
||||
<div id="adminTableWrap">
|
||||
<div id="tableWrap">
|
||||
<table id="adminTable">
|
||||
<colgroup>
|
||||
<col width="4%" />
|
||||
<col width="*%" />
|
||||
<col width="*%" />
|
||||
<col width="10%" />
|
||||
<col width="10%" />
|
||||
<col width="5%" />
|
||||
<col width="10%" />
|
||||
</colgroup>
|
||||
<tr id="thead">
|
||||
<td>No</td>
|
||||
<td>제품명</td>
|
||||
<td>설계체크리스트 대분류명</td>
|
||||
<td>등록자</td>
|
||||
<td>등록일</td>
|
||||
<td>SEQ</td>
|
||||
<td>상태</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${!empty LIST}">
|
||||
<c:forEach var="info" items="${LIST}" varStatus="status">
|
||||
<tr>
|
||||
<td>${info.RNUM}</td>
|
||||
<td>${info.PROD_NAME}</td>
|
||||
<td title="${info.GROUP_NAME}"><a href="#" class="btnDetail" data-OBJID="${info.OBJID}">${info.GROUP_NAME}</a></td>
|
||||
<td>${info.WRITER_DEPT_NAME} ${info.WRITER_USER_NAME}</td>
|
||||
<td>${info.REGDATE}</td>
|
||||
<td>${info.SEQ}</td>
|
||||
<td>
|
||||
<select name="status" id="status" data-OBJID="${info.OBJID}" class="comboStatus">
|
||||
<option value="active" ${info.STATUS eq 'active'?'selected':''}>활성화</option>
|
||||
<option value="inActive" ${info.STATUS eq 'inActive'?'selected':''}>비활성화</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td align="center" colspan="7">조회된 정보가 없습니다.</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pdm_page">
|
||||
<input type="hidden" name="page" id="page" value="${nPage}">
|
||||
<c:if test="${!empty LIST}">
|
||||
<div class="page_pro">
|
||||
<table>
|
||||
<tr>
|
||||
<c:choose>
|
||||
<c:when test="${nPage > 1}">
|
||||
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td class="no_more_page">prev</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<c:forEach var="v" begin="${nPage>5?nPage-5:1}" end="${nPage>5?nPage+4:10}" step="1" varStatus="status">
|
||||
<c:if test="${status.index -1 < maxPage}">
|
||||
<c:choose>
|
||||
<c:when test="${status.index eq nPage}">
|
||||
<td><a href="#" class="now_page">${nPage}</a></td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:choose>
|
||||
<c:when test="${nPage < maxPage}">
|
||||
<td><a href="javascript:fnc_goNext('${nextPage}');">next</a></td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td class="no_more_page">next</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tr>
|
||||
</table>
|
||||
<p id="adminPageCount">총 ${totalCount}건</p>
|
||||
</div>
|
||||
</c:if>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user