기업회원 PDF뷰어 문구 수정

This commit is contained in:
itn 2023-08-02 12:12:03 +09:00
parent 9df03b33b6
commit 24523774ca
3 changed files with 12 additions and 54 deletions

View File

@ -5054,10 +5054,10 @@ public class MjonMsgController {
List<String> imgExtList = new ArrayList<>(Arrays.asList(imgExtArray)); List<String> imgExtList = new ArrayList<>(Arrays.asList(imgExtArray));
if(fvo != null) { 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(); path = "/cmm/fms/FileDown.do?atchFileId="+ fvo.getAtchFileId() + "&fileSn=" + fvo.getFileSn();
fileType = "pdf"; fileType = "pdf";
} else if(imgExtList.contains(fvo.getFileExtsn())) { } else if(imgExtList.contains(fvo.getFileExtsn().toLowerCase())) {
String storePath = fvo.getFileStreCours() + fvo.getStreFileNm(); String storePath = fvo.getFileStreCours() + fvo.getStreFileNm();
path = "/cmm/fms/FileDowntest.do?fileNm="+ PdfUtil.makeImgPdf(storePath, fvo.getFileExtsn()); path = "/cmm/fms/FileDowntest.do?fileNm="+ PdfUtil.makeImgPdf(storePath, fvo.getFileExtsn());
fileType = "img"; fileType = "img";
@ -5086,34 +5086,5 @@ public class MjonMsgController {
return "/uss/ion/msg/pdfView"; 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";
}
} }

View File

@ -36,23 +36,6 @@ function pdfViewPop(atchFileId,mberNm,bizNo,ceoNm,hstManagerNm,hstMbtlNum) {
document.pdfForm.submit(); 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() { function fnChkAll() {
if($("#chkAll").is(':checked') ){ if($("#chkAll").is(':checked') ){
$("input[name=chkSttusY]").prop("checked", true); $("input[name=chkSttusY]").prop("checked", true);

View File

@ -52,10 +52,11 @@ html {
<table class="tbType1"> <table class="tbType1">
<colgroup> <colgroup>
<col style="width: *%"> <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: 15%"> <col style="width: 12%">
<col style="width: 15%"> <col style="width: 10%">
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
@ -64,6 +65,7 @@ html {
<th>대표자</th> <th>대표자</th>
<th>담당자</th> <th>담당자</th>
<th>휴대폰</th> <th>휴대폰</th>
<th>다운로드</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -73,6 +75,11 @@ html {
<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:import url="/cmm/fms/selectMberFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${atchFileId}" />
</c:import>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -80,10 +87,7 @@ html {
<c:if test="${fileType eq 'etc'}"> <c:if test="${fileType eq 'etc'}">
<div style="width: 100%; text-align: center; margin: 30px 0 30px 0; color: red;"> <div style="width: 100%; text-align: center; margin: 30px 0 30px 0; color: red;">
PDF 뷰어에서 지원하지 않는 형식의 파일입니다. 첨부파일 다운로드후 확인해주세요. &nbsp; PDF 뷰어에서 지원하지 않는 형식의 파일입니다. 첨부파일 다운로드후 확인해주세요.
<c:import url="/cmm/fms/selectMberFileInfs.do" charEncoding="utf-8">
<c:param name="param_atchFileId" value="${atchFileId}" />
</c:import>
</div> </div>
</c:if> </c:if>
<canvas id="the-canvas" name="the-canvas" style="min-width: 600px; max-width: 1000px; margin-top: 25px; margin-bottom: 25px;"></canvas> <canvas id="the-canvas" name="the-canvas" style="min-width: 600px; max-width: 1000px; margin-top: 25px; margin-bottom: 25px;"></canvas>