199 lines
9.8 KiB
Plaintext
199 lines
9.8 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" %>
|
|
<%-- <%@include file="/init_jqGrid.jsp"%> --%><%--Expression Language ::: ${fn:escapeXml(str1)} --%>
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
</head>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
fnc_changePaginationAndTotalCountArea();
|
|
|
|
$('.select2').select2();
|
|
fnc_datepick();
|
|
|
|
// 품번/품명 Select2 AJAX 초기화
|
|
initPartSelect2Ajax("#part_no", "#part_name", "#search_part_objid");
|
|
|
|
//fnc_getCodeListAppend("CUST_CD","CUSTOMER_CD","${param.CUSTOMER_CD}");
|
|
//$("#Year").val("${sysYear}");
|
|
|
|
//엔터 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
//조회
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
$("#contract_objid").change(function(){
|
|
fn_UnitCodeList(this.value, "unit_code", "");
|
|
});
|
|
|
|
fn_search();
|
|
});
|
|
|
|
var columns = [
|
|
{title:'OBJID', field:'OBJID' ,visible: false},
|
|
,{headerHozAlign : 'center', hozAlign : 'left', title : "EO No", field :"EO_NO" , width:85 }
|
|
//,{headerHozAlign : 'center', hozAlign : 'center', title : "년도", field :"YEAR" , width:100 }
|
|
,{headerHozAlign : 'center', hozAlign : 'left', title : "프로젝트번호", field :"PROJECT_NO" , width:100 }
|
|
,{headerHozAlign : 'center', hozAlign : 'left', title : "프로젝트명", field :"PROJECT_NAME" , width:150 }
|
|
,{headerHozAlign : 'center', hozAlign : 'left', title : "유닛명", field :"UNIT_NAME" , width:150 }
|
|
,{headerHozAlign : 'center', hozAlign :'left' , title : '모품번', field :'PARENT_PART_INFO', width:150 }
|
|
,{headerHozAlign : 'center', hozAlign : 'left', title : "품번", field :"PART_NO" , width:150,
|
|
formatter: fnc_createGridAnchorTag,
|
|
cellClick : function(e, cell) {
|
|
fn_partMngHisDetail(cell.getData().OBJID);
|
|
}
|
|
}
|
|
,{headerHozAlign : 'center', hozAlign : 'left', title : "품명", field :"PART_NAME" /* , width:150 */}
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : '수량', field :'QTY' , width :55}
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : '변경수량', field :'QTY_TEMP' , width :75}
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : "EO구분", field :"CHANGE_TYPE_NAME", width :75 }
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : "EO사유", field :"CHANGE_OPTION_NAME", width:75}
|
|
//,{headerHozAlign : 'center', hozAlign : 'center', title : "STATUS", field :"BOM_QTY_STATUS", width:80}
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : "Revision", field :"REVISION" , width:85 }
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : "EO Date", field :"EO_DATE" , width:85 }
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : "PART구분", field :"PART_TYPE_NAME" , width:90 }
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : "담당자", field :"WRITER_NAME" , width:80 }
|
|
,{headerHozAlign : 'center', hozAlign : 'center', title : "실행일", field :"HIS_REG_DATE_TITLE" , width:80 }
|
|
//,{headerHozAlign : 'center', hozAlign : 'center', title : "BOM배포일", field :"BOM_DEPLOY_DATE_TITLE" , width:95 }
|
|
];
|
|
|
|
//var grid;
|
|
function fn_search(){
|
|
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngHisGridList.do", columns, true);
|
|
}
|
|
|
|
/* function col_custom_fmt(cellvalue, options, rowObject) {
|
|
//console.log("rid : "+ options.rowId + " colModel["+JSON.stringify(options.colModel)+"]");
|
|
var return_fmt = "";
|
|
cellvalue = fnc_checkNull(cellvalue);
|
|
|
|
if(options.colModel.name == "SERVICE_NO" ){ //접수 NO
|
|
var url = "/as/asMngFormPopUp.do?objId="+rowObject.OBJID;
|
|
return_fmt = '<a href="#" onclick="javascript:fn_centerPopup(1200, 730, \''+url+'\', \'asMngFormPopUp\');">'+cellvalue+'</a>';
|
|
|
|
}else if(options.colModel.name == "CU03_CNT" ){ //첨부파일
|
|
var url = "/projectConcept/FileRegistPopup.do?docType=AS_DOC_01&docTypeName=AS_DOC_01&targetObjId="+rowObject.OBJID;
|
|
var empty = ($.isNumeric(cellvalue) && Number(cellvalue) > 0) ? "" : "empty_";
|
|
return_fmt = '<a href="#" class="File file_'+empty+'icon" onclick="javascript:fn_centerPopup(550, 250, \''+url+'\', \'fileAS_DOC_01\');"></a>';
|
|
}else if(options.colModel.name == "PART_NO" ){ //첨부파일
|
|
var url = "/partMng/partMngHisDetailPopUp.do?OBJID="+rowObject.OBJID;
|
|
var empty = ($.isNumeric(cellvalue) && Number(cellvalue) > 0) ? "" : "empty_";
|
|
return_fmt = '<a href="#" onclick="javascript:fn_centerPopup(550, 250, \''+url+'\', \'fileAS_DOC_01\');">'+cellvalue+'</a>';
|
|
}else{
|
|
return_fmt = cellvalue;
|
|
}
|
|
return return_fmt;
|
|
} */
|
|
|
|
|
|
/**
|
|
unFormatter : grid1.getRowData(), getCell(n,colname) 에서 값만 나오게하는 함수
|
|
*/
|
|
/* function col_custom_fmt_un(cellvalue, options, cell) {
|
|
return cellvalue;
|
|
} */
|
|
|
|
//영업활동등록 상세
|
|
function fn_partMngHisDetail(objId){
|
|
var popup_width = 800;
|
|
var popup_height = 550;
|
|
var url = "/partMng/partMngHisDetailPopUp.do?OBJID="+objId;
|
|
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
</script>
|
|
<body class="backcolor">
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<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" class="plm_btns" value="조회" id="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="">프로젝트번호</label></td>
|
|
<td><select name="contract_objid" id="contract_objid" class="select2" style="" autocomplete="off"><option value="">선택</option>${code_map.contract_objid}</select></td>
|
|
|
|
<td><label for="unit_code">유닛명</label></td>
|
|
<td><select name="unit_code" id="unit_code" style="width:250px" class="select2" autocomplete="off"></select></td>
|
|
|
|
<td><label for="">품번</label></td>
|
|
<td>
|
|
<select name="part_no" id="part_no" class="select2-part" style="width:150px;">
|
|
<option value="">품번 선택</option>
|
|
</select>
|
|
<input type="hidden" name="search_part_objid" id="search_part_objid" value="">
|
|
</td>
|
|
|
|
<td><label for="">품명</label></td>
|
|
<td>
|
|
<select name="part_name" id="part_name" class="select2-part" style="width:150px;">
|
|
<option value="">품명 선택</option>
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="">EO사유</label></td>
|
|
<td><select name="change_option" id="change_option" class="select2" autocomplete="off"><option value="">선택</option>${code_map.change_option}</select></td>
|
|
|
|
<td class="align_r"><label>EO Date</label></td>
|
|
<td>
|
|
<input type="text" name="eo_start_date" id="eo_start_date" style="width:90px;" autocomplete="off" value="${param.eo_start_date}" class="date_icon">~
|
|
<input type="text" name="eo_end_date" id="eo_end_date" style="width:90px;" autocomplete="off" value="${param.eo_end_date }" class="date_icon">
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><label for="">EO구분</label></td>
|
|
<td><select name="change_type" id="change_type" class="select2" autocomplete="off"><option value="">선택</option>${code_map.change_type}</select></td>
|
|
<%-- <td><label for="">EO단계</label></td>
|
|
<td><select name="eo_step" id="eo_step" class="select2" autocomplete="off"><option value="">선택</option>${code_map.eo_step}</select></td> --%>
|
|
|
|
<td><label for="">PART 구분</label></td>
|
|
<td><select name="part_type" id="part_type" class="select2" autocomplete="off"><option value="">선택</option>${code_map.part_type}</select></td>
|
|
|
|
<td><label for="">담당자</label></td>
|
|
<td><select name="writer_id" id="writer_id" class="select2" autocomplete="off"><option value="">선택</option>${code_map.writer_id}</select></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |