이준호 문자온 커밋

- 주말 cs 업무 종합 뷰
This commit is contained in:
leejunho 2023-07-28 16:48:00 +09:00
parent e4c079f1d8
commit 08c6cd02f5
5 changed files with 1213 additions and 1 deletions

View File

@ -13,6 +13,8 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Random;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@ -42,8 +44,10 @@ import com.hanju.util.Authentication;
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import itn.com.cmm.ComDefaultCodeVO;
import itn.com.cmm.EgovMessageSource;
import itn.com.cmm.LoginVO;
import itn.com.cmm.service.EgovCmmUseService;
import itn.com.cmm.service.EgovFileMngService;
import itn.com.cmm.service.EgovFileMngUtil;
import itn.com.cmm.service.FileVO;
@ -76,8 +80,10 @@ import itn.let.uat.uia.web.ClientIP;
import itn.let.uat.uia.web.EmailVO;
import itn.let.uat.uia.web.SendLogVO;
import itn.let.uat.uia.web.SendMail;
import itn.let.uss.umt.service.EgovMberCmpHstService;
import itn.let.uss.umt.service.EgovMberManageService;
import itn.let.uss.umt.service.EgovUserManageService;
import itn.let.uss.umt.service.MberCmpHstVO;
import itn.let.uss.umt.service.MberManageVO;
import itn.let.uss.umt.service.UserDefaultVO;
import itn.let.uss.umt.service.UserManageVO;
@ -146,6 +152,12 @@ public class MjonMsgController {
@Resource(name = "userManageService")
private EgovUserManageService userManageService;
@Resource(name = "EgovCmmUseService")
private EgovCmmUseService cmmUseService;
@Resource(name = "egovMberCmpHstService")
private EgovMberCmpHstService egovMberCmpHstService;
//배열 정의{"컬럼순차번호, 컬럼이름, 컬럼내용, 컬럼이름에 붙여야할 내용(엑셀코드양식다운로드시 필요)"}
private String[][] sendMsgExcelValue ={
{"0" ,"번호" , "1" , "" },
@ -4903,5 +4915,130 @@ public class MjonMsgController {
}
@RequestMapping(value = {"/uss/ion/msg/weekendCsWorkMain.do"})
public String weekendCsWorkMain() throws Exception {
return "/uss/ion/msg/weekendCsWorkMain";
}
/**
* 문자전송 등록하기 위한 처리(공통코드 처리)
* @param searchVO
* @param model
* @return "/uss/ion/msg/SendMsgModify"
* @throws Exception
*/
@RequestMapping(value = {"/uss/ion/msg/weekendCsWork.do"})
public String weekendCsWork(@ModelAttribute("searchVO") MjPhoneMemberVO searchVO,
HttpServletRequest request,
ModelMap model,
MberCmpHstVO mberCmpHstVO) throws Exception {
String certType = request.getParameter("certType");
model.addAttribute("certType", certType);
/** pageing */
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(1);
paginationInfo.setRecordCountPerPage(100);
paginationInfo.setPageSize(100);
searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
if("".equals(searchVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
searchVO.setSearchSortCnd("frstRegistPnttm");
searchVO.setSearchSortOrd("desc");
}
searchVO.setSearchSortAuthYN("Y");
searchVO.setPhmType("01"); //발신조회
List<MjPhoneMemberVO> resultList = mjonMsgService.selectSendNumberList(searchVO);
List<MjPhoneMemberVO> resultList2 = new ArrayList<MjPhoneMemberVO>();
resultList.stream()
.filter(t->t.getAuthYnTxt().equals("심사중"))
.collect(Collectors.toList())
.forEach(li->{resultList2.add(li);});
model.addAttribute("resultList", resultList2);
paginationInfo.setTotalRecordCount(resultList.size() > 0 ? ((MjPhoneMemberVO)resultList.get(0)).getTotCnt() : 0);
model.addAttribute("paginationInfo", paginationInfo);
return "/uss/ion/msg/weekendCsWork";
}
/**
* 문자전송 등록하기 위한 처리(공통코드 처리)
* @param searchVO
* @param model
* @return "/uss/ion/msg/SendMsgModify"
* @throws Exception
*/
@RequestMapping(value = {"/uss/ion/msg/weekendCsWork2.do"})
public String weekendCsWork2(@ModelAttribute("searchVO") MberCmpHstVO mberCmpHstVO,
HttpServletRequest request ,
ModelMap model) throws Exception {
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
String hstSttus = request.getParameter("hstSttus");
model.addAttribute("hstSttus", hstSttus);
//기업유형
ComDefaultCodeVO voComCode = new ComDefaultCodeVO();
voComCode.setCodeId("ITN033");
model.addAttribute("bizTypeList", cmmUseService.selectCmmCodeDetail(voComCode));
// 유형 코드조회
voComCode.setCodeId("ITN048");
model.addAttribute("hstTypeList", cmmUseService.selectCmmCodeDetail(voComCode));
// 처리상태 코드조회
voComCode.setCodeId("ITN049");
model.addAttribute("hstSttusList", cmmUseService.selectCmmCodeDetail(voComCode));
if(mberCmpHstVO.getPageUnit() != 10) {
mberCmpHstVO.setPageUnit(mberCmpHstVO.getPageUnit());
}
/** paging */
PaginationInfo paginationInfo = new PaginationInfo();
paginationInfo.setCurrentPageNo(1);
paginationInfo.setRecordCountPerPage(100);
paginationInfo.setPageSize(100);
mberCmpHstVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
mberCmpHstVO.setLastIndex(paginationInfo.getLastRecordIndex());
mberCmpHstVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
if("".equals(mberCmpHstVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
mberCmpHstVO.setSearchSortCnd("frstRegistPnttm");
mberCmpHstVO.setSearchSortOrd("desc");
}
List<MberCmpHstVO> mberCmpHstList = egovMberCmpHstService.selectMberCmpHstListByType(mberCmpHstVO);
List<MberCmpHstVO> resultList = new ArrayList<MberCmpHstVO>();
mberCmpHstList.stream()
.filter(t -> t.getHstSttus().equals("01"))
.collect(Collectors.toList())
.forEach(li ->
{
resultList.add(li);
});
int totCnt = 0;
if(mberCmpHstList.size() > 0) {
totCnt = mberCmpHstList.get(0).getTotCnt();
}
model.addAttribute("mberCmpHstList", resultList);
paginationInfo.setTotalRecordCount(totCnt);
model.addAttribute("paginationInfo", paginationInfo);
return "/uss/ion/msg/weekendCsWork2";
}
}

View File

@ -149,6 +149,9 @@
<pattern>/let/mjo/tax/updateTaxReceiptFileAjax.do</pattern> <!-- 세금계산서 등록 -->
<pattern>/uss/ion/msg/weekendCsWork.do</pattern>
<pattern>/uss/ion/msg/weekendCsWork2.do</pattern>
</decorator>
<!-- 관리자 게시글 작성, 템플릿 미리보기(헤더풋터 없음) -->

View File

@ -0,0 +1,425 @@
<%--
Class Name : weekendCsWork.jsp
Description : 발신번호 리스트 조회 페이지
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2021.03.31 신명섭 최초 생성
Copyright (C) 2009 by ITN All right reserved.
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache");
%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<link rel="stylesheet" href="/pb/css/reset.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/popup.css">
<script src="/pb/js/jquery-3.5.0.js"></script>
<script src="/pb/js/common.js"></script>
<script src = "/js/new_main.js "></script>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<script src="<c:url value='/js/jquery.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js'/>"></script>
<c:if test="${!empty loginId}">
<!-- 자동완성 START-->
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="<c:url value='/js/recent_search.js' />"></script>
<!-- 자동완성 END -->
</c:if>
<c:set var="RequestUrl" value="${pageContext.request.requestURL}"/>
<c:if test="${RequestUrl.indexOf('RefundReRegist.do') == -1}">
<script src="<c:url value='/js/ncms_common.js' />"></script>
</c:if>
<script>
$( document ).ready(function() {
labelSet();
});
function labelSet(){//Ajax load를 위해 메소드로 구현
$("input[type='checkBox'],input[type=radio]").each(function(index, item){
$(this).after("<label for='"+$(this).attr('id')+"'></label>") ;
});
}
// 페이지 뒤로 가기 시 이벤트 발생
window.onpageshow = function(event) {
// 뒤로 가기, 새로고침 등 캐시 복원 시
if ( event.persisted || (window.performance && window.performance.navigation.type == 2)) {
} else { // 새 페이지 열릴 시
<c:if test="${!empty message}">alert("${message}");</c:if>
}
}
</script>
<title>주말 cs 리스트</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script type="text/javaScript" language="javascript">
var certType = "${certType}";
$( document ).ready(function() {
//첨부파일 이미지 br태그 삭제 - import로 공통으로 사용해서 jsp에서 따로 처리
$(".brRm").children('br').remove();
});
function linkPage(pageNo){
var listForm = document.listForm ;
$('input[name=pageIndex]').val(pageNo);
listForm.action = "<c:url value='/uss/ion/msg/weekendCsWork.do'/>";
listForm.submit();
}
function fnCheckAll() {
if( $("#checkAll").is(':checked') ){
$("input[name=del]").prop("checked", true);
}else{
$("input[name=del]").prop("checked", false);
}
}
/* 체크된 메인배너 목록 삭제 */
function fn_delete(){
if($("input[name=del]:checked").length == 0){
alert("선택된 항목이 없습니다.");
return;
}
if (confirm("해당 정보를 삭제하시겠습니까?")){
frm = document.listForm;
//frm.action = "<c:url value='/uss/ion/msg/SendMsgDelete.do' />";
frm.action = "<c:url value='/uss/ion/msg/SendNumberDelete.do' />";
frm.submit();
}
}
/* 수정 화면*/
function fn_modify(phmId){
var frm = document.listForm ;
frm.phmId.value = phmId ;
frm.action = "<c:url value='/uss/ion/msg/SendNumberModify.do'/>";
frm.submit();
}
function fnSelectMber(mberId) {
document.modiForm.mberId.value = mberId;
window.open("about:blank", 'popupSelectMber', 'width=900, height=1800, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.modiForm.action = "<c:url value='/uss/umt/user/EgovGnrlselectedUserView.do'/>";
document.modiForm.target = "popupSelectMber";
document.modiForm.submit();
}
//기업회원 신청 승인/반려 처리
function updateAuthYn(phmId, authYn, userId) {
var form = document.listForm;
form.phmId.value = phmId;
form.authYn.value = authYn;
form.userId.value = userId;
var data = new FormData(form);
if (confirm("인증완료 하시겠습니까?")) {
$.ajax({
type: "POST",
url: "/uss/ion/msg/updateAuthYnAjax.do",
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
if (data.result) {
alert(data.msg);
location.reload();
} else {
alert(data.msg);
}
},
error: function (e) {
alert("저장에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
}
});
}
}
function returnPop(phmId) {
window.open("about:blank", 'returnPopup', 'width=600, height=310, top=400, left=650, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.popupForm.phmId.value = phmId;
document.popupForm.action = "<c:url value='/uss/ion/msg/sendNumberReturnPop.do'/>";
document.popupForm.target = "returnPopup";
document.popupForm.submit();
}
//기간선택 select
function fnSetCalMonth(val) {
var form = document.listForm;
var today = new Date();
var year = today.getFullYear();
var month = ("0"+(today.getMonth()+1)).slice(-2);
var date = ("0"+today.getDate()).slice(-2);
var sDate = new Date(today.setMonth(today.getMonth() - val));
var sYear = sDate.getFullYear();
var sMonth = ("0"+(sDate.getMonth()+1)).slice(-2);
var sDate = ("0"+sDate.getDate()).slice(-2);
form.searchStartDate.value = sYear + "-" + sMonth + "-" + sDate;
form.searchEndDate.value = year + "-" + month + "-" + date;
}
</script>
<style type="text/css">
.pageCont .tbType1 thead tr th,
.pageCont .tbType1 tbody tr td {font-size:14px;}
.btnType.btnType20{min-width: 0;}
</style>
</head>
<body >
<form name="listForm" action="<c:url value='/uss/ion/msg/weekendCsWork.do'/>" method="post">
<input name="pageIndex" id="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
<input type="hidden" name="phmId" />
<input type="hidden" name="authYn" />
<input type="hidden" name="delFlag" value="Y" />
<input type="hidden" name="selectedId" />
<input type="hidden" name="pageType" />
<input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" />
<input type="hidden" name="userId" value="" />
<div class="contWrap" style="min-height: 500px; padding: 0px 40px;">
<!-- <div class="pageTitle"> -->
<!-- <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> -->
<!-- <h2 class="titType1 c_222222 fwBold">주말 cs 리스트</h2> -->
<!-- <p class="tType6 c_999999">주말 cs 리스트</p> -->
<!-- </div> -->
<div class="pageCont" style="min-height: 400px;">
발신번호조회
<div class="tableWrap">
<table class="tbType1">
<colgroup>
<col style="width: 2%">
<col style="width: 5%">
<col style="width: 7%">
<col style="width: 9%">
<col style="width: 9%">
<col style="width: 6%">
<col style="width: 6%">
<col style="width: 3%">
<col style="width: 3%">
<col style="width: 7%">
<col style="width: 5%">
<col style="width: 5%">
<col style="width: 5%">
<col style="width: 8%">
<col style="width: *%">
<col style="width: 8%">
<%-- <col style="width: 10%"> --%>
</colgroup>
<thead>
<tr>
<th><input type="checkbox" name="checkAll" id="checkAll" class="check2" value="1" onClick="fnCheckAll();"></th>
<th>번호<input type="button" class="sort sortBtn" id="sort_phmId"></th>
<th>아이디<input type="button" class="sort sortBtn" id="sort_userId"></th>
<th>회원휴대폰</th>
<th>전화번호</th>
<th>대표<input type="button" class="sort sortBtn" id="sort_userName"></th>
<th>담당자<input type="button" class="sort sortBtn" id="sort_managerNm"></th>
<th>회원<%--<input type="button" class="sort sortBtn" id="sort_dept"> --%></th>
<th>구분<%--<input type="button" class="sort sortBtn" id="sort_nameType"> --%></th>
<!-- <th>타입(발신/수신/거부)<input type="button" class="sort sortBtn" id="sort_phmType"></th> -->
<th>인증여부<input type="button" class="sort sortBtn" id="sort_authYn"></th>
<th>관리자</th>
<th>인증<input type="button" class="sort sortBtn" id="sort_phmAuthType"></th>
<th>인증자<input type="button" class="sort sortBtn" id="sort_ownerName"></th>
<th>첨부파일</th>
<th>관리</th>
<th>등록일자<input type="button" class="sort sortBtn" id="sort_frstRegistPnttm"></th>
<!-- <th>삭제여부<input type="button" class="sort sortBtn" id="sort_delFlag"></th> -->
</tr>
</thead>
<tbody>
<c:forEach var="result" items="${resultList}" varStatus="status">
<tr>
<td>
<input name="del" id="del_${status.index}" type="checkbox" value="${result.phmId}" />
</td>
<td>
<c:if test="${searchVO.searchSortOrd eq 'desc' }">
<c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/>
</c:if>
<c:if test="${searchVO.searchSortOrd eq 'asc' }">
<c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/>
</c:if>
</td>
<td title="<c:out value="${result.userId}"/>">
<a href="#" onclick="javascript:fnSelectMber('<c:out value="${result.userId}"/>'); return false;">
<c:out value="${result.userId}"/>
</a>
</td>
<td title="<c:out value="${result.mbtlNum}"/>">
<a href="#" onclick="fn_modify('${result.phmId}'); return false;">
<c:out value="${result.mbtlNum}"/>
</a>
</td>
<td title="<c:out value="${result.phoneNumber}"/>">
<a href="#" onclick="fn_modify('${result.phmId}'); return false;">
<c:out value="${result.phoneNumber}"/>
</a>
</td>
<td title="<c:out value="${result.userName}"/>">
<a href="#" onclick="fn_modify('${result.phmId}'); return false;">
<c:out value="${result.userName}"/>
</a>
</td>
<td title="<c:out value="${result.managerNm}"/>">
<a href="#" onclick="fn_modify('${result.phmId}'); return false;">
<c:out value="${result.managerNm}"/>
</a>
</td>
<td>
<a href="#" onclick="fn_modify('${result.phmId}'); return false;">
<c:choose>
<c:when test="${result.dept == 'c'}">
기업
</c:when>
<c:otherwise>
개인
</c:otherwise>
</c:choose>
</a>
</td>
<td>
<a href="#" onclick="fn_modify('${result.phmId}'); return false;">
<c:choose>
<c:when test="${not empty result.nameType}">
<c:choose>
<c:when test="${result.nameType == '1'}">
당사
</c:when>
<c:when test="${result.nameType == '2'}">
대표
</c:when>
<c:when test="${result.nameType == '3'}">
직원
</c:when>
<c:when test="${result.nameType == '4'}">
타사
</c:when>
<c:when test="${result.nameType == '5'}">
본인
</c:when>
<c:otherwise>
타인
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
없음
</c:otherwise>
</c:choose>
</a>
</td>
<%-- <td><c:out value="${result.phmTypeTxt}"/></td> --%>
<td>
<c:choose>
<c:when test="${result.phmType eq '03'}">
발신번호 차단
</c:when>
<c:otherwise>
<c:if test="${result.authYnTxt eq '심사중'}">인증요청</c:if> <!-- 코드에 심사중으로 등록되어 있지만 인증요청으로 화면에 뿌리기 위한 처리-->
<c:if test="${result.authYnTxt ne '심사중'}"><c:out value="${result.authYnTxt}"/></c:if>
</c:otherwise>
</c:choose>
</td>
<td><c:out value="${result.admNm}"/></td>
<td title="<c:out value="${result.phmAuthTypeTxt}"/>">
<c:choose>
<c:when test="${result.phmAuthTypeTxt eq '휴대폰 인증'}">
휴대폰
</c:when>
<c:when test="${result.phmAuthTypeTxt eq '서류인증'}">
서류
</c:when>
<c:otherwise>
<c:out value="${result.phmAuthTypeTxt}"/>
</c:otherwise>
</c:choose>
</td>
<td>
<c:choose>
<c:when test="${result.phmAuthTypeTxt eq '서류인증'}">
</c:when>
<c:otherwise>
<c:out value="${result.ownerName}"/>
</c:otherwise>
</c:choose>
</td>
<td class="brRm">
<c:import url="/cmm/fms/selectAddrAgencyFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${result.atchFileId}" />
</c:import>
</td>
<td>
<c:if test="${result.authYn eq 'H'}">
<button class="btnType btnType20" onclick="updateAuthYn('<c:out value='${result.phmId}'/>', 'Y', '<c:out value='${result.userId}'/>'); return false;" >인증완료</button>
<button class="btnType btnType20" onclick="returnPop('<c:out value="${result.phmId}"/>'); return false;">반려</button>
</c:if>
<c:if test="${result.authYn eq 'C'}">
<button class="btnType btnType20" onclick="returnPop('<c:out value="${result.phmId}"/>'); return false;">반려사유</button>
</c:if>
</td>
<td title="<c:out value="${result.frstRegistPnttm}"/>">
<fmt:parseDate value="${result.frstRegistPnttm}" var="frstRegistDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${frstRegistDateValue}" pattern="MM-dd HH:mm"/>
</td>
<%-- <td><c:out value="${result.delFlagTxt}"/></td> --%>
</tr>
</c:forEach>
<c:if test="${empty resultList}">
<tr><td colspan="14"><spring:message code="common.nodata.msg" /></td></tr>
</c:if>
</tbody>
</table>
</div>
</div>
</div>
</form>
<form name="modiForm" id="modiForm" method="post">
<input name="mberId" type="hidden" />
</form>
<form name="popupForm" id="popupForm" method="post">
<input name="phmId" type="hidden" />
</form>
</body>
</html>

View File

@ -0,0 +1,598 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<link rel="stylesheet" href="/pb/css/reset.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/popup.css">
<script src="/pb/js/jquery-3.5.0.js"></script>
<script src="/pb/js/common.js"></script>
<script src = "/js/new_main.js "></script>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<script src="<c:url value='/js/jquery.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js'/>"></script>
<c:if test="${!empty loginId}">
<!-- 자동완성 START-->
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="<c:url value='/js/recent_search.js' />"></script>
<!-- 자동완성 END -->
</c:if>
<c:set var="RequestUrl" value="${pageContext.request.requestURL}"/>
<c:if test="${RequestUrl.indexOf('RefundReRegist.do') == -1}">
<script src="<c:url value='/js/ncms_common.js' />"></script>
</c:if>
<script>
$( document ).ready(function() {
labelSet();
});
function labelSet(){//Ajax load를 위해 메소드로 구현
$("input[type='checkBox'],input[type=radio]").each(function(index, item){
$(this).after("<label for='"+$(this).attr('id')+"'></label>") ;
});
}
// 페이지 뒤로 가기 시 이벤트 발생
window.onpageshow = function(event) {
// 뒤로 가기, 새로고침 등 캐시 복원 시
if ( event.persisted || (window.performance && window.performance.navigation.type == 2)) {
} else { // 새 페이지 열릴 시
<c:if test="${!empty message}">alert("${message}");</c:if>
}
}
</script>
<title>기업회원 신청 정보</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script type="text/javaScript" language="javascript">
var hstSttus = "${hstSttus}";
$( document ).ready(function() {
// 대시보드에 전달받은 파라미터 처리
fromDashboard();
});
function fnChkAll() {
if($("#chkAll").is(':checked') ){
$("input[name=chkSttusY]").prop("checked", true);
}else{
$("input[name=chkSttusY]").prop("checked", false);
}
}
// 대시보드에 전달받은 파라미터 처리
function fromDashboard() {
if (hstSttus == "01") {
$("#searchHstSttus").val(hstSttus).prop("selected", true);
linkPage(1);
}
}
function linkPage(pageNo){
var listForm = document.listForm ;
listForm.action = "/uss/umt/user/EgovMberCmpHstList.do" ;
listForm.target = "_self";
listForm.pageIndex.value = pageNo ;
listForm.submit();
}
function returnPop(cmphstId) {
$("#cmphstId").val(cmphstId);
window.open("about:blank", 'returnPopup', 'width=600, height=310, top=400, left=650, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.listForm.action = "<c:url value='/uss/umt/user/EgovMberCmpHstReturnPop.do'/>";
document.listForm.target = "returnPopup";
document.listForm.submit();
}
function listPop(mberId) {
document.popupForm.mberId.value = mberId;
window.open("about:blank", 'listPopup', 'width=1800, height=800, top=100, left=0, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.popupForm.action = "<c:url value='/uss/umt/user/EgovMberCmpHstListPop.do'/>";
document.popupForm.target = "listPopup";
document.popupForm.submit();
}
//link to bizno
function bizNoPop(p_biz_no) {
//document.popupForm.mberId.value = mberId;
window.open("about:blank", 'listPopup', 'width=1800, height=800, top=100, left=0, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.popupForm.action = "https://bizno.net/article/"+p_biz_no;
document.popupForm.target = "bizNoPopup";
document.popupForm.submit();
}
function listTaxPop(mberId) {
document.popupForm.mberId.value = mberId;
window.open("about:blank", 'taxListPopup', 'width=1800, height=800, top=100, left=0, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.popupForm.action = "<c:url value='/uss/umt/user/EgovMberCmpHstTaxListPop.do'/>";
document.popupForm.target = "taxListPopup";
document.popupForm.submit();
}
function biznoPop(p_bizno) {
window.open('https://www.bizno.net/article/'+p_bizno);
}
// 기업회원 신청 승인/반려 처리
function setMberCmpHstStatusSave(hstSttus, cmphstId, hstType, mberId, managerNm, mbtlNum) {
var sMsg = "";
if (hstSttus == "02") {
sMsg = "승인";
}
else if (hstSttus == "03") {
sMsg = "반려";
}
if (confirm(sMsg + " 하시겠습니까?")) {
$("#hstSttus").val(hstSttus);
$("#cmphstId").val(cmphstId);
$("#hstType").val(hstType);
$("#mberId").val(mberId);
$("#mbtlNum").val(mbtlNum);
if(hstType == '02' && hstSttus == '02'){ //기업회원 전환 승인이라면 기존 mberNm -> managerNm 으로 수정
$("#managerNm").val(managerNm);
}
var form = document.listForm;
var data = new FormData(form);
url = "/uss/umt/user/mberCmpHstStatusSaveAjax.do";
$.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);
location.reload();
}else{
// 초기화
$("#hstSttus").val("");
$("#cmphstId").val("");
$("#hstType").val("");
$("#mberId").val("");
alert(data.msg);
linkPage(1);
}
}
else {
alert(data.msg);
}
},
error: function (e) {
alert("저장에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
}
});
}
}
//반려 기업회원 삭제 처리
function setMberCmpHstStatusDelete(
p_mberId
) {
if (confirm("정말 삭제 하시겠습니까?")) {
$("#mberId").val(p_mberId);
var form = document.listForm;
var data = new FormData(form);
url = "/uss/umt/user/mberCmpHstStatusDeleteAjax.do";
$.ajax({
type: "POST",
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
if (data.isSuccess) {
// 초기화
$("#mberId").val("");
alert(data.msg);
linkPage(1);
}
else {
alert(data.msg);
}
},
error: function (e) {
alert("삭제에 실패하였습니다.");
alert("ERROR : " + JSON.stringify(e));
}
});
}
}
//신청 일괄승인
function fnSttusYAll() {
if($("input[name=chkSttusY]:checked").length == 0){
alert("선택된 항목이 없습니다.");
return false;
}
if (confirm("일괄승인 처리하시겠습니까?")){
var cmphstIds = [];
$('input:checkbox[name="chkSttusY"]').each(function() {
if(this.checked){
cmphstIds.push($(this).val());
}
})
}
$.ajax({
type: "POST",
url : "<c:url value='/uss/umt/user/mberCmpHstStatusYSaveAjax.do'/>",
data : {"cmphstIds" : cmphstIds},
dataType : 'json',
async : false,
success : function(data){
alert(data.msg);
location.reload();
},
error :function(e){
alert("2");
}
})
}
//마우스 오버시 상세정보 노출
$(function(){
$('.pageCont .tbType1 tbody tr').mouseover(function(){
$(this).mousemove(function(e){
var x=e.pageX+15;
var y=e.pageY+15;
$(this).closest('tr').next('.biz_hover_wrap').find('.biz_hover_content').css({'top':y,'left':x});
});
});
});
//회원정보 상세 팝업
function fnSelectMber(mberId) {
document.modiForm.mberId.value = mberId;
window.open("about:blank", 'popupSelectMber', 'width=900, height=1800, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
document.modiForm.action = "<c:url value='/uss/umt/user/EgovGnrlselectedUserView.do'/>";
document.modiForm.target = "popupSelectMber";
document.modiForm.submit();
}
//기간선택 select
function fnSetCalMonth(val) {
var form = document.listForm;
var today = new Date();
var year = today.getFullYear();
var month = ("0"+(today.getMonth()+1)).slice(-2);
var date = ("0"+today.getDate()).slice(-2);
var sDate = new Date(today.setMonth(today.getMonth() - val));
var sYear = sDate.getFullYear();
var sMonth = ("0"+(sDate.getMonth()+1)).slice(-2);
var sDate = ("0"+sDate.getDate()).slice(-2);
form.searchStartDate.value = sYear + "-" + sMonth + "-" + sDate;
form.searchEndDate.value = year + "-" + month + "-" + date;
}
</script>
<style type="text/css">
.pageCont .tbType1 thead tr th,
.pageCont .tbType1 tbody tr td {font-size:14px;}
.btnType.btnType20{min-width: 0;}
</style>
</head>
<body>
<form name="popupForm" action="<c:url value='/uss/umt/user/EgovMberCmpHstListPop.do'/>" method="post">
<input type="hidden" name="pageIndex" value="1"/>
<input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" />
<input type="hidden" name="mberId"/>
</form>
<form name="listForm" action="<c:url value='/uss/umt/user/EgovMberCmpHstList.do'/>" method="post">
<input name="pageIndex" id="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
<input type="hidden" name="pageType" />
<input type="hidden" name="searchSortCnd" value="<c:out value="${searchVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${searchVO.searchSortOrd}" />" />
<input type="hidden" name="hstSttus" id="hstSttus" />
<input type="hidden" name="cmphstId" id="cmphstId" />
<input type="hidden" name="hstType" id="hstType" />
<input type="hidden" name="mberId" id="mberId" />
<input type="hidden" name="managerNm" id="managerNm" />
<input type="hidden" name="mbtlNum" id="mbtlNum" />
<input type="hidden" name="atchFileId" id="atchFileId" />
<input type="hidden" name="workAtchFileId" id="workAtchFileId" />
<div class="contWrap" style="min-height: 500px; padding: 0px 40px;">
<!-- <div class="pageTitle"> -->
<!-- <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> -->
<!-- <h2 class="titType1 c_222222 fwBold">기업회원 신청 목록</h2> -->
<!-- <p class="tType6 c_999999">기업회원 신청 정보를 파악할 수 있습니다.</p> -->
<!-- </div> -->
<div class="pageCont" style="min-height: 400px;">
기업회원 신청
<div class="tableWrap">
<table class="tbType1">
<colgroup>
<col style="width: 20px">
<col style="width: 50px">
<col style="width: 7%">
<col style="width: 30px">
<col style="width: auto">
<col style="width: 80px">
<col style="width: 5%">
<col style="width: 6%">
<col style="width: 90px">
<col style="width: 55px">
<col style="width: 55px">
<col style="width: 5%">
<col style="width: 35px">
<col style="width: 50px">
<col style="width: 30px">
<col style="width: 7%">
<col style="width: 115px">
<col style="width: 50px">
<col style="width: 50px">
</colgroup>
<thead>
<tr>
<th><input type="checkbox" id="chkAll" onClick="fnChkAll();"></th>
<th>번호<input type="button" class="sort sortBtn" id="sort_cmphstId"></th>
<th>회원ID<input type="button" class="sort sortBtn" id="sort_mberId"></th>
<th>유형<input type="button" class="sort sortBtn" id="sort_bizType"></th>
<th>기업명<input type="button" class="sort sortBtn" id="sort_mberNm"></th>
<th>사업자번호<input type="button" class="sort sortBtn" id="sort_bizNo"></th>
<th>대표자<input type="button" class="sort sortBtn" id="sort_ceoNm"></th>
<th>담당자<input type="button" class="sort sortBtn" id="sort_ceoNm"></th>
<th>휴대폰<input type="button" class="sort sortBtn" id="sort_ceoNm"></th>
<th>사업자<input type="button" class="sort sortBtn" id="sort_atchFileId"></th>
<th>재직<input type="button" class="sort sortBtn" id="sort_workAtchFileId"></th>
<th>유형<input type="button" class="sort sortBtn" id="sort_hstType"></th>
<th>사전</th>
<th>API</th>
<th>상태<input type="button" class="sort sortBtn" id="sort_hstSttus"></th>
<th>등록일<input type="button" class="sort sortBtn" id="sort_frstRegistPnttm"></th>
<th>관리</th>
<th>전체</th>
<th>삭제</th>
</tr>
</thead>
<tbody>
<c:forEach var="result" items="${mberCmpHstList}" varStatus="status">
<tr>
<td>
<c:if test="${result.hstSttus eq '01'}">
<input type="checkbox" name="chkSttusY" id="chkSttusY_${status.index}" value="${result.cmphstId}">
</c:if>
</td>
<td>
<c:if test="${searchVO.searchSortOrd eq 'desc' }">
<c:out value="${ ( paginationInfo.totalRecordCount - ((paginationInfo.currentPageNo -1)*paginationInfo.recordCountPerPage) ) - status.index }"/>
</c:if>
<c:if test="${searchVO.searchSortOrd eq 'asc' }">
<c:out value="${(paginationInfo.currentPageNo - 1) * paginationInfo.recordCountPerPage + status.count}"/>
</c:if>
</td>
<td>
<c:choose>
<c:when test="${result.hstSttus == '02'}">
<a href="#" onclick="javascript:fnSelectMber('<c:out value="${result.mberId}"/>'); return false;">
<c:out value="${result.mberId}"/>
</a>
</c:when>
<c:otherwise>
<c:out value="${result.mberId}"/>
</c:otherwise>
</c:choose>
</td>
<td>
<c:forEach var="item" items="${bizTypeList}" varStatus="status">
<c:if test="${result.bizType == item.code}"><c:out value="${fn:substring(item.codeNm,0,2)}"/></c:if>
</c:forEach>
</td>
<td><c:out value="${result.mberNm}"/></td>
<td><a href="https://www.bizno.net/article/${result.bizNo}" target="_blank"><c:out value="${result.bizNo}"/></a></td>
<td><c:out value="${result.ceoNm}"/></td>
<td><c:out value="${result.hstManagerNm}"/></td>
<td><c:out value="${result.hstMbtlNum}"/></td>
<td class="td_file">
<c:if test="${result.atchFileId ne '' || result.atchFileId ne null}">
<c:import url="/cmm/fms/selectAddrAgencyFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${result.atchFileId}" />
</c:import>
</c:if>
</td>
<td class="td_file">
<c:if test="${result.workAtchFileId ne '' || result.workAtchFileId ne null}">
<c:import url="/cmm/fms/selectAddrAgencyFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${result.workAtchFileId}" />
</c:import>
</c:if>
</td>
<td>
<c:forEach var="item" items="${hstTypeList}" varStatus="status">
<c:if test="${result.hstType == item.code}"><c:out value="${item.codeNm}"/></c:if>
</c:forEach>
</td>
<td>
<c:choose>
<c:when test="${result.checkType == '100'}">
Y
</c:when>
<c:when test="${result.checkType == '111'}">
YY
<br/>대표자명
<br/>기업이름
<br/>설립일
</c:when>
<c:otherwise>
X
</c:otherwise>
</c:choose>
</td>
<td>
<%-- <a href="https://www.bizno.net/article/${result.bizNo}" target="_blank">bizno</a> --%>
<!--
<button class="btnType btnType20"
onclick="biznoPop('${result.bizNo}');return false;">bizno</button>
-->
<button class="btnType btnType20"
onclick="listTaxPop('<c:out value="${result.mberId}"/>'); return false;">팝업</button>
</td>
<td>
<c:forEach var="item" items="${hstSttusList}" varStatus="status">
<c:if test="${result.hstSttus == item.code}">
<c:if test="${result.hstSttus == 01}"><span class="c_ed4555"><c:out value="${item.codeNm}"/></span></c:if>
<c:if test="${result.hstSttus == 02}"><span class="c_456ded"><c:out value="${item.codeNm}"/></span></c:if>
<c:if test="${result.hstSttus == 03}"><span class="c_b4b4b4"><c:out value="${item.codeNm}"/></span></c:if>
</c:if>
</c:forEach>
</td>
<td>
<fmt:parseDate value="${result.frstRegistPnttm}" var="frstRegistDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${frstRegistDateValue}" pattern="MM-dd HH:mm"/>
</td>
<td>
<c:if test="${result.hstSttus eq '01'}">
<button class="btnType btnType20" onclick="setMberCmpHstStatusSave('02','<c:out value="${result.cmphstId}"/>','<c:out value="${result.hstType}"/>','<c:out value="${result.mberId}"/>' ,'<c:out value="${result.managerNm}"/>' ,'<c:out value="${result.mbtlNum}"/>'); return false;">승인</button>
<%-- <button class="btnType btnType20" onclick="setMberCmpHstStatusSave('03','<c:out value="${result.cmphstId}"/>','<c:out value="${result.hstType}"/>','<c:out value="${result.mberId}"/>' ,'<c:out value="${result.managerNm}"/>' ,'<c:out value="${result.mbtlNum}"/>'); return false;">반려</button> --%>
<button class="btnType btnType20" onclick="returnPop('<c:out value="${result.cmphstId}"/>'); return false;">반려</button>
</c:if>
<c:if test="${result.hstSttus eq '03'}">
<button class="btnType btnType20" onclick="returnPop('<c:out value="${result.cmphstId}"/>'); return false;">반려 사유</button>
</c:if>
</td>
<td>
<button class="btnType btnType20" onclick="listPop('<c:out value="${result.mberId}"/>'); return false;">전체 </button>
</td>
<td>
<c:if test="${result.hstSttus eq '03'}">
<button class="btnType btnType20" onclick="setMberCmpHstStatusDelete('<c:out value="${result.mberId}"/>'); return false;">삭제</button>
</c:if>
</td>
</tr>
<tr class="biz_hover_wrap">
<td colspan="14">
<div class="biz_hover_content">
<dl>
<dt>회원 ID</dt>
<dd><c:out value="${result.mberId}"/></dd>
</dl>
<dl>
<dt>유형</dt>
<dd>
<c:forEach var="item" items="${bizTypeList}" varStatus="status">
<c:if test="${result.bizType == item.code}"><c:out value="${fn:substring(item.codeNm,0,2)}"/></c:if>
</c:forEach>
</dd>
</dl>
<dl>
<dt>기업이름</dt>
<dd><c:out value="${result.mberNm}"/></dd>
</dl>
<dl>
<dt>사업자번호</dt>
<dd><c:out value="${result.bizNo}"/></dd>
</dl>
<dl>
<dt>대표자 성명</dt>
<dd><c:out value="${result.ceoNm}"/></dd>
</dl>
<dl>
<dt>담당자 성명</dt>
<dd><c:out value="${result.hstManagerNm}"/></dd>
</dl>
<dl>
<dt>휴대폰</dt>
<dd><c:out value="${result.hstMbtlNum}"/></dd>
</dl>
<%-- <c:if test="${result.atchFileId ne '' && result.atchFileId ne null}">
<dl>
<dt>사업자등록증</dt>
<dd></dd>
</dl>
</c:if>
<c:if test="${result.workAtchFileId ne '' && result.workAtchFileId ne null}">
<dl>
<dt>재직증명서</dt>
<dd></dd>
</dl>
</c:if> --%>
<dl>
<dt>유형</dt>
<dd>
<c:forEach var="item" items="${hstTypeList}" varStatus="status">
<c:if test="${result.hstType == item.code}"><c:out value="${item.codeNm}"/></c:if>
</c:forEach>
</dd>
</dl>
<dl>
<dt>상태</dt>
<dd>
<c:forEach var="item" items="${hstSttusList}" varStatus="status">
<c:if test="${result.hstSttus == item.code}"><c:out value="${item.codeNm}"/></c:if>
</c:forEach>
</dd>
</dl>
<dl>
<dt>관리자</dt>
<dd>
<c:out value="${result.admNm}" />
</dd>
</dl>
<dl>
<dt>등록일</dt>
<dd><c:out value="${result.frstRegistPnttm}"/></dd>
</dl>
</div>
</td>
</tr>
</c:forEach>
<c:if test="${empty mberCmpHstList}">
<tr><td colspan="14"><spring:message code="common.nodata.msg" /></td></tr>
</c:if>
</tbody>
</table>
</div>
<div class="btnWrap">
<input type="button" class="btnType2" onclick="javascript:fnSttusYAll(); return false;" value="일괄승인">
</div>
</div>
</div>
</form>
<form name="modiForm" id="modiForm" method="post">
<input name="mberId" type="hidden" />
</form>
</body>
</html>

View File

@ -0,0 +1,49 @@
<%--
Class Name : weekendCsWork.jsp
Description : 발신번호 리스트 조회 페이지
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2021.03.31 신명섭 최초 생성
Copyright (C) 2009 by ITN All right reserved.
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ec" uri="/WEB-INF/tld/ecnet_tld.tld"%>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache");
%>
<!DOCTYPE html>
<html lang="ko">
<head>
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
<script type="text/javaScript" language="javascript">
$(document).ready(function() {
// load();
// alert('test');
});
function load(){
$('#frame1').attr('src', '/uss/ion/msg/weekendCsWork.do');
$('#frame2').attr('src', '/uss/ion/msg/weekendCsWork2.do');
}
</script>
</head>
<body>
<iframe id="frame1" src="/uss/ion/msg/weekendCsWork.do" width="100%" height="570" style="clear: left;"></iframe>
<button id="test" onclick="load();" style="position: absolute; float: left;left: 50%">갱신</button>
<iframe id="frame2" src="/uss/ion/msg/weekendCsWork2.do" width="100%" height="570" style="clear:both"></iframe>
</body>
</html>