itn 2023-08-02
기업회원 PDF뷰어 문구 수정
@24523774caa6832ed6aeb35719185ef702a500ad
src/main/java/itn/let/mjo/msg/web/MjonMsgController.java
--- src/main/java/itn/let/mjo/msg/web/MjonMsgController.java
+++ src/main/java/itn/let/mjo/msg/web/MjonMsgController.java
@@ -5054,10 +5054,10 @@
 		List<String> imgExtList = new ArrayList<>(Arrays.asList(imgExtArray));
 		
 		if(fvo != null) {
-			if("pdf".equals(fvo.getFileExtsn())) {
+			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())) {
+			} 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";
@@ -5086,34 +5086,5 @@
     	return "/uss/ion/msg/pdfView";
     }
 	
-    @RequestMapping(value = {"/uss/ion/msg/pdfViewAjax.do"})
-   	public String pdfViewAjax(FileVO fileVO, ModelMap model) throws Exception {
-    	
-		FileVO fvo = fileService.selectFileInf(fileVO);
-		String path = "";
-		String fileType = "";
-		String[] imgExtArray = {"bmp", "gif", "jpeg", "jpg", "png", "tif", "tiff", "psd", "rle"};
-		List<String> imgExtList = new ArrayList<>(Arrays.asList(imgExtArray));
-		
-		if(fvo != null) {
-			if("pdf".equals(fvo.getFileExtsn())) {
-				path = "/cmm/fms/FileDown.do?atchFileId="+ fvo.getAtchFileId() + "&fileSn=" + fvo.getFileSn();
-				fileType = "pdf";
-			} else if(imgExtList.contains(fvo.getFileExtsn())) {
-				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";
-			}
-		}
-		
-		model.addAttribute("pdfPath", path);
-		model.addAttribute("fileType", fileType);
-    	
-    	return "/uss/ion/msg/pdfView";
-    }	
 	
 }
(No newline at end of file)
src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovMberCmpHstListByType.jsp
--- src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovMberCmpHstListByType.jsp
+++ src/main/webapp/WEB-INF/jsp/cmm/uss/umt/EgovMberCmpHstListByType.jsp
@@ -36,23 +36,6 @@
     document.pdfForm.submit();	
 }
 
-// 첨부파일 PdfView
-function pdfViewPop2(atchFileId) {
-	$.ajax({
-        type: "POST",
-        url: "/uss/ion/msg/pdfViewAjax.do",
-        data: {"atchFileId" : atchFileId, "fileSn" : "0"},
-        dataType:'html',
-        async: true,
-        success: function (data) {
-        	alert(data);
-		},
-        error: function (e) { 
-        	//alert("ERROR : " + JSON.stringify(e)); 
-        }
-    });	
-}	
-
 function fnChkAll() {
 	if($("#chkAll").is(':checked') ){
 	  $("input[name=chkSttusY]").prop("checked", true);
src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfView.jsp
--- src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfView.jsp
+++ src/main/webapp/WEB-INF/jsp/uss/ion/msg/pdfView.jsp
@@ -52,10 +52,11 @@
 			<table class="tbType1">
 				<colgroup>
 					<col style="width: *%">
+					<col style="width: 12%">
 					<col style="width: 15%">
 					<col style="width: 15%">
-					<col style="width: 15%">
-					<col style="width: 15%">
+					<col style="width: 12%">
+					<col style="width: 10%">
 				</colgroup>
 				<thead>
 					<tr>
@@ -64,6 +65,7 @@
 						<th>대표자</th>
 						<th>담당자</th>
 						<th>휴대폰</th>
+						<th>다운로드</th>
 					</tr>
 				</thead>
 				<tbody>
@@ -73,6 +75,11 @@
 						<td title="${ceoNm}">${ceoNm}</td>
 						<td title="${hstManagerNm}">${hstManagerNm}</td>
 						<td title="${hstMbtlNum}">${hstMbtlNum}</td>
+						<td>
+			           		<c:import url="/cmm/fms/selectMberFileInfs.do" charEncoding="utf-8">
+								<c:param name="param_atchFileId" value="${atchFileId}" />
+							</c:import>											
+						</td>
 					</tr>
 				</tbody>
 			</table>	
@@ -80,10 +87,7 @@
 		
 		<c:if test="${fileType eq 'etc'}">
 			<div style="width: 100%; text-align: center; margin: 30px 0 30px 0; color: red;">
-				PDF 뷰어에서 지원하지 않는 형식의 파일입니다. 첨부파일 다운로드후 확인해주세요. &nbsp;
-           		<c:import url="/cmm/fms/selectMberFileInfs.do" charEncoding="utf-8">
-					<c:param name="param_atchFileId" value="${atchFileId}" />
-				</c:import>					
+				PDF 뷰어에서 지원하지 않는 형식의 파일입니다. 첨부파일 다운로드후 확인해주세요.
 			</div>
 		</c:if>		
 		<canvas id="the-canvas" name="the-canvas" style="min-width: 600px; max-width: 1000px; margin-top: 25px; margin-bottom: 25px;"></canvas>
Add a comment
List