ERP-node/WebContent/WEB-INF/view/salesmgmt/requestMgmt/shipmentRequestPopup.jsp

333 lines
13 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/saveShipmentRequest.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:"/requestMgmt/deleteShipmentRequest.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){
}
});
}
</script>
<body>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="orderNo"" id="orderNo" value="${param.orderNo}" /> <!-- 계약번호 -->
<input type="hidden" name="frwReqNo"" id="frwReqNo" value="${info.FRW_REQ_NO}" /> <!-- 출하 의뢰 번호 -->
<section>
<div class="plm_menu_name" style="display:flex;">
<h2>
<span>출하/장착의뢰서 등록</span>
</h2>
</div>
<div id="businessPopupFormWrap">
<table class="pmsPopupForm">
<colgroup>
<col width="20%"/>
<col width="15%"/>
<col width="15%"/>
<col width="15%"/>
<col width="15%"/>
<col width="10%"/>
<col width="25%"/>
</colgroup>
<tr><td colspan="7" style="height:15px;"></td></tr>
<tr>
<td rowspan="11" class="sub_title">출하/장착의뢰서정보</td>
<c:if test="${param.actionType ne 'regist'}">
<td class="input_title" style="font-size:13px;"><label for="">의뢰번호</label> </td>
<td colspan="5" class="input_sub_title">
<input type="text" name="displayfrwReqNo" id="displayfrwReqNo" value="${info.FRW_REQ_NO}" disabled maxlength="20" style="width:130px;" />
</td>
</c:if>
</tr>
<tr>
<td class="input_title" style="font-size:13px;"><label for="">* 의뢰일자</label></td>
<td class="input_sub_title">
<input type="text" name="reqDate" id="reqDate" required reqTitle="의뢰일자" value="${info.REQ_DATE}" class="date_icon" style="width: 130px !important;background-color:#fff;" autocomplete="off" />
</td>
<td class="input_title" style="font-size:13px;"><label for="">* 작성일자</label></td>
<td colspan="3" class="input_sub_title">
<input type="text" name="wrtDate" id="wrtDate" required reqTitle="작성일자" value="${info.WRT_DATE}" class="date_icon" style="width: 130px !important;background-color:#fff;" autocomplete="off" />
</td>
<td class="input_sub_title"></td>
</tr>
<tr>
<td class="input_title" style="font-size:13px;"><label for="">* 의뢰구분</label></td>
<td class="input_sub_title">
<select name="reqGb" id="reqGb" required reqTitle="의뢰구분" type="select" style="width:120px;" class="select2">
<option value="">선택</option>
<option value="0" ${info.REQ_GB eq '0' ? 'selected':'' }>무</option>
<option value="1" ${info.REQ_GB eq '1' ? 'selected':'' }>유</option>
</select>
</td>
<td class="input_title" style="font-size:13px;"><label for="">* 고정식유무</label></td>
<td class="input_sub_title">
<select name="fixYn" id="fixYn" required reqTitle="고정식유무" type="select" style="width:120px;" class="select2">
<option value="">선택</option>
<option value="0" ${info.FIX_YN eq '0' ? 'selected':'' }>일반</option>
<option value="1" ${info.FIX_YN eq '1' ? 'selected':'' }>고정</option>
</select>
</td>
<td class="input_sub_title">&nbsp;</td>
<td class="input_sub_title">&nbsp;</td>
</tr>
<tr>
<td class="input_title" style="font-size:13px;"><label for="">* 발신부서</label></td>
<td width="21%" class="input_sub_title">
<select name="sendDept" id="sendDept" required reqTitle="발신부서" type="select" style="width: 120px;" class="select2">
<option value="">선택</option>
<c:forEach var="deptListSend" items="${codeMap.deptListSend}">
${deptListSend}
</c:forEach>
</select>
</td>
<td width="13%" class="input_title" style="font-size:13px;"><label for="">* 수신부서</label></td>
<td colspan="3" class="input_sub_title">
<select name="recDept" id="recDept" required reqTitle="수신부서" type="select" style="width: 120px;" class="select2">
<option value="">선택</option>
<c:forEach var="deptListRec" items="${codeMap.deptListRec}">
${deptListRec}
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class="input_title" style="font-size:13px;"><label for="">참조 #01</label></td>
<td class="input_sub_title">
<select name="etcDept01" id="etcDept01" type="select" style="width: 120px;" class="select2">
<option value="">선택</option>
<c:forEach var="deptList1" items="${codeMap.deptList1}">
${deptList1}
</c:forEach>
</select>
</td>
<td class="input_title" style="font-size:13px;"><label for="">참조#02</label></td>
<td class="input_sub_title">
<select name="etcDept02" id="etcDept02" type="select" style="width: 120px;" class="select2">
<option value="">선택</option>
<c:forEach var="deptList2" items="${codeMap.deptList2}">
${deptList2}
</c:forEach>
</select>
</td>
<td class="input_title" style="font-size:13px;"><label for="">참조#03</label></td>
<td class="input_sub_title">
<select name="etcDept03" id="etcDept03" type="select" style="width: 150px;" class="select2">
<option value="">선택</option>
<c:forEach var="deptList3" items="${codeMap.deptList3}">
${deptList3}
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class="input_title" style="font-size:13px;"><label for="">* 출하수량</label></td>
<td class="input_sub_title">
<input type="text" name="frwQty" id="frwQty" required reqTitle="출하수량" value="${info.FRW_QTY}" maxlength="9" style="width:50px;" />
</td>
<td class="input_title" style="font-size:13px;"><label for="">* 수수료</label></td>
<td class="input_sub_title" colspan="3">
<select name="chargeYn" id="chargeYn" required reqTitle="수수료" type="select" style="width:120px;" class="select2">
<option value="">선택</option>
<option value="Y" ${info.CHARGE_YN eq 'Y' ? 'selected':'' }>포함</option>
<option value="N" ${info.CHARGE_YN eq 'N' ? 'selected':'' }>미포함</option>
</select>
</td>
</tr>
<tr>
<td class="input_title" style="font-size:13px;"><label for="">* 장착비</label></td>
<td class="input_sub_title">
<select name="setYn" id="setYn" required reqTitle="장착비유무" type="select" style="width:120px;" class="select2">
<option value="">선택</option>
<option value="Y" ${info.SET_YN eq 'Y' ? 'selected':'' }>포함</option>
<option value="N" ${info.SET_YN eq 'N' ? 'selected':'' }>미포함</option>
</select>
</td>
<td class="input_title" style="font-size:13px;"><label for="">* 장착예정일</label></td>
<td class="input_sub_title">
<input type="text" name="setDate01" id="setDate01" required reqTitle="장착예정일" value="${info.SET_DATE01}" class="date_icon" style="width: 130px !important;background-color:#fff;" autocomplete="off" />
</td>
<td class="input_title" style="font-size:13px;"><label for="">* 장착지</label></td>
<td class="input_sub_title">
<select name="setArea" id="setArea" required reqTitle="장착지" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<c:forEach var="upperAreaList" items="${codeMap.upperAreaList}">
${upperAreaList}
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class="input_title" style="font-size:13px;"><label for="">* 장착위치</label></td>
<td class="input_sub_title">
<select name="addLocate" id="addLocate" required reqTitle="장착위치" type="select" style="width:120px;" class="select2">
<option value="">선택</option>
<option value="0" ${info.ADDLOCATE eq '0' ? 'selected':'' }>Front</option>
<option value="1" ${info.ADDLOCATE eq '1' ? 'selected':'' }>Rear</option>
</select>
</td>
<td class="input_title" style="font-size:13px;"><label for="">* 샤시</label></td>
<td class="input_sub_title" colspan="3">
<select name="shassis" id="shassis" required reqTitle="샤시" type="select" style="width: 120px;" class="select2">
<option value="">선택</option>
<c:forEach var="shassisList" items="${codeMap.shassisList}">
${shassisList}
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 보조OR</label></td>
<td class="input_sub_title">
<select name="subOr" id="subOr" required reqTitle="보조OR" type="select" style="width:120px;" class="select2">
<option value="">선택</option>
<option value="0" ${info.SUB_OR eq '0' ? 'selected':'' }>사각</option>
<option value="1" ${info.SUB_OR eq '1' ? 'selected':'' }>원형</option>
<option value="2" ${info.SUB_OR eq '2' ? 'selected':'' }>없음</option>
</select>
</td>
<td class="input_title"><label for="">* 색상</label></td>
<td class="input_sub_title">
<select name="color" id="color" required reqTitle="색상" type="select" style="width: 120px;" class="select2">
<option value="">선택</option>
<c:forEach var="colorList" items="${codeMap.colorList}">
${colorList}
</c:forEach>
</select>
</td>
<td class="input_title"><label for="">* 로고</label></td>
<td class="input_sub_title">
<select name="logo" id="logo" required reqTitle="로고" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<option value="0" ${info.LOGO eq '0' ? 'selected':'' }>무</option>
<option value="1" ${info.LOGO eq '1' ? 'selected':'' }>유</option>
</select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 출하예정일</label></td>
<td colspan="5" class="input_sub_title">
<input type="text" name="frwDate01" id="frwDate01" required reqTitle="출하예정일" value="${info.FRW_DATE01}" class="date_icon" style="width: 130px !important;background-color:#fff;" autocomplete="off" />
</td>
</tr>
<tr>
<td class="input_title"><label for="">비고</label></td>
<td colspan="6" class="input_sub_title">
<textarea style="width:80%;height:50px;" name="note" id="note">${info.NOTE}</textarea>
</td>
</tr>
<tr><td colspan="7" style="height:15px;"></td></tr>
</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>