From 08c6cd02f52e0a2357654d7c644076b285db7bf3 Mon Sep 17 00:00:00 2001 From: tolag3 Date: Fri, 28 Jul 2023 16:48:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A4=80=ED=98=B8=20=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=EC=98=A8=20=EC=BB=A4=EB=B0=8B=20=20-=20=EC=A3=BC?= =?UTF-8?q?=EB=A7=90=20cs=20=EC=97=85=EB=AC=B4=20=EC=A2=85=ED=95=A9=20?= =?UTF-8?q?=EB=B7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../let/mjo/msg/web/MjonMsgController.java | 139 +++- src/main/webapp/WEB-INF/decorators.xml | 3 + .../WEB-INF/jsp/uss/ion/msg/weekendCsWork.jsp | 425 +++++++++++++ .../jsp/uss/ion/msg/weekendCsWork2.jsp | 598 ++++++++++++++++++ .../jsp/uss/ion/msg/weekendCsWorkMain.jsp | 49 ++ 5 files changed, 1213 insertions(+), 1 deletion(-) create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork2.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWorkMain.jsp diff --git a/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java b/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java index 79eda090..8e0e13e4 100644 --- a/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java +++ b/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java @@ -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; @@ -144,7 +150,13 @@ public class MjonMsgController { /** userManageService */ @Resource(name = "userManageService") - private EgovUserManageService userManageService; + private EgovUserManageService userManageService; + + @Resource(name = "EgovCmmUseService") + private EgovCmmUseService cmmUseService; + + @Resource(name = "egovMberCmpHstService") + private EgovMberCmpHstService egovMberCmpHstService; //배열 정의{"컬럼순차번호, 컬럼이름, 컬럼내용, 컬럼이름에 붙여야할 내용(엑셀코드양식다운로드시 필요)"} private String[][] sendMsgExcelValue ={ @@ -4901,6 +4913,131 @@ public class MjonMsgController { return modelAndView; } + + + @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 resultList = mjonMsgService.selectSendNumberList(searchVO); + List resultList2 = new ArrayList(); + 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 mberCmpHstList = egovMberCmpHstService.selectMberCmpHstListByType(mberCmpHstVO); + List resultList = new ArrayList(); + 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"; + } diff --git a/src/main/webapp/WEB-INF/decorators.xml b/src/main/webapp/WEB-INF/decorators.xml index 4e221f9d..ef4bbdb2 100644 --- a/src/main/webapp/WEB-INF/decorators.xml +++ b/src/main/webapp/WEB-INF/decorators.xml @@ -149,6 +149,9 @@ /let/mjo/tax/updateTaxReceiptFileAjax.do + /uss/ion/msg/weekendCsWork.do + /uss/ion/msg/weekendCsWork2.do + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork.jsp new file mode 100644 index 00000000..a810f0af --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork.jsp @@ -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"); +%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +주말 cs 리스트 + + + + + + + +
+ + + + + + + " /> + " /> + + +
+ + + + + +
+ 발신번호조회 +
+ + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + <%-- --%> + + + + + + +
번호아이디회원휴대폰전화번호대표담당자회원<%-- --%>구분<%-- --%>인증여부관리자인증인증자첨부파일관리등록일자
+ + + + + + + + + "> + '); return false;"> + + + "> + + + + "> + + + + "> + + + + "> + + + + + + + + 기업 + + + 개인 + + + + + + + + + + 당사 + + + 대표 + + + 직원 + + + 타사 + + + 본인 + + + 타인 + + + + + 없음 + + + + + + + 발신번호 차단 + + + 인증요청 + + + + + "> + + + 휴대폰 + + + 서류 + + + + + + + + + + + + + + + + + + + + + + + + + + + "> + + +
+
+
+
+
+ +
+ +
+
+ +
+ + + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork2.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork2.jsp new file mode 100644 index 00000000..a7b1da65 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWork2.jsp @@ -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"%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +기업회원 신청 정보 + + + + + + + +
+ + " /> + " /> + +
+ + +
+ + + " /> + " /> + + + + + + + + + +
+ + + + + +
+ 기업회원 신청 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
번호회원ID유형기업명사업자번호대표자담당자휴대폰사업자재직유형사전API상태등록일관리전체삭제
+ + + + + + + + + + + + + + '); return false;"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Y + + + YY +
대표자명 +
기업이름 +
설립일 +
+ + X + +
+
+<%-- bizno --%> + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + +
+
+
+
회원 ID
+
+
+
+
유형
+
+ + + +
+
+
+
기업이름
+
+
+
+
사업자번호
+
+
+
+
대표자 성명
+
+
+
+
담당자 성명
+
+
+
+
휴대폰
+
+
+ <%-- +
+
사업자등록증
+
+
+
+ +
+
재직증명서
+
+
+
--%> +
+
유형
+
+ + + +
+
+
+
상태
+
+ + + +
+
+
+
관리자
+
+ +
+
+
+
등록일
+
+
+
+
+
+
+ +
+
+
+
+
+ +
+ + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWorkMain.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWorkMain.jsp new file mode 100644 index 00000000..2536d942 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/weekendCsWorkMain.jsp @@ -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"); +%> + + + + + + + + + + + + +