Files
vexplor/WebContent/WEB-INF/view/dashboard/dashboardProjectMgmtList.jsp
2025-08-21 09:41:46 +09:00

254 lines
10 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" %>
<%
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
String connector = person.getUserId();
%>
<!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}" />
<c:set var="now" value="<%=new java.util.Date() %>"/>
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
<c:set var="connector" value="<%=connector %>" />
<script>
$(document).ready(function(){
$("#btnSearch").click(function(){
fn_search();
});
//엔터 조회
$("input").keyup(function(e){
if(e.keyCode == 13){
$("#page").val("1");
fn_search();
}
});
});
//영업활동등록 상세
function fn_projectConceptDetail(objId,managerPm){
window.open("/ordermgmt/ordermgmtUpdateFormPopup.do?objId="+objId+"&managerPm="+managerPm+"&edit=view", "", "width=650, height=730");
}
//수주활동 검색 기능
function fn_search(){
document.form1.action = "/project/dashboardProjectMgmtList.do";
document.form1.submit();
}
//코드값을 받아와서 동적으로 selectbox 생성
function makeSelect(code){
var val=code;
var params = "";
var option="";
var combobox = $("#outc_cd6_td");
combobox.empty();
if(val!="" && val!="PLA03000"){
params += "codeId="+val;
$.ajax({
type : "POST",
url : "/ordermgmt/makeCodeselect.do",
data : params,
dataType:"json",
async: false,
success: function(data){
if(data.RESULT !=""){
option += "<select name='outc_cd6' id='outc_cd6' type='select'>"
option += "<option value=''>선택</option>";
option += data.RESULT;
option += "</select>";
combobox.append(option);
$("#outc_cd6").val("${param.outc_cd6}");
//$("#outc_cd6").select2();
}
}
});
}else{
if(val=="PLA03000"){
option += "<input type='text' name='outc_cd6' id='outc_cd6' value='${param.outc_cd6}'>"
combobox.append(option);
}else{
option += "<select name='outc_cd6' id='outc_cd6' type='select'>"
option += "<option value=''>선택</option>";
option += "</select>";
combobox.append(option);
//$("#outc_cd6").select2();
}
}
}
console.log("param.Year:"+"${param.Year}");
</script>
</head>
<body>
<form name="hiddenForm" id="hiddenForm" method="post">
<input type="hidden" name="materOrdObjId" id="materOrdObjId">
</form>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="delKey" id="delKey">
<div class="content-box">
<div class="content-box-s">
<div class="plm_menu_name">
<h2>
<span>프로젝트진행현황</span>
</h2>
</div>
<div id="plmSearchZon">
<table>
<tr>
<td><label for="Year">연도</label></td>
<td>
<select name="Year" id="Year" style="width:80px;" 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="project_division">프로젝트 구분</label></td>
<td>
<select name="project_division" id="project_division" style="width:200px" class="select2" autocomplete="off">
<option value="">선택</option>
${code_map.project_division}
</select>
</td>
<td><label for="plant_cd">제품군</label></td>
<td>
<select name="plant_cd" id="plant_cd" onchange='makeSelect($(this).val())' style="width:200px" class="select2" autocomplete="off">
<option value="">선택</option>
${code_map.plant_cd}
</select>
</td>
<td>
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
</td>
</tr>
</table>
</div>
<!-- <div class="plm_btn_wrap">
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
</div> -->
<div class="contents_page_basic_margin" style="overflow-y:hidden;">
<p>총 ${totalCount}건</p>
<div class="plm_table_wrap">
<div style="margin-right:10px;">
<table class="plm_table">
<colgroup>
<col width="8%"><!-- 프로젝트번호 -->
<col width="5%"><!-- 구분 -->
<col width="8%"><!-- 지역 -->
<col width="8%"><!-- 거래처 -->
<col width="8%"><!-- 프로젝트구분 -->
<col width="8%"><!-- 제품군 -->
<col width="8%"><!-- 종류 -->
<col width="8%"><!-- 중량 -->
<col width="8%"><!-- SPAN -->
<col width="8%"><!-- 주행거리 -->
<col width="8%"><!-- 수주일 -->
<col width="7%"><!-- 생산 -->
<col width="7%"><!-- 상태 -->
<col width="8%"><!-- 납기일 -->
</colgroup>
<thead>
<tr class="plm_thead">
<td>프로젝트번호</td>
<td>구분</td>
<td>지역</td>
<td>거래처</td>
<td>프로젝트구분</td>
<td>제품군</td>
<td>종류</td>
<td>중량</td>
<td>SPAN</td>
<td>주행거리</td>
<td>수주일</td>
<td>생산</td>
<td>상태</td>
<td>납기일</td>
</tr>
</thead>
</table>
</div>
</div>
<div class="plm_table_wrap container" style="overflow-y:scroll;height:63%;">
<div>
<table class="plm_table">
<colgroup>
<col width="8%"><!-- 프로젝트번호 -->
<col width="5%"><!-- 구분 -->
<col width="8%"><!-- 지역 -->
<col width="8%"><!-- 거래처 -->
<col width="8%"><!-- 프로젝트구분 -->
<col width="8%"><!-- 제품군 -->
<col width="8%"><!-- 종류 -->
<col width="8%"><!-- 중량 -->
<col width="8%"><!-- SPAN -->
<col width="8%"><!-- 주행거리 -->
<col width="8%"><!-- 수주일 -->
<col width="7%"><!-- 생산 -->
<col width="7%"><!-- 상태 -->
<col width="8%"><!-- 납기일 -->
</colgroup>
<tbody>
<c:choose>
<c:when test="${!empty LIST}">
<c:forEach var="info" items="${LIST}" varStatus="status">
<tr>
<!-- 프로젝트번호 --> <td title="${info.PROJECT_NO}"><a href="#" onclick="javascript:fn_projectConceptDetail('${info.ORDER_MGMT_OBJID}','${info.MANAGER_PM }')">${info.PROJECT_NO}</a></td>
<!-- 구분 --> <td title="${info.ORDER_NAME}" style="text-align:center;">${info.ORDER_NAME}</td>
<!-- 지역 --> <td title="${info.OUTC_CD5}" style="text-align:center;">${info.OUTC_CD5}</td>
<!-- 거래처 --> <td title="${info.CUSTOMER_NAME}" style="text-align:left; padding:0px 0px 0px 8px;">${info.CUSTOMER_NAME}</td>
<!-- 프로젝트구분 --> <td title="${info.PROJECT_DIVISION}">${info.PROJECT_DIVISION}</td>
<!-- 제품군 --> <td title="${info.PLANT_NAME}">${info.PLANT_NAME}</td>
<!-- 종류 --> <td title="${info.OUTC_CD6}">${info.OUTC_CD6}</td>
<!-- 중량 --> <td title="<fmt:formatNumber value="${info.REASON}"/>"><fmt:formatNumber value="${info.REASON}"/></td>
<!-- SPAN --> <td title="<fmt:formatNumber value="${info.OUTC_CD2}"/>"><fmt:formatNumber value="${info.OUTC_CD2}"/></td>
<!-- 주행거리 --> <td title="<fmt:formatNumber value="${info.OUTC_CD3}"/>"><fmt:formatNumber value="${info.OUTC_CD3}"/></td>
<!-- 수주일 --> <td title="${info.START_DATE}">${info.START_DATE}</td>
<!-- 생산 --> <td title="${info.MANAGER_NAME}">생산1팀</td>
<!-- 상태 --> <td title="${info.STATUS_NAME}">${info.STATUS_NAME}</td>
<!-- 납기일 --> <td title="${info.DEL_DATE}">${info.DEL_DATE}</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="14" align="center">조회된 데이터가 없습니다.</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
</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;}
.container::-webkit-scrollbar-button { display: none; }
</style>
</html>