482 lines
21 KiB
Plaintext
482 lines
21 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>
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
<!-- //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">
|
|
$(document).ready(function(){
|
|
|
|
$("._table1").scroll(function () {
|
|
$("._table2").scrollLeft($("._table1").scrollLeft());
|
|
});
|
|
$("._table2").scroll(function () {
|
|
$("._table1").scrollLeft($("._table2").scrollLeft());
|
|
});
|
|
|
|
fnc_datepick();
|
|
$('.select2').select2();
|
|
|
|
|
|
//엔터 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
//체크박스 전체선택/전체해제
|
|
$("#allCheck").click(function(){
|
|
if($("#allCheck").prop("checked")) {
|
|
$("input[type=checkbox]").prop("checked",true);
|
|
} else {
|
|
$("input[type=checkbox]").prop("checked",false);
|
|
}
|
|
});
|
|
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
$(".modify").click(function(){
|
|
var popup_width = 400;
|
|
var popup_height = 330;
|
|
var objId = $(this).attr("data-OBJID");
|
|
var params = "?OBJID="+objId;
|
|
var url = "/project/projectmodifyPopUp.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
});
|
|
|
|
$(".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);
|
|
});
|
|
|
|
$(".File2").click(function(){
|
|
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;
|
|
window.open("/common/FileRegistPopup.do"+params, "", "width=800, height=335");
|
|
});
|
|
|
|
//영업활동 등록 팝업
|
|
$(".btnRegist").click(function(){
|
|
var targetObj = $("input[name=chk_objId]:checked");
|
|
|
|
var contractObjId = targetObj.val();
|
|
var productGroup = targetObj.attr("data-PRODUCT_GROUP");
|
|
var product = targetObj.attr("data-PRODUCT");
|
|
var releaseObjId = targetObj.attr("data-RELEASE_OBJID");
|
|
|
|
if(1 == targetObj.length){
|
|
fn_openReleaseMgmtPopUp(contractObjId,productGroup,product,releaseObjId);
|
|
}else if(0 == targetObj.length){
|
|
Swal.fire("선택된 내용이 없습니다.");
|
|
return false;
|
|
}else if(1 < targetObj.length){
|
|
Swal.fire("한번에 1개의 내용만 등록 가능합니다. ");
|
|
return false;
|
|
}
|
|
});
|
|
|
|
//삭제
|
|
$("#btnDelete").click(function(){
|
|
fn_delete();
|
|
});
|
|
|
|
$("#release_status").val('${param.release_status}').trigger('change');
|
|
$("#install_result").val('${param.install_result}').trigger('change');
|
|
});
|
|
|
|
function fn_delete(){
|
|
var targetObject = $("input[name=chk_objId]:checked");
|
|
|
|
if(0 < targetObject.length){
|
|
var checkArr = new Array();
|
|
targetObject.each(function(){
|
|
var objId = fnc_checkNull($(this).attr("data-RELEASE_OBJID"));
|
|
checkArr.push(objId);
|
|
});
|
|
|
|
if(confirm("선택된 정보를 삭제하시겠습니까?")){
|
|
var param = $("#hiddenForm").serialize();
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/releaseMgmt/deleteReleaseMgmtInfo.do",
|
|
data: {"checkArr":checkArr.join()},
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
|
|
if(data.result){
|
|
fn_search();
|
|
};
|
|
}
|
|
,error: function(jqxhr, status, error){
|
|
|
|
}
|
|
});
|
|
}
|
|
}else{
|
|
Swal.fire("선택된 항목이 없습니다.");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
//영업활동등록 상세
|
|
function fn_projectConceptDetail(objId){
|
|
var popup_width = 1200;
|
|
var popup_height = 800;
|
|
var url = "/contractMgmt/contracMgmtFormPopup.do?objId="+objId+"&actionType=U"
|
|
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
function fn_search(){
|
|
document.form1.action = "/releaseMgmt/releaseMgmtList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_openReleaseMgmtPopUp(contractObjId,productGroup,product,releaseObjId){
|
|
//var popup_width = 1200;
|
|
//var popup_height = 600;
|
|
var popup_width = 800;
|
|
var popup_height = 700;
|
|
|
|
var hiddenForm = document.hiddenForm;
|
|
var url = "";
|
|
var target = "openPopup"+contractObjId;
|
|
|
|
if("" == releaseObjId){
|
|
url = "/releaseMgmt/releaseMgmtFormPopUp.do";
|
|
}else{
|
|
url = "/releaseMgmt/releaseMgmtDetailPopUp.do";
|
|
}
|
|
|
|
fn_centerPopup(popup_width, popup_height, "", target);
|
|
|
|
hiddenForm.action = url;
|
|
hiddenForm.RELEASE_OBJID.value = releaseObjId;
|
|
hiddenForm.PARENT_OBJID.value = contractObjId;
|
|
hiddenForm.PRODUCT_GROUP.value = productGroup;
|
|
hiddenForm.PRODUCT.value = product;
|
|
|
|
hiddenForm.objId.value = contractObjId;
|
|
hiddenForm.target = target;
|
|
hiddenForm.submit();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="hiddenForm" id="hiddenForm" method="post">
|
|
<input type="hidden" name="RELEASE_OBJID" id="RELEASE_OBJID">
|
|
<input type="hidden" name="PARENT_OBJID" id="PARENT_OBJID">
|
|
<input type="hidden" name="PRODUCT_GROUP" id="PRODUCT_GROUP">
|
|
<input type="hidden" name="PRODUCT" id="PRODUCT">
|
|
<input type="hidden" name="PRODUCT_SEQ" id="PRODUCT_SEQ">
|
|
<input type="hidden" name="objId" id="objId">
|
|
</form>
|
|
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="delKey" id="delKey">
|
|
<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>
|
|
<tr>
|
|
|
|
<td><label for="Year">년도</label></td>
|
|
<td>
|
|
<select name="Year" id="Year" class="select2" autocomplete="off" style="width:120px;">
|
|
<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_no">당사프로젝트번호</label></td>
|
|
<td>
|
|
<select name="project_no" id="project_no" style="width:120px;" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.project_no}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="category_cd">구분</label></td>
|
|
<td>
|
|
<select name="category_cd" id="category_cd" style="width:120px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.category_cd}
|
|
</select>
|
|
</td>
|
|
|
|
|
|
<td><label for="customer_objid">고객사</label></td>
|
|
<td>
|
|
<select name="customer_objid" id="customer_objid" style="width:180px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.customer_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="product">제품구분</label></td>
|
|
<td>
|
|
<select name="product" id="product" style="width:120px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.product_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td class="">
|
|
<label>출고일</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="release_start_date" id="release_start_date" style="width:70px;" autocomplete="off" value="${param.release_start_date}" class="date_icon">~
|
|
<input type="text" name="release_end_date" id="release_end_date" style="width:70px;" autocomplete="off" value="${param.release_end_date}" class="date_icon">
|
|
</td>
|
|
|
|
<%-- <td><label for="status_cd">진행사항</label></td>
|
|
<td>
|
|
<select name="status_cd" id="status_cd" style="width:130px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.status_cd}
|
|
</select>
|
|
</td> --%>
|
|
|
|
<td><label for="release_status">출고결과</label></td>
|
|
<td>
|
|
<select name="release_status" id="release_status" style="width:120px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<option value="계약">계약</option>
|
|
<option value="지연">지연</option>
|
|
<option value="수주">수주</option>
|
|
<option value="취소">취소</option>
|
|
<option value="출고완료">출고완료</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="install_result">설치결과</label></td>
|
|
<td>
|
|
<select name="install_result" id="install_result" style="width:120px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<option value="OPEN">OPEN</option>
|
|
<option value="CLOSED">CLOSED</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="등록" class="plm_btns btnRegist create">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="in_table_scroll_wrap _table1" style="height:53px;width:100%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="25px">
|
|
<col width="100px"><!-- 프로젝트번호 -->
|
|
<col width="60px"><!-- 구분 -->
|
|
<col width="60px"><!-- 고객사-->
|
|
<col width="100px"><!-- 제품구분 -->
|
|
<col width="110px"><!-- -->
|
|
<col width="150px"><!-- 고객사프로젝트명-->
|
|
<col width="150px"><!-- 당사사프로젝트명-->
|
|
<col width="80px"><!-- 고객납기일-->
|
|
<col width="60px"><!-- 셋업지-->
|
|
<col width="60px"><!-- 설비방향 -->
|
|
<col width="60px"><!-- 설비대수-->
|
|
<col width="60px"><!-- 설비타입 -->
|
|
<col width="60px"><!-- 제작넘버 -->
|
|
<col width="70px"><!-- 담당자 -->
|
|
<col width="60px"><!-- 등록일 -->
|
|
<col width="80px"><!-- 첨부파일 -->
|
|
<col width="100px"><!-- 수주가 -->
|
|
|
|
<col width="80px"><!-- 2계약일-->
|
|
<col width="80px"><!-- 3계약담당자-->
|
|
<col width="60px"><!-- 4첨부파일-->
|
|
|
|
<col width="60px"><!-- 1출고검사 -->
|
|
<col width="60px"><!-- 2출하지시 -->
|
|
<col width="80px"><!-- 3출고일 -->
|
|
<col width="80px"><!-- 4출고결과 -->
|
|
|
|
<col width="80px"><!-- 1설치완료일 -->
|
|
<col width="80px"><!-- 2설치결과 -->
|
|
<col width="60px"><!-- 3인수인계 -->
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td rowspan="2"><input type="checkbox" id="allCheck"></td>
|
|
<td colspan="17">프로젝트정보</td>
|
|
<td colspan="3">계약정보</td>
|
|
<td colspan="4">출고정보</td>
|
|
<td colspan="3">설치&시운전</td>
|
|
</tr>
|
|
<tr class="plm_sub_thead">
|
|
<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>PM</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%;overflow-y:auto;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="25px">
|
|
<col width="100px"><!-- 프로젝트번호 -->
|
|
<col width="60px"><!-- 구분 -->
|
|
<col width="60px"><!-- 고객사-->
|
|
<col width="100px"><!-- 제품구분 -->
|
|
<col width="110px"><!-- -->
|
|
<col width="150px"><!-- 고객사프로젝트명-->
|
|
<col width="150px"><!-- 당사사프로젝트명-->
|
|
<col width="80px"><!-- 고객납기일-->
|
|
<col width="60px"><!-- 셋업지-->
|
|
<col width="60px"><!-- 설비방향 -->
|
|
<col width="60px"><!-- 설비대수-->
|
|
<col width="60px"><!-- 설비타입 -->
|
|
<col width="60px"><!-- 제작넘버 -->
|
|
<col width="70px"><!-- 담당자 -->
|
|
<col width="60px"><!-- 등록일 -->
|
|
<col width="80px"><!-- 첨부파일 -->
|
|
<col width="100px"><!-- 수주가 -->
|
|
|
|
<col width="80px"><!-- 2계약일-->
|
|
<col width="80px"><!-- 3계약담당자-->
|
|
<col width="60px"><!-- 4첨부파일-->
|
|
|
|
<col width="60px"><!-- 1출고검사 -->
|
|
<col width="60px"><!-- 2출하지시 -->
|
|
<col width="80px"><!-- 3출고일 -->
|
|
<col width="80px"><!-- 4출고결과 -->
|
|
|
|
<col width="80px"><!-- 1설치완료일 -->
|
|
<col width="80px"><!-- 2설치결과 -->
|
|
<col width="60px"><!-- 3인수인계 -->
|
|
</colgroup>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td><input style="width: 15px; height: 15px" type="checkbox" value="${info.OBJID}" name="chk_objId" id="chk_objId" data-objId="${info.OBJID}" data-PRODUCT_GROUP="${info.PRODUCT_GROUP}" data-PRODUCT="${info.PRODUCT}" data-RELEASE_OBJID="${info.RELEASE_OBJID}"></td>
|
|
<%--
|
|
<td title="${info.CONTRACT_NO}"><a href="#" onclick="javascript:fn_projectConceptDetail('${info.CONTRACT_OBJID}')">${info.CONTRACT_NO}</a></td><!-- 계약번호 -->
|
|
--%>
|
|
<td title="${info.PROJECT_NO}" ><a href="#" class="modify" data-OBJID="${info.OBJID}">${info.PROJECT_NO}</a></td><!-- 계약번호 -->
|
|
<td title="${info.CATEGORY_NAME}">${info.CATEGORY_NAME}</td><!-- 지역 -->
|
|
<td title="${info.AREA_NAME}" >${info.AREA_NAME}</td><!-- 지역 -->
|
|
<td title="${info.CUSTOMER_NAME}" >${info.CUSTOMER_NAME}</td><!-- 고객명 -->
|
|
<td title="${info.PRODUCT_NAME}" >${info.PRODUCT_NAME}(${info.MECHANICAL_TYPE})</td><!-- 사업자등록번호 -->
|
|
<td title="${info.CUSTOMER_PROJECT_NAME}" style="text-align:left; padding-left: 5px;">${info.CUSTOMER_PROJECT_NAME}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.PROJECT_NAME}" style="text-align:left; padding-left: 5px;">${info.PROJECT_NAME}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.REQ_DEL_DATE}">${info.REQ_DEL_DATE}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.LOCATION}">${info.LOCATION}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.SETUP}">${info.SETUP}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.FACILITY_NAME}">${info.FACILITY_NAME}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.FACILITY_QTY}"><fmt:formatNumber value="${info.FACILITY_QTY}" pattern="#,###" /></td><!-- 계약체결금액 -->
|
|
<td title="${info.FACILITY_TYPE}">${info.FACILITY_TYPE}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.FACILITY_DEPTH}">${info.FACILITY_DEPTH}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.PM_USER_NAME}">${info.PM_USER_NAME}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.CONTRACT_DEL_DATE}">${info.CONTRACT_DEL_DATE}</td><!-- 사업자등록번호 -->
|
|
<td title="${info.CONTRACT_PRICE}" style="text-align:right;padding-right: 10px;"><fmt:formatNumber value="${info.CONTRACT_PRICE}" pattern="#,###" /></td><!-- 계약체결금액 -->
|
|
|
|
<td title="">${info.CONTRACT_DATE}</td>
|
|
<td title="">${info.WRITER_NAME}</td>
|
|
<td><a href="#" class="File file_${info.CU02_CNT eq 0?'empty_':''}icon" data-OBJID="${info.OBJID}" data-docType="contractMgmt02" data-docTypeName="contractMgmt02"></a></td>
|
|
|
|
<td><a href="#" class="File file_${info.RELEASE_CHECK_CNT eq 0?'empty_':''}icon" data-OBJID="${info.RELEASE_OBJID}" data-docType="RELEASE_CHECK" data-docTypeName="RELEASE_CHECK"></a></td>
|
|
<td><a href="#" class="File file_${info.RELEASE_ORDER_CNT eq 0?'empty_':''}icon" data-OBJID="${info.RELEASE_OBJID}" data-docType="RELEASE_ORDER" data-docTypeName="RELEASE_ORDER"></a></td>
|
|
<td title="${info.RELEASE_DATE}">${info.RELEASE_DATE}</td>
|
|
<td title="${info.RELEASE_STATUS_TITLE }">${info.RELEASE_STATUS_TITLE }</td>
|
|
|
|
<td title="${info.INSTALL_COMPLETE_DATE }">${info.INSTALL_COMPLETE_DATE }</td>
|
|
<td title="${info.INSTALL_RESULT }" style="text-align:left; padding-left: 5px;">${info.INSTALL_RESULT }</td>
|
|
<td><a href="#" class="File file_${info.RELEASE_TAKING_OVER_CNT eq 0?'empty_':''}icon" data-OBJID="${info.RELEASE_OBJID}" data-docType="RELEASE_TAKING_OVER" data-docTypeName="RELEASE_TAKING_OVER"></a></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="29" align="center">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
<div class="pdm_page">${PAGE_HTML}</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |