302 lines
12 KiB
Plaintext
302 lines
12 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ 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 %>" />
|
|
|
|
<style>
|
|
.select2-selection__choice {
|
|
font-size: 11px;
|
|
background-color: #fff !important;
|
|
border: none !important;
|
|
margin-right: 0px !important;
|
|
}
|
|
.select2-selection__choice__remove {
|
|
display: contents !important;
|
|
}
|
|
.select2-container .select2-selection--multiple {
|
|
min-height: 20px !important;
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
margin-top: 3.5px !important;
|
|
}
|
|
.select2-selection__rendered {
|
|
height: 18px !important;
|
|
}
|
|
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
|
overflow: auto !important;
|
|
}
|
|
</style>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
|
|
//엔터 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
fn_search();
|
|
});
|
|
|
|
|
|
function wbs_popup(objId, tmpUrl){
|
|
var popup_width = 1200;
|
|
var popup_height = 800;
|
|
var objId = objId;
|
|
var params = "?OBJID="+objId;
|
|
|
|
var url = "";
|
|
if (tmpUrl=='design') {
|
|
url = "/costMgmt/laborCostMgmtDesignPopUp.do"+params;
|
|
} else if (tmpUrl=='assembly') {
|
|
url = "/costMgmt/laborCostMgmtAssemblyPopUp.do"+params;
|
|
} else if (tmpUrl=='setup') {
|
|
url = "/costMgmt/laborCostMgmtSetupPopUp.do"+params;
|
|
}
|
|
|
|
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
|
|
|
|
var columns = [
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '100', title : '프로젝트번호', field : 'PROJECT_NO' ,frozen:true,
|
|
formatter:fnc_createGridAnchorTag,
|
|
cellClick:function(e, cell){
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
openProjectFormPopUp(objid);
|
|
}
|
|
},
|
|
{title:"프로젝트정보", headerHozAlign:'center', //고객정보
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '120', title : '고객사', field : 'CUSTOMER_NAME' },
|
|
//{headerHozAlign : 'center', hozAlign : 'left', width : '90', title : '제품구분', field : 'PRODUCT_NAME' },
|
|
//{headerHozAlign : 'center', hozAlign : 'left', width : '90', title : '기계형식', field : 'MECHANICAL_TYPE' },
|
|
//{headerHozAlign : 'center', hozAlign : 'left', width : '180', title : '고객사프로젝트명', field : 'CUSTOMER_PROJECT_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '170', title : '당사프로젝트명', field : 'PROJECT_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '요청납기일', field : 'REQ_DEL_DATE' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '120', title : '셋업지', field : 'SETUP' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '70', title : 'PM', field : 'PM_USER_NAME' }
|
|
],
|
|
},
|
|
|
|
{title:"노무비현황", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '130', title : '목표가', field : 'LABOR_COST_TARGET' ,frozen:true,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '130', title : '실투입노무비', field : 'LABOR_COST_ACTUAL',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '투입율(%)', field : 'LABOR_INPUT_RATE' }
|
|
|
|
],
|
|
},
|
|
|
|
{title:"설계노무비", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '설계공수', field : 'LABOR_DESIGN_INPUT_NUMBER' ,frozen:true,
|
|
formatter:fnc_createGridAnchorTag,
|
|
cellClick : function(e, cell) {
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
wbs_popup(objid,'design');
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '130', title : '산출금액', field : 'LABOR_DESIGN_COST', frozen:true,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}}
|
|
],
|
|
},
|
|
|
|
{title:"조립노무비", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '조립공수', field : 'LABOR_ASSEMBLY_INPUT_NUMBER' ,frozen:true,
|
|
formatter:fnc_createGridAnchorTag
|
|
/* ,
|
|
cellClick : function(e, cell) {
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
wbs_popup(objid,'assembly');
|
|
} */
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '130', title : '산출금액', field : 'LABOR_ASSEMBLY_COST' ,frozen:true,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}}
|
|
],
|
|
},
|
|
|
|
{title:"셋업노무비", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '셋업공수', field : 'LABOR_SETUP_INPUT_NUMBER' ,frozen:true,
|
|
formatter:fnc_createGridAnchorTag,
|
|
cellClick : function(e, cell) {
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
wbs_popup(objid,'setup');
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '130', title : '산출금액', field : 'LABOR_SETUP_COST' ,frozen:true,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}}
|
|
],
|
|
}
|
|
];
|
|
|
|
//var grid;
|
|
function fn_search(){
|
|
var selectedValues = $("#project_no").val();
|
|
|
|
$('<input>').attr({
|
|
type: 'hidden',
|
|
name: 'project_nos',
|
|
value: selectedValues
|
|
}).appendTo('#form1');
|
|
|
|
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/costMgmt/laborCostMgmtGridList.do", columns, false);
|
|
// _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/productionplanning/setupmgmtGridList.do", columns, false);
|
|
}
|
|
|
|
//영업활동등록 상세
|
|
function fn_projectConceptDetail(objId){
|
|
window.open("/ordermgmt/ordermgmtUpdateFormPopup.do?objId="+objId, "", "width=650, height=930","menubars=no, scrollbars=yes, resizable=yes");
|
|
}
|
|
|
|
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openProjectFormPopUp(objId){
|
|
var popup_width = 420;
|
|
var popup_height = 350;
|
|
var objId = objId;
|
|
var params = "?OBJID="+objId;
|
|
var url = "/project/projectmodifyPopUp.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
function fn_apply(objId,val,dpet,userId,OUT){
|
|
var param = "&" + $("#form1").serialize();
|
|
var outVal = "";
|
|
if(OUT == "OUT"){
|
|
outVal = "outList";
|
|
}else if(OUT == "total"){
|
|
outVal = "total";
|
|
}else{
|
|
outVal = "inList";
|
|
}
|
|
|
|
window.open("/costMgmt/laborCostTimeSheetPopup.do?objId="+objId+"®ist="+val+"&dpet_val="+dpet+"®UserId="+$("#sheet_writer").val()+"&outVal="+outVal+ param, "", "width=1340, height=530");
|
|
}
|
|
|
|
function fn_apply2(objId,val,dpet,userId,OUT){
|
|
var param = "&" + $("#form1").serialize();
|
|
var outVal = "";
|
|
if(userId == ""){
|
|
outVal = "outDeptList";
|
|
}
|
|
window.open("/costMgmt/laborCostTimeSheetPopup.do?objId="+objId+"®ist="+val+"&dpet_val="+dpet+"®UserId="+userId+"&outVal="+outVal+ param, "", "width=1340, height=360");
|
|
}
|
|
|
|
function fn_costMgmtDetail(val){
|
|
$("#LIST_KIND").val(val);
|
|
document.form1.action = "/costMgmt/laborCostMgmtList.do";
|
|
document.form1.submit();
|
|
|
|
}
|
|
|
|
function fn_prodMgmList(val){
|
|
//$("#LIST_KIND").val(val);
|
|
$("#projectNo").val(val);
|
|
document.form1.action = "/Production/ProdMgmList.do";
|
|
document.form1.submit();
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="actionType" value="" />
|
|
<div class="min_part_enroll">
|
|
<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" id="btnSearch" name="btnSearch">
|
|
</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="project_no">프로젝트번호</label></td>
|
|
<td>
|
|
<select name="project_no" id="project_no" style="width:300px;" class="select2" autocomplete="off" multiple="multiple">
|
|
<option value="">선택</option>
|
|
${code_map.project_no}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="customer_objid">고객사</label></td>
|
|
<td>
|
|
<select name="customer_objid" id="customer_objid" style="width:200px" 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><label for="pm_user_id">PM</label></td>
|
|
<td>
|
|
<select name="pm_user_id" id="pm_user_id" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.pm_user_id}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |