186 lines
5.2 KiB
Plaintext
186 lines
5.2 KiB
Plaintext
<%
|
|
/**
|
|
* 기본옵션 팝업창
|
|
* @since 2021.11.05
|
|
* @author min
|
|
* @version 1.0
|
|
*
|
|
* << 개정 이력 >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ---------------- --------------------- --------------------------------------------------------
|
|
* 2021.11.05 민상익 최초작성
|
|
**/
|
|
%>
|
|
<%@ 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>
|
|
</head>
|
|
|
|
<link rel="stylesheet" href="/css/ions-basic.css">
|
|
<script type="text/javascript" src="/js/ions-common.js" ></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
|
|
fnc_makeDatepick();
|
|
|
|
// 저장
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
// 삭제
|
|
$("#btnDelete").click(function(){
|
|
fn_delete();
|
|
});
|
|
|
|
// 닫기
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
});
|
|
|
|
// 기본옵션 정보 등록
|
|
function fn_save(){
|
|
//if(fnc_valitate("form1")){
|
|
if(confirm("등록 하시겠습니까?")){
|
|
saveProcess();
|
|
}
|
|
//}
|
|
}
|
|
|
|
// 기본옵션등록
|
|
function saveProcess(){
|
|
$.ajax({
|
|
url:"/requestMgmt/saveBasicOption.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.RESULT.msg);
|
|
opener.fn_search();
|
|
self.close();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
// 출고의뢰 정보 삭제
|
|
function fn_delete() {
|
|
if(confirm("삭제 하시겠습니까?")){
|
|
deleteProcess();
|
|
}
|
|
}
|
|
|
|
// 삭제
|
|
function deleteProcess(){
|
|
$.ajax({
|
|
url:"/requestMgmt/deleteReleaseRequest.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.RESULT.msg);
|
|
opener.fn_search();
|
|
self.close();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="orderNo" id="orderNo" value="${param.orderNo}" /> <!-- 계약번호 -->
|
|
<input type="hidden" name="acntUnit" id="acntUnit" value="${param.acntUnit}" /> <!-- 사업부 -->
|
|
<input type="hidden" name="orderYm" id="orderYm" value="${param.orderYm}" /> <!-- 계약년월 -->
|
|
<input type="hidden" name="orderSer" id="orderSer" value="${param.orderSer}" /> <!-- 일련번호 -->
|
|
<input type="hidden" name="goodsCd" id="goodsCd" value="${param.goodsCd}" /> <!-- 일련번호 -->
|
|
|
|
<section>
|
|
<div class="plm_menu_name_ieg" style="display:flex;">
|
|
<h2>
|
|
<span>기본옵션등록</span>
|
|
</h2>
|
|
</div>
|
|
|
|
<div id="businessPopupFormWrap">
|
|
<h3 class="sub_title_left">기본옵션정보</h3>
|
|
<br>
|
|
<table class="plm_table3">
|
|
<colgroup>
|
|
<col width="5%" />
|
|
<col width="12%" />
|
|
<col width="13%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>순번</td>
|
|
<td>기본옵션분류</td>
|
|
<td>명칭</td>
|
|
<td>규격</td>
|
|
<td>재질</td>
|
|
<td>단위</td>
|
|
<td>수량</td>
|
|
<td>판매금액</td>
|
|
<td>원가금액</td>
|
|
<td>포함</td>
|
|
</tr>
|
|
</thead>
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="10">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
|
|
<tr>
|
|
<td><a href="javascript:;" onclick="openProductFormPopup('${item.SEQ}')">${item.SEQ}</a></td>
|
|
<td>${item.BOPT_NM}</td>
|
|
<td>${item.BOPT_CLASSNM}</td>
|
|
<td>${item.STANDARD}</td>
|
|
<td>${item.MATERIAL}</td>
|
|
<td>${item.UNIT}</td>
|
|
<td>${item.QTY}</td>
|
|
<td>${item.TOT_AMT}</td>
|
|
<td>${item.COST_AMT}</td>
|
|
<td><input type="checkbox" name="checkYn" id="checkYn" value="${item.BOPT_CLASS}|${item.BOPT_CD}" ${item.YN eq '1' ? 'checked' : ''} /></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<c:if test="${(param.actionType ne 'view' and info.REG_USER_ID eq connectUserId) or 'regist' eq param.actionType or 'plm_admin' eq connectUserId}">
|
|
<input type="button" value="저장" id="btnSave" class="plm_btns">
|
|
</c:if>
|
|
<c:if test="${(param.actionType eq 'modify' and info.REG_USER_ID eq connectUserId) or 'plm_admin' eq connectUserId}">
|
|
<input type="button" value="삭제" id="btnDelete" class="plm_btns">
|
|
</c:if>
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |