ERP-node/WebContent/WEB-INF/view/salesmgmt/ordersMgmt/ordersMgmtFormPopup.jsp

214 lines
7.8 KiB
Plaintext

<%
/**
* 발주관리 상세 조회
* @since 2021.11.17
* @author min
* @version 1.0
*
* << 개정 이력 >>
*
* 수정일 수정자 수정내용
* ---------------- --------------------- --------------------------------------------------------
* 2021.11.17 민상익 최초작성
**/
%>
<%@ 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:"/ordersMgmt/saveOrdersMgmt.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:"/ordersMgmt/deleteOrdersMgmt.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="odOrderNo" id="odOrderNo" value="${param.odOrderNo}">
<section>
<div id="businessPopupFormWrap">
<table class="pmsPopupForm">
<colgroup>
<col width="10%"/>
<col width="15%"/>
<col width="30%"/>
<col width="15%"/>
<col width="35%"/>
</colgroup>
<tr><td colspan="5" style="height:15px;"></td></tr>
<tr>
<td rowspan="11" class="sub_title">발주정보</td>
<c:if test="${param.actionType ne 'regist'}">
<td class="input_title"><label for="">발주번호</label> </td>
<td colspan="3" class="input_sub_title"><input type="text" name="displayOdOrderNo" id="displayOdOrderNo" value="${info.ODORDERNO}" disabled maxlength="20" style="width:130px;float:left;" /></td>
</c:if>
</tr>
<tr>
<td class="input_title"><label for="">사업부</label></td>
<td colspan="3" class="input_sub_title">
<select name="division" id="division" type="select" style="width:150px;">
<option value="">선택</option>
<option value="41" ${info.DIVISION eq '41' ? 'selected':'' }>크레인사업부</option>
<option value="42" ${info.DIVISION eq '42' ? 'selected':'' }>실린더생산팀</option>
<option value="43" ${info.DIVISION eq '43' ? 'selected':'' }>출고</option>
<option value="44" ${info.DIVISION eq '44' ? 'selected':'' }>전장제작반</option>
<option value="50" ${info.DIVISION eq '50' ? 'selected':'' }>특장사업부</option>
<option value="F0" ${info.DIVISION eq 'F0' ? 'selected':'' }>정비사업부</option>
</select></td>
</tr>
<tr>
<td class="input_title"><label for="">발주일자</label></td>
<td class="input_sub_title"><input type="text" id="orderDate" name="orderDate" value="${info.ORDERDATE}" class="date_icon"
style="width: 130px !important;background-color:#fff;" autocomplete="off"></td>
<td class="input_title"><label for="">납기일자</label></td>
<td class="input_sub_title"><input type="text" name="odDueDt" id="odDueDt" value="${info.ODDUEDT}" class="date_icon"
style="width: 130px !important;background-color:#fff;" autocomplete="off"></td>
</tr>
<tr>
<td class="input_title" ><label for="">긴급구분</label></td>
<td class="input_sub_title">
<select name="odUrgentTp" id="odUrgentTp" type="select" style="width:150px;">
<option value="">선택</option>
<option value="0" ${info.ODURGENTTP eq '0' ? 'selected':'' }>정상</option>
<option value="1" ${info.ODURGENTTP eq '1' ? 'selected':'' }>긴급</option>
</select></td>
<td class="input_title">&nbsp;</td>
<td class="input_sub_title">&nbsp;</td>
</tr>
<tr>
<td class="input_title"><label for="">업체명</label></td>
<td width="21%" class="input_sub_title">
<select name="suVndCd" id="suVndCd" required style="width: 150px;" class="select2">
<option value="">선택</option>
<c:forEach var="suVndCd" items="${codeMap.suVndCd}">
${suVndCd}
</c:forEach>
</select>
<td class="input_title">&nbsp;</td>
<td class="input_sub_title">&nbsp;</td>
</tr>
<tr>
<td class="input_title"><label for="">내/외자</label></td>
<td width="21%" class="input_sub_title">
<select name="odNation" id="odNation" value="${info.ODNATION}" type="select" style="width:150px;">
<option value="">선택</option>
<option value="D" ${info.ODNATION eq 'D' ? 'selected':'' }>내자</option>
<option value="E" ${info.ODNATION eq 'E' ? 'selected':'' }>외자</option>
</select></td>
<td class="input_title">&nbsp;</td>
<td class="input_sub_title">&nbsp;</td>
</tr>
<tr>
<td class="input_title"><label for="">특기사항1</label></td>
<td colspan="3" class="input_sub_title"><input type="text" name="odRemark1" id="odRemark1" value="${info.ODREMARK1}" maxlength="20" style="width:90%" /></td>
</tr>
<tr>
<td class="input_title"><label for="">특기사항2</label></td>
<td colspan="3" class="input_sub_title"><input type="text" name="odRemark2" id="odRemark2" value="${info.ODREMARK2}" maxlength="20" style="width:90%" /></td>
</tr>
<tr>
<td class="input_title"><label for="">조정사유</label></td>
<td colspan="3" class="input_sub_title"><input type="text" name="odCorrRsn" id="odCorrRsn" value="${info.ODCORRRSN}" maxlength="20" style="width:90%" /></td>
</tr>
<tr>
<td class="input_title"><label for="">발주특성</label></td>
<td colspan="3" class="input_sub_title"><input type="text" name="odAtt" id="odAtt" value="${info.ODATT}" value="${info.ODCORRRSN}" maxlength="20" style="width:90%" /></td>
</tr>
<tr><td colspan="5" 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>