Files
wace_plm/WebContent/WEB-INF/view/ions/common/searchLotNoPopup.jsp
chpark da06c4684c Initial commit: WACE PLM with database initialization features
- Add Docker Compose configurations for dev, prod, and standalone environments
- Add database initialization scripts (init-db.sh, init-db-docker.sh)
- Add enhanced start-docker-linux.sh with DB init support
- Add comprehensive database initialization guide
- Support for automatic dbexport.pgsql import on first run
- Include safety checks for production environment
2025-08-29 15:46:08 +09:00

157 lines
4.1 KiB
Plaintext

<%
/**
* 검색 팝업 로트번호(기종코드)
* @since 2021.10.01
* @author kim
* @version 1.0
*
* << 개정 이력 >>
*
* 수정일 수정자 수정내용
* ---------------- --------------------- --------------------------------------------------------
* 2021.10.01 김효일 최초작성
**/
%>
<%@ 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>
<link rel="stylesheet" href="/css/ions-basic.css">
<script type="text/javascript" src="/js/ions-common.js" ></script>
<script type="text/javascript">
var selectedItem = {
puLotNo: '' // 로트번호(기종코드)
};
$(function(){
$(document).ready(function() {
// 품목 조회
$("#btnSearch").click(function() {
fn_search();
});
// 품목 선택
$("#btnSelect").click(function(){
if (selectedItem.puLotNo === '') {
Swal.fire("입력 할 로트번호를 선택해 주세요.");
return;
}
opener.lotNoSelected(selectedItem);
self.close(0);
});
});
});
// 검색
function fn_search() {
document.form1.action = "/imItem/searchLotNo.do";
document.form1.submit();
}
// 로트번호(기종코드) 선택
function itemClick(puLotNo) {
selectedItem.puLotNo = puLotNo;
$("tr").removeClass("selected");
$("#" + puLotNo).addClass("selected");
}
</script>
</head>
<body class="backcolor">
<section>
<div id="businessPopupFormWrap">
<!--// form1 -->
<form name="form1" id="form1" method="GET">
<div id="plmSearchZon">
<table>
<tbody>
<tr>
<td class="align_r">
<label for="" class="">기종명</label>
</td>
<td>
<input type="text" name="condGoodsNm" id="condGoodsNm" value="${param.condGoodsNm}" style="width: 100px;" />
</td>
<td style="padding-right:15px;">&nbsp;</td>
<td><input type="button" value="검색" class="gray_btns" id="btnSearch" /></td>
</tr>
</tbody>
</table>
</div>
<!--// 로트번호(기종코드) 리스트 -->
<table class="plm_table table-hover">
<colgroup>
<col width="10%" />
<col width="*" />
<col width="10%" />
<col width="10%" />
<col width="20%" />
<col width="10%" />
</colgroup>
<thead>
<tr class="plm_thead">
<td>제품코드</td>
<td>제품명</td>
<td>규격</td>
<td>단위</td>
<td>제품그룹</td>
<td>보증기간</td>
</tr>
</thead>
<tbody>
<c:choose>
<c:when test="${empty LIST}">
<tr style="text-align:center;">
<td align="center" colspan="6">조회된 데이터가 없습니다.</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
<tr onclick="itemClick('${item.GOODSCD}');" id="${item.GOODSCD}">
<td>${item.GOODSCD}</td>
<td>${item.GOODSNM}</td>
<td>${item.GOODSSPEC}</td>
<td>${item.GOODSUNIT}</td>
<td>${item.C_CLASSNM}</td>
<td>
<c:if test="${item.GOODSGUARANTEE >= 0}">
${item.GOODSGUARANTEE}개월
</c:if>
</td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
</tbody>
</table>
<!--// 로트번호(기종코드) 리스트 -->
<!--// pdm_page -->
<%@include file="./paging.jsp" %>
<!--// pdm_page -->
</form>
<!--// form1 -->
<div class="btn_wrap">
<div class="plm_btn_wrap">
<input type="button" value="선택" class="plm_btns" id="btnSelect">
</div>
</div>
</div>
<p></p>
</section>
</body>
</html>