440 lines
19 KiB
Plaintext
440 lines
19 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>
|
|
$(document).ready(function(){
|
|
$("._table1").scroll(function () {
|
|
$("._table2").scrollLeft($("._table1").scrollLeft());
|
|
});
|
|
$("._table2").scroll(function () {
|
|
$("._table1").scrollLeft($("._table2").scrollLeft());
|
|
});
|
|
|
|
fnc_datepick();
|
|
$('.select2').select2();
|
|
|
|
//체크박스 전체선택/전체해제
|
|
$("#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();
|
|
});
|
|
|
|
//엔터 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#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);
|
|
});
|
|
|
|
//SR자료등록 팝업
|
|
$(".File").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;
|
|
|
|
var popup_width = 800;
|
|
var popup_height = 270;
|
|
var url = "/projectConcept/FileRegistPopup.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
});
|
|
|
|
//영업활동 등록 팝업
|
|
$(".btnRegist").click(function(){
|
|
|
|
var targetLength = $("input[name=chk_objId]:checked").length;
|
|
|
|
if(1 == targetLength){
|
|
fn_openRegFormPopUp();
|
|
}else if(0 == targetLength){
|
|
Swal.fire("선택된 내용이 없습니다.");
|
|
return false;
|
|
}else if(1 < targetLength){
|
|
Swal.fire("한번에 1개의 내용만 등록 가능합니다. ");
|
|
return false;
|
|
}
|
|
});
|
|
|
|
//삭제
|
|
$("#btnDelete").click(function(){
|
|
fn_delete();
|
|
});
|
|
});
|
|
|
|
function fn_delete(){
|
|
var targetObject = $("input[name=contractCheckBox]:checked");
|
|
|
|
if(0 < targetObject.length){
|
|
var checkArr = new Array();
|
|
var statusFlag = false;
|
|
targetObject.each(function(){
|
|
var objId = fnc_checkNull($(this).val());
|
|
checkArr.push(objId);
|
|
});
|
|
|
|
if(confirm("선택된 정보를 삭제하시겠습니까?")){
|
|
var param = $("#hiddenForm").serialize();
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/fundMgmt/deleteFundMgmtInfo.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 = "/fundMgmt/fundMgmtList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_openRegFormPopUp(){
|
|
var targetObjId = $("input[name=chk_objId]:checked").val();
|
|
|
|
if("" != targetObjId){
|
|
fn_openPopUp(targetObjId, "");
|
|
}
|
|
}
|
|
|
|
function fn_openPopUp(contractObjId,fundObjId){
|
|
//var popup_width = 1200;
|
|
//var popup_height = 600;
|
|
var popup_width = 800;
|
|
var popup_height = 270;
|
|
var hiddenForm = document.hiddenForm;
|
|
var url = "/fundMgmt/fundMgmtFormPopUp.do";
|
|
|
|
/* if(null != fundObjId){
|
|
url = "/fundMgmt/fundMgmtDetailPopUp.do";
|
|
} */
|
|
|
|
var target = "openPopup"+contractObjId;
|
|
|
|
fn_centerPopup(popup_width, popup_height, "", target);
|
|
|
|
hiddenForm.action = url;
|
|
hiddenForm.PARENT_OBJID.value = contractObjId;
|
|
hiddenForm.objId.value = contractObjId;
|
|
hiddenForm.target = target;
|
|
hiddenForm.submit();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="hiddenForm" id="hiddenForm" method="post">
|
|
<input type="hidden" name="OBJID" id="OBJID">
|
|
<input type="hidden" name="PARENT_OBJID" id="PARENT_OBJID">
|
|
<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">
|
|
<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="" 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="" 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="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.product_cd}
|
|
</select>
|
|
</td>
|
|
<td class="">
|
|
<label>계약일</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="contract_start_date" id="contract_start_date" style="width:70px;" autocomplete="off" value="${param.contract_start_date}" class="date_icon">~
|
|
<input type="text" name="contract_end_date" id="contract_end_date" style="width:70px;" autocomplete="off" value="${param.contract_end_date}" class="date_icon">
|
|
</td>
|
|
|
|
<td><label for="fund_status">입금결과</label></td>
|
|
<td>
|
|
<select name="fund_status" id="fund_status" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.fund_status_cd}
|
|
</select>
|
|
</td>
|
|
<%-- <td><label for="status_cd">진행사항</label></td>
|
|
<td>
|
|
<select name="status_cd" id="status_cd" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.status_cd}
|
|
</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 delete" id="btnDelete"> -->
|
|
<input type="button" value="입금 계획/내역" class="plm_btns btnRegist create">
|
|
<!-- <input type="button" value="고객등록" class="plm_btns supplyMng create"> -->
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
|
|
<!-- <input type="button" value="Excel Download" class="plm_btns" id="btnExcel"> -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="in_table_scroll_wrap _table1" style="height:53px;width:99.4%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="25px">
|
|
<col width="100px"><!-- 프로젝트번호 -->
|
|
<col width="60px"><!-- 구분 -->
|
|
<col width="80px"><!-- 고객사-->
|
|
<col width="80px"><!-- 제품구분 -->
|
|
<col width="80px"><!-- -->
|
|
<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="90px"><!-- 3계약금-->
|
|
<col width="80px"><!-- 4입금일-->
|
|
<col width="90px"><!-- 5중도금(1차)-->
|
|
<col width="80px"><!-- 6입금일-->
|
|
<col width="90px"><!-- 7중도금(2차)-->
|
|
<col width="80px"><!-- 8입금일-->
|
|
<col width="90px"><!-- 9잔금-->
|
|
<col width="80px"><!-- 10입금일-->
|
|
<col width="100px"><!-- 11입금결과-->
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td rowspan="2"><input type="checkbox" id="allCheck"></td>
|
|
<td colspan="17">프로젝트정보</td>
|
|
<td colspan="9">입금내역</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>중도금(1차)</td>
|
|
<td>입금일</td>
|
|
<td>중도금(2차)</td>
|
|
<td>입금일</td>
|
|
<td>잔금</td>
|
|
<td>입금일</td>
|
|
<td>입금결과</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="in_table_scroll_wrap _table2" style="height:500px;width:100%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="25px">
|
|
<col width="100px"><!-- 프로젝트번호 -->
|
|
<col width="60px"><!-- 구분 -->
|
|
<col width="80px"><!-- 고객사-->
|
|
<col width="80px"><!-- 제품구분 -->
|
|
<col width="80px"><!-- -->
|
|
<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="90px"><!-- 계약금-->
|
|
<col width="80px"><!-- 입금일-->
|
|
<col width="90px"><!-- 중도금(1차)-->
|
|
<col width="80px"><!-- 입금일-->
|
|
<col width="90px"><!-- 중도금(2차)-->
|
|
<col width="80px"><!-- 입금일-->
|
|
<col width="90px"><!-- 잔금-->
|
|
<col width="80px"><!-- 입금일-->
|
|
<col width="100px"><!-- 입금결과-->
|
|
</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}"></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}" style="text-align:left; padding-left: 5px;"><a href="#" class="modify" data-OBJID="${info.OBJID}">${info.PROJECT_NO}</a></td><!-- 계약번호 -->
|
|
<td title="${info.CATEGORY_NAME}" style="text-align:left; padding-left: 5px;"">${info.CATEGORY_NAME}</td><!-- 지역 -->
|
|
<td title="${info.AREA_NAME}" style="text-align:left; padding-left: 5px;"">${info.AREA_NAME}</td><!-- 지역 -->
|
|
<td title="${info.CUSTOMER_NAME}" style="text-align:left; padding-left: 5px;">${info.CUSTOMER_NAME}</td><!-- 고객명 -->
|
|
<td title="${info.PRODUCT_NAME}" style="text-align:left; padding-left: 5px;">${info.PRODUCT_NAME}</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}" style="text-align:right;padding-right: 10px;"><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_COST}" style="text-align:right; padding-right: 5px;"><fmt:formatNumber value="${info.CONTRACT_COST}" pattern="#,###" /></td>
|
|
<td title="${info.CONTRACT_COST_RESULT_DATE}">${info.CONTRACT_COST_RESULT_DATE}</td>
|
|
<td title="${info.MID_PAY_COST1}" style="text-align:right; padding-right: 5px;"><fmt:formatNumber value="${info.MID_PAY_COST1}" pattern="#,###" /></td>
|
|
<td title="${info.MID_PAY_COST1_RESULT_DATE}">${info.MID_PAY_COST1_RESULT_DATE}</td>
|
|
<td title="${info.MID_PAY_COST2}" style="text-align:right; padding-right: 5px;"><fmt:formatNumber value="${info.MID_PAY_COST2}" pattern="#,###" /></td>
|
|
<td title="${info.MID_PAY_COST2_RESULT_DATE}">${info.MID_PAY_COST2_RESULT_DATE}</td>
|
|
<td title="${info.BALANCE_COST}" style="text-align:right; padding-right: 5px;"><fmt:formatNumber value="${info.BALANCE_COST}" pattern="#,###" /></td>
|
|
<td title="${info.BALANCE_COST_RESULT_DATE}">${info.BALANCE_COST_RESULT_DATE}</td>
|
|
<td title="${info.FUND_STATUS_NAME}">${info.FUND_STATUS_NAME}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="28" align="center">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
<div class="pdm_page">${PAGE_HTML}</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |