460 lines
16 KiB
Plaintext
460 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" %>
|
|
<!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}" />
|
|
<script>
|
|
$(function(){
|
|
$(".btnTable").click(function(){
|
|
var url = $(this).attr("url");
|
|
document.dfmeaForm.action = url;
|
|
document.dfmeaForm.submit();
|
|
});
|
|
|
|
$(".btnFile").click(function(){
|
|
window.open("businessChanceFilePopup.html", "", "width=466, height=380");
|
|
});
|
|
|
|
$(".projectEnrollBtn").click(function(){
|
|
window.open("/project/projectMngFormPopUp.do", "", "width=900, height=362");
|
|
});
|
|
//wbs 캡쳐팝업
|
|
$(".wbsCaptureBtn").click(function(){
|
|
window.open("/project/wbsCapturePopup.do", "", "width=930, height=530");
|
|
});
|
|
//영업품목 팝업
|
|
$(".slaesPartViewBtn").click(function(){
|
|
window.open("/project/slaesPartViewPopup.do", "", "width=725, height=340");
|
|
});
|
|
//원가관리 입력창
|
|
$(".costPriceFormPopupBtn").click(function(){
|
|
window.open("/project/costPriceFormPopup.do", "", "width=465, height=412");
|
|
});
|
|
//수주품목 팝업
|
|
$(".orderItemList").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
window.open("/project/projectOrderItemListPopup.do?objId="+objId, "", "width=620, height=342");
|
|
});
|
|
|
|
$(".btnChart").click(function(){
|
|
var url = $(this).attr("url");
|
|
var carType = $(this).attr("carType");
|
|
var productType = $(this).attr("productType");
|
|
|
|
var pageUrl = url+"_"+carType+"_"+productType+".html";
|
|
|
|
window.open(pageUrl, "" ,"width=1000, height=400");
|
|
});
|
|
|
|
fnc_datepick();
|
|
|
|
//조회
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
|
|
});
|
|
|
|
// 전체 선택
|
|
$("#checkbox_all").click(function(){
|
|
if($("#checkbox_all").prop("checked")){
|
|
$("input[name=projectCheckBox]").prop("checked",true);
|
|
}else{
|
|
$("input[name=projectCheckBox]").prop("checked",false);
|
|
}
|
|
})
|
|
|
|
// 부분체크해제
|
|
$("input[name=projectCheckBox]").click(function(){
|
|
if($("#checkbox_all").is(":checked")){
|
|
$("#checkbox_all").prop("checked",false);
|
|
}
|
|
})
|
|
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
$(document).ready(function(){
|
|
|
|
//고객사 목록 조회
|
|
fn_setOEMList();
|
|
fn_setCarTypeList("${param.search_oem}");
|
|
|
|
//고객사별 차종 목록 조회
|
|
$("#search_oem").change(function(){
|
|
var oemObjId = $(this).val();
|
|
fn_setCarTypeList(oemObjId);
|
|
});
|
|
|
|
});
|
|
</script>
|
|
<script>
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openProjectFormPopUp(objId){
|
|
window.open("","projectFormPopUp","width=1150, height=676");
|
|
var params = "?actionType=regist"
|
|
var url = "/project/projectFormPopUp.do"+params;
|
|
if("" != objId){
|
|
url = "/project/projectDetailPopUp.do";
|
|
}
|
|
var form = document.form1;
|
|
form.objId.value = objId;
|
|
form.action = url;
|
|
form.target = "projectFormPopUp";
|
|
form.submit();
|
|
}
|
|
|
|
//프로젝트 검색기능
|
|
function fn_search(){
|
|
var form = document.form1;
|
|
form.target="_self";
|
|
form.action = "";
|
|
form.actionType.value = "";
|
|
form.submit();
|
|
}
|
|
|
|
//oem 목록 조회
|
|
function fn_setOEMList(){
|
|
$.ajax({
|
|
url:"/common/getOEMList.do",
|
|
type:"POST",
|
|
data:{"isJson":true},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].OEM_NAME+"("+data[i].OEM_CODE+")</option>";
|
|
});
|
|
|
|
var paramValue = "${param.search_oem}";
|
|
$("#search_oem").append(appendCode);
|
|
$("#search_oem").trigger("change");
|
|
if(paramValue != ""){
|
|
$("#search_oem > option[value=${param.search_oem}]").attr("selected", "true");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//car 목록 조회
|
|
function fn_setCarTypeList(oemObjId){
|
|
if(oemObjId !=""){
|
|
$.ajax({
|
|
url:"/common/getCarTypeList.do",
|
|
type:"POST",
|
|
data:{"isJson":true, "search_oemObjId":oemObjId},
|
|
dataType:"json",
|
|
success:function(data){
|
|
var appendCode = "";
|
|
appendCode += "<option value=''>선택</option>";
|
|
$.each(data, function(i){
|
|
appendCode += "<option value='"+data[i].OBJID+"'>"+data[i].CAR_CODE+"("+data[i].CAR_NAME+")</option>";
|
|
});
|
|
$("#search_carType").children().remove();
|
|
$("#search_carType").append(appendCode);
|
|
$("#search_carType > option[value=${param.search_carType}]").attr("selected", "true");
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}else{
|
|
$("#search_carType").children().remove();
|
|
$("#search_carType").append("<option value=''>선택</option>");
|
|
}
|
|
}
|
|
|
|
//프로젝트 등록 Excel Export
|
|
function excelExport(){
|
|
document.form1.action = "/project/projectTempList.do?actionType=excel";
|
|
document.form1.submit();
|
|
}
|
|
|
|
//프로젝트에 해당하는 WBS Task 목록 PopUp을 호출한다.
|
|
function fn_openProjectWBSTask(){
|
|
if(null != projectObjId){
|
|
window.open("/project/wbs/wbsTaskListPopUp.do?objId="+projectObjId, "", "width=1200, height=960");
|
|
}else{
|
|
Swal.fire("잘못된 접근입니다.");
|
|
}
|
|
}
|
|
|
|
//선택된 프로젝트의 상태를 확정 상태로 변경한다.
|
|
function fn_changeProjectStatus(){
|
|
//if(fn_checkMyProject()){
|
|
if(confirm("선택된 프로젝트를 확정 상태로 변경하시겠습니까? \n 확정된 프로젝트는 WBS Task를 구성합니다.")){
|
|
document.form1.status.value = "confirm";
|
|
$.ajax({
|
|
url:"/project/changeProjectStatus.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(data.result){
|
|
Swal.fire("변경되었습니다..");
|
|
fn_search();
|
|
}else{
|
|
Swal.fire("오류가 발생하였습니다.");
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
//}
|
|
}
|
|
|
|
//확정시 로그인한사람의 프로젝트만 확정할수있다.
|
|
function fn_checkMyProject(){
|
|
var connectedUserId = "${connectUserId}";
|
|
|
|
var chk = $("input[name=projectCheckBox]:checked");
|
|
if(chk.length == 0){
|
|
Swal.fire("선택된 Project가 없습니다.");
|
|
return false;
|
|
}
|
|
|
|
$(chk).each(function(){
|
|
var writer = $(this).attr("data-WRITER");
|
|
if(writer != connectedUserId){
|
|
Swal.fire("본인이 등록한 Project만 확정시킬 수 있습니다.");
|
|
return false;
|
|
}
|
|
});
|
|
|
|
return true;
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<input type="hidden" name="actionType" id="actionType">
|
|
<input type="hidden" name="status" id="status">
|
|
<div id="pageMinWidth">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>프로젝트 현황</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="">연도</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">Project No.</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">발주처</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">프로젝트명</label></td>
|
|
<td colspan="3">
|
|
<select name="" id="" style="width:200px;">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">접수일</label></td>
|
|
<td>
|
|
<input type="text" id="search_fromDate" name="search_fromDate" class="date_margin" value=""onchange="fn_checkDate()" style="width:100px;">- <input type="text" id="search_fromDate" name="search_fromDate" class="date_margin" value=""onchange="fn_checkDate()"style="width:100px;">
|
|
</td>
|
|
<td><label for="">담당자</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="">사양</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</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">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<div style="overflow-x:scroll;">
|
|
<div style="width:2300px;">
|
|
<div style="overflow-y:scroll;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="1%">
|
|
<col width="2%">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
<col width="*%">
|
|
<col width="5%">
|
|
<col width="2%">
|
|
<col width="4%">
|
|
<col width="4%">
|
|
<col width="3%">
|
|
<col width="3%">
|
|
<col width="4%">
|
|
<col width="3%">
|
|
<col width="3%">
|
|
<col width="2%">
|
|
<col width="2%">
|
|
<col width="2%">
|
|
<col width="2%">
|
|
<col width="6%">
|
|
<col width="3%">
|
|
<col width="6%">
|
|
<col width="3%">
|
|
<col width="5%">
|
|
<col width="3%">
|
|
<col width="5%">
|
|
<col width="3%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td rowspan="3"><input type="checkbox" id="checkbox_all"></td>
|
|
<td rowspan="3">구분</td>
|
|
<td rowspan="3">PJ No/주문NO</td>
|
|
<td rowspan="3">발주처</td>
|
|
<td rowspan="3">프로젝트명</td>
|
|
<td rowspan="3">모델명</td>
|
|
<td rowspan="3">수량</td>
|
|
<td rowspan="3">접수일</td>
|
|
<td rowspan="3">영업담당</td>
|
|
<td rowspan="3">사양</td>
|
|
<td colspan="4">일정관리</td>
|
|
<td colspan="4">이슈관리</td>
|
|
<td colspan="8">원가관리<a href="#" class="costPriceFormPopupBtn" style="display:inline-block; padding:0 5px 0 5px; border-radius:3px; line-height:13px; border: 1px solid #efefef; font-size:5px; color:#0a0a0a; background:#ffda83; margin-left:10px;">원가입력</a></td>
|
|
|
|
</tr>
|
|
<tr class="plm_sub_thead">
|
|
<td rowspan="2">WBS</td>
|
|
<td rowspan="2">현단계</td>
|
|
<td rowspan="2">공정율</td>
|
|
<td rowspan="2">지연일수</td>
|
|
<td rowspan="2">발생</td>
|
|
<td rowspan="2">조치</td>
|
|
<td rowspan="2">미결</td>
|
|
<td rowspan="2">조치율</td>
|
|
<td colspan="2">제조원가_2차</td>
|
|
<td colspan="2">제조원가_1차</td>
|
|
<td colspan="2">걔약금액(수주확정가)</td>
|
|
<td colspan="2">제조원가_(영업)</td>
|
|
</tr>
|
|
<tr class="plm_sub_thead">
|
|
<td>금액</td>
|
|
<td>비율(%)</td>
|
|
<td>금액</td>
|
|
<td>비율(%)</td>
|
|
<td>금액</td>
|
|
<td>비율(%)</td>
|
|
<td>금액</td>
|
|
<td>수익율(%)</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="plm_scroll_table" style="width:100%; height:650px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="1%">
|
|
<col width="2%">
|
|
<col width="5%">
|
|
<col width="5%">
|
|
<col width="*%">
|
|
<col width="5%">
|
|
<col width="2%">
|
|
<col width="4%">
|
|
<col width="4%">
|
|
<col width="3%">
|
|
<col width="3%">
|
|
<col width="4%">
|
|
<col width="3%">
|
|
<col width="3%">
|
|
<col width="2%"> <!-- 이슈관리 -->
|
|
<col width="2%">
|
|
<col width="2%">
|
|
<col width="2%">
|
|
<col width="6%"> <!-- 원가관리 -->
|
|
<col width="3%">
|
|
<col width="6%">
|
|
<col width="3%">
|
|
<col width="5%">
|
|
<col width="3%">
|
|
<col width="5%">
|
|
<col width="3%">
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="checkbox" id=""></td>
|
|
<td>확정</td>
|
|
<td>1000000572</td>
|
|
<td>가교택(동아대)</td>
|
|
<td><a href="#" class="slaesPartViewBtn">스마트팩토리제어시스템</a></td>
|
|
<td>1MM60100000</td>
|
|
<td>1</td>
|
|
<td>18-12-17</td>
|
|
<td>최광웅</td>
|
|
<td>신규</td>
|
|
<td><input type="button" href="#" class="blue_btn wbsCaptureBtn" value="WBS" style="float:none; background:#0d58c8 !important; color:#e7eaee;"></td>
|
|
<td>전장설계</td>
|
|
<td class="normal_pace">12.8%</td>
|
|
<td>2</td>
|
|
<td>2</td> <!--이슈관리 -->
|
|
<td>2</td>
|
|
<td>0</td>
|
|
<td>100%</td>
|
|
<td>28,810,000</td> <!-- 원가관리 -->
|
|
<td>76.8%</td>
|
|
<td>46,850,000</td>
|
|
<td>124.9%</td>
|
|
<td>37,500,000</td>
|
|
<td>100.0%</td>
|
|
<td>31,122,000</td>
|
|
<td>83.0%</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |