ERP-node/WebContent/WEB-INF/view/salesmgmt/companyMgmt/companyMgmtFormPopup.jsp

370 lines
14 KiB
Plaintext

<%
/**
* 업체관리 상세 조회
* @since 2021.11.15
* @author min
* @version 1.0
*
* << 개정 이력 >>
*
* 수정일 수정자 수정내용
* ---------------- --------------------- --------------------------------------------------------
* 2021.11.15 민상익 최초작성
**/
%>
<%@ 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:"/companyMgmt/saveCompanyMgmt.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:"/companyMgmt/deleteCompanyMgmt.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="suVndCd" id="suVndCd" value="${param.suVndCd}">
<section>
<div id="businessPopupFormWrap">
<table class="pmsPopupForm">
<colgroup>
<col width="10%"/>
<col width="15%"/>
<col width="30%"/>
<col width="15%"/>
<col width="30%"/>
</colgroup>
<tr><td colspan="7" style="height:15px;"></td></tr>
<tr>
<td rowspan="18" class="sub_title">업체정보</td>
</tr>
<tr>
<c:if test="${param.actionType ne 'regist'}">
<td class="input_title"><label for="">업체코드</label></td>
<td colspan="6">
<input type="text" name="displaySuVndCd" id="displaySuVndCd" value="${info.SUVNDCD}" disabled maxlength="20" style="width:130px;">
</td>
</c:if>
</tr>
<tr>
<td class="input_title"><label for="">* 상호</label></td>
<td colspan="6">
<input type="text" name="suVndNm" id="suVndNm" required reqTitle="상호" value="${info.SUVNDNM}" maxlength="20" style="width:90%;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 담당자</label></td>
<td colspan="6">
<select name="suManager" id="suManager" required reqTitle="담당자" type="select" style="width: 120px;" class="select2">
<option value="">선택</option>
<c:forEach var="suManager" items="${codeMap.suManager}">
${suManager}
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 대표자</label></td>
<td colspan="6">
<input type="text" name="suChairmanNm" id="suChairmanNm" required reqTitle="대표자" value="${info.SUCHAIRMANNM}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 사업자번호</label></td>
<td>
<input type="text" name="suRgstNo" id="suRgstNo" required reqTitle="사업자번호" value="${info.SURGSTNO}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">* 법인/주민번호</label></td>
<td>
<input type="text" name="residentNo" id="residentNo" required reqTitle="법인/주민번호" value="${info.RESIDENTNO}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 업태</label></td>
<td>
<input type="text" name="suBizType" id="suBizType" required reqTitle="업태" value="${info.SUBIZTYPE}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">* 종목</label></td>
<td>
<input type="text" name="suBizSort" id="suBizSort" required reqTitle="종목" value="${info.SUBIZSORT}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 주소</label></td>
<td colspan="3">
<input type="text" name="suAdrs1" id="suAdrs1" required reqTitle="주소" value="${info.SUADRS1}" maxlength="20" style="width:90%;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 전화번호</label></td>
<td>
<input type="text" name="suTelNo" id="suTelNo" required reqTitle="전화번호" value="${info.SUTELNO}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">홈페이지</label></td>
<td>
<input type="text" name="suHomePage" id="suHomePage" value="${info.SUHOMEPAGE}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">팩스번호</label></td>
<td colspan="6">
<input type="text" name="suFaxNo" id="suFaxNo" value="${info.SUFAXNO}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 사후평가</label></td>
<td>
<select name="pry" id="pry" required reqTitle="사후평가" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<option value="1" ${info.PRY eq '1' ? 'selected':'' }>대상</option>
<option value="2" ${info.PRY eq '2' ? 'selected':'' }>제외</option>
</select>
</td>
<td class="input_title"><label for="">* 제외사유</label></td>
<td>
<select name="pryNote" id="pryNote" required reqTitle="제외사유" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<option value="1" ${info.PRYNOTE eq '1' ? 'selected':'' }>거래중단</option>
<option value="2" ${info.PRYNOTE eq '2' ? 'selected':'' }>비정기 납품</option>
<option value="3" ${info.PRYNOTE eq '3' ? 'selected':'' }>시장형 자재, 제조</option>
<option value="4" ${info.PRYNOTE eq '4' ? 'selected':'' }>시장형 자재, 수입/유통</option>
<option value="5" ${info.PRYNOTE eq '5' ? 'selected':'' }>월평균500만원이하인 업체</option>
<option value="6" ${info.PRYNOTE eq '6' ? 'selected':'' }>OEM/ODM 업체</option>
</select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 신규발주</label></td>
<td>
<select name="odr" id="odr" required reqTitle="신규발주" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<option value="1" ${info.ODR eq '1' ? 'selected':'' }>발주지속업체</option>
<option value="2" ${info.ODR eq '2' ? 'selected':'' }>발주제한업체</option>
</select>
</td>
<td class="input_title"><label for="">* 명세서발행통제</label></td>
<td>
<select name="suDocControl" id="suDocControl" required reqTitle="명세서발행통제" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<option value="Y" ${info.SUDOCCONTROL eq 'Y' ? 'selected':'' }>발행통제</option>
<option value="N" ${info.SUDOCCONTROL eq 'N' ? 'selected':'' }>통제안함</option>
</select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 결제방법</label></td>
<td colspan="6">
<input type="text" name="stment" id="stment" required reqTitle="결제방법" value="${info.STMENT}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">* 거래중단</label></td>
<td>
<select name="suTrsEndFlag" id="suTrsEndFlag" required reqTitle="거래중단" value="${info.SUTRSENDFLAG}" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<option value="Y" ${info.SUTRSENDFLAG eq 'Y' ? 'selected':'' }>거래중단</option>
<option value="N" ${info.SUTRSENDFLAG eq 'N' ? 'selected':'' }>거래</option>
</select>
</td>
<td class="input_title"><label for="">* 평가등급</label></td>
<td>
<select name="suVndClass" id="suVndClass" required reqTitle="평가등급" value="${info.SUVNDCLASS}" type="select" style="width:150px;" class="select2">
<option value="">선택</option>
<option value="A" ${info.SUVNDCLASS eq 'A' ? 'selected':'' }>A등급</option>
<option value="B" ${info.SUVNDCLASS eq 'B' ? 'selected':'' }>B등급</option>
<option value="C" ${info.SUVNDCLASS eq 'C' ? 'selected':'' }>C등급</option>
<option value="D" ${info.SUVNDCLASS eq 'D' ? 'selected':'' }>D등급</option>
<option value="E" ${info.SUVNDCLASS eq 'E' ? 'selected':'' }>E등급</option>
<option value="F" ${info.SUVNDCLASS eq 'F' ? 'selected':'' }>F등급</option>
</select>
</td>
</tr>
<tr>
<td class="input_title"><label for="">특이사항</label></td>
<td colspan="6">
<input type="text" name="special1" id="special1" value="${info.SPECIAL1}" maxlength="20" style="width:90%;">
</td>
</tr>
<tr><td colspan="7" style="height:15px;"></td></tr>
</table>
<br />
<table class="pmsPopupForm">
<colgroup>
<col width="15%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
</colgroup>
<tr><td colspan="8" style="height:15px;"></td></tr>
<tr><td rowspan="3" class="sub_title">협력업체 담당자</td></tr>
<tr>
<td class="input_title"><label for="">* 성명/직위</label></td>
<td>
<input type="text" name="suPartnerName" id="suPartnerName" required reqTitle="성명/직위" value="${info.SUPARTNERNAME}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">* 휴대폰번호</label></td>
<td>
<input type="text" name="suPartnerTel" id="suPartnerTel" required reqTitle="휴대폰번호" value="${info.SUPARTNERTEL}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">* 이메일주소</label></td>
<td colspan="2">
<input type="text" name="suPartnerEmail" id="suPartnerEmail" required reqTitle="이메일주소" value="${info.SUPARTNEREMAIL}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr>
<td class="input_title"><label for="">성명/직위</label></td>
<td>
<input type="text" name="suPartnerNm2" id="suPartnerNm2" value="${info.SUPARTNERNM2}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">휴대폰번호</label></td>
<td>
<input type="text" name="suPartnerTel2" id="suPartnerTel2" value="${info.SUPARTNERTEL2}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">이메일주소</label></td>
<td colspan="2">
<input type="text" name="suPartnerEmail2" id="suPartnerEmail2" value="${info.SUPARTNEREMAIL2}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr><td colspan="8" style="height:15px;"></td></tr>
</table>
<br />
<table class="pmsPopupForm">
<colgroup>
<col width="15%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
<col width="13%"/>
</colgroup>
<tr><td colspan="8" style="height:15px;"></td></tr>
<tr><td rowspan="2" class="sub_title">세금계산서 담당자</td></tr>
<tr>
<td class="input_title"><label for="">* 성명/직위</label></td>
<td>
<input type="text" name="suPartnerName3" id="suPartnerName3" required reqTitle="성명/직위" value="${info.SUPARTNERNAME3}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">* 휴대폰번호</label></td>
<td>
<input type="text" name="suPartnerTel3" id="suPartnerTel3" required reqTitle="휴대폰번호" value="${info.SUPARTNERTEL3}" maxlength="20" style="width:130px;">
</td>
<td class="input_title"><label for="">* 이메일주소</label></td>
<td colspan="2">
<input type="text" name="suPartnerEmail3" id="suPartnerEmail3" required reqTitle="이메일주소" value="${info.SUPARTNEREMAIL3}" maxlength="20" style="width:130px;">
</td>
</tr>
<tr><td colspan="8" style="height:15px;"></td></tr>
</table>
</div>
<p></p>
<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>