311 lines
11 KiB
Plaintext
311 lines
11 KiB
Plaintext
<%
|
|
/**
|
|
* 제품관리 상세 조회
|
|
* @since 2021.11.03
|
|
* @author min
|
|
* @version 1.0
|
|
*
|
|
* << 개정 이력 >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ---------------- --------------------- --------------------------------------------------------
|
|
* 2021.11.03 김효일 최초작성
|
|
**/
|
|
%>
|
|
<%@ 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();
|
|
|
|
// 양산제품코드 검색
|
|
$("#btnGoodsSearch").click(function(){
|
|
window.open("/common/salesMgmt/searchProduct.do", "searchProduct", "width=1024, height=530", "menubars=no, scrollbars=yes, resizable=yes");
|
|
});
|
|
|
|
// 저장
|
|
$("#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:"/goodsMgmt/saveGoodsMgmt.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.RESULT.msg);
|
|
|
|
if (data.RESULT.result) {
|
|
opener.fn_search();
|
|
self.close();
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
// 제품관리 정보 삭제
|
|
function fn_delete() {
|
|
if(confirm("삭제 하시겠습니까?")){
|
|
deleteProcess();
|
|
}
|
|
}
|
|
|
|
// 삭제
|
|
function deleteProcess(){
|
|
$.ajax({
|
|
url:"/goodsMgmt/deleteGoodsMgmt.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.RESULT.msg);
|
|
|
|
if (data.RESULT.result) {
|
|
opener.fn_search();
|
|
self.close();
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
// 양산제품 선택
|
|
function productSelected(selectedItem) {
|
|
form1.goodsNm.value = selectedItem.productName;
|
|
form1.objId.value = selectedItem.objId;
|
|
form1.masterObjId.value = selectedItem.masterObjId;
|
|
}
|
|
</script>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="actionType" id="actionType" value="${param.actionType}" />
|
|
<input type="hidden" name="objId" id="objId" value="${info.OBJID}" />
|
|
<input type="hidden" name="masterObjId" id="masterObjId" value="${info.MASTEROBJID}" />
|
|
|
|
<section>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>제품 등록</span>
|
|
</h2>
|
|
</div>
|
|
|
|
<div id="businessPopupFormWrap" >
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="10%"/>
|
|
<col width="15%"/>
|
|
<col width="25%"/>
|
|
<col width="25%"/>
|
|
<col width="25%"/>
|
|
</colgroup>
|
|
<tr><td colspan="5" style="height:15px;"></td></tr>
|
|
<tr>
|
|
<td rowspan="13" class="sub_title">제품정보</td>
|
|
<td class="input_title" style="font-size:13px;"><label for="">* 제품코드</label> </td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<c:if test="${param.actionType eq 'regist'}">
|
|
<input type="text" name="goodsCd" id="goodsCd" required reqTitle="제품" maxlength="15" style="width:130px;float:left;" />
|
|
<span><input type="button" value="?" class="gray_btns" id="btnGoodsSearch"></span>
|
|
</c:if>
|
|
<c:if test="${param.actionType ne 'regist'}">
|
|
<input type="text" name="goodsCd" id="goodsCd" value="${param.goodsCd}" readonly style="width:130px;background-color:#EFEFEF;" />
|
|
</c:if>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">* 제품명</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<input type="text" name="goodsNm" id="goodsNm" value="${info.GOODSNM}" required reqTitle="제품명" style="width:200px;" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">제품규격</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<input type="text" name="goodsSpec" id="goodsSpec" value="${info.GOODSSPEC}" style="width:130px;" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">단위</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<input type="text" name="goodsUnit" id="goodsUnit" value="${info.GOODSUNIT}" style="width:130px;" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">제품그룹</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<select name="cClass" id="cClass" type="select" style="width:90%;" class="select2">
|
|
<option value="">선택</option>
|
|
<c:forEach var="cClassList" items="${codeMap.cClassList}">
|
|
${cClassList}
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">법인</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<select name="acntUnit" id="acntUnit" type="select" style="width:130px;" class="select2">
|
|
<option value="">선택</option>
|
|
<c:forEach var="acntUnitList" items="${codeMap.acntUnitList}">
|
|
${acntUnitList}
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">판매금액</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<input type="text" name="costAmt" id="costAmt" value="${info.COST_AMT}" maxlength="10" style="width:130px;" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">보증기간</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<select name="goodsGuarantee" id="goodsGuarantee" type="select" style="width:130px;" class="select2">
|
|
<option value="">선택</option>
|
|
<option value="0" ${info.GOODSGUARANTEE eq '0' ? 'selected' : ''}>0</option>
|
|
<option value="6" ${info.GOODSGUARANTEE eq '6' ? 'selected' : ''}>6</option>
|
|
<option value="12" ${info.GOODSGUARANTEE eq '12' ? 'selected' : ''}>12</option>
|
|
<option value="18" ${info.GOODSGUARANTEE eq '18' ? 'selected' : ''}>18</option>
|
|
<option value="24" ${info.GOODSGUARANTEE eq '24' ? 'selected' : ''}>24</option>
|
|
<option value="27" ${info.GOODSGUARANTEE eq '27' ? 'selected' : ''}>27</option>
|
|
<option value="36" ${info.GOODSGUARANTEE eq '36' ? 'selected' : ''}>36</option>
|
|
<option value="48" ${info.GOODSGUARANTEE eq '48' ? 'selected' : ''}>48</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">영업소</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<select name="gb1" id="gb1" type="select" style="width: 130px;" class="select2">
|
|
<option value="">선택</option>
|
|
<option value="0" ${info.GB1 eq '0' ? 'selected' : ''}>비공개</option>
|
|
<option value="1" ${info.GB1 eq '1' ? 'selected' : ''}>공개</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">등록일자</label></td>
|
|
<td width="21%" class="input_sub_title">
|
|
<input type="text" id="regYmd"name="regYmd" value="${info.REGYMD}" readonly class="date_icon" style="width:100px !important;background-color:#fff;" autocomplete="off" />
|
|
</td>
|
|
<td width="13%" class="input_title" style="font-size:13px;"><label for="">단종일자</label></td>
|
|
<td width="48%" class="input_sub_title">
|
|
<input type="text" id="delYmd"name="delYmd" value="${info.DELYMD}" readonly class="date_icon" style="width:100px !important;background-color:#fff;" autocomplete="off" />
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="5" style="height:15px;"></td></tr>
|
|
</table>
|
|
<br />
|
|
<br />
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="10%"/>
|
|
<col width="15%"/>
|
|
<col width="25%"/>
|
|
<col width="25%"/>
|
|
<col width="25%"/>
|
|
</colgroup>
|
|
<tr><td colspan="5" style="height:15px;"></td></tr>
|
|
<tr>
|
|
<td rowspan="13" class="sub_title">판매수수료</td>
|
|
<td class="input_title" style="font-size:13px;"><label for="">적용여부</label></td>
|
|
<td width="21%" class="input_sub_title">
|
|
<select name="commiYn" id="commiYn" type="select" style="width: 130px;" class="select2">
|
|
<option value="">선택</option>
|
|
<option value="0" ${info.COMMIYN eq '0' ? 'selected' : ''}>미적용</option>
|
|
<option value="1" ${info.COMMIYN eq '1' ? 'selected' : ''}>적용</option>
|
|
</select>
|
|
</td>
|
|
<td width="13%" class="input_title" style="font-size:13px;"><label for="">방식/수식</label></td>
|
|
<td width="48%" class="input_sub_title">
|
|
<select name="commiGb" id="commiGb" type="select" style="width: 130px;" class="select2">
|
|
<option value="">선택</option>
|
|
<c:forEach var="commiGbList" items="${codeMap.commiGbList}">
|
|
${commiGbList}
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">크레인(%)</label></td>
|
|
<td width="21%" class="input_sub_title">
|
|
<input type="text" name="cCommiPer" id="cCommiPer" value="${info.CCOMMIPER}" maxlength="10" style="width:130px;" />
|
|
</td>
|
|
<td width="13%" class="input_title" style="font-size:13px;"><label for="">크레인(금액)</label></td>
|
|
<td width="48%" class="input_sub_title">
|
|
<input type="text" name="cCommiAmt" id="cCommiAmt" value="${info.CCOMMIAMT}" maxlength="10" style="width:130px;" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" style="font-size:13px;"><label for="">특장(%)</label></td>
|
|
<td width="21%" class="input_sub_title">
|
|
<input type="text" name="tCommiPer" id="tCommiPer" value="${info.TCOMMIPER}" maxlength="10" style="width:130px;" />
|
|
</td>
|
|
<td width="13%" class="input_title" style="font-size:13px;"><label for="">특장(금액)</label></td>
|
|
<td width="48%" class="input_sub_title">
|
|
<input type="text" name="tCommiAmt" id="tCommiAmt" value="${info.TCOMMIAMT}" maxlength="10" style="width:130px;" />
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="5" style="height:15px;"></td></tr>
|
|
</table>
|
|
|
|
<br />
|
|
<br />
|
|
</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> |