Files
wace_plm/WebContent/WEB-INF/view/project/wbsTaskFormPopUp2.jsp
chpark da06c4684c 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
2025-08-29 15:46:08 +09:00

175 lines
4.5 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>
</head>
<script>
$(document).ready(function(){
$("#btn_close").click(function(){
self.close(0);
});
fnc_getUserList2("user_id", "${resultMap.USER_ID}");
//fnc_getUserList("MANAGER_USER_ID", "", null, "${resultMap.USER_ID}");
$('.select2').select2();
});
</script>
<script>
function fn_setDeptList(selectboxId,selectedVal){
var resultList = fn_getDeptList();
$("#"+selectboxId).empty();
$("#"+selectboxId).append("<option value=''>선택</option>");
if(resultList != null && 0 < resultList.length){
for (var i = 0; i < resultList.length; i++) {
var commonCodeId = resultList[i].DEPT_CODE;
var commonCodeName = resultList[i].DEPT_NAME;
$("#"+selectboxId).append("<option value='"+commonCodeId+"'>"+commonCodeName+"</option>");
}
$("#"+selectboxId).val(selectedVal);
}
}
function fn_setUserList(selectboxId,deptCode,selectedVal){
var resultList = fn_getUserList(deptCode);
$("#"+selectboxId).empty();
$("#"+selectboxId).append("<option value=''>선택</option>");
if("" != deptCode && resultList != null && 0 < resultList.length){
for (var i = 0; i < resultList.length; i++) {
var commonCodeId = resultList[i].USER_ID;
var commonCodeName = resultList[i].USER_NAME;
$("#"+selectboxId).append("<option value='"+commonCodeId+"'>"+commonCodeName+"</option>");
}
$("#"+selectboxId).val(selectedVal);
}
}
function fn_getDeptList(){
var resultList;
$.ajax({
url:"/common/getDeptList.do",
type:"POST",
data:{"isJson":true},
dataType:"json",
async:false,
success:function(data){
resultList = data;
},
error: function(jqxhr, status, error){
}
});
return resultList;
}
function fn_getUserList(deltCode){
var resultList;
$.ajax({
url:"/common/searchUserList.do",
type:"POST",
data:{"isJson":true,"search_deptCode":deltCode},
dataType:"json",
async:false,
success:function(data){
resultList = data;
},
error: function(jqxhr, status, error){
}
});
return resultList;
}
//저장
function fn_save(){
if(confirm("저장하시겠습니까?")){
$.ajax({
url:"/project/saveWBSTaskInfo.do",
type:"POST",
data:$("#form1").serialize(),
dataType:"json",
success:function(data){
Swal.fire(data.msg);
if(data.result){
//opener.fn_search();
opener.fn_reload();
self.close();
}
},
error: function(jqxhr, status, error){
//return false;
}
});
}
/* if(fnc_validate()){
} */
}
</script>
<body>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="objid" id="objid" value="${param.OBJID}">
<input type="hidden" name="parent_objid" id="parent_objid" value="${param.PARENT_OBJID}">
<section class="business_popup_min_width">
<div class="plm_menu_name">
<h2>
<span>제품구분_UNIT 등록</span>
</h2>
</div>
<div id="businessPopupFormWrap">
<table class="pmsPopupForm" style="width:100%;margin: 10px 0 0 0; float:left;">
<colgroup>
<col width="20%"/>
<col width="*"/>
</colgroup>
<tr style="display:none">
<td class="input_title">
<label for="">순서</label>
</td>
<td>
<input type="text" class="textbox" name="task_seq" id="task_seq" value="${resultMap.TASK_SEQ}">
</td>
</tr>
<tr>
<td class="input_title">
<label for="">UNIT Name</label>
</td>
<td>
<input type="text" class="textbox" name="task_name" id="task_name" value="${resultMap.TASK_NAME}">
</td>
</tr>
<tr>
<td class="input_title">
<label for="">UNIT No</label>
</td>
<td>
<input type="text" class="textbox" name="unit_no" id="unit_no" value="${resultMap.UNIT_NO}">
</td>
</tr>
</table>
<div class="btn_wrap" style="clear:both;">
<div class="plm_btn_wrap_center">
<input type="button" value="저장" class="plm_btns" onclick="fn_save();">
<input type="button" value="닫기" id="btn_close" class="plm_btns">
</div>
</div>
</div>
</section>
</form>
</body>
</html>