From 823e20c930b6de03c086958f30567608a4c38069 Mon Sep 17 00:00:00 2001 From: itn Date: Wed, 2 Aug 2023 16:53:13 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=8B=A0=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=B2=A8=EB=B6=80=ED=8C=8C=EC=9D=BC=20=EB=B7=B0=EC=96=B4=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmm/web/EgovFileDownloadController.java | 1 - .../let/mjo/msg/web/MjonMsgController.java | 148 ++++++++ src/main/webapp/WEB-INF/decorators.xml | 2 +- .../cmm/uss/umt/EgovMberCmpHstListByType.jsp | 2 +- .../jsp/uss/ion/msg/SendNumberList.jsp | 108 ++++-- .../WEB-INF/jsp/uss/ion/msg/pdfView.jsp | 2 +- .../WEB-INF/jsp/uss/ion/msg/pdfViewPhone.jsp | 342 ++++++++++++++++++ 7 files changed, 566 insertions(+), 39 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfViewPhone.jsp diff --git a/src/main/java/itn/com/cmm/web/EgovFileDownloadController.java b/src/main/java/itn/com/cmm/web/EgovFileDownloadController.java index 36bc34e8..4408051f 100644 --- a/src/main/java/itn/com/cmm/web/EgovFileDownloadController.java +++ b/src/main/java/itn/com/cmm/web/EgovFileDownloadController.java @@ -464,7 +464,6 @@ public class EgovFileDownloadController { String fileNm = (String) commandMap.get("fileNm"); try { - File uFile = new File("/usr/local/tomcat/file/sht/pdf/", fileNm); //File uFile = new File("C:/TEST/", fileNm); 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 f84d7732..468116ba 100644 --- a/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java +++ b/src/main/java/itn/let/mjo/msg/web/MjonMsgController.java @@ -5086,5 +5086,153 @@ public class MjonMsgController { return "/uss/ion/msg/pdfView"; } + @RequestMapping(value = {"/uss/ion/msg/pdfViewPhone.do"}) + public String pdfViewPhone(FileVO fileVO + , ModelMap model + , HttpServletRequest request) throws Exception { + + FileVO fvo = fileService.selectFileInf(fileVO); + String path = ""; + String fileType = ""; + String[] imgExtArray = {"bmp", "gif", "jpeg", "jpg", "png", "tif", "tiff", "psd", "rle"}; + List imgExtList = new ArrayList<>(Arrays.asList(imgExtArray)); + + if(fvo != null) { + if("pdf".equals(fvo.getFileExtsn().toLowerCase())) { + path = "/cmm/fms/FileDown.do?atchFileId="+ fvo.getAtchFileId() + "&fileSn=" + fvo.getFileSn(); + fileType = "pdf"; + } else if(imgExtList.contains(fvo.getFileExtsn().toLowerCase())) { + String storePath = fvo.getFileStreCours() + fvo.getStreFileNm(); + path = "/cmm/fms/FileDowntest.do?fileNm="+ PdfUtil.makeImgPdf(storePath, fvo.getFileExtsn()); + fileType = "img"; + } else { + String storePath = fvo.getFileStreCours() + fvo.getStreFileNm(); + path = "/cmm/fms/FileDowntest.do?fileNm="+ PdfUtil.makeImgPdf(storePath, fvo.getFileExtsn()); + fileType = "etc"; + } + } + + + // 첨부파일 목록 + List fileList = fileService.selectFileInfs(fileVO); + model.addAttribute("fileList", fileList); + + String phmId = request.getParameter("phmId"); + String phoneNumber = request.getParameter("phoneNumber"); + String userName = request.getParameter("userName"); + String managerNm = request.getParameter("managerNm"); + String dept = request.getParameter("dept"); + String nameType = request.getParameter("nameType"); + String phmType = request.getParameter("phmType"); + String authYnTxt = request.getParameter("authYnTxt"); + String phmAuthTypeTxt = request.getParameter("phmAuthTypeTxt"); + String ownerName = request.getParameter("ownerName"); + + // 필수서류 + String requiredDocuments = ""; + if (dept.equals("c")) { + // 기업 + if (nameType.equals("1")) { + // 당사 + requiredDocuments = "통신서비스이용증명원"; + } + else if (nameType.equals("2")) { + // 대표 + if (phmAuthTypeTxt.equals("휴대폰 인증")) { + // 휴대폰 + // 인증완료 + } + else { + // 서류 + requiredDocuments = "통신서비스이용증명원"; + } + } + else if (nameType.equals("3")) { + // 직원 + if (phmAuthTypeTxt.equals("휴대폰 인증")) { + // 휴대폰 + requiredDocuments = "재직증명서류"; + } + else { + // 서류 + requiredDocuments = "통신서비스이용증명원, 재직증명서류"; + } + } + else if (nameType.equals("4")) { + // 타사 + requiredDocuments = "거래관계확인서(계약서 등), 발신번호 사업자등록증, 재직증명서류(직원번호인 경우)
대리인 신분증 사본, 위임장, 통신서비스이용증명원"; + } + else if (nameType.equals("5")) { + // 본인 + if (phmAuthTypeTxt.equals("휴대폰 인증")) { + // 휴대폰 + // 인증완료 + } + else { + // 서류 + requiredDocuments = "통신서비스이용증명원"; + } + } + else { + // 타인 + if (phmAuthTypeTxt.equals("휴대폰 인증")) { + // 휴대폰 + + } + else { + // 서류 + + } + } + } + else { + // 개인 + if (nameType.equals("5")) { + // 본인 + if (phmAuthTypeTxt.equals("휴대폰 인증")) { + // 휴대폰 + // 인증완료 + } + else { + // 서류 + requiredDocuments = "통신서비스이용증명원"; + } + } + else { + // 타인 + if (phmAuthTypeTxt.equals("휴대폰 인증")) { + // 휴대폰 + requiredDocuments = "위임장, 대리인 신분증 사본"; + } + else { + // 서류 + requiredDocuments = "타인(일반전화) : 통신서비스이용증명원, 위임장, 대리인 신분증 사본
회사번호일경우 : 통신서비스이용증명원, 사업자등록증, 재직증명서류"; + } + } + } + + + + + + model.addAttribute("pdfPath", path); + model.addAttribute("fileType", fileType); + model.addAttribute("atchFileId", fileVO.getAtchFileId()); + model.addAttribute("fileSn", fileVO.getFileSn()); + model.addAttribute("phmId", phmId); + model.addAttribute("phoneNumber", phoneNumber); + model.addAttribute("userName", userName); + model.addAttribute("managerNm", managerNm); + model.addAttribute("dept", dept); + model.addAttribute("nameType", nameType); + model.addAttribute("phmType", phmType); + model.addAttribute("authYnTxt", authYnTxt); + model.addAttribute("phmAuthTypeTxt", phmAuthTypeTxt); + model.addAttribute("ownerName", ownerName); + model.addAttribute("requiredDocuments", requiredDocuments); + + return "/uss/ion/msg/pdfViewPhone"; + } + } \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/decorators.xml b/src/main/webapp/WEB-INF/decorators.xml index e4160c4b..78fdba3c 100644 --- a/src/main/webapp/WEB-INF/decorators.xml +++ b/src/main/webapp/WEB-INF/decorators.xml @@ -152,7 +152,7 @@ /uss/ion/msg/weekendCsWork.do /uss/ion/msg/weekendCsWork2.do /uss/ion/msg/pdfView.do - + /uss/ion/msg/pdfViewPhone.do diff --git a/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovMberCmpHstListByType.jsp b/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovMberCmpHstListByType.jsp index 67938ff3..669be8b0 100644 --- a/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovMberCmpHstListByType.jsp +++ b/src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovMberCmpHstListByType.jsp @@ -24,12 +24,12 @@ $( document ).ready(function() { // PdfView function pdfViewPop(atchFileId,mberNm,bizNo,ceoNm,hstManagerNm,hstMbtlNum) { document.pdfForm.atchFileId.value = atchFileId; + document.pdfForm.fileSn.value = 0; document.pdfForm.mberNm.value = mberNm; document.pdfForm.bizNo.value = bizNo; document.pdfForm.ceoNm.value = ceoNm; document.pdfForm.hstManagerNm.value = hstManagerNm; document.pdfForm.hstMbtlNum.value = hstMbtlNum; - document.pdfForm.fileSn.value = 0; 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 = ""; document.pdfForm.target = "pdfPopup"; diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/SendNumberList.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/SendNumberList.jsp index c4ccf9d6..55613347 100644 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/SendNumberList.jsp +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/SendNumberList.jsp @@ -34,11 +34,33 @@ var certType = "${certType}"; $( document ).ready(function() { // 대시보드에 전달받은 파라미터 처리 fromDashboard(); + //첨부파일 이미지 br태그 삭제 - import로 공통으로 사용해서 jsp에서 따로 처리 $(".brRm").children('br').remove(); }); +//PdfView +function pdfViewPhonePop(atchFileId,phmId,phoneNumber,userName,managerNm,dept,nameType,phmType,authYnTxt,phmAuthTypeTxt,ownerName) { + document.pdfForm.atchFileId.value = atchFileId; + document.pdfForm.fileSn.value = 0; + document.pdfForm.phmId.value = phmId; + document.pdfForm.phoneNumber.value = phoneNumber; + document.pdfForm.userName.value = userName; + document.pdfForm.managerNm.value = managerNm; + document.pdfForm.dept.value = dept; + document.pdfForm.nameType.value = nameType; + document.pdfForm.phmType.value = phmType; + document.pdfForm.authYnTxt.value = authYnTxt; + document.pdfForm.phmAuthTypeTxt.value = phmAuthTypeTxt; + document.pdfForm.ownerName.value = ownerName; + + window.open("about:blank", 'pdfPhonePopup', '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 = ""; + document.pdfForm.target = "pdfPhonePopup"; + document.pdfForm.submit(); +} + // 대시보드에 전달받은 파라미터 처리 function fromDashboard() { if (certType == "H" || certType == "C" || certType == "Y") { @@ -257,17 +279,17 @@ function fnSetCalMonth(val) { - + + + - - - - - - <%-- --%> + + + + @@ -278,17 +300,16 @@ function fnSetCalMonth(val) { 전화번호 대표 담당자 - 회원<%-- --%> - 구분<%-- --%> - - 인증여부 - 관리자 + 회원 + 구분 인증 인증자 + 인증여부 첨부파일 + 관리자 관리 등록일자 - + @@ -375,19 +396,6 @@ function fnSetCalMonth(val) { <%-- --%> - - - - 발신번호 차단 - - - 인증요청 - - - - - - "> @@ -411,26 +419,41 @@ function fnSetCalMonth(val) { - - - - + + + + 발신번호 차단 + + + 인증요청 + + + + + + + + + + - - + - + "> - - <%-- --%> + + + + + @@ -459,9 +482,24 @@ function fnSetCalMonth(val) {
+
+
+ + + + + + + + + + + + +
diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfView.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfView.jsp index 45d54f9e..d07a4bb6 100644 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfView.jsp +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfView.jsp @@ -46,7 +46,7 @@ html {
-

PDF 뷰어

+

기업회원 신청 정보

diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfViewPhone.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfViewPhone.jsp new file mode 100644 index 00000000..7c481cd7 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfViewPhone.jsp @@ -0,0 +1,342 @@ +<%-- + 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"); +%> + + + + + + + + + + + + + + + + + + + + +
+
+

발신번호 신청 정보

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
발신번호대표담당자회원구분인증방식인증자인증여부다운로드
${phoneNumber}${userName}${managerNm} + + + 기업 + + + 개인 + + + + + + + + 당사 + + + 대표 + + + 직원 + + + 타사 + + + 본인 + + + 타인 + + + + + 없음 + + + + + + 휴대폰 + + + 서류 + + + + + + + + + + + + + + + + + + 발신번호 차단 + + + 인증요청 + + + + + + + +
+
+ +

+ +
+

승인에 필요한 서류

+
+
+ + + + + + + + + + +
${requiredDocuments}
+
+ + + +
+ + + + + + + + + + + + + + +
+
+ + +
+ PDF 뷰어에서 지원하지 않는 형식의 파일입니다. 첨부파일 다운로드후 확인해주세요. +
+
+ + +
+ +  Page: /   + + +
+
+ +
+ +
+ + + + + + + + + + + + +
+ + + + \ No newline at end of file