기업회원, 발신번호 첨부파일 뷰어에 승인/반려 기능 추가

This commit is contained in:
itn 2023-08-04 11:01:58 +09:00
parent 29a33f6ec5
commit 41e9811de4
4 changed files with 463 additions and 23 deletions

View File

@ -5049,13 +5049,24 @@ public class MjonMsgController {
// 파라미터 // 파라미터
String docuDiv = request.getParameter("docuDiv"); String docuDiv = request.getParameter("docuDiv");
String atchFileId = request.getParameter("atchFileId");
String workAtchFileId = request.getParameter("workAtchFileId");
String mberNm = request.getParameter("mberNm");
String bizNo = request.getParameter("bizNo");
String ceoNm = request.getParameter("ceoNm");
String hstManagerNm = request.getParameter("hstManagerNm"); String hstManagerNm = request.getParameter("hstManagerNm");
String hstMbtlNum = request.getParameter("hstMbtlNum"); String hstMbtlNum = request.getParameter("hstMbtlNum");
String cmphstId = request.getParameter("cmphstId");
String atchFileId = request.getParameter("atchFileId");
String workAtchFileId = request.getParameter("workAtchFileId");
// 조회
MberCmpHstVO mberCmpHstVO = new MberCmpHstVO();
mberCmpHstVO.setCmphstId(cmphstId);
mberCmpHstVO = egovMberCmpHstService.selectMberCmpHstDetail(mberCmpHstVO);
String hstSttus = mberCmpHstVO.getHstSttus();
String hstType = mberCmpHstVO.getHstType();
String mberNm = mberCmpHstVO.getMberNm();
String bizNo = mberCmpHstVO.getBizNo();
String ceoNm = mberCmpHstVO.getCeoNm();
String mberId = mberCmpHstVO.getMberId();
String managerNm = mberCmpHstVO.getManagerNm();
String mbtlNum = mberCmpHstVO.getMbtlNum();
if (docuDiv.equals("2")) { if (docuDiv.equals("2")) {
fileVO.setAtchFileId(workAtchFileId); fileVO.setAtchFileId(workAtchFileId);
@ -5092,6 +5103,14 @@ public class MjonMsgController {
model.addAttribute("ceoNm", ceoNm); model.addAttribute("ceoNm", ceoNm);
model.addAttribute("hstManagerNm", hstManagerNm); model.addAttribute("hstManagerNm", hstManagerNm);
model.addAttribute("hstMbtlNum", hstMbtlNum); model.addAttribute("hstMbtlNum", hstMbtlNum);
model.addAttribute("hstSttus", hstSttus);
model.addAttribute("cmphstId", cmphstId);
model.addAttribute("hstType", hstType);
model.addAttribute("mberId", mberId);
model.addAttribute("managerNm", managerNm);
model.addAttribute("mbtlNum", mbtlNum);
model.addAttribute("atchFileSttus", mberCmpHstVO.getAtchFileSttus());
model.addAttribute("workAtchFileSttus", mberCmpHstVO.getWorkAtchFileSttus());
return "/uss/ion/msg/pdfView"; return "/uss/ion/msg/pdfView";
} }
@ -5127,6 +5146,7 @@ public class MjonMsgController {
List<FileVO> fileList = fileService.selectFileInfs(fileVO); List<FileVO> fileList = fileService.selectFileInfs(fileVO);
model.addAttribute("fileList", fileList); model.addAttribute("fileList", fileList);
// 파라미터
String phmId = request.getParameter("phmId"); String phmId = request.getParameter("phmId");
String managerNm = request.getParameter("managerNm"); String managerNm = request.getParameter("managerNm");
String dept = request.getParameter("dept"); String dept = request.getParameter("dept");
@ -5134,6 +5154,7 @@ public class MjonMsgController {
String phmAuthTypeTxt = request.getParameter("phmAuthTypeTxt"); String phmAuthTypeTxt = request.getParameter("phmAuthTypeTxt");
String ownerName = request.getParameter("ownerName"); String ownerName = request.getParameter("ownerName");
// 조회
MjPhoneMemberVO mjPhoneMemberVO = new MjPhoneMemberVO(); MjPhoneMemberVO mjPhoneMemberVO = new MjPhoneMemberVO();
mjPhoneMemberVO = mjonMsgService.selectSendPhoneNumberByPhmId(phmId); mjPhoneMemberVO = mjonMsgService.selectSendPhoneNumberByPhmId(phmId);
String phoneNumber = mjPhoneMemberVO.getPhoneNumber(); String phoneNumber = mjPhoneMemberVO.getPhoneNumber();

View File

@ -22,7 +22,7 @@ $( document ).ready(function() {
}); });
// PdfView // PdfView
function pdfViewPop(docuDiv,atchFileId,workAtchFileId,mberNm,bizNo,ceoNm,hstManagerNm,hstMbtlNum) { function pdfViewPop(docuDiv,atchFileId,workAtchFileId,mberNm,bizNo,ceoNm,hstManagerNm,hstMbtlNum,hstSttus,cmphstId,hstType,mberId,managerNm,mbtlNum) {
document.pdfForm.docuDiv.value = docuDiv; document.pdfForm.docuDiv.value = docuDiv;
document.pdfForm.atchFileId.value = atchFileId; document.pdfForm.atchFileId.value = atchFileId;
document.pdfForm.workAtchFileId.value = workAtchFileId; document.pdfForm.workAtchFileId.value = workAtchFileId;
@ -32,6 +32,12 @@ function pdfViewPop(docuDiv,atchFileId,workAtchFileId,mberNm,bizNo,ceoNm,hstMana
document.pdfForm.ceoNm.value = ceoNm; document.pdfForm.ceoNm.value = ceoNm;
document.pdfForm.hstManagerNm.value = hstManagerNm; document.pdfForm.hstManagerNm.value = hstManagerNm;
document.pdfForm.hstMbtlNum.value = hstMbtlNum; document.pdfForm.hstMbtlNum.value = hstMbtlNum;
document.pdfForm.hstSttus.value = hstSttus;
document.pdfForm.cmphstId.value = cmphstId;
document.pdfForm.hstType.value = hstType;
document.pdfForm.mberId.value = mberId;
document.pdfForm.managerNm.value = managerNm;
document.pdfForm.mbtlNum.value = mbtlNum;
window.open("about:blank", 'pdfPopup', 'width=1020, height=800, top=100, left=0, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=no, location=no, scrollbars=no'); window.open("about:blank", 'pdfPopup', 'width=1020, height=800, top=100, left=0, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=no, location=no, scrollbars=no');
document.pdfForm.action = "<c:url value='/uss/ion/msg/pdfView.do'/>"; document.pdfForm.action = "<c:url value='/uss/ion/msg/pdfView.do'/>";
document.pdfForm.target = "pdfPopup"; document.pdfForm.target = "pdfPopup";
@ -295,6 +301,12 @@ function fnSetCalMonth(val) {
<input type="hidden" name="ceoNm"/> <input type="hidden" name="ceoNm"/>
<input type="hidden" name="hstManagerNm"/> <input type="hidden" name="hstManagerNm"/>
<input type="hidden" name="hstMbtlNum"/> <input type="hidden" name="hstMbtlNum"/>
<input type="hidden" name="hstSttus"/>
<input type="hidden" name="cmphstId"/>
<input type="hidden" name="hstType"/>
<input type="hidden" name="mberId"/>
<input type="hidden" name="managerNm"/>
<input type="hidden" name="mbtlNum"/>
</form> </form>
<form name="popupForm" action="<c:url value='/uss/umt/user/EgovMberCmpHstListPop.do'/>" method="post"> <form name="popupForm" action="<c:url value='/uss/umt/user/EgovMberCmpHstListPop.do'/>" method="post">
@ -473,7 +485,7 @@ function fnSetCalMonth(val) {
<!--/cmm/fms/selectAddrAgencyFileInfs.do--> <!--/cmm/fms/selectAddrAgencyFileInfs.do-->
<!--/cmm/fms/selectMberFileInfs.do--> <!--/cmm/fms/selectMberFileInfs.do-->
<c:if test="${result.atchFileId ne '' && result.atchFileId ne null}"> <c:if test="${result.atchFileId ne '' && result.atchFileId ne null}">
<a href="#" onclick="pdfViewPop('1','${result.atchFileId}','${result.workAtchFileId}','${result.mberNm}','${result.bizNo}','${result.ceoNm}','${result.hstManagerNm}','${result.hstMbtlNum}'); return false;"><img src="/publish/images/content/file_view.png" style="vertical-align:middle;" /></a> <a href="#" onclick="pdfViewPop('1','${result.atchFileId}','${result.workAtchFileId}','${result.mberNm}','${result.bizNo}','${result.ceoNm}','${result.hstManagerNm}','${result.hstMbtlNum}','${result.hstSttus}','${result.cmphstId}','${result.hstType}','${result.mberId}','${result.managerNm}','${result.mbtlNum}'); return false;"><img src="/publish/images/content/file_view.png" style="vertical-align:middle;" /></a>
</c:if> </c:if>
</td> </td>
@ -485,7 +497,7 @@ function fnSetCalMonth(val) {
</c:if> </c:if>
<c:if test="${result.workAtchFileId ne '' && result.workAtchFileId ne null}"> <c:if test="${result.workAtchFileId ne '' && result.workAtchFileId ne null}">
<a href="#" onclick="pdfViewPop('2','${result.atchFileId}','${result.workAtchFileId}','${result.mberNm}','${result.bizNo}','${result.ceoNm}','${result.hstManagerNm}','${result.hstMbtlNum}'); return false;"><img src="/publish/images/content/file_view.png" style="vertical-align:middle;" /></a> <a href="#" onclick="pdfViewPop('2','${result.atchFileId}','${result.workAtchFileId}','${result.mberNm}','${result.bizNo}','${result.ceoNm}','${result.hstManagerNm}','${result.hstMbtlNum}','${result.hstSttus}','${result.cmphstId}','${result.hstType}','${result.mberId}','${result.managerNm}','${result.mbtlNum}'); return false;"><img src="/publish/images/content/file_view.png" style="vertical-align:middle;" /></a>
</c:if> </c:if>
</td> </td>

View File

@ -29,7 +29,7 @@
<link rel="stylesheet" href="/pb/css/reset.css"> <link rel="stylesheet" href="/pb/css/reset.css">
<link rel="stylesheet" href="/pb/css/common.css"> <link rel="stylesheet" href="/pb/css/common.css">
<link rel="stylesheet" href="/pb/css/content.css?date=202301160001"> <link rel="stylesheet" href="/pb/css/content.css?date=202301160001">
<link rel="stylesheet" href="/pb/css/popup.css">
<script src="/pb/js/jquery-3.5.0.js"></script> <script src="/pb/js/jquery-3.5.0.js"></script>
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script> <script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
@ -40,12 +40,33 @@ html {
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
input[type="checkbox"]{display: inline;}
input[type="checkbox"] {
width: 1.263rem;
height: 1.263rem;
margin-right: 25px;
border: 1px solid var(--color-gray);
border-radius: 50%;
cursor: pointer;
position: relative;
vertical-align: middle;
}
</style> </style>
<script type="text/javaScript" language="javascript"> <script type="text/javaScript" language="javascript">
var biznoCall = "N";
$(document).ready(function() { $(document).ready(function() {
// change 함수
$("#changeWord").change(function() {
// 변경된 값으로 비교 후 alert 표출
if($(this).val() == ""){
$("#returnCn").val('');
} else {
$("#returnCn").val($(this).val());
}
});
}); });
//PdfView //PdfView
@ -55,6 +76,249 @@ function pdfViewPop(docuDiv) {
document.pdfForm.submit(); document.pdfForm.submit();
} }
// 머니핀
function biznoPop() {
//반려 Hide
setRejectAreaHide();
if (biznoCall == "Y") {
// 머니핀 Hide
setMoneyPinHide();
}
else {
// 머니핀 Show
setMoneyPinShow();
}
}
// 머니핀 Show
function setMoneyPinShow() {
$("#btnMoneypin").text("머니핀 페이지 CLOSE");
$("#btnMoneypin").removeClass("btnType1");
$("#btnMoneypin").addClass("btnType2");
var p_bizno = "${bizNo}";
$("#iFrame").attr("width","100%").attr("height","500px");
$("#iFrame").attr("src","https://moneypin.biz/bizno/detail/"+p_bizno);
biznoCall = "Y";
}
// 머니핀 Hide
function setMoneyPinHide() {
$("#btnMoneypin").text("머니핀 페이지 OPEN");
$("#btnMoneypin").removeClass("btnType2");
$("#btnMoneypin").addClass("btnType1");
var p_bizno = "${bizNo}";
$("#iFrame").attr("width","100%").attr("height","0px");
$("#iFrame").attr("src","");
biznoCall = "N";
}
//세무서에서 해당 값 체크하기
function setHomeTaxApi() {
var v_start_dt = $('#start_dt').val();
if (v_start_dt==""){
alert("설립일은 필수값 입니다.\n제출한 사업자 등록증에서 해당 값을 확인 하시고 입력해주세요~");
return;
}
$.ajax({
url : "<c:url value='/uss/umt/user/checkBizNoTaxAjax.do' />",
type : 'POST',
data : {
"b_no": "${bizNo}" //사업자등록번호
, "b_nm": "${mberNm}" //업체명
, "p_nm": "${ceoNm}" //대표자명
, "start_dt": v_start_dt //설립일자
},
dataType:'json',
async: false,
success: function (data) {
/*
* 02 - 확인할 수 없습니다.
* 00 - 알수없는오류(0V)
*
* STEP2. 사업자등록번호 확인 :
* * -1:알수없는 오류
* 0:국세청에 등록되지 않은 사업자등록번호입니다.
* 11: 계속사업자,
* 12: 휴업자,
* 13: 폐업자
*/
if (data.result=='11') {
alert('기업이름, 사업자번호, 대표자 성명, 설립일 모두 정상값으로 확인되었습니다.');
}
else {
alert("데이터 검증에 실패했습니다."+data.msg);
}
},
error: function (e) {
alert("저장에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
}
});
}
//기업회원 신청 승인/반려 처리
function setMberCmpHstStatusSave(hstSttus) {
var sMsg = "";
if (hstSttus == "02") {
sMsg = "승인";
}
else if (hstSttus == "03") {
sMsg = "반려";
}
if (confirm(sMsg + " 하시겠습니까?")) {
var form = document.pdfForm;
form.hstSttus.value = hstSttus;
var data = new FormData(form);
url = "/uss/umt/user/mberCmpHstStatusSaveAjax.do";
if("${hstType}" == '02' && hstSttus == '02'){ //기업회원 전환 승인이라면 기존 mberNm -> managerNm 으로 수정
form.managerNm.value = "${managerNm}";
}
else {
form.managerNm.value = "";
}
$.ajax({
type: "POST",
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
if (data.isSuccess) {
if(data.isDone){ //이미 처리했던 건인지 체크
alert(data.msg);
}else{
alert(data.msg);
}
opener.location.reload();
self.close();
}
else {
alert(data.msg);
form.managerNm.value = "${managerNm}";
form.hstSttus.value = "${hstSttus}";
}
},
error: function (e) {
alert("저장에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
form.managerNm.value = "${managerNm}";
form.hstSttus.value = "${hstSttus}";
}
});
}
}
//반려화면 Call
function setRejectAreaCall(sType) {
// 머니핀 Hide
setMoneyPinHide();
if (sType == "SHOW") {
if ($("#rejectArea").css("display") == "block") {
//반려 Hide
setRejectAreaHide();
}
else {
// 반려 Show
setRejectAreaShow();
}
}
else {
//반려 Hide
setRejectAreaHide();
}
}
// 반려 Show
function setRejectAreaShow() {
$("#rejectArea").show();
$("#btnReject").text("반려 CLOSE");
$("#btnReject").removeClass("btnType1");
$("#btnReject").addClass("btnType2");
}
//반려 Hide
function setRejectAreaHide() {
$("#rejectArea").hide();
$("#btnReject").text("반려 OPEN");
$("#btnReject").removeClass("btnType2");
$("#btnReject").addClass("btnType1");
}
//기업회원 신청 승인/반려 처리
function fn_Update() {
if($(".chk:checked").length == '0'){
alert("반려항목을 선택해주세요.");
return false;
}
if( $("#returnCn").val() == '' ){
alert("반려사유를 입력해주세요.");
return false;
}
if (confirm("반려 하시겠습니까?")) {
var form = document.returnPopForm;
if(document.getElementById("atchFileSttusYN").checked == true){
document.getElementById("atchFileSttus").value = "N"
}
if(document.getElementById("workAtchFileSttusYN").checked == true){
document.getElementById("workAtchFileSttus").value = "N"
}
var data = new FormData(form);
url = "/uss/umt/user/mberCmpHstStatusReturnAjax.do";
$.ajax({
type: "POST",
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
if (data.isSuccess) {
// 초기화
alert(data.msg);
opener.location.reload();
self.close();
}
else {
alert(data.msg);
}
},
error: function (e) {
alert("저장에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
}
});
}
}
</script> </script>
</head> </head>
<body> <body>
@ -71,7 +335,8 @@ function pdfViewPop(docuDiv) {
<col style="width: 15%"> <col style="width: 15%">
<col style="width: 15%"> <col style="width: 15%">
<col style="width: 12%"> <col style="width: 12%">
<col style="width: 10%"> <col style="width: 6%">
<col style="width: 5%">
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
@ -80,7 +345,8 @@ function pdfViewPop(docuDiv) {
<th>대표자</th> <th>대표자</th>
<th>담당자</th> <th>담당자</th>
<th>휴대폰</th> <th>휴대폰</th>
<th>다운로드</th> <th>사업자</th>
<th>재직</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -90,6 +356,21 @@ function pdfViewPop(docuDiv) {
<td title="${ceoNm}">${ceoNm}</td> <td title="${ceoNm}">${ceoNm}</td>
<td title="${hstManagerNm}">${hstManagerNm}</td> <td title="${hstManagerNm}">${hstManagerNm}</td>
<td title="${hstMbtlNum}">${hstMbtlNum}</td> <td title="${hstMbtlNum}">${hstMbtlNum}</td>
<td>
<c:if test="${not empty atchFileId}">
<c:import url="/cmm/fms/selectMberFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${atchFileId}" />
</c:import>
</c:if>
</td>
<td>
<c:if test="${not empty workAtchFileId}">
<c:import url="/cmm/fms/selectMberFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${workAtchFileId}" />
</c:import>
</c:if>
</td>
<%--
<td> <td>
<c:choose> <c:choose>
<c:when test="${docuDiv eq '1'}"> <c:when test="${docuDiv eq '1'}">
@ -104,11 +385,110 @@ function pdfViewPop(docuDiv) {
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</td> </td>
--%>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<br /><br />
<!-- 사업자정보 체크 -->
<div class="listTop" style="float: left; margin-top: 0px; padding-top: 0px;">
<p class="tType5">사업자정보 검증</p>
</div>
<div class="tableWrap">
<table class="tbType1">
<colgroup>
<col style="width: *%">
<col style="width: 25%">
</colgroup>
<thead>
<tr>
<td class="left" style="padding: 10px 0 10px 0; line-height: 1.6em;">
<button id="btnMoneypin" class="btnType1" onclick="biznoPop();return false;">머니핀 페이지 OPEN</button>
&nbsp;&nbsp;&nbsp;
<input id="start_dt" name="start_dt" class="recentSearch" type="text" value="" size="25" title="설립일" maxlength="10" placeholder="설립일(개업일) ex:2018-02-08"/>
<button class="btnType1" onclick="setHomeTaxApi(); return false;">국세청 API호출</button>
</td>
<td style="padding: 10px 0 10px 0; vertical-align: middle;">
<c:if test="${hstSttus eq '01'}">
<button class="btnType1" onclick="setMberCmpHstStatusSave('02'); return false;" style="background-color: blue;">승인</button>
<button class="btnType1" onclick="setRejectAreaCall('SHOW'); return false;" id="btnReject">반려 OPEN</button>
</c:if>
</td>
</tr>
</thead>
</tbody>
</table>
</div>
<!-- 반려 -->
<div id="rejectArea" class="rejectAreaClass" style="display: none;">
<br /><br />
<div class="listTop" style="float: left; margin-top: 0px; padding-top: 0px;">
<p class="tType5">반려</p>
</div>
<div class="tableWrap">
<form id="returnPopForm" name="returnPopForm" method="post">
<input type="hidden" name="cmphstId" id="cmphstId" value="${cmphstId}"/>
<input type="hidden" name="hstSttus" id="hstSttus" value="03"/>
<input type="hidden" name="hstType" id="hstType" value="${hstType}"/>
<input type="hidden" name="mbtlNum" id="mbtlNum" value="${mbtlNum}"/>
<input type="hidden" name="atchFileSttus" id="atchFileSttus" value="Y"/>
<input type="hidden" name="workAtchFileSttus" id="workAtchFileSttus" value="Y"/>
<table class="tbType3">
<colgroup>
<col style="width: 15%">
<col style="width: *%">
</colgroup>
<thead>
<tr>
<th>반려항목</th>
<td class="left" style="vertical-align: middle;">
<div style="display:flex;">
<!-- 담당자 정보 변경 시 미노출 -->
<div <c:if test="${hstType eq '04'}">style="display:none;"</c:if>>
사업자등록증 반려 <input type="checkbox" class="chk" id="atchFileSttusYN" <c:if test="${atchFileSttus eq 'N'}">checked</c:if> <c:if test="${hstSttus ne '01'}">disabled</c:if> />
</div>
<span style="margin:0 3px;"></span>
<!-- 기업정보 변경 시 미노출 -->
<div <c:if test="${hstType eq '03'}">style="display:none;"</c:if>>
재직증명서 반려 <input type="checkbox" class="chk" id="workAtchFileSttusYN" <c:if test="${workAtchFileSttus eq 'N'}">checked</c:if> <c:if test="${hstSttus ne '01'}">disabled</c:if> />
</div>
</div>
</td>
</tr>
<tr>
<th>반려문구</th>
<td class="left">
<select id="changeWord" name="changeWord" style="width: 89%;">
<option value="">직접입력</option>
<option value="[문자온] 기업회원은 사업자등록증이 반드시 첨부되어야 합니다. 사업자등록증 첨부(문자온 로그인 시 파일 업로드 화면 확인 가능) 후 재신청해 주시면 빠른 승인 도와드리겠습니다.">사업자등록증 누락</option>
<option value="[문자온] 기업회원 신청자가 대표자 본인이 아닌 경우, 재직증명서를 첨부해주셔야 합니다. 재직증명서 첨부(문자온 로그인 시 파일 업로드 화면 확인 가능) 후 재신청해 주시면 빠른 승인 도와드리겠습니다.">재직증명서 누락</option>
<option value="[문자온] 기업회원 신청 시 사업자등록증 및 재직증명서(대표자 본인이 신청하지 않는 경우에 한함)가 반드시 첨부되어야 합니다. 해당 서류 첨부(문자온 로그인 시 파일 업로드 화면 확인 가능)하여 재신청해 주시면 빠른 승인 도와드리겠습니다.">사업자등록증 및 재직증명서 누락</option>
</select>
</td>
</tr>
<tr>
<th>반려사유</th>
<td class="left">
<textarea style="width: 87%; height: 160px" name="returnCn" id="returnCn" maxlength="250">${returnCn}</textarea>
</td>
</tr>
</thead>
</table>
<div class="button_box" style="margin-top: 15px;">
<button type="button" class="btnType btnType20" onClick="fn_Update(); return false;" style="background-color: blue;">반려</button>
<button type="button" class="btnType btnType20" onClick="setRejectAreaCall('HIDE'); return false;">취소</button>
</div>
</form>
</div>
<br /><br />
</div>
<iframe src="" title="" id="iFrame" name="iFrame" width="100%" height="0px"></iframe>
<c:if test="${not empty atchFileId || not empty workAtchFileId}"> <c:if test="${not empty atchFileId || not empty workAtchFileId}">
<div style="width: 100%; text-align: center; margin: 30px 0 30px 0;"> <div style="width: 100%; text-align: center; margin: 30px 0 30px 0;">
<c:set var="btnClass1" value="btnType1"/> <c:set var="btnClass1" value="btnType1"/>
@ -159,6 +539,12 @@ function pdfViewPop(docuDiv) {
<input type="hidden" name="ceoNm" value="${ceoNm}"/> <input type="hidden" name="ceoNm" value="${ceoNm}"/>
<input type="hidden" name="hstManagerNm" value="${hstManagerNm}"/> <input type="hidden" name="hstManagerNm" value="${hstManagerNm}"/>
<input type="hidden" name="hstMbtlNum" value="${hstMbtlNum}"/> <input type="hidden" name="hstMbtlNum" value="${hstMbtlNum}"/>
<input type="hidden" name="hstSttus" value="${hstSttus}"/>
<input type="hidden" name="cmphstId" value="${cmphstId}"/>
<input type="hidden" name="hstType" value="${hstType}"/>
<input type="hidden" name="mberId" value="${mberId}"/>
<input type="hidden" name="managerNm" value="${managerNm}"/>
<input type="hidden" name="mbtlNum" value="${mbtlNum}"/>
</form> </form>
</body> </body>

View File

@ -146,21 +146,42 @@ function authYnC() {
} }
// 반려화면 Call //반려화면 Call
function setRejectAreaCall(sType) { function setRejectAreaCall(sType) {
if (sType == "SHOW") { if (sType == "SHOW") {
if ($("#rejectArea").css("display") == "block") { if ($("#rejectArea").css("display") == "block") {
$("#rejectArea").hide(); //반려 Hide
setRejectAreaHide();
} }
else { else {
$("#rejectArea").show(); // 반려 Show
setRejectAreaShow();
} }
} }
else { else {
$("#rejectArea").hide(); //반려 Hide
setRejectAreaHide();
} }
} }
// 반려 Show
function setRejectAreaShow() {
$("#rejectArea").show();
$("#btnReject").text("반려 CLOSE");
$("#btnReject").removeClass("btnType1");
$("#btnReject").addClass("btnType2");
}
//반려 Hide
function setRejectAreaHide() {
$("#rejectArea").hide();
$("#btnReject").text("반려 OPEN");
$("#btnReject").removeClass("btnType2");
$("#btnReject").addClass("btnType1");
}
</script> </script>
</head> </head>
@ -294,15 +315,15 @@ function setRejectAreaCall(sType) {
<table class="tbType1"> <table class="tbType1">
<colgroup> <colgroup>
<col style="width: *%"> <col style="width: *%">
<col style="width: 20%"> <col style="width: 25%">
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
<td class="left" style="padding: 10px 0 10px 0; line-height: 1.6em;">${requiredDocuments}</td> <td class="left" style="padding: 10px 0 10px 0; line-height: 1.6em;">${requiredDocuments}</td>
<td style="padding: 10px 0 10px 0; vertical-align:middle;"> <td style="padding: 10px 0 10px 0; vertical-align: middle;">
<c:if test="${authYn eq 'H'}"> <c:if test="${authYn eq 'H'}">
<button class="btnType btnType20" onclick="updateAuthYn('<c:out value='${phmId}'/>', 'Y', '<c:out value='${userId}'/>'); return false;" style="background-color: blue;">인증완료</button> <button class="btnType1" onclick="updateAuthYn('<c:out value='${phmId}'/>', 'Y', '<c:out value='${userId}'/>'); return false;" style="background-color: blue;">인증완료</button>
<button class="btnType btnType20" onclick="setRejectAreaCall('SHOW'); return false;">반려</button> <button class="btnType1" onclick="setRejectAreaCall('SHOW'); return false;" id="btnReject">반려 OPEN</button>
</c:if> </c:if>
</td> </td>
</tr> </tr>