124 lines
4.3 KiB
Plaintext
124 lines
4.3 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ 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>
|
|
</head>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#btn_close").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13) fn_search();
|
|
});
|
|
|
|
$(".partTr").click(function(){
|
|
var callback = "${param.callback}";
|
|
var objId = $(this).attr("data-OBJID");
|
|
var partNo = $(this).attr("data-PART_NO");
|
|
var partName = $(this).attr("data-PART_NAME");
|
|
eval("opener."+callback+"('"+objId+"', '"+partNo+"', '"+partName+"')");
|
|
self.close(0);
|
|
});
|
|
|
|
$("#search_partNo").focus();
|
|
});
|
|
</script>
|
|
<script>
|
|
function fn_search(){
|
|
var partNo = $("#search_partNo").val();
|
|
var partName = $("#search_partName").val();
|
|
|
|
if(partNo != "" || partName != ""){
|
|
document.searchPartForm.action = "/common/openSearchPartPopup.do";
|
|
document.searchPartForm.submit();
|
|
|
|
}else{
|
|
Swal.fire("조회할 조건을 입력해 주시기 바랍니다.");
|
|
$("#search_partNo").focus();
|
|
}
|
|
}
|
|
</script>
|
|
<body>
|
|
<form name="searchPartForm" id="searchPartForm" action="" method="post">
|
|
<input type="hidden" name="callback" id="callback" value="${param.callback}" />
|
|
<section class="business_staff_popup_min_width">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>파트 조회</span>
|
|
</h2>
|
|
</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="25%">
|
|
<col width="75%">
|
|
<col width="25%">
|
|
<col width="75%">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">Part No</td>
|
|
<td><input type="text" name="search_partNo" id="search_partNo" value="${param.search_partNo}"></td>
|
|
<td class="input_title">Part Name</td>
|
|
<td><input type="text" name="search_partName" id="search_partName" value="${param.search_partName}" style="width:80%"> <input type="button" value="조회" class="blue_btn" id="btnSearch">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4">
|
|
<table class="spec_data_in_table">
|
|
<table id="" class="fileListscrollThead" style="width:97%">
|
|
<colgroup>
|
|
<col width="20%">
|
|
<col width="80%">
|
|
</colgroup>
|
|
<tr>
|
|
<td>Part No</td>
|
|
<td>Part Name</td>
|
|
</tr>
|
|
</table>
|
|
<div style="height:243px; overflow-y:scroll; border-bottom:2px solid #cacaca;">
|
|
<table class="fileListscrollTbody">
|
|
<colgroup>
|
|
<col width="20%">
|
|
<col width="80%">
|
|
</colgroup>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr class="partTr" style="cursor:pointer;" data-OBJID="${info.OBJID}" data-PART_NO="${info.PART_NO}" data-PART_NAME="${info.PART_NAME}" onmouseover="this.style.backgroundColor='#FDF1FF'" onmouseout="this.style.backgroundColor=''">
|
|
<td>${info.PART_NO}</td>
|
|
<td>${info.PART_NAME}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="2" align="center">조회된 대상이 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="닫기" id="btn_close" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |