diff --git a/src/main/java/nlib/bbs/service/AttachFileService.java b/src/main/java/nlib/bbs/service/AttachFileService.java index 0a94d514..336e41af 100644 --- a/src/main/java/nlib/bbs/service/AttachFileService.java +++ b/src/main/java/nlib/bbs/service/AttachFileService.java @@ -32,6 +32,15 @@ import nlib.user.service.NlibLoginVO; public interface AttachFileService { + /** + * 첨부파일 개수를 조회한다. + * + * @param attachFileId + * @return + * @throws Exception + */ + public int countAttachFiles(String attachFileId) throws Exception; + /** * 첨부파일 목록을 조회한다. * diff --git a/src/main/java/nlib/bbs/service/impl/AttachFileDAO.java b/src/main/java/nlib/bbs/service/impl/AttachFileDAO.java index f9767e82..52d8e6a6 100644 --- a/src/main/java/nlib/bbs/service/impl/AttachFileDAO.java +++ b/src/main/java/nlib/bbs/service/impl/AttachFileDAO.java @@ -40,6 +40,16 @@ import nlib.util.StringUtil; @Mapper("attachFileDAO") public interface AttachFileDAO { + + /** + * 첨부파일 개수를 조회한다. + * + * @param attachFileId + * @return + * @throws Exception + */ + public int countAttachFiles(String attachFileId) throws Exception; + /** * 첨부파일 목록을 조회한다. * diff --git a/src/main/java/nlib/bbs/service/impl/AttachFileServiceImpl.java b/src/main/java/nlib/bbs/service/impl/AttachFileServiceImpl.java index 388d9d17..a861fd6a 100644 --- a/src/main/java/nlib/bbs/service/impl/AttachFileServiceImpl.java +++ b/src/main/java/nlib/bbs/service/impl/AttachFileServiceImpl.java @@ -47,6 +47,18 @@ public class AttachFileServiceImpl implements AttachFileService @Resource(name = "qnaService") private QnaService qnaService; + + /** + * 첨부파일 개수를 조회한다. + * + * @param attachFileId + * @return + * @throws Exception + */ + public int countAttachFiles(String attachFileId) throws Exception { + return attachFileDAO.countAttachFiles(attachFileId); + } + /** * 첨부파일 목록을 조회한다. * diff --git a/src/main/java/nlib/bbs/service/impl/QnaServiceImpl.java b/src/main/java/nlib/bbs/service/impl/QnaServiceImpl.java index d48614dd..6f4b1473 100644 --- a/src/main/java/nlib/bbs/service/impl/QnaServiceImpl.java +++ b/src/main/java/nlib/bbs/service/impl/QnaServiceImpl.java @@ -12,6 +12,7 @@ import nlib.bbs.service.ArticleVO; import nlib.bbs.service.AttachFileService; import nlib.bbs.service.AttachFileVO; import nlib.bbs.service.QnaService; +import nlib.cmm.service.NlibProperty; import nlib.util.StringUtil; import nlib.util.UUID; @@ -47,12 +48,13 @@ public class QnaServiceImpl extends BoardServiceImpl implements QnaService } articleVO.setResultCode("S001"); - articleVO.setResultMessage("정상적으로 등록되었습니다."); if(articleVO.getAttachFileCnt() > 0) { addAttachFiles(articleVO); } + articleVO.setResultMessage("정상적으로 등록되었습니다." + (StringUtil.isNotEmpty(articleVO.getResultMessage())? "\\\\n " + articleVO.getResultMessage() : "")); + return articleVO; } @@ -66,23 +68,39 @@ public class QnaServiceImpl extends BoardServiceImpl implements QnaService int savedCnt = 0; List attachFileList = articleVO.getAttachFiles(); + // 최대 개수 + int maxFileCount = NlibProperty.getInt("fileupload.max.files", 5); + // 첨부파일그룹 등록 int groupCnt = attachFileService.insertAttachFileGroup(attachFileList.get(0)); if(groupCnt > 0) { + int curFileCount = attachFileService.countAttachFiles(articleVO.getBdAttachFileId()); + int addingCount = maxFileCount - curFileCount; + // 첨부파일 등록 - for(int i=0; i 첨부파일 등록에 실패하였습니다 : " + attachFileVO.getOrignlFileNm()); + if(addingCount > 0) { + for(int i=0; i= addingCount) { + String message = "최대 허용 개수가 도달하여 등록을 중단합니다."; + log.error(message); + articleVO.setResultMessage(message); + break; + } + + AttachFileVO attachFileVO = attachFileList.get(i); + int retAttFile = attachFileService.insertAttachFile(attachFileVO); + savedCnt += retAttFile; + if(retAttFile < 1) { + log.error("insertArticle > 첨부파일 등록에 실패하였습니다 : " + attachFileVO.getOrignlFileNm()); + } } } if(savedCnt != articleVO.getAttachFileCnt()) { - articleVO.setResultMessage(String.format("총 %d개 파일 중 %개 파일만 정상등록되었습니다.", articleVO.getAttachFileCnt(), savedCnt)); + articleVO.setResultMessage("총 " + articleVO.getAttachFileCnt() + "개 파일 중 " + savedCnt + "개 파일만 정상등록되었습니다."); } } else { @@ -135,20 +153,20 @@ public class QnaServiceImpl extends BoardServiceImpl implements QnaService * @return */ public int updateArticle(ArticleVO articleVO) throws Exception { + int updateRet = qnaDAO.updateArticle(articleVO); + + // 첨부파일 삭제 + List removedAttachFiles = articleVO.getRemovedAttachFiles(); + if(removedAttachFiles != null && removedAttachFiles.size() > 0) { + removeAttachFiles(articleVO); + } // 첨부파일 추가 List addedFiles = articleVO.getAttachFiles(); if(addedFiles != null && addedFiles.size() > 0) { addAttachFiles(articleVO); } - - List removedAttachFiles = articleVO.getRemovedAttachFiles(); - if(removedAttachFiles != null && removedAttachFiles.size() > 0) { - removeAttachFiles(articleVO); - } - - // 첨부파일 삭제 return updateRet; } diff --git a/src/main/java/nlib/bbs/web/QnaController.java b/src/main/java/nlib/bbs/web/QnaController.java index 6b818122..55e4c564 100644 --- a/src/main/java/nlib/bbs/web/QnaController.java +++ b/src/main/java/nlib/bbs/web/QnaController.java @@ -10,7 +10,6 @@ import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; -import org.apache.commons.collections.MapUtils; import org.apache.commons.lang.StringEscapeUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -38,6 +37,7 @@ import nlib.cmm.service.NlibProperty; import nlib.cmm.service.PagingVO; import nlib.user.service.NlibLoginVO; import nlib.util.StringUtil; +import nlib.util.UUID; @Controller public class QnaController extends NlibCommonController { @@ -222,10 +222,15 @@ public class QnaController extends NlibCommonController { searchArticleVO.setEmail(nlibLoginVO.getEmail()); model.addAttribute("searchArticle", searchArticleVO); - + + // 첨부파일 업로드 설정값 + model.addAttribute("maxFilesize" , NlibProperty.getString("fileupload.max.mbsize")); + model.addAttribute("maxFiles" , NlibProperty.getString("fileupload.max.files")); + model.addAttribute("acceptedFiles", NlibProperty.getString("fileupload.acceptable.ext")); + return "nlib/bbs/insertQnaForm"; } - + /** * 묻고답하기 등록 처리한다. @@ -245,6 +250,8 @@ public class QnaController extends NlibCommonController { , RedirectAttributes redirectAttrs , ModelMap model) throws Exception { + log.debug("========================================> insertQna : 진입함"); + NlibLoginVO loginVO = getNlibLoginVO(authentication); String message = null; @@ -301,6 +308,7 @@ public class QnaController extends NlibCommonController { String attachFileId = (String)(fileListObj.get(0).get("attachFileId")); if(StringUtil.isEmpty(attachFileId)) { log.error("첨부파일 아이디(attachFileId) 값은 필수 항목입니다. 첨부파일 처리에 실패하였습니다. 그러나, 게시물 등록은 계속 진행됩니다."); + attachFileId = UUID.getNewAttachFileId(); } if(StringUtil.isNotEmpty(attachFileId)) { @@ -309,7 +317,10 @@ public class QnaController extends NlibCommonController { String fileSStreCours = NlibProperty.getProperty("fileupload.base.path") + NlibProperty.getProperty("fileupload.bbs.qna.subpath") + "/"; List attachFiles = new ArrayList(); - for(int i=0; i removedAttachFiles = new ArrayList(); for(int i=0; i= maxFileCount) { + log.error("최대 개수를 초과하여 이후 파일은 처리되지 않습니다."); + break; + } + + acceptableExt = false; + Entry entry = itr.next(); file = entry.getValue(); @@ -176,10 +192,25 @@ public class FileUploadController extends NlibCommonController { int index = orignlFileNm.lastIndexOf("."); String fileExt = (index < 1 ? "" : orignlFileNm.substring(index + 1)); - //String newName = UUID.getPhysicalFileName(); - + if(acceptableExtList != null) { + + if(acceptableExtList.contains("." + fileExt)) { + acceptableExt = true; + } else if(acceptableExtList.contains("image/*")) { + acceptableExt = ".jpg,.jpe,.jpge,.bmp,.gif,.png".contains("." + fileExt); + } + } + if(!acceptableExt) { + log.error("허용되지 않는 파일 확장자 입니다. : " + orignlFileNm); + continue; + } int size = (int)file.getSize(); + if(size > maxFileSize) { + log.error("첨부파일이 허용 크기를 초과합니다. : " + orignlFileNm); + continue; + } + String streFileNm = UUID.getNewStreFileNm(); filePath = FILEUPLOAD_BASE_PATH + subPath + "/" + streFileNm; @@ -189,7 +220,7 @@ public class FileUploadController extends NlibCommonController { atvo = new AttachFileVO(); atvo.setSubPathKey(subPathKey); - atvo.setAttachFileId(attachFileId); + //atvo.setAttachFileId(attachFileId); // 실제 DB 저장 처리될때 설정함 atvo.setStreFileNm(streFileNm); atvo.setOrignlFileNm(orignlFileNm); atvo.setFileExt(fileExt); diff --git a/src/main/java/nlib/sch/web/NlibSearchController.java b/src/main/java/nlib/sch/web/NlibSearchController.java index 2d774b3d..02d3ddfe 100644 --- a/src/main/java/nlib/sch/web/NlibSearchController.java +++ b/src/main/java/nlib/sch/web/NlibSearchController.java @@ -104,12 +104,14 @@ public class NlibSearchController extends NlibCommonController { boolean fromMenu = request.getServletPath().contains("/search/searchList.do"); - if(fromMenu) { + if(fromMenu) { String sfield = searchVO.getSfield(); String query = searchVO.getQuery(); + String collection = searchVO.getCollection(); searchVO = new NlibSearchVO(); searchVO.setSfield(sfield); searchVO.setQuery(query); + searchVO.setCollection(collection); } if(!fromMenu && !isValidCsrfToken(request, csrfToken)) diff --git a/src/main/resources/egovframework/mapper/nlib/bbs/AttachFileDAO_SQL.xml b/src/main/resources/egovframework/mapper/nlib/bbs/AttachFileDAO_SQL.xml index d8d81b8d..1acc2ec4 100644 --- a/src/main/resources/egovframework/mapper/nlib/bbs/AttachFileDAO_SQL.xml +++ b/src/main/resources/egovframework/mapper/nlib/bbs/AttachFileDAO_SQL.xml @@ -3,6 +3,16 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> + + - ${cart.mngOrgNm } () +

- - - 전체선택 (0/0) + + + 전체선택 (0/0)
자료정보
이용상태
@@ -325,26 +325,26 @@ $(document).ready(function() {
-
+
-
${cart.interestYn } - 썸네일 +
+ 썸네일 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 @@ -365,12 +365,12 @@ $(document).ready(function() {
- +
-
poss imposs">

${cart.useStatusNm }

-
${cart.rtnExpctDd }
-
poss imposs">${cart.ableRentNowNm }
-
poss imposs">${cart.ableReadNowNm }
+
poss imposs">

+
+
poss imposs">
+
poss imposs">
@@ -378,8 +378,8 @@ $(document).ready(function() {
diff --git a/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp b/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp index 855e9367..545009b7 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/cmm/home.jsp @@ -145,17 +145,17 @@ function fn_listPops(typeDivCd) {
  • class="swiper-slide" >
    - +
    -

    ${bannerItem.title }

    -

    ${bannerItem.bannerDesc }

    +

    +

    -

    자세히 보기 >

    +

    자세히 보기 >

  • @@ -215,7 +215,7 @@ function fn_listPops(typeDivCd) {

    어떤 자료들을 소장 중인지 키워드로 살펴보세요!

    @@ -241,11 +241,11 @@ function fn_listPops(typeDivCd) {
    @@ -296,13 +296,13 @@ function fn_listPops(typeDivCd) {
  • -
    ${itemPop.typeDivNm }
    - +
    +
    -

    주제분야-${itemPop.subjectNm }

    -

    생산기관-${itemPop.orgNm }

    -

    생산년도-${itemPop.creatYyyy }

    +

    주제분야-

    +

    생산기관-

    +

    생산년도-

  • @@ -339,18 +339,18 @@ function fn_listPops(typeDivCd) {
    - ${itemOnline.title } 표지 + <c:out value='${itemOnline.title }'/> 표지
    - ${itemOnline.title } +
      -
    • 자료유형-${itemOnline.typeDivNm }
    • -
    • 주제분야-${itemOnline.subjectNmUp }
    • -
    • 생산기관-${itemOnline.orgNm }
    • -
    • 생산년도-${itemOnline.creatYyyy }
    • +
    • 자료유형-
    • +
    • 주제분야-
    • +
    • 생산기관-
    • +
    • 생산년도-
    @@ -383,10 +383,10 @@ function fn_listPops(typeDivCd) {
    - -

    ${fn:substring(itemAncmnt.regDd,8,10) }

    ${fn:substring(itemAncmnt.regDd,2,4) }.${fn:substring(itemAncmnt.regDd,5,7) }

    +
    +

    .

    -

    [공지]${itemAncmnt.title} +

    [공지] 파일 아이콘

    @@ -400,10 +400,10 @@ function fn_listPops(typeDivCd) {
    diff --git a/src/main/webapp/WEB-INF/jsp/nlib/collection/searchItemDetail.jsp b/src/main/webapp/WEB-INF/jsp/nlib/collection/searchItemDetail.jsp index bca7e596..5adb95c5 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/collection/searchItemDetail.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/collection/searchItemDetail.jsp @@ -413,15 +413,15 @@ function goList(){
    -
    +
    -
    ${result.title }
    +
    -

    자료유형- ${result.typeDivNm } >${result.dtlsTypeDivNm}

    -

    주제분야- ${result.subjectNm } >${result.subjectNm}

    -

    생산기관-${result.orgNm }

    -

    생산년도-${result.creatYyyy }

    +

    자료유형- >

    +

    주제분야- >

    +

    생산기관-

    +

    생산년도-

    @@ -448,7 +448,7 @@ function goList(){

    이 자료와 유사한자료

    -

    ,${list } 에 있습니다

    +

    , 에 있습니다

    @@ -456,17 +456,17 @@ function goList(){
    -
    +
    - +
    - ${result.title } +
      -
    • 주제유형-${result.typeDivNm }
    • -
    • 주제분야-${result.subjectNmUp }
    • -
    • 생산기관-${result.orgNm }
    • -
    • 생산년도-${result.creatYyyy }
    • +
    • 주제유형-
    • +
    • 주제분야-
    • +
    • 생산기관-
    • +
    • 생산년도-
    diff --git a/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp b/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp index 557e6743..65b5d4b0 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/collection/searchList.jsp @@ -270,16 +270,16 @@ function fn_search_article(pageIndex) {
  • on">
    - checked="checked" /> - + checked="checked" /> +
    • -
      checked="checked" /> - +
      checked="checked" /> +
    • @@ -303,12 +303,12 @@ function fn_search_article(pageIndex) {
    • on"> -
      checked="checked"/>
      +
      checked="checked"/>
        -
      • checked="checked"/>
      • +
      • checked="checked"/>
      @@ -351,7 +351,7 @@ function fn_search_article(pageIndex) {
    • -
      checked="checked"/>
      +
      checked="checked"/>
    • @@ -432,15 +432,15 @@ function fn_search_article(pageIndex) {
      -
      ${result.title} +
      <c:out value='${result.title}'/> - - @@ -460,13 +460,13 @@ function fn_search_article(pageIndex) { 기타
      -
      +
      - 자료유형 : - ${result.typeCodeNm} > ${result.dtlsTypeDivNm} - 주제분야 : - ${result.subjectNmUp} > ${result.subjectNm } - 생산기관 : -${result.orgNm } - 생산년도 : -${result.creatYyyy } + 자료유형 : - > + 주제분야 : - > + 생산기관 : - + 생산년도 : -
      @@ -489,9 +489,9 @@ function fn_search_article(pageIndex) {

      - + - +
      diff --git a/src/main/webapp/WEB-INF/jsp/nlib/read/confirmRead.jsp b/src/main/webapp/WEB-INF/jsp/nlib/read/confirmRead.jsp index c5e45d15..fc19b3e8 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/read/confirmRead.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/read/confirmRead.jsp @@ -296,7 +296,7 @@ $(document).ready(function() {
      에서 @@ -304,9 +304,9 @@ $(document).ready(function() {
      사이 diff --git a/src/main/webapp/WEB-INF/jsp/nlib/read/insertReadItems.jsp b/src/main/webapp/WEB-INF/jsp/nlib/read/insertReadItems.jsp index e46a59ae..d81178e9 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/read/insertReadItems.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/read/insertReadItems.jsp @@ -99,15 +99,15 @@ function fn_listReadItems() {
      -
      썸네일 +
      썸네일 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 @@ -125,13 +125,13 @@ function fn_listReadItems() { 방문열람
      - +
      -

      ${read.useStatusNm }

      -
      ${read.rtnExpctDd }
      -
      ${read.bookLtRvStatusNm } +

      +
      +
      - (${read.rsrvDd }) + ()
      diff --git a/src/main/webapp/WEB-INF/jsp/nlib/rent/confirmRent.jsp b/src/main/webapp/WEB-INF/jsp/nlib/rent/confirmRent.jsp index 069b6bed..20e41cff 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/rent/confirmRent.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/rent/confirmRent.jsp @@ -223,15 +223,15 @@ $(document).ready(function() {
      -
      썸네일 +
      썸네일 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 @@ -250,10 +250,10 @@ $(document).ready(function() { 방문열람
      - +
      -
      poss imposs">

      ${rent.useStatusNm }

      -
      ${rent.rtnExpctDd }
      +
      poss imposs">

      +
      신청 불가 대출신청 diff --git a/src/main/webapp/WEB-INF/jsp/nlib/rent/insertRentItems.jsp b/src/main/webapp/WEB-INF/jsp/nlib/rent/insertRentItems.jsp index 58e46330..58e460ca 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/rent/insertRentItems.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/rent/insertRentItems.jsp @@ -187,15 +187,15 @@ $(document).ready(function() {
      -
      썸네일 +
      썸네일 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 - + 즐겨찾기 아이콘 즐겨찾기 아이콘 @@ -213,13 +213,13 @@ $(document).ready(function() { 방문열람
      - +
      -

      ${rent.useStatusNm }

      -
      ${rent.rtnExpctDd }
      -
      ${rent.rsrvDivNm }
      +

      +
      +

      - (${rent.rsrvDd }) + ()
      @@ -233,7 +233,7 @@ $(document).ready(function() { - ${rent.resultMessage } + 잘못된 접근이거나, 정상처리되지 않았습니다. diff --git a/src/main/webapp/WEB-INF/jsp/nlib/search/getDetailedSearchFormPopup.jsp b/src/main/webapp/WEB-INF/jsp/nlib/search/getDetailedSearchFormPopup.jsp index 985493f0..a821d6c8 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/search/getDetailedSearchFormPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/search/getDetailedSearchFormPopup.jsp @@ -468,13 +468,13 @@ function detailPopClose(){
      -
      - +
      +
        -
      • +
      @@ -502,17 +502,17 @@ function detailPopClose(){
      - - - + + +
      • - - + +
      • diff --git a/src/main/webapp/WEB-INF/jsp/nlib/userInfo/getMyHome.jsp b/src/main/webapp/WEB-INF/jsp/nlib/userInfo/getMyHome.jsp index 5d4147b5..c598a76b 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/userInfo/getMyHome.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/userInfo/getMyHome.jsp @@ -135,7 +135,7 @@ $( document ).ready(function() {

        소장자료관 접속현황

      @@ -157,23 +157,23 @@ $( document ).ready(function() {
      - ${item.title } + <c:out value='${item.title }'/>
      - +
      -

      자료유형 :${item.typeDivNm } - > ${item.dtlsTypeDivNm } +

      자료유형 : + > -

      -

      주제분야 :${item.subjectNmUp } - > ${item.subjectNm } +

      주제분야 : + > -

      -

      생산기관 :${item.orgNm } +

      생산기관 : -

      -

      생산년도 :${item.creatYyyy } +

      생산년도 : -

      @@ -198,32 +198,32 @@ $( document ).ready(function() {
      -

      [${item.mngOrgNm }]

      +

      []

      -

      ${item.title }

      +

      - 자료유형 : ${item.typeDivNm } - > ${item.dtlsTypeDivNm } + 자료유형 : + > - - 주제분야 : ${item.subjectNmUp } - > ${item.subjectNm } + 주제분야 : + > - - 생산기관 : ${item.orgNm } - - 생산년도 : ${item.creatYyyy } - + 생산기관 : - + 생산년도 : -

      - ${item.bookLtRvStatusNm} - ${item.bookLtRvStatusNm} - ${item.bookLtRvStatusNm} - ${item.bookLtRvStatusNm} - ${item.bookLtRvStatusNm} - ${item.bookLtRvStatusNm} - ${item.bookLtRvStatusNm} - ${item.bookLtRvStatusNm} + + + + + + + +
      @@ -245,31 +245,31 @@ $( document ).ready(function() {
      -

      [${item.mngOrgNm }]

      +

      []

      -

      ${item.title }

      +

      - 자료유형 : ${item.typeDivNm } - > ${item.dtlsTypeDivNm } + 자료유형 : + > - - 주제분야 : ${item.subjectNmUp } - > ${item.subjectNm } + 주제분야 : + > - - 생산기관 : ${item.orgNm } - - 생산년도 : ${item.creatYyyy } - + 생산기관 : - + 생산년도 : -

      - ${item.reqStatusDivNm} - ${item.reqStatusDivNm} - ${item.reqStatusDivNm} - ${item.reqStatusDivNm} - ${item.reqStatusDivNm} - ${item.reqStatusDivNm} - ${item.reqStatusDivNm} + + + + + + +
      diff --git a/src/main/webapp/WEB-INF/jsp/nlib/userInfo/putMyInfo.jsp b/src/main/webapp/WEB-INF/jsp/nlib/userInfo/putMyInfo.jsp index 87234755..fd54ca45 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/userInfo/putMyInfo.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/userInfo/putMyInfo.jsp @@ -736,7 +736,7 @@ function snsUnlink(snsId){
      "> -
      로고 연결완료
      +
      로고 연결완료
      diff --git a/src/main/webapp/js/fileupload/dropzone.js b/src/main/webapp/js/fileupload/dropzone.js index 1654a4b2..034bea91 100644 --- a/src/main/webapp/js/fileupload/dropzone.js +++ b/src/main/webapp/js/fileupload/dropzone.js @@ -112,15 +112,20 @@ dropzone.on("dragEnter", function() { }); */ - Dropzone.prototype.events = ["drop", "dragstart", "dragend", "dragenter", "dragover", "dragleave", "addedfile", "addedfiles", "removedfile", "thumbnail", "error", "errormultiple", "processing", "processingmultiple", "uploadprogress", "totaluploadprogress", "sending", "sendingmultiple", "success", "successmultiple", "canceled", "canceledmultiple", "complete", "completemultiple", "reset", "maxfilesexceeded", "maxfilesreached", "queuecomplete"]; + Dropzone.prototype.events = ["drop", "dragstart", "dragend", "dragenter", "dragover", "dragleave" + , "addedfile", "addedfiles", "removedfile", "thumbnail", "error", "errormultiple" + , "processing", "processingmultiple", "uploadprogress", "totaluploadprogress" + , "sending", "sendingmultiple", "success", "successmultiple", "canceled", "canceledmultiple" + , "complete", "completemultiple", "reset", "maxfilesexceeded", "maxfilesreached", "queuecomplete"]; Dropzone.prototype.defaultOptions = { url: null, method: "post", withCredentials: false, - parallelUploads: 5, + parallelUploads: 3, uploadMultiple: false, - maxFilesize: 256, + // maxFilesize: 256, // NLIB + maxFilesize: 10, // NLIB : 10MB paramName: "file", createImageThumbnails: true, maxThumbnailFilesize: 10, @@ -129,7 +134,7 @@ thumbnailHeight: 60, // NLIB filesizeBase: 1000, //maxFiles: null, - maxFiles: 3, // NLIB : 최대 업로드 가능한 파일수 + maxFiles: 5, // NLIB : 최대 업로드 가능한 파일수 params: {}, clickable: true, ignoreHiddenFiles: true, @@ -147,7 +152,7 @@ //dictFallbackMessage: "Your browser does not support drag'n'drop file uploads.", dictFallbackMessage: "파일 드래그앤드랍을 지원하지 않는 브라우저입니다.", // NLIB dictFallbackText: "Please use the fallback form below to upload your files like in the olden days.", - dictFileTooBig: "파일이 너무 큽니다({{filesize}}MiB). 최대 크기 {{maxFilesize}}MiB를 넘을 수 없습니다.", // "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.", + dictFileTooBig: "파일이 너무 큽니다({{filesize}}MB). \n최대 크기 {{maxFilesize}}MB를 초과할 수 없습니다.", // "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.", //dictInvalidFileType: "You can't upload files of this type.", dictInvalidFileType: "허용된 파일 형식만 첨부가능합니다 (이미지,문서 파일) ", // NLIB dictResponseError: "Server responded with {{statusCode}} code.", @@ -157,7 +162,7 @@ dictRemoveFile: "취소", // NLIB dictRemoveFileConfirmation: null, //dictMaxFilesExceeded: "You can not upload any more files.", - dictMaxFilesExceeded: "이파일은, 첨부 가능 최대 개수를 초과하여 업로드되지 않습니다.", // NLIB + dictMaxFilesExceeded: "최대 첨부할 수 있는 파일은 {{maxFiles}}개 입니다.", // NLIB accept: function(file, done) { return done(); }, @@ -284,9 +289,7 @@ node = _ref1[_j]; node.title = '이미 등록된 파일입니다. 클릭하여 다운로드할 수 있습니다.'; $(node).css("cursor", "pointer"); - $(node).on("click", function() { - fn_downloadFile(file.attachFileId, file.fileSn); - }); + $(node).attr("onclick", "fn_downloadFile('" + file.attachFileId + "', " + file.fileSn + ")"); } }