Files
wace_plm/WebContent/WEB-INF/view/salesMng/salesRequestMngRegListNew.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

239 lines
7.6 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_jqGrid.jsp"%>
<%
String title = CommonUtils.checkNull(request.getParameter("title"));
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=Constants.SYSTEM_NAME%></title>
<script>
$(document).ready(function(){
$('.select2').select2();
// 체크박스 전체 체크
$("#allCheck").click(function() {
if ($("#allCheck").prop("checked")) {
$("input[type=checkbox]").prop("checked", true);
} else {
$("input[type=checkbox]").prop("checked", false);
}
});
// 엔터키로 조회(?)
$("input[type=text]").keyup(function(e){
if(e.keyCode == 13){
$("#btnSearch").trigger("click");
}
});
$("#btnSearch").click(function(){
fn_search();
});
$("#btnOrderReg").click(function(){
fn_openSalesRequestPopUp("");
});
$("#btnDelete").click(function(){
fn_delete();
});
// 결제 상세 팝업 (상태)
$(".btnApprovalDetail").click(function(){
var popup_width = 650;
var popup_height = 400;
var target = "approvalDetailPopup";
var approvalObjId = $(this).attr("data-APPROVAL_OBJID");
var routeObjId = $(this).attr("data-ROUTE_OBJID");
var params = "?approvalObjId="+approvalObjId;
params += "&routeObjId="+routeObjId;
//Swal.fire("params : "+params);
var url = "/approval/approvalDetail.do"+params;
fn_centerPopup(popup_width, popup_height, url, target);
});
fnc_getAjaxProductMgmtList("SEARCH_PRODUCT_CODE", "", "", "${param.SEARCH_PRODUCT_CODE}");
});
function fn_delete(){
var selectedObj = $("input[name=REQUEST_OBJID]:checked");
if(0 < selectedObj.length){
if(confirm("선택된 정보를 삭제하시겠습니까?")){
$.ajax({
url:"/salesMngNew/deleteSalesRequestMng.do",
type:"POST",
data:$("#form1").serialize(),
dataType:"json",
success:function(data){
Swal.fire(data.msg);
fn_search();
},
error: function(jqxhr, status, error){
}
});
}
}else{
Swal.fire("선택된 정보가 없습니다.");
return false;
}
}
//구매의뢰 요청 팝업
function fn_openSalesRequestPopUp(objId){
var popup_width = 1100;
var popup_height = 600;
var target = "salesRequestPopUp";
var url = "";
if("" == objId){
url = "/salesMngNew/salesRequestFormPopUp.do?SALES_REQUEST_MASTER_OBJID="+objId;
}else{
url = "/salesMngNew/salesRequestDetailPopUp.do?SALES_REQUEST_MASTER_OBJID="+objId;
}
fn_centerPopup(popup_width, popup_height, url, target);
}
function fn_search() {
var form = document.form1;
form.action = "/salesMngNew/salesRequestMngRegListNew.do";
form.submit();
console.log("form1:"+document.form1);
}
</script>
</head>
<body class="backcolor">
<form name="hiddenForm" id="hiddenForm" method="post">
<input type="hidden" name="OBJID" id="OBJID">
</form>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="actionType" id="actionType" value="" />
<div class="min_part_enroll">
<div class="content-box">
<div class="content-box-s">
<div class="plm_menu_name">
<h2>
<span>물품구매요청서 등록</span>
</h2>
</div>
<div id="plmSearchZon">
<table>
<tbody>
<tr>
<td class="align_r"><label for="" class="">제목</label></td>
<td><input type="text" name="title" id="title" value="<%=title%>"></td>
</tr>
</tbody>
</table>
</div>
<div class="contents_page_basic_margin">
<div class="btn_wrap">
<div class="plm_btn_wrap">
<input type="button" value="물품구매요청서 등록" class="plm_btns" id="btnOrderReg">
<input type="button" value="삭제" class="plm_btns" id="btnDelete">
<input type="button" value="조회" class="plm_btns" id="btnSearch">
</div>
</div>
<div class="plm_table_wrap">
<div style="overflow-y:scroll;">
<table class="plm_table">
<colgroup>
<col width="2%" />
<col width="4%" /> <!-- No -->
<col width="8%" /> <!-- 구매의뢰번호 -->
<col width="*" /> <!-- 대표 파트 -->
<!-- <col width="8%" /> --> <!-- 구매담당자 -->
<col width="8%" /> <!-- 요청자 -->
<col width="7%" /> <!-- 등록일 -->
<col width="8%" /> <!-- 요청자 -->
<col width="7%" /> <!-- 등록일 -->
<col width="7%" /> <!-- 상태 -->
</colgroup>
<tr class="plm_thead">
<td><input type="checkbox" name="allCheck" id="allCheck"></td>
<td>No</td>
<td>구매의뢰번호</td>
<td>제목</td>
<!-- <td>구매담당자</td> -->
<td>요청자</td>
<td>작성일</td>
<td>조치자</td>
<td>조치일</td>
<td>상태</td>
</tr>
</table>
</div>
<div class="plm_scroll_table" style="width:100%; height:500px;">
<table class="plm_table">
<colgroup>
<col width="2%" />
<col width="4%" /> <!-- No -->
<col width="8%" /> <!-- 구매의뢰번호 -->
<col width="*" /> <!-- 대표 파트 -->
<!-- <col width="8%" /> --> <!-- 구매담당자 -->
<col width="8%" /> <!-- 요청자 -->
<col width="7%" /> <!-- 등록일 -->
<col width="8%" /> <!-- 요청자 -->
<col width="7%" /> <!-- 등록일 -->
<col width="7%" /> <!-- 상태 -->
</colgroup>
<tbody>
<c:choose>
<c:when test="${!empty LIST}">
<c:forEach var="item" items="${LIST}" varStatus="status">
<tr>
<td>
<input type="checkbox" name="REQUEST_OBJID" value="${item.OBJID}" data-STATUS="${item.STATUS}" data-WRITER="${item.WRITER}">
</td>
<td>${item.RNUM}</td>
<td><a href="#" onclick="fn_openSalesRequestPopUp('${item.OBJID}')">${item.REQUEST_MNG_NO}</a></td>
<td>${item.TITLE}</td>
<%-- <td>${item.SALES_MNG_USER_NAME}</td> --%>
<%-- <td>${item.REQUEST_STATUS_TITLE}</td> --%>
<td>${item.WRITER_NAME}</td>
<td>${item.REGDATE_TITLE}</td>
<td>${item.CHECK_USER_NAME}</td>
<td>${item.CHECK_DATE}</td>
<td>
${item.STATUS_TITLE}
<%-- <c:choose>
<c:when test="${item.STATUS ne 'create' && item.STATUS ne 'requestComplete' && item.STATUS ne 'reception'}">
<a href="#" class="btnApprovalDetail" data-APPROVAL_OBJID="${item.APPROVAL_OBJID}" data-ROUTE_OBJID="${item.ROUTE_OBJID}">${item.STATUS_TITLE}</a>
</c:when>
<c:otherwise>
${item.STATUS_TITLE}
</c:otherwise>
</c:choose> --%>
</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="12" align="center">조회된 정보가 없습니다.</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
<style>
.container::-webkit-scrollbar-thumb {background: linear-gradient(to bottom, #f5d78e, #f5d78e) !important;}
.container::-webkit-scrollbar-track {background-color: white !important;}
.container::-webkit-scrollbar-button { display: none !important;}
</style>
</html>