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

392 lines
16 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.pms.common.utils.*"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page import="java.util.*" %>
<%@include file= "/init.jsp" %>
<c:set var="now" value="<%=new java.util.Date() %>"/>
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
<!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}" />
<style>
::-webkit-scrollbar {
display: none;
}
</style>
<script>
$(document).ready(function(){
$('.select2').select2();
fnc_datepick();
//엔터키로 조회
$("input").keyup(function(e){
if(e.keyCode == 13){
$("#page").val("1");
fn_search();
}
});
$("#btnSearch").click(function(){
$("#page").val("1");
document.form1.actionType.value = "";
fn_search();
});
//체크박스 전체선택/전체해제
$("#allCheck").click(function(){
if($("#allCheck").prop("checked")) {
$("input[type=checkbox]").prop("checked",true);
} else {
$("input[type=checkbox]").prop("checked",false);
}
});
//삭제
$("#btnDelete").click(function(){
fn_delete();
});
$("#project_no").change(function(){
fn_UnitCodeList(this.value, "unit_code", "");
});
if("${param.project_no}"!=""){
fn_UnitCodeList("${param.project_no}", "unit_code","");
$("#unit_code").val("${param.unit_code}");
}
$(".btnApprovalDetail").click(function(){
var popup_width = 650;
var popup_height = 380;
var approvalObjId = $(this).attr("data-APPROVAL_OBJID");
var routeObjId = $(this).attr("data-ROUTE_OBJID");
var params = "?approvalObjId="+approvalObjId;
params += "&routeObjId="+routeObjId;
var url = "/approval/approvalDetail.do"+params;
var target = "approvalDetailPopup";
//Swal.fire("params : "+params);
fn_centerPopup(popup_width, popup_height, url, target);
});
$("#btnExcel").click(function() {
fn_excel();
});
/*
$(".File").click(function(){
var popup_width = 800;
var popup_height = 270;
var objId = $(this).attr("data-OBJID");
var docType =$(this).attr("data-docType");
var docTypeName = $(this).attr("data-docTypeName");
var params = "?targetObjId="+objId+"&docType="+docType+"&docTypeName="+docTypeName;
var url = "/common/FileDetailPopup.do"+params
fn_centerPopup(popup_width, popup_height, url);
});
*/
});
function fn_delete(){
}
function openOEMPopUp(objid){
var checkArr = new Array();
if(fnc_isEmpty(objid)){
$("input[name=OBJID]:checked").each(function(){
var objId = $(this).val();
checkArr.push(objId);
});
}else{
checkArr.push(objid);
}
if(1 < checkArr.length){
Swal.fire("한번에 1개의 내용만 등록 가능합니다. ");
return false;
}else if(0 < checkArr.length){
var popup_width = 1000;
var popup_height = 795;
var target = "InvalidFormPopUp";
var hiddenForm = document.hiddenForm;
var url = "/purchaseOrder/invalidActionFormPopUp.do";
fn_centerPopup(popup_width, popup_height, url, target);
hiddenForm.checkArr.value = checkArr.join();
hiddenForm.target = "InvalidFormPopUp";
hiddenForm.action = "/purchaseOrder/invalidActionFormPopUp.do";
hiddenForm.submit();
}else{
Swal.fire("선택된 대상이 없습니다.");
return false;
}
}
function fn_search(){
var form = document.form1;
form.action="/purchaseOrder/deliveryMngInvalidList.do";
form.submit();
}
function fn_excel() {
document.form1.actionType.value = "excel";
fn_search();
}
</script>
</head>
<body>
<form name="hiddenForm" id="hiddenForm">
<input type="hidden" name="checkArr">
</form>
<form name="form1" id="form1" method="post">
<input type="hidden" name="status" id="status">
<input type="hidden" name="actionType" id="actionType">
<div class="content-box">
<div class="content-box-s">
<div class="plm_menu_name_gdnsi">
<h2>
<span>입고관리_부적합리스트</span>
</h2>
<div class="btnArea">
<!-- <input type="button" value="삭제" class="plm_btns delete" id="btnDelete"> -->
<input type="button" value="조회" class="plm_btns" id="btnSearch">
<input type="button" value="부적합통보서 등록" class="plm_btns" onclick="javascript:openOEMPopUp('');">
<input type="button" value="Excel Download" class="plm_btns" id="btnExcel">
</div>
</div>
<div id="plmSearchZon">
<table>
<tr>
<td><label for="Year">년도</label></td>
<td>
<select name="Year" id="Year" class="select2" autocomplete="off">
<option value="">선택</option>
<c:forEach begin="${sysYear-4}" end="${sysYear}" var="req_year">
<option value="${req_year}"${param.Year eq req_year ? 'selected':'' }>${req_year}</option>
</c:forEach>
</select>
</td>
<td><label for="">프로젝트번호</label></td>
<td><select name="project_no" id="project_no" class="select2" autocomplete="off" style="width:120px;"><option value="">선택</option>${code_map.project_no}</select></td>
<td><label for="unit_code">유닛명</label></td>
<td>
<select name="unit_code" id="unit_code" style="width:250px" class="select2" autocomplete="off">
</select>
</td>
<td><label for="">품번</label></td>
<td><input type="text" name="part_no" id="part_no" autocomplete="off" value="${param.part_no}" style="width:170px;"/></td>
<td><label for="">품명</label></td>
<td><input type="text" name="part_name" id="part_name" autocomplete="off" value="${param.part_name}" style="width:170px;"/></td>
</tr>
<tr>
<td><label for="">부적합사유</label></td>
<td><select name="defect_reason" id="defect_reason" class="select2" autocomplete="off"><option value="">선택</option>${code_map.defect_reason}</select></td>
<td><label for="">귀책</label></td>
<td><select name="defect_resp" id="defect_resp" class="select2" autocomplete="off" style="width:120px;"><option value="">선택</option>${code_map.defect_resp}</select></td>
<td><label for="">공급업체</label></td>
<td><select name="partner_objid" id="partner_objid" class="select2" autocomplete="off" style="width:250px;"><option value="">선택</option>${code_map.partner_objid}</select></td>
<td><label for="">설계담당자</label></td>
<td><select name="design_user_id" id="design_user_id" class="select2" autocomplete="off" style="width:170px;"><option value="">선택</option>${code_map.design_user_id}</select></td>
<td><label for="">구매담당자</label></td>
<td><select name="sales_mng_user_id" id="sales_mng_user_id" class="select2" autocomplete="off" style="width:170px;"><option value="">선택</option>${code_map.sales_mng_user_id}</select></td>
<td><label for="">조치내역</label></td>
<td><select name="defect_action" id="defect_action" class="select2" autocomplete="off" style="width:170px;"><option value="">선택</option>${code_map.defect_action}</select></td>
</tr>
</table>
</div>
<section class="contents_page_basic_margin">
<div class="plm_table_wrap">
<div class="in_table_scroll_wrap _table1" style="height:26px;width:100%;">
<table class="plm_table">
<colgroup>
<col width="25px" />
<col width="80px" /> <!-- 당사프로젝트번호<-->
<col width="90px" /> <!-- 프로젝트명</td-->
<col width="150px" /> <!-- UNIT Name-->
<col width="120px" /> <!-- 품번</td> -->
<col width="180px" /> <!-- 품명</td> -->
<col width="3%" /> <!-- 발주수량</td>-->
<col width="60px" /> <!-- 공급업체</td>-->
<col width="60px" /> <!-- 검사일</td> -->
<col width="4%" /> <!-- 부적합수량</td-->
<col width="4%" /> <!-- 부적합사유</td-->
<col width="4%" /> <!-- 귀책</td> -->
<col width="4%" /> <!-- 설계담당자</td-->
<col width="4%" /> <!-- 구매담당자</td-->
<!--
<col width="100px" /> 부적합내용</td
-->
<col width="60px" /> <!-- 부적합통보서</td-->
<col width="60px" /> <!-- 조치일</td> -->
<col width="70px" /> <!-- 조치사항</td>-->
<col width="50px" />
</colgroup>
<thead>
<tr class="plm_thead">
<td><input type="checkbox" id="allCheck"></td>
<td>프로젝트번호</td>
<td>프로젝트명</td>
<td>유닛명</td>
<td>품번</td>
<td>품명</td>
<td>발주수량</td>
<td>공급업체</td>
<td>검사일</td>
<td>부적합수량</td>
<td>부적합사유</td>
<td>귀책</td>
<td>설계담당자</td>
<td>구매담당자</td>
<!-- <td>부적합내용</td> -->
<td>부적합통보서</td>
<td>조치일</td>
<td>조치내역</td>
<td>상태</td>
</tr>
</thead>
</table>
</div>
<div class="in_table_scroll_wrap _table2" style="height:580px;width:100%;border-bottom:none;">
<table class="plm_table">
<colgroup>
<col width="25px" />
<col width="80px" /> <!-- 당사프로젝트번호<-->
<col width="90px" /> <!-- 프로젝트명</td-->
<col width="150px" /> <!-- UNIT Name-->
<col width="120px" /> <!-- 품번</td> -->
<col width="180px" /> <!-- 품명</td> -->
<col width="3%" /> <!-- 발주수량</td>-->
<col width="60px" /> <!-- 공급업체</td>-->
<col width="60px" /> <!-- 검사일</td> -->
<col width="4%" /> <!-- 부적합수량</td-->
<col width="4%" /> <!-- 부적합사유</td-->
<col width="4%" /> <!-- 귀책</td> -->
<col width="4%" /> <!-- 설계담당자</td-->
<col width="4%" /> <!-- 구매담당자</td-->
<!--
<col width="100px" /> 부적합내용</td
-->
<col width="60px" /> <!-- 부적합통보서</td-->
<col width="60px" /> <!-- 조치일</td> -->
<col width="70px" /> <!-- 조치사항</td>-->
<col width="50px" />
</colgroup>
<tbody>
<c:choose>
<c:when test="${0 < supplyInfoList.size()}">
<c:forEach var="oemInfo" items="${supplyInfoList}">
<tr>
<td><input type="checkbox" name="OBJID" value="${oemInfo.OBJID}"></td>
<td>${oemInfo.PROJECT_NO}</td>
<td class="align_l" title="${oemInfo.PROJECT_NAME} ">${oemInfo.PROJECT_NAME}</td>
<td class="align_l" title="${oemInfo.UNIT_NAME} ">${oemInfo.UNIT_NAME}</td>
<td class="align_l" title="${oemInfo.PART_NO} ">${oemInfo.PART_NO}</td>
<td class="align_l" title="${oemInfo.PART_NAME} ">${oemInfo.PART_NAME}</td>
<td class="align_c" title="${oemInfo.ORDER_QTY} ">${oemInfo.ORDER_QTY}</td>
<td class="align_c" title="${oemInfo.PARTNER_NAME} ">${oemInfo.PARTNER_NAME}</td>
<td class="align_c" title="${oemInfo.INSPECT_DATE} ">${oemInfo.INSPECT_DATE}</td>
<td class="align_c" title="${oemInfo.DEFECT_QTY} ">${oemInfo.DEFECT_QTY}</td>
<td class="align_c" title="${oemInfo.DEFECT_REASON_NAME} ">${oemInfo.DEFECT_REASON_NAME}</td>
<td class="align_c" title="${oemInfo.DEFECT_RESP_NAME} ">${oemInfo.DEFECT_RESP_NAME}</td>
<td class="align_c" title="${oemInfo.DESIGN_NAME} ">${oemInfo.DESIGN_NAME}</td>
<td class="align_c" title="${oemInfo.SALES_MNG_USER_NAME}">${oemInfo.SALES_MNG_USER_NAME}</td>
<%--
<td class="align_c" title="${oemInfo.DEFECT_CONTENT}">${oemInfo.DEFECT_CONTENT}</td>
<td><a href="#" class="File file_${oemInfo.CU01_CNT eq 0?'empty_':''}icon" data-OBJID="${oemInfo.OBJID}" data-docType="DEFECT_ACTION_IMG_01" data-docTypeName="DEFECT_ACTION_IMG_01"></a></td>
--%>
<td><a href="#" class="File file_${ oemInfo.CU01_CNT eq 0 ? 'empty_':''}icon" onclick="openOEMPopUp('${oemInfo.OBJID}');"></a></td>
<td class="align_c">${oemInfo.DEFECT_ACTION_DATE}</td>
<td class="align_c">${oemInfo.DEFECT_ACTION_NAME}</td>
<td title="${oemInfo.APPR_STATUS_NAME}">
<c:choose>
<c:when test="${!empty oemInfo.APPR_STATUS}">
<a href="#" class="btnApprovalDetail" data-APPROVAL_OBJID="${oemInfo.APPROVAL_OBJID}" data-ROUTE_OBJID="${oemInfo.ROUTE_OBJID}">${oemInfo.APPR_STATUS_NAME}</a>
</c:when>
<c:otherwise>
${oemInfo.APPR_STATUS_NAME}
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="16">조회된 정보가 없습니다.</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
</div>
</div>
<div class="pdm_page">
<input type="hidden" name="page" id="page" value="${nPage}">
<c:if test="${!empty supplyInfoList}">
<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>
</div>
</div>
</form>
</body>
</html>