From 3b544be5f2efa94aceae79be39f05ab34f1792c3 Mon Sep 17 00:00:00 2001 From: "hehihoho3@gmail.com" Date: Thu, 27 Feb 2025 18:07:27 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EB=A9=94=EC=9D=B8=ED=8C=9D=EC=97=85=20?= =?UTF-8?q?=EC=A7=84=ED=96=89=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ion/bnr/pop/service/MainPopupLinkVO.java | 39 + .../uss/ion/bnr/pop/service/MainPopupVO.java | 59 + .../ion/bnr/pop/web/MainPopupController.java | 1235 ++++++++++ .../uss/ion/bnr/MainPopupManage_SQL_Mysql.xml | 220 ++ .../jsp/uss/ion/bnr/pop/mainPopupList.jsp | 236 ++ .../jsp/uss/ion/bnr/pop/mainPopupModify.jsp | 601 +++++ .../jsp/web/main/mainPage - 복사본.jsp | 681 ------ .../webapp/WEB-INF/jsp/web/main/mainPage.jsp | 36 +- .../jsp/web/main/mainPage_advc_20250227.jsp | 2081 +++++++++++++++++ 9 files changed, 4478 insertions(+), 710 deletions(-) create mode 100644 src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupLinkVO.java create mode 100644 src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupVO.java create mode 100644 src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java create mode 100644 src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/MainPopupManage_SQL_Mysql.xml create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupList.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp delete mode 100644 src/main/webapp/WEB-INF/jsp/web/main/mainPage - 복사본.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/web/main/mainPage_advc_20250227.jsp diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupLinkVO.java b/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupLinkVO.java new file mode 100644 index 00000000..3e7120d3 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupLinkVO.java @@ -0,0 +1,39 @@ +package itn.com.uss.ion.bnr.pop.service; + +import java.io.Serializable; + + +import itn.com.cmm.ComDefaultVO; +import lombok.Getter; +import lombok.Setter; + + +/** + * + * @author : 이호영 + * @fileName : MainPopupLinkVO.java + * @date : 2025.02.26 + * @description : + * =========================================================== + * DATE AUTHOR NOTE + * ----------------------------------------------------------- * + * 2025.02.26 이호영 최초 생성 + * + * + * + */ +@Getter +@Setter +public class MainPopupLinkVO extends ComDefaultVO implements Serializable { + + + /** + * @description : + */ + private static final long serialVersionUID = 1998370534684278351L; + + private String popId; // 메인존ID + private String mlink; // 링크 + private String coords; // 링크좌표 + +} diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupVO.java b/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupVO.java new file mode 100644 index 00000000..da1636d2 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupVO.java @@ -0,0 +1,59 @@ +package itn.com.uss.ion.bnr.pop.service; + +import java.io.Serializable; +import java.util.List; + +import itn.com.cmm.ComDefaultVO; +import lombok.Getter; +import lombok.Setter; + +/** + * + * @author : 이호영 + * @fileName : MainPopupVO.java + * @date : 2025.02.26 + * @description : + * =========================================================== + * DATE AUTHOR NOTE + * ----------------------------------------------------------- * + * 2025.02.26 이호영 최초 생성 + * + * + * + */ +@Getter +@Setter +public class MainPopupVO extends ComDefaultVO implements Serializable { + + + /** + * @description : + */ + private static final long serialVersionUID = 1998370534684278351L; + + private String popId; // 메인존ID + private String content; // 대체택스트 + private String del; // 삭제여부 + private String mainzoneImageFile; // 이미지파일ID + private String mainzoneImage; // 이미지파일명 + private String regdt; // 등록일 + private String moddt; // 수정일 + private String popNm; // 메인팝업존키 + private String useYn; // 사용여부 + private String registerId; // 등록자 아이디 + private String deviceType; // 접근타입 + private String ntceBgnde; // 게시 시작일자 + private String ntceEndde; // 게시 종료일자 + + private String ntceBgndeHH; + private String ntceBgndeMM; + private String ntceEnddeHH; + private String ntceEnddeMM; + + private String devicetype; + + private List mainPopupLinkList; // 게시 종료일자 + + + +} diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java b/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java new file mode 100644 index 00000000..b1c22fa1 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java @@ -0,0 +1,1235 @@ +package itn.com.uss.ion.bnr.pop.web; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpSession; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; +import org.springmodules.validation.commons.DefaultBeanValidator; + +import egovframework.rte.fdl.idgnr.EgovIdGnrService; +import egovframework.rte.fdl.property.EgovPropertyService; +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; +import itn.com.cmm.util.RedirectUrlMaker; +import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; +import itn.com.uss.ion.pwm.service.MainzoneVO; +import itn.let.sym.site.service.EgovSiteManagerService; + +/** + * 개요 + * - 팝업창에 대한 Controller를 정의한다. + * + * 상세내용 + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자 화면 보기로 구분된다. + * @author 이창원 + * @version 1.0 + * @created 05-8-2009 오후 2:19:57 + *
+  * << 개정이력(Modification Information) >>
+  *
+  *   수정일      수정자           수정내용
+  *  -------    --------    ---------------------------
+  *   2025.02.24  이호영          최초 생성
+  *
+  * 
+ */ + +@Controller +public class MainPopupController { + + private static final Logger LOGGER = LoggerFactory.getLogger(MainPopupController.class); + + @Autowired + private DefaultBeanValidator beanValidator; + + /** EgovMessageSource */ + @Resource(name = "egovMessageSource") + EgovMessageSource egovMessageSource; + + /** EgovPropertyService */ + @Resource(name = "propertiesService") + protected EgovPropertyService propertiesService; + + /** EgovPopupManageService */ + @Resource(name = "subMainZoneManageService") + private SubMainZoneManageService subMainZoneManageService; + + /** cmmUseService */ + @Resource(name = "EgovCmmUseService") + private EgovCmmUseService cmmUseService; + + @Resource(name="EgovFileMngUtil") + private EgovFileMngUtil fileUtil; + + @Resource(name="EgovFileMngService") + private EgovFileMngService fileMngService; + + @Resource(name = "egovPopupZoneIdGnrService") + private EgovIdGnrService idgenService; + +// @Resource(name = "egovMainZoneIdGnrService") +// private EgovIdGnrService idgenServiceMain; + + @Resource(name = "egovSubMainZoneIdGnrService") + private EgovIdGnrService idgenServiceSubMain; + + @Resource(name = "egovSiteManagerService") + EgovSiteManagerService egovSiteManagerService; + + @Resource(name = "EgovFileMngService") + private EgovFileMngService fileService; + + + + + /*메인이미지 관리*/ +// @RequestMapping(value="/uss/ion/bnr/subMainZoneList.do") + @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.doz") + public String selectMainzoneList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception { + LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); + + + if(mainzoneVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 + mainzoneVO.setPageUnit(8); + }else { + mainzoneVO.setPageUnit(mainzoneVO.getPageUnit()); + } + + /** pageing */ + PaginationInfo paginationInfo = new PaginationInfo(); + paginationInfo.setCurrentPageNo(mainzoneVO.getPageIndex()); + paginationInfo.setRecordCountPerPage(mainzoneVO.getPageUnit()); + paginationInfo.setPageSize(mainzoneVO.getPageSize()); + + mainzoneVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); + mainzoneVO.setLastIndex(paginationInfo.getLastRecordIndex()); + mainzoneVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); + + if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //각각의 사이트 + mainzoneVO.setSiteId(loginVO.getSiteId()); + } + List mainzoneList = subMainZoneManageService.selectSubMainzoneList(mainzoneVO); + model.addAttribute("mainzoneList", mainzoneList); + + int totCnt = subMainZoneManageService.selectSubMainzoneCount(mainzoneVO); + + paginationInfo.setTotalRecordCount(totCnt); + model.addAttribute("paginationInfo", paginationInfo); + + return "uss/ion/bnr/sub/subMainZoneList"; + } + + + + /*알림창등록/수정 view*/ + @RequestMapping(value="/uss/ion/bnr/subMainzoneModify.do") + public String updateMainZoneView(@RequestParam Map commandMap, + HttpServletRequest request, Model model, HttpSession session) + throws Exception { + + MainzoneVO mainzoneVO = new MainzoneVO(); + if("Modify".equals((String)commandMap.get("pageType"))){ //수정 + String mazId = (String)commandMap.get("selectedId"); + mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(mazId); + String sNtceBgnde = mainzoneVO.getNtceBgnde(); + String sNtceEndde = mainzoneVO.getNtceEndde(); + + if(sNtceBgnde != null && sNtceEndde != null ) { + + mainzoneVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); + mainzoneVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); + + mainzoneVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); + mainzoneVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); + + //게시기간 시작일자(시) + model.addAttribute("ntceBgndeHH", getTimeHH()); + //게시기간 시작일자(분) + model.addAttribute("ntceBgndeMM", getTimeMM()); + //게시기간 종료일자(시) + model.addAttribute("ntceEnddeHH", getTimeHH()); + //게시기간 종료일자(분) + model.addAttribute("ntceEnddeMM", getTimeMM()); + + + } + + if(mainzoneVO != null){ + mainzoneVO.setBeSort(mainzoneVO.getSort()); + + FileVO fileVO = new FileVO(); + String atchFileId = mainzoneVO.getMainzoneImageFile(); + fileVO.setAtchFileId(atchFileId); + List fileList = fileService.selectFileInfs(fileVO); + model.addAttribute("fileList", fileList); + } + }else{ //등록 + + //게시기간 시작일자(시) + model.addAttribute("ntceBgndeHH", getTimeHH()); + //게시기간 시작일자(분) + model.addAttribute("ntceBgndeMM", getTimeMM()); + //게시기간 종료일자(시) + model.addAttribute("ntceEnddeHH", getTimeHH()); + //게시기간 종료일자(분) + model.addAttribute("ntceEnddeMM", getTimeMM()); + + } + + //model.addAttribute("sortList", sortList); + model.addAttribute("mainzoneVO", mainzoneVO); + System.out.println("mainzoneVO :: "+ mainzoneVO.toString()); + + /* 타겟 코드 */ + ComDefaultCodeVO vo = new ComDefaultCodeVO(); + vo.setCodeId("COM037"); + //List targetList = cmmUseService.selectCmmCodeDetail(vo); + //model.addAttribute("targetList", targetList); + + + return "uss/ion/bnr/sub/subMainZoneModify"; + } + + + + /*메인 이미지삭제 */ + @RequestMapping("/uss/ion/bnr/subMainzoneListDelete.do") + public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { + LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); + MainzoneVO mainzoneVO = new MainzoneVO(); + for(String id:del) { + try{ + mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(id); + }catch(Exception e){ + redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); + RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); + return redirectUrlMaker.getRedirectUrl(); + } + subMainZoneManageService.deleteSubMainzone(id); + if(null != loginVO && !"super".equals(loginVO.getSiteId())){ + mainzoneVO.setSiteId(loginVO.getSiteId()); + } + subMainZoneManageService.resetSubMainVOSort(mainzoneVO); + } + + redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); + RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); + return redirectUrlMaker.getRedirectUrl(); + } + + + + + + + + + + + /** + * 시간을 LIST를 반환한다. + * @return List + * @throws + */ + @SuppressWarnings("unused") + private List getTimeHH() { + ArrayList listHH = new ArrayList(); + HashMap hmHHMM; + for (int i = 0; i <= 24; i++) { + String sHH = ""; + String strI = String.valueOf(i); + if (i < 10) { + sHH = "0" + strI; + } else { + sHH = strI; + } + + ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); + codeVO.setCode(sHH); + codeVO.setCodeNm(sHH); + + listHH.add(codeVO); + } + + return listHH; + } + + /** + * 분을 LIST를 반환한다. + * @return List + * @throws + */ + @SuppressWarnings("unused") + private List getTimeMM() { + ArrayList listMM = new ArrayList(); + HashMap hmHHMM; + for (int i = 0; i <= 60; i++) { + + String sMM = ""; + String strI = String.valueOf(i); + if (i < 10) { + sMM = "0" + strI; + } else { + sMM = strI; + } + + ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); + codeVO.setCode(sMM); + codeVO.setCodeNm(sMM); + + listMM.add(codeVO); + } + return listMM; + } + + + + + + + + + + + + + + + + + + + + + + + + +// +// +// +// +// /** +// * 팝업창관리 목록을 조회한다. +// * @param popupManageVO +// * @param model +// * @return "uss/ion/pwm/listPopupManage" +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/pwm/listPopup.do") +// public String selectEgovPopupManageList(@RequestParam Map commandMap, PopupManageVO popupManageVO, ModelMap model , HttpSession session) throws Exception { +// +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// /** EgovPropertyService.sample */ +// +// if(popupManageVO.getPageUnit() != 10) { +// popupManageVO.setPageUnit(popupManageVO.getPageUnit()); +// } +// +// /** pageing */ +// PaginationInfo paginationInfo = new PaginationInfo(); +// paginationInfo.setCurrentPageNo(popupManageVO.getPageIndex()); +// paginationInfo.setRecordCountPerPage(popupManageVO.getPageUnit()); +// paginationInfo.setPageSize(popupManageVO.getPageSize()); +// +// popupManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); +// popupManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); +// popupManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); +// +// if("".equals(popupManageVO.getSearchSortCnd())){ //최초조회시 최신것 조회List +// popupManageVO.setSearchSortCnd("POPUP_ID"); +// popupManageVO.setSearchSortOrd("desc"); +// } +// List reusltList = egovPopupManageService.selectPopupList(popupManageVO); +// model.addAttribute("resultList", reusltList); +// +// model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword")); +// model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition")); +// +// model.addAttribute("delSttus", popupManageVO.getDelSttus()); +// +// int totCnt = egovPopupManageService.selectPopupListCount(popupManageVO); +// paginationInfo.setTotalRecordCount(totCnt); +// model.addAttribute("paginationInfo", paginationInfo); +// return "uss/ion/pwm/EgovPopupList"; +// } + +// /** +// * 통합링크관리 목록을 상세조회 조회한다. +// * @param popupManageVO +// * @param commandMap +// * @param model +// * @return +// * "/uss/ion/pwm/detailPopupManage" +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/pwm/detailPopup.do") +// public String egovPopupManageDetail(PopupManageVO popupManageVO, @RequestParam Map commandMap, RedirectAttributes redirectAttributes, ModelMap model) throws Exception { +// +// String sLocationUrl = "uss/ion/pwm/EgovPopupDetail"; +// +// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); +// +// if (sCmd.equals("del")) { +// //egovPopupManageService.deletePopup(popupManageVO); +// popupManageVO.setDelSttus("Y"); +// try{ +// egovPopupManageService.deletePopup(popupManageVO); +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); +// }catch(Exception e){ +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); +// } +// +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do"); +// return redirectUrlMaker.getRedirectUrl(); +// +// +// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; +// } else { +// //상세정보 불러오기 +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); +// model.addAttribute("popupManageVO", popupManageVOs); +// } +// +// return sLocationUrl; +// } +// +// /** +// * 통합링크관리를 수정한다. +// * @param searchVO +// * @param popupManageVO +// * @param bindingResult +// * @param model +// * @return +// * "/uss/ion/pwm/updtPopupManage" +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/pwm/updtPopup.do") +// public String updateEgovPopupManage(HttpSession session , @RequestParam Map commandMap, PopupManageVO popupManageVO, BindingResult bindingResult, RedirectAttributes redirectAttributes,ModelMap model) throws Exception { +// +// // 미인증 사용자에 대한 보안처리 +// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); +// if(!isAuthenticated) { +// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login")); +// return "uat/uia/EgovLoginUsr"; +// } +// +// // 로그인 객체 선언 +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// +// String sLocationUrl = "uss/ion/pwm/EgovPopupUpdt"; +// +// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); +// +// //팝업창시작일자(시) +// model.addAttribute("ntceBgndeHH", getTimeHH()); +// //팝업창시작일자(분) +// model.addAttribute("ntceBgndeMM", getTimeMM()); +// //팝업창종료일자(시) +// model.addAttribute("ntceEnddeHH", getTimeHH()); +// //팝업창정료일자(분) +// model.addAttribute("ntceEnddeMM", getTimeMM()); +// +// if (sCmd.equals("save")) { +// sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; +// //서버 validate 체크 +// beanValidator.validate(popupManageVO, bindingResult); +// if (bindingResult.hasErrors()) { +// return sLocationUrl; +// } +// //아이디 설정 +// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); +// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); +// //저장 +// egovPopupManageService.updatePopup(popupManageVO); +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do"); +// return redirectUrlMaker.getRedirectUrl(); +// } else { +// +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); +// +// String sNtceBgnde = popupManageVOs.getNtceBgnde(); +// String sNtceEndde = popupManageVOs.getNtceEndde(); +// +// popupManageVOs.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); +// popupManageVOs.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); +// +// popupManageVOs.setNtceEnddeHH(sNtceEndde.substring(8, 10)); +// popupManageVOs.setNtceEnddeMM(sNtceEndde.substring(10, 12)); +// +// model.addAttribute("popupManageVO", popupManageVOs); +// } +// return sLocationUrl; +// } +// +// /** +// * 통합링크관리를 등록한다. +// * @param searchVO +// * @param popupManageVO +// * @param bindingResult +// * @param model +// * @return +// * "/uss/ion/pwm/registPopupManage" +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/pwm/egovPopupRegist.do") +// public String insertEgovPopupRegist(@RequestParam Map commandMap, @ModelAttribute("popupManageVO") PopupManageVO popupManageVO, BindingResult bindingResult, +// RedirectAttributes redirectAttributes ,ModelMap model, HttpSession session ) throws Exception { +// +// /*if (!EgovDoubleSubmitHelper.checkAndSaveToken()) { +// return "forward:/uss/ion/pwm/listPopup.do"; +// }*/ +// +// // 0. Spring Security 사용자권한 처리 +// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); +// if (!isAuthenticated) { +// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login")); +// return "uat/uia/EgovLoginUsr"; +// } +// +// // 로그인 객체 선언 +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// +// String sLocationUrl = "uss/ion/pwm/EgovPopupRegist"; +// +// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); +// LOGGER.info("cmd => {}", sCmd); +// +// if (sCmd.equals("save")) { +// beanValidator.validate(popupManageVO, bindingResult); +// if (bindingResult.hasErrors()) { +// return sLocationUrl; +// } +// //아이디 설정 +// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); +// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); +// //저장 +// popupManageVO.setNttCn(unscript(popupManageVO.getNttCn())); // XSS 방지 +// popupManageVO.setDelSttus("N"); //최초 생성시 삭제여부 N +// egovPopupManageService.insertPopup(popupManageVO); +// +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 +// popupManageVO.setSiteId(loginVO.getSiteId()); +// } +// +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do"); +// return redirectUrlMaker.getRedirectUrl(); +// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; +// } +// +// //팝업창시작일자(시) +// model.addAttribute("ntceBgndeHH", getTimeHH()); +// //팝업창시작일자(분) +// model.addAttribute("ntceBgndeMM", getTimeMM()); +// //팝업창종료일자(시) +// model.addAttribute("ntceEnddeHH", getTimeHH()); +// //팝업창정료일자(분) +// model.addAttribute("ntceEnddeMM", getTimeMM()); +// return sLocationUrl; +// } +// +// /** +// * 팝업창정보를 조회한다. +// * @param commandMap +// * @param popupManageVO +// * @return +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfoBack.do") +// public void egovPopupManageInfoAjaxBack(@RequestParam Map commandMap, HttpServletResponse response, PopupManageVO popupManageVO) throws Exception { +// +// response.setHeader("Content-Type", "text/html;charset=utf-8"); +// PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8")); +// +// LOGGER.debug("commandMap : {}", commandMap); +// LOGGER.debug("popupManageVO : {}", popupManageVO); +// +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); +// +// +// String sPrint = ""; +// sPrint = popupManageVOs.getFileUrl(); +// sPrint = sPrint + "||" + popupManageVOs.getPopupWSize(); +// sPrint = sPrint + "||" + popupManageVOs.getPopupHSize(); +// sPrint = sPrint + "||" + popupManageVOs.getPopupHlc(); +// sPrint = sPrint + "||" + popupManageVOs.getPopupWlc(); +// sPrint = sPrint + "||" + popupManageVOs.getStopVewAt(); +// sPrint = sPrint + "||" + popupManageVOs.getPopupType(); +// out.print(sPrint); +// out.flush(); +// } +// +// +// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfo.do") +// public ModelAndView ajaxPopupManageInfo(@RequestParam Map commandMap) throws Exception { +// ModelAndView modelAndView = new ModelAndView(); +// modelAndView.setViewName("jsonView"); +// +// PopupManageVO popupManageVO = new PopupManageVO(); +// popupManageVO.setPopupId((String) commandMap.get("popupIds")); +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); +// modelAndView.addObject("popupManageVOs", popupManageVOs); +// return modelAndView; +// } +// +// /** +// * 팝업창을 오픈 한다. +// * @param commandMap +// * @param popupManageVO +// * @return +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/pwm/openPopupManage.do") +// public String egovPopupManagePopupOpen(@RequestParam("fileUrl") String fileUrl, @RequestParam("stopVewAt") String stopVewAt, @RequestParam("popupId") String popupId, +// ModelMap model) throws Exception { +// //팝업창이 윈도우일 경우 +// //상세정보 불러오기 +// +// PopupManageVO paramPopupManageVO = new PopupManageVO(); +// paramPopupManageVO.setPopupId(popupId); +// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(paramPopupManageVO); +// model.addAttribute("popupManageVO", popupManageVOs); +// +// model.addAttribute("stopVewAt", stopVewAt); +// model.addAttribute("popupId", popupId); +// +// return fileUrl; +// } +// +// /** +// * 팝업창관리 메인 테스트 목록을 조회한다. +// * @param popupManageVO +// * @param model +// * @return "uss/ion/pwm/listMainPopup" +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/pwm/listMainPopup.do") +// public String egovPopupManageMainList(PopupManageVO popupManageVO, ModelMap model) throws Exception { +// +// List reusltList = egovPopupManageService.selectPopupMainList(popupManageVO); +// model.addAttribute("resultList", reusltList); +// +// return "uss/ion/pwm/EgovPopupMainList"; +// } +// +// /** +// * 시간을 LIST를 반환한다. +// * @return List +// * @throws +// */ +// @SuppressWarnings("unused") +// private List getTimeHH() { +// ArrayList listHH = new ArrayList(); +// HashMap hmHHMM; +// for (int i = 0; i <= 24; i++) { +// String sHH = ""; +// String strI = String.valueOf(i); +// if (i < 10) { +// sHH = "0" + strI; +// } else { +// sHH = strI; +// } +// +// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); +// codeVO.setCode(sHH); +// codeVO.setCodeNm(sHH); +// +// listHH.add(codeVO); +// } +// +// return listHH; +// } +// +// /** +// * 분을 LIST를 반환한다. +// * @return List +// * @throws +// */ +// @SuppressWarnings("unused") +// private List getTimeMM() { +// ArrayList listMM = new ArrayList(); +// HashMap hmHHMM; +// for (int i = 0; i <= 60; i++) { +// +// String sMM = ""; +// String strI = String.valueOf(i); +// if (i < 10) { +// sMM = "0" + strI; +// } else { +// sMM = strI; +// } +// +// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); +// codeVO.setCode(sMM); +// codeVO.setCodeNm(sMM); +// +// listMM.add(codeVO); +// } +// return listMM; +// } +// +// /** +// * 0을 붙여 반환 +// * @return String +// * @throws +// */ +// public String dateTypeIntForString(int iInput) { +// String sOutput = ""; +// if (Integer.toString(iInput).length() == 1) { +// sOutput = "0" + Integer.toString(iInput); +// } else { +// sOutput = Integer.toString(iInput); +// } +// +// return sOutput; +// } +// +// /** +// * XSS 방지 처리. +// * +// * @param data +// * @return +// */ +// protected String unscript(String data) { +// if (data == null || data.trim().equals("")) { +// return ""; +// } +// +// String ret = data; +// +// ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script"); +// ret = ret.replaceAll(" popupzoneList = egovPopupManageService.selectPopupzoneList(popupzoneVo); +// model.addAttribute("popupzoneList", popupzoneList); +// +// /* 타겟 코드 */ +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); +// vo.setCodeId("COM037"); +// List targetList = cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("targetList", targetList); +// +// /*메인이미지 코드*/ +// vo.setCodeId("ITN008"); +// List imgCode= cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("imgCodeList", imgCode); +// +// int totCnt = egovPopupManageService.selectPopupzoneListTotCnt(popupzoneVo); +// paginationInfo.setTotalRecordCount(totCnt); +// model.addAttribute("paginationInfo", paginationInfo); +// return "uss/ion/pwm/PopupzoneList"; +// } +// +// /*알림창수정 view*/ +// @RequestMapping(value="/uss/ion/pwm/popupzoneModify.do") +// public String updatePopupZoneView(@RequestParam Map commandMap, +// HttpServletRequest request, Model model , HttpSession session) +// throws Exception { +// +// PopupzoneVO popupzoneVO = new PopupzoneVO(); +// if("Modify".equals((String)commandMap.get("pageType"))){ //수정 +// String pozId = (String)commandMap.get("selectedId"); +// popupzoneVO = egovPopupManageService.selectPopupzoneVO(pozId); +// if(popupzoneVO != null){ +// popupzoneVO.setBeSort(popupzoneVO.getSort()); +// FileVO fileVO = new FileVO(); +// String atchFileId = popupzoneVO.getPopupzoneImageFile(); +// fileVO.setAtchFileId(atchFileId); +// List fileList = fileService.selectFileInfs(fileVO); +// model.addAttribute("fileList", fileList); +// } +// }else{ //등록 +// } +// +// if(null != commandMap.get("seCd")){ +// popupzoneVO.setSeCd((String)(commandMap.get("seCd"))); +// } +// +// model.addAttribute("popupzoneVO", popupzoneVO); +// +// /* 타겟 코드 */ +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); +// vo.setCodeId("COM037"); +// List targetList = cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("targetList", targetList); +// +// /*메인이미지 코드*/ +// vo.setCodeId("ITN008"); +// List imgCode= cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("imgCodeList", imgCode); +// return "uss/ion/pwm/PopupZoneModify"; +// } +// +// /*알림창수정 */ +// @RequestMapping("/uss/ion/pwm/popupzoneUpdate.do") +// public String updatePopupzone( +// @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, +// final MultipartHttpServletRequest multiRequest, +// HttpServletRequest request, +// RedirectAttributes redirectAttributes, +// HttpServletResponse response,Model model) +// throws Exception { +// //popupzoneVO.setUpfile(managementPopupzoneFile(popupzoneVO.getSeq(),popupzoneVO.getUpfile(),multiRequest)); +// +// /*SortVO sortVO = new SortVO(); +// +// if(odl_popupzoneVO.getSort() > popupzoneVO.getSort()){ +// sortVO.setStartSort(popupzoneVO.getSort()); +// sortVO.setEndSort(odl_popupzoneVO.getSort()); +// egovPopupManageService.updateSortUp(sortVO); +// } +// else if(odl_popupzoneVO.getSort() < popupzoneVO.getSort()) { +// sortVO.setStartSort(odl_popupzoneVO.getSort()); +// sortVO.setEndSort(popupzoneVO.getSort()); +// egovPopupManageService.updateSortDown(sortVO); +// }*/ +// +// /*파일등록 */ +// List result = null; +// String uploadFolder = ""; +// String orignlFileNm = ""; +// String atchFileId = ""; +// final Map files = multiRequest.getFileMap(); +// +// if (!files.isEmpty()){ +// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); +// atchFileId = fileMngService.insertFileInfs(result); +// FileVO vo = null; +// Iterator iter = result.iterator(); +// while (iter.hasNext()) { +// vo = iter.next(); +// orignlFileNm = vo.getOrignlFileNm(); +// atchFileId = vo.getAtchFileId(); +// } +// if (vo == null) { +// } else { +// popupzoneVO.setPopupzoneImage(orignlFileNm); +// popupzoneVO.setPopupzoneImageFile(atchFileId); +// } +// } +// +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 +// popupzoneVO.setSiteId(loginVO.getSiteId()); +// } +// popupzoneVO.setRegisterId(loginVO.getUniqId()); +// egovPopupManageService.updatePopupzone(popupzoneVO); +// +// if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 +// popupzoneVO.setSortOver("D"); +// } +// egovPopupManageService.resetVOSort(popupzoneVO); +// +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd()); +// return redirectUrlMaker.getRedirectUrl(); +// // return "forward:/uss/ion/pwm/popupzoneList.do"; +// } +// +// /*알림창삭제 */ +// @RequestMapping("/uss/ion/pwm/popupzoneListDelete.do") +// public String deletePopupzone(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , @RequestParam Map commandMap , Model model) throws Exception { +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// PopupzoneVO popupzoneVO = new PopupzoneVO(); +// for(String id:del) { +// try{ +// popupzoneVO = egovPopupManageService.selectPopupzoneVO(id); +// }catch(Exception e){ +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"); +// return redirectUrlMaker.getRedirectUrl(); +// } +// egovPopupManageService.deletePopupzone(id); +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ +// popupzoneVO.setSiteId(loginVO.getSiteId()); +// } +// egovPopupManageService.resetSort(popupzoneVO); +// } +// +// String paramSeCd = ""; +// if(null != commandMap.get("seCd")) { +// paramSeCd = "?seCd="+(String)commandMap.get("seCd") ; +// } +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"+paramSeCd); +// return redirectUrlMaker.getRedirectUrl(); +// } +// +// /* 알림창 등록 */ +// @RequestMapping("/uss/ion/pwm/popupzoneInsert.do") +// public String insertPopupzone( @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, final MultipartHttpServletRequest multiRequest, RedirectAttributes redirectAttributes, +// HttpServletRequest request, HttpServletResponse response,Model model) +// throws Exception { +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// String pozId = idgenService.getNextStringId(); +// popupzoneVO.setPozId(pozId); +// +// /*파일등록 */ +// List result = null; +// String uploadFolder = ""; +// String orignlFileNm = ""; +// String atchFileId = ""; +// final Map files = multiRequest.getFileMap(); +// if (!files.isEmpty()){ +// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); +// atchFileId = fileMngService.insertFileInfs(result); +// FileVO vo = null; +// Iterator iter = result.iterator(); +// while (iter.hasNext()) { +// vo = iter.next(); +// orignlFileNm = vo.getOrignlFileNm(); +// atchFileId = vo.getAtchFileId(); +// } +// if (vo == null) { +// } else { +// popupzoneVO.setPopupzoneImage(orignlFileNm); +// popupzoneVO.setPopupzoneImageFile(atchFileId); +// } +// } +// +// popupzoneVO.setRegisterId(loginVO.getUniqId()); +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 +// popupzoneVO.setSiteId(loginVO.getSiteId()); +// } +// +// egovPopupManageService.insertPopupzone(popupzoneVO); +// //sort 1부터 재 정렬 +// popupzoneVO.setSortOver("D"); +// egovPopupManageService.resetSort(popupzoneVO); +// +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd()); +// return redirectUrlMaker.getRedirectUrl(); +// //return "forward:/uss/ion/pwm/popupzoneList.do"; +// } +// +// /* 메인이미지 등록 */ +// @RequestMapping("/uss/ion/pwm/mainzoneInsert.do") +// public String insertMainzone( @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, final MultipartHttpServletRequest multiRequest, +// HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes , Model model) +// throws Exception { +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// +// String mainId = idgenServiceMain.getNextStringId(); +// mainzoneVO.setMazId(mainId); +// mainzoneVO.setRegisterId(loginVO.getUniqId()); +// //SortVO sortVO = new SortVO(); +// //sortVO.setStartSort(mainzoneVO.getSort()); +// //sortVO.setEndSort(egovPopupManageService.getMainMaxSort()); +// +// /*파일등록 */ +// List result = null; +// String uploadFolder = ""; +// String orignlFileNm = ""; +// String atchFileId = ""; +// final Map files = multiRequest.getFileMap(); +// if (!files.isEmpty()){ +// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); +// atchFileId = fileMngService.insertFileInfs(result); +// FileVO vo = null; +// Iterator iter = result.iterator(); +// while (iter.hasNext()) { +// vo = iter.next(); +// orignlFileNm = vo.getOrignlFileNm(); +// atchFileId = vo.getAtchFileId(); +// } +// if (vo == null) { +// } else { +// mainzoneVO.setMainzoneImage(orignlFileNm); +// mainzoneVO.setMainzoneImageFile(atchFileId); +// } +// } +// +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 +// mainzoneVO.setSiteId(loginVO.getSiteId()); +// } +// +// egovPopupManageService.insertMainzone(mainzoneVO); +// //sort 1부터 재 정렬 +// mainzoneVO.setSortOver("D"); //앞쪽에 넣음 +// egovPopupManageService.resetMainVOSort(mainzoneVO); +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); +// return redirectUrlMaker.getRedirectUrl(); +// //return "forward:/uss/ion/pwm/mainzoneList.do"; +// } +// +// +// /*메인 이미지삭제 */ +// @RequestMapping("/uss/ion/pwm/mainzoneListDelete.do") +// public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// MainzoneVO mainzoneVO = new MainzoneVO(); +// for(String id:del) { +// try{ +// mainzoneVO = egovPopupManageService.selectMainzoneVO(id); +// }catch(Exception e){ +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); +// return redirectUrlMaker.getRedirectUrl(); +// } +// egovPopupManageService.deleteMainzone(id); +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ +// mainzoneVO.setSiteId(loginVO.getSiteId()); +// } +// egovPopupManageService.resetMainVOSort(mainzoneVO); +// } +// +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); +// return redirectUrlMaker.getRedirectUrl(); +// } +// +// +// /*알림창수정 */ +// @RequestMapping("/uss/ion/pwm/mainzoneUpdate.do") +// public String updateMainzone( +// @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, +// final MultipartHttpServletRequest multiRequest, +// HttpServletRequest request, +// RedirectAttributes redirectAttributes, +// HttpServletResponse response,Model model) +// throws Exception { +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// +// /*파일등록 */ +// List result = null; +// String uploadFolder = ""; +// String orignlFileNm = ""; +// String atchFileId = ""; +// final Map files = multiRequest.getFileMap(); +// +// if (!files.isEmpty()){ +// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); +// atchFileId = fileMngService.insertFileInfs(result); +// FileVO vo = null; +// Iterator iter = result.iterator(); +// while (iter.hasNext()) { +// vo = iter.next(); +// orignlFileNm = vo.getOrignlFileNm(); +// atchFileId = vo.getAtchFileId(); +// } +// if (vo == null) { +// } else { +// mainzoneVO.setMainzoneImage(orignlFileNm); +// mainzoneVO.setMainzoneImageFile(atchFileId); +// } +// } +// mainzoneVO.setRegisterId(loginVO.getUniqId()); +// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 +// mainzoneVO.setSiteId(loginVO.getSiteId()); +// } +// +// egovPopupManageService.updateMainzone(mainzoneVO); +// +// //sort 1부터 재 정렬 +// if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 +// mainzoneVO.setSortOver("D"); +// } +// egovPopupManageService.resetMainVOSort(mainzoneVO); +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); +// return redirectUrlMaker.getRedirectUrl(); +// } +// +// /** +// * 통합링크관리 목록을 상세조회 조회한다. +// * @param popupManageVO +// * @param commandMap +// * @param model +// * @return +// * "/uss/ion/pwm/detailPopupManage" +// * @throws Exception +// */ +// @RequestMapping(value = "/uss/ion/bnr/removePopupList.do") +// public String deletePopupList(PopupManageVO popupManageVO, @RequestParam Map commandMap, @RequestParam("checkList") String[] checkList, RedirectAttributes redirectAttributes, ModelMap model) throws Exception { +// try{ +// for(String id:checkList) { +// popupManageVO.setPopupId(id); +// popupManageVO.setDelSttus("Y"); +// egovPopupManageService.deletePopup(popupManageVO); +// } +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); +// }catch (Exception e) { +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); +// } +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do"); +// return redirectUrlMaker.getRedirectUrl(); +// } +// +// +// +// /*소셜허브괸리*/ +// @RequestMapping(value="/uss/ion/pwm/socialList.do") +// public String selectSocialList(ModelMap model , @ModelAttribute("searchVO") SocialVO socialVO, HttpSession session) +// throws Exception { +// +// /** paging */ +// if(socialVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 +// socialVO.setPageUnit(8); +// }else { +// socialVO.setPageUnit(socialVO.getPageUnit()); +// } +// +// PaginationInfo paginationInfo = new PaginationInfo(); +// paginationInfo.setCurrentPageNo(socialVO.getPageIndex()); +// paginationInfo.setRecordCountPerPage(socialVO.getPageUnit()); +// paginationInfo.setPageSize(socialVO.getPageSize()); +// +// socialVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); +// socialVO.setLastIndex(paginationInfo.getLastRecordIndex()); +// socialVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); +// +// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); +// +// /** 소설괸리 */ +// if("".equals(socialVO.getSearchSortCnd())){ //최초조회시 최신것 조회List +// socialVO.setSearchSortCnd("SORT"); +// socialVO.setSearchSortOrd("asc"); +// } +// List socialList = egovPopupManageService.selectSocialList(socialVO); +// model.addAttribute("socialList", socialList); +// +// /* 타겟 코드 */ +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); +// vo.setCodeId("COM037"); +// List targetList = cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("targetList", targetList); +// +// /*메인이미지 코드*/ +// vo.setCodeId("ITN016"); +// List imgCode= cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("imgCodeList", imgCode); +// +// paginationInfo.setTotalRecordCount(socialList.size()> 0 ? ((SocialVO)socialList.get(0)).getTotCnt() : 0); +// model.addAttribute("paginationInfo", paginationInfo); +// return "uss/ion/pwm/SocialList"; +// } +// +// +// +// /*소셜창수정 view*/ +// @RequestMapping(value="/uss/ion/pwm/socialModify.do") +// public String updateSocialModifyView(@RequestParam Map commandMap, +// HttpServletRequest request, Model model , HttpSession session) +// throws Exception { +// +// SocialVO socialVO = new SocialVO(); +// if("Modify".equals((String)commandMap.get("pageType"))){ //수정 +// String socialId = (String)commandMap.get("selectedId"); +// //socialVO = egovPopupManageService.selectPopupzoneVO(pozId); +// socialVO = egovPopupManageService.selectSocialVO(socialId); +// if(socialVO != null){ +// socialVO.setBeSort(socialVO.getSort()); +// FileVO fileVO = new FileVO(); +// String atchFileId = socialVO.getSocialImageFile(); +// fileVO.setAtchFileId(atchFileId); +// List fileList = fileService.selectFileInfs(fileVO); +// model.addAttribute("fileList", fileList); +// } +// }else{ //등록 +// } +// +// model.addAttribute("socialVO", socialVO); +// +// /* 타겟 코드 */ +// ComDefaultCodeVO vo = new ComDefaultCodeVO(); +// vo.setCodeId("COM037"); +// List targetList = cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("targetList", targetList); +// +// /*소셜허브종류 코드*/ +// vo.setCodeId("ITN016"); +// List imgCode= cmmUseService.selectCmmCodeDetail(vo); +// model.addAttribute("imgCodeList", imgCode); +// //return "uss/ion/pwm/PopupZoneModify"; +// return "uss/ion/pwm/SocialModify"; +// } +// +// @RequestMapping(value = "/uss/ion/pwm/socialDelete.do") +// public String deleteSocial(@RequestParam Map commandMap, @RequestParam("del") String[] del , RedirectAttributes redirectAttributes, ModelMap model) throws Exception { +// try{ +// for(String id:del) { +// egovPopupManageService.deleteSocial(id); +// } +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); +// }catch (Exception e) { +// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); +// } +// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/socialList.do"); +// return redirectUrlMaker.getRedirectUrl(); +// } +// +// +// +} \ No newline at end of file diff --git a/src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/MainPopupManage_SQL_Mysql.xml b/src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/MainPopupManage_SQL_Mysql.xml new file mode 100644 index 00000000..b8db46ca --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/MainPopupManage_SQL_Mysql.xml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM MAIN_POPUP WHERE POP_ID=#popId# + + + + + /*mainPopup.resetMainPopupSort*/ + + UPDATE MAIN_POPUP A , + (SELECT ROW_NUMBER() OVER(ORDER BY SORT + + , MODDT ASC + + + , MODDT DESC + + ) AS SORT1 , POP_ID FROM MAIN_POPUP + WHERE 1=1 + ORDER BY SORT1 + ) B + SET A.SORT = B.SORT1 + WHERE A.POP_ID = B.POP_ID + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupList.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupList.jsp new file mode 100644 index 00000000..9ae85bd7 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupList.jsp @@ -0,0 +1,236 @@ +<%-- + Class Name : EgovPopupList.jsp + Description : 팝업창관리 목록 페이지 + Modification Information + + 수정일 수정자 수정내용 + ------- -------- --------------------------- + 2009.09.16 장동한 최초 생성 + + author : 공통서비스 개발팀 장동한 + since : 2009.09.16 + + Copyright (C) 2009 by MOPAS 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"%> + + + +메인이미지 관리 + + + + +
+ + + +
+
+
+

팝업 관리

+

사용자 메인 팝업에 적용되는 이미지를 등록, 수정, 삭제할 수 있습니다.

+
+
+
+ + + + + + +
+
+

+
+ + +
+
+
+
    + +
  • +
    +<%--
    --%> +
      +
    • + + 사용 + + + 미사용 + +
    • +
    +
    " alt="">
    + <%--
    " alt="">
    --%> +
    +

    ${result.mazNm}

    + + + + + + + + +
    작성자 : ${result.registerId}
    노출순서 : ${result.sort}${result.ntceBgnde} ~ ${result.ntceEndde}
    +
    +
  • +
    +
+ +
+
+
+
+ +
+
+ + +
+ + +
+
    + +
+
+
+ +
+
+
+
+ + +
+
+ + + + +
+ + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp new file mode 100644 index 00000000..614e740f --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/pop/mainPopupModify.jsp @@ -0,0 +1,601 @@ +<%-- + Class Name : EgovPopupList.jsp + Description : 팝업창관리 목록 페이지 + Modification Information + + 수정일 수정자 수정내용 + ------- -------- --------------------------- + 2009.09.16 장동한 최초 생성 + + author : 공통서비스 개발팀 장동한 + since : 2009.09.16 + + Copyright (C) 2009 by MOPAS 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="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> + + + +팝업창관리 관리 + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

팝업 등록/수정

+

사용자 메인 팝업에 적용되는 이미지를 등록, 수정, 삭제할 수 있습니다.

+
+ +
+
+

*는 필수입력 항목입니다.

+ + + + + + + + + + + + + + + + + + + + + + <%-- ${mainPopupVO.deviceType eq 'P' or mainPopupVO.deviceType eq '' ? 'checked="checked"' : ''} --%> + + + <%-- ${mainPopupVO.deviceType eq 'M' ? 'checked="checked"' : ''} --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + +
원본이미지 + +
+
+ + ${mainPopupVO.content}?atchFileId=' style="max-width:300px;padding: 10px;" /> + <%-- ${mainPopupVO.content}?atchFileId=' style="max-width:600px;" /> --%> + +
비주얼명 + +
사용여부 + + + + +
노출순서 + +
게시기간 + + --" readonly> + + + + <%-- 달력창팝업버튼이미지 --%> + + + + 시 + + + 분 +   ~   + --" readonly> + + + <%-- 달력창팝업버튼이미지 --%> + + + + 시 + + + 분 +
[${status.index + 1}]링크주소 + + 링크좌표 + + 순서 + +
[1]링크주소 + + 링크좌표 + + 순서 + +
+ +
파일 첨부 +
+ + + + + + + + + + + + + + + +
파일명크기등록일시삭제
+
+ +
+
    +
  • +

    0개 | 0MB

    +
  • +
  • +

    최대 개 | 50MB제한

    +
  • +
+
+
+ + +
+
대체텍스트 + +
*첨부 파일 + + + + + + + + +
최종수정일 + ${mainPopupVO.moddt} +
작성자 + ${mainPopupVO.registerId} +
+
+
+ + + + + + + + +
+
+
+
+
+ + diff --git a/src/main/webapp/WEB-INF/jsp/web/main/mainPage - 복사본.jsp b/src/main/webapp/WEB-INF/jsp/web/main/mainPage - 복사본.jsp deleted file mode 100644 index 52667132..00000000 --- a/src/main/webapp/WEB-INF/jsp/web/main/mainPage - 복사본.jsp +++ /dev/null @@ -1,681 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> - - - -한국공예·디자인문화진흥원 - - - - - - - - - - - - - - - - - - -
- - -
- - ${result.mazNm}?atchFileId=' - - onclick="window.open('${result.mlink}', '_blank');" - - /> - -
- - - - -
-
-
-
공지
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
-
-
사업
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
-
-
입찰
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
- -
-
채용
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
-
-
- -
-
    -
  • 공지
  • -
  • 입찰
  • -
  • 사업
  • -
  • 채용
  • -
- - -
-
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
-
- - -
-
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
-
- - -
-
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
- - -
- - -
-
- -
-
    - -
  • - - - - ${result.frstRegisterPnttm}
  • -
    -
-
-
-
-
- - -
-
아이콘 한국공예디자인문화진흥원 소식
-
-
    - -
  • -
    ); cursor:pointer;" - - onclick="javascript:location.href='${result.mlink}';" - - - onclick="window.open('${result.mlink}', '_blank');" - - > -
    -
  • -
    -
-
- - -
- -
-
- -
-
아이콘 KCDF 갤러리 안내
-
-
    -
  • KCDF 갤러리 소개
  • -
  • KCDF 갤러리 대관신청
  • -
  • KCDF 도서관 바로가기
  • -
  • KCDF 온라인샵 바로가기
  • -
-
-
- - -
-
아이콘 KCDF 갤러리 전시
-
-
    - -
  • -
    );" - - onclick="javascript:location.href='${result.mlink}';" - - - onclick="window.open('${result.mlink}', '_blank');" - - > -
    -
  • -
    -
-
- - -
- -
- -
-
아이콘 한국공예디자인문화진흥원 블로그
-
    - -
  • ') no-repeat center #f3f3f3; background-size:cover;cursor:pointer;" - - onclick="javascript:location.href='${result.mlink}';" - - - onclick="window.open('${result.mlink}', '_blank');" - - > -
    ${result.pozNm}
  • -
    -
-
- - - -
-
') no-repeat center; background-size:contain;">
- -
-
우수문화상품지정제
-
- 우수문화상품 지정제도는 - 한국의 문화적 가치를 담은 우수문화상품을 - 지정하여 한복의 옷고름 모양을 딴 - K-ribbon 마크를 부착하고, 체계적인 - 관리와 브랜드마케팅을 통해 - ‘코리아프리미엄’을 창출하고자 하는 - 제도 입니다. -

2015년 11월 부터 시행되었으며, - 문화콘텐츠, 한복, 공예품, 한식·식품 등 - 한국을 대표할 수 있는 문화상품들을 - 대상으로 합니다.

-
-
-
- -
- - -
-
') no-repeat center; background-size:contain">
- -
- 「공예+디자인」은
- 한국공예디자인문화진흥원이
- 격월로 발행하는 공예·디자인
- 전문간행물입니다. -
-
공예 + 디자인 격월발행
-
-
-
-
-
- - - -
- -
- - -
- -
- - - -
- - - - - - - -
-
-
- - ${popupListData.nttCn} -
- Close -
- 하루동안 창을 열지 않음 -
- -
-
-
-
-
-
- - - diff --git a/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp b/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp index a1e40c3a..a3178cab 100644 --- a/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp @@ -38,28 +38,6 @@ $(document).ready(function() { } - // 2단팝업 제거 - var agreePrivateSDate = "2024-11-29"; - var agreePrivateNow = new Date(); - agreePrivateNow = leadingZeros(agreePrivateNow.getFullYear(), 4) + '-' + leadingZeros(agreePrivateNow.getMonth() + 1, 2) + '-' + leadingZeros(agreePrivateNow.getDate(), 2); - if (agreePrivateNow < agreePrivateSDate) { - $("#agreePrivatePop_20241129").show(); - }else{ - $("#agreePrivatePop_20241129").hide(); - } - - - //개인정보처리방침 팝업 날짜 설정 - var agreePrivateSDate = "2024-11-23"; - var agreePrivateNow = new Date(); - agreePrivateNow = leadingZeros(agreePrivateNow.getFullYear(), 4) + '-' + leadingZeros(agreePrivateNow.getMonth() + 1, 2) + '-' + leadingZeros(agreePrivateNow.getDate(), 2); - if (agreePrivateNow < agreePrivateSDate) { - $("#agreePrivatePop_20241121").show(); - $("#agreePrivatePop_20241122").hide(); - }else{ - $("#agreePrivatePop_20241121").hide(); - $("#agreePrivatePop_20241122").show(); - } //메인 팝업 호출 여부 var evntPopCk = fnGetCookie('layer_evntPayPop'); // 이벤트 쿠키 @@ -1038,8 +1016,8 @@ function remoteEventPayPop(payCount) { if (fnGetCookie('layer_evntPayPop') != null) { //첫결제 이벤트 팝업 3일 안보기 체크 console.log("이벤트 쿠키 있음 : HIDE"); - $('.payEventPop').css("display","none"); - $('.payEventPop').hide(); +// $('.payEventPop').css("display","none"); +// $('.payEventPop').hide(); }else{ console.log("이벤트 쿠키 없음 : SHOW"); @@ -1255,8 +1233,8 @@ function fn_click_banner_add_stat(bannerMenuCode){ - + --> diff --git a/src/main/webapp/WEB-INF/jsp/web/main/mainPage_advc_20250227.jsp b/src/main/webapp/WEB-INF/jsp/web/main/mainPage_advc_20250227.jsp new file mode 100644 index 00000000..593f0182 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/web/main/mainPage_advc_20250227.jsp @@ -0,0 +1,2081 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + + + + + + + + + + + + + +<%-- --%> + +
+ + + +
+ + + + + +
+ +
+ + + + +
+ +
+ +
+
+ + + + +
+ +
+ +
+
+ + + + +
+
+
+ + + +
+
+ + + + <c:out value='${mainzone.content}'/> + + + +
+
+
+
+ + <%-- 메인 배너 이미지 등록된 건이 없는 경우 기본적으로 나오는 이미지 3개 --%> + +
+
문자온, 카카오 '알림톡' 서비스 오픈! 문자온 알림톡, 대한민국 최저가 선언! 조건없이 무조건 6.9원! 카카오톡 채널아이디 추가를 하지 않은 이용자에게도 카카오톡 메시지 발송이 가능한 서비스! 알림톡 바로가기 알림톡 도착 kakao 문자온에서 알림톡이 도착하였습니다! 기업전용/1,000자 이하 텍스트 & 이미지/문자 대비 65% 저렴
+
+
+
+
문자도 보내고! 현금도 챙기는! 문자온만의 특별한 혜택! 결제금액의 2% 포인트 추가 적립! 포인트 1만점 이상 적립 시 현금페이백
+
+
+
문자는 이제, 문자온! 선택은 역시 문자온! 문자사이트 선택의 5가지 기준 1. 가격, 속도, 성능, 기능, 보안이 보장되는가? 2. 결제, 정산, 계산서 발행 등 업무가 자동화 되어 있고 편리한가? 3. 최신 IT 기술과 트렌드가 반영되어 있는가? 4. 회원가입 및 발신번호 인증이 쉽고 빠르며, 대량문자를 전송하기에 사용이 편리한가? 5. 매일 문자샘플이 업데이트 되고, CS 및 기술응대가 실시간적으로 이루어지는가?
+
+
+
+ <%-- +
+
문자온, 카카오 '알림톡' 서비스 오픈! 문자온 알림톡, 대한민국 최저가 선언! 조건없이 무조건 6.9원! 카카오톡 채널아이디 추가를 하지 않은 이용자에게도 카카오톡 메시지 발송이 가능한 서비스! 알림톡 바로가기 알림톡 도착 kakao 문자온에서 알림톡이 도착하였습니다! 기업전용/1,000자 이하 텍스트 & 이미지/문자 대비 65% 저렴
+
+
+
문자는 이제, 문자온! 단 한번, 국내 최저가! 인생 최저가! 첫결제 단문 7.5원 장문 32원 그림 59원 Halloween 즐겁고 유쾌한 할로윈데이 보내세요 가을엔 독서 같이 책읽으실래요?
+
+
+
문자도 보내고! 현금도 챙기는! 문자온만의 특별한 혜택! 결제금액의 2% 포인트 추가 적립! 포인트 1만점 이상 적립 시 현금페이백
+
+
+
다른 사이트에는 없다! 오직 문자온에만 있다! 최고의 디자이너가 직접 제작하는 그림문자 맞춤제작을 통해 나만의 문자를 디자인 해보세요. 가을은 캠핑의 계절! 낭만캠핑 캠핑하기 좋은 계절, 가을이 돌아왔습니다. 즐거운 캠핑을 떠나고 싶으신가요? 지금 이벤트에 참여하시면, 캠핑 지원금을 드립니다. 지금 바로 참여하세요! 즐거운 캠핑 지원금 문자온에서 확인해보세요! HALLOWEEN 할로윈이벤트 이벤트에 참여하시고 무시무시한 혜택을 받아보세요 이벤트 기간 2099.10.01  10.31 이벤트 대상 10,000원 이상 구매한 모든 고객 event 01 5만원 이상 구매시 5,000원할인쿠폰 증정! event02 이벤트 기간동안 무료배송! event03 어플 설치 시 10% 추가 할인 쿠폰 증정! HALLOWEEN 할로윈 코스튬 할로윈 분위기에 맞게 코스튬을 하고 와요! 할로윈 CAKE 할로윈을 맞이하여 호박케이크를 만들어봐요! 문자온 영어학원 T.031.123.4567
+
+
+
문자는 이제, 문자온! 선택은 역시 문자온! 문자사이트 선택의 5가지 기준 1. 가격, 속도, 성능, 기능, 보안이 보장되는가? 2. 결제, 정산, 계산서 발행 등 업무가 자동화 되어 있고 편리한가? 3. 최신 IT 기술과 트렌드가 반영되어 있는가? 4. 회원가입 및 발신번호 인증이 쉽고 빠르며, 대량문자를 전송하기에 사용이 편리한가? 5. 매일 문자샘플이 업데이트 되고, CS 및 기술응대가 실시간적으로 이루어지는가?
+
+ --%> + + + + + + + + + <%-- + + 회원가입 바로가기 + + --%> +
+ +
+
+ +
+
+ +
+
+
+ + + + +
+ + + + + + + + + + +
+
+ + + + + + + + +
+
+ +

이런 단체문자, 대량문자 샘플 어때요?

+ +
+ + + + +
+ BEST + + + + + +
+
+ BEST + + + + + +
+
+
+ +
+ +
+ +
+ +
+
+
+ +
+
+ +
+
+ 공지사항 +
+ +
    + +
  • + + +
  • +
    +
+
+
+
+ 고객센터 +
+
+
+
+

1551-8011

+ E-mail : help@iten.co.kr +
+
+

월~금 : 09:30 ~ 18:30 / 점심시간 : 13:00 ~ 14:00
토, 일요일 및 법정공휴일 휴무

+
+ +
+
+
+
+
+ + +
+
+

이런 키워드는 어때요?

+ +
+
+ + +
+
+
    + + + + +
+
+
+ + + + +
+ + + + + + + + + + + + + + +
+ From 3d9db44442d4a12ed29978cca40a57e464ae13c7 Mon Sep 17 00:00:00 2001 From: "hehihoho3@gmail.com" Date: Fri, 28 Feb 2025 09:42:07 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=EB=A9=94=EC=9D=B8=20=ED=8C=9D=EC=97=85=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pop/service/MainPopupManageService.java | 12 +- .../pop/service/impl/MainPopupManageDAO.java | 277 +---- .../impl/MainPopupManageServiceImpl.java | 26 +- .../ion/bnr/pop/web/MainPopupController.java | 1009 +---------------- .../pop/web/MainPopupManageController.java | 306 ----- .../uss/ion/fms/web/FmsFileController.java | 36 +- .../pwm/service/EgovPopupManageService.java | 9 + .../impl/EgovPopupManageServiceImpl.java | 53 + .../ion/pwm/service/impl/PopupManageDAO.java | 28 + .../spring/com/context-idgen.xml | 17 + .../sql-map-config-mysql-uss-ion-bnr.xml | 1 + .../let/uss/pwm/PopupManage_SQL_Mysql.xml | 120 +- 12 files changed, 335 insertions(+), 1559 deletions(-) delete mode 100644 src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java b/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java index bff084df..3b3990e7 100644 --- a/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java @@ -22,16 +22,16 @@ import itn.com.uss.ion.pwm.service.SortVO; */ public interface MainPopupManageService { - public List selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception; + public List selectMainPopupList(MainPopupVO mainPopupVO) throws Exception; - public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception; + public int selectMainPopupCount(MainPopupVO mainPopupVO) throws Exception; - public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception; + public MainPopupVO selectMainPopupVO(String mazId) throws Exception; - public List selectSubMainzoneListRolling(); + public List selectMainPopupListRolling(); - public void deleteSubMainzone(String id); + public void deleteMainPopup(String id); - public void resetSubMainVOSort(MainzoneVO mainzoneVO); + public void resetMainPopupSort(MainPopupVO mainPopupVO); } \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java b/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java index dd8fd7ee..2faa0728 100644 --- a/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java @@ -3,13 +3,8 @@ import java.util.List; import org.springframework.stereotype.Repository; -import egovframework.rte.psl.dataaccess.util.EgovMap; import itn.com.cmm.service.impl.EgovComAbstractDAO; -import itn.com.uss.ion.pwm.service.MainzoneVO; -import itn.com.uss.ion.pwm.service.PopupManageVO; -import itn.com.uss.ion.pwm.service.PopupzoneVO; -import itn.com.uss.ion.pwm.service.SocialVO; -import itn.com.uss.ion.pwm.service.SortVO; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; /** * 개요 @@ -31,279 +26,33 @@ public class MainPopupManageDAO extends EgovComAbstractDAO { * @return 글 목록 * @exception Exception */ - public List selectSubMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ - return list("subMainzoneManage.selectSubMainzoneList", mainzoneVO); + public List selectMainPopupList(MainPopupVO mainPopupVO ) throws Exception{ + return list("mainPopup.selectMainPopupList", mainPopupVO); } - public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ - return (int)select("subMainzoneManage.selectSubMainzoneCount", mainzoneVO); + public int selectMainPopupCount(MainPopupVO mainPopupVO) throws Exception{ + return (int)select("mainPopup.selectMainPopupCount", mainPopupVO); } - public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception{ - return (MainzoneVO)select("subMainzoneManage.selectSubMainzoneVO", mazId); + public MainPopupVO selectMainPopupVO(String mazId) throws Exception{ + return (MainPopupVO)select("mainPopup.selectMainPopupVO", mazId); } - public List selectSubMainzoneListRolling() { - return (List) list("subMainzoneManage.selectSubMainzoneListRolling"); + public List selectMainPopupListRolling() { + return (List) list("mainPopup.selectMainPopupListRolling"); } - public void deleteSubMainzone(String mazId) { - delete("subMainzoneManage.deleteSubMainzone", mazId); + public void deleteMainPopup(String mazId) { + delete("mainPopup.deleteMainPopup", mazId); } - public void resetSubMainVOSort(MainzoneVO mainzoneVO) { - update("subMainzoneManage.resetSubMainVOSort", mainzoneVO); + public void resetMainPopupSort(MainPopupVO mainPopupVO) { + update("mainPopup.resetMainPopupSort", mainPopupVO); } - - -// -// public SubMainZoneManageDAO(){} -// -// /** -// * 기 등록된 팝업창정보를 삭제한다. -// * @param popupManage - 팝업창 model -// * @return boolean - 반영성공 여부 -// * -// * @param popupManage -// */ -// public void deletePopup(PopupManageVO popupManageVO) throws Exception { -// delete("PopupManage.deletePopupManage", popupManageVO); -// } -// -// /** -// * 팝업창정보를 신규로 등록한다. -// * @param popupManage - 팝업창 model -// * @return boolean - 반영성공 여부 -// * -// * @param popupManage -// */ -// public void insertPopup(PopupManageVO popupManageVO) throws Exception { -// insert("PopupManage.insertPopupManage", popupManageVO); -// } -// -// /** -// * 기 등록된 팝업창정보를 수정한다. -// * @param popupManage - 팝업창 model -// * @return boolean - 반영성공 여부 -// * -// * @param popupManage -// */ -// public void updatePopup(PopupManageVO popupManageVO) throws Exception { -// update("PopupManage.updatePopupManage", popupManageVO); -// } -// -// /** -// * 팝업창을 사용자 화면에서 볼수 있는 정보들을 조회한다. -// * @param popupManageVO - 팝업창 Vo -// * @return popupManageVO - 팝업창 Vo -// * -// * @param popupManageVO -// */ -// public PopupManageVO selectPopup(PopupManageVO popupManageVO) throws Exception { -// return (PopupManageVO)select("PopupManage.selectPopupManageDetail", popupManageVO); -// } -// -// /** -// * 팝업창를 관리하기 위해 등록된 팝업창목록을 조회한다. -// * @param popupManageVO - 팝업창 Vo -// * @return List - 팝업창 목록 -// * -// * @param popupManageVO -// */ -// public List selectPopupList(PopupManageVO popupManageVO) throws Exception { -// return list("PopupManage.selectPopupManage", popupManageVO); -// } -// -// /** -// * 팝업창를 관리하기 위해 등록된 팝업창목록 총갯수를 조회한다. -// * @param popupManageVO - 팝업창 Vo -// * @return List - 팝업창 목록 -// * -// * @param popupManageVO -// */ -// public int selectPopupListCount(PopupManageVO popupManageVO) throws Exception { -// return (Integer)select("PopupManage.selectPopupManageCnt", popupManageVO); -// } -// -// /** -// * 팝업창를 사용하기 위해 등록된 팝업창목록을 조회한다. -// * @param popupManageVO - 팝업창 Vo -// * @return List - 팝업창 목록 -// * -// * @param popupManageVO -// */ -// public List selectPopupMainList(PopupManageVO popupManageVO) throws Exception { -// return list("PopupManage.selectPopupManageMain", popupManageVO); -// } -// -// /** -// * 메인알림창 목록을 조회한다. -// * @return 글 목록 -// * @exception Exception -// */ -// public List selectPopupzoneList(PopupzoneVO popupzoneVo) throws Exception{ -// return list("PopupzoneManage.selectPopupzoneList", popupzoneVo); -// } -// -// /** -// * 메인배너 순번정보를 가져온다. -// * @param mode - 0:등록 1:수정 -// * @return 순번정보 -// * @exception Exception -// */ -// @SuppressWarnings("unchecked") -// public List getSortList() throws Exception{ -// return (List) list("PopupzoneManage.getSortList",null); -// } -// -// public PopupzoneVO selectPopupzoneVO(String pozId) throws Exception { -// return (PopupzoneVO)select("PopupzoneManage.selectPopupzoneVO", pozId); -// } -// -// /** -// * 메인배너 변경할때 나머지 배너들 순서 변경 -// * @param 입력된 sort번호 -// * @return 등록 결과 -// * @exception Exception -// */ -// public void updateSortUp(SortVO sortVO) throws Exception{ -// update("PopupzoneManage.updateSortUp", sortVO); -// } -// -// public void updateSortDown(SortVO sortVO) throws Exception { -// update("PopupzoneManage.updateSortDown", sortVO); -// } -// -// public void updatePopupzone(PopupzoneVO popupzoneVO) throws Exception { -// update("PopupzoneManage.updatePopupzone", popupzoneVO); -// } -// -// /** -// * 메인알림창을 삭제한다. -// * @param pozId - 삭제할 메인알림창 번호 -// * @return void형 -// * @exception Exception -// */ -// public void deletePopupzone(String pozId) throws Exception { -// delete("PopupzoneManage.deletePopupzone", pozId); -// } -// -// public int getMaxSort() throws Exception{ -// return (Integer)select("PopupzoneManage.getMaxSort") ; -// } -// -// /** -// * 메인배너의 새로운seq를 가지고온다. -// * @return seq -// * @exception Exception -// */ -// public int selectNextSeq() throws Exception{ -// return (Integer)select("PopupzoneManage.selectNextSeq"); -// } -// -// public void insertPopupzone(PopupzoneVO popupzoneVO) throws Exception{ -// insert("PopupzoneManage.insertPopupzone", popupzoneVO); -// } -// -// public void resetSort(PopupzoneVO popupzoneVO) throws Exception{ -// update("PopupzoneManage.resetSort", popupzoneVO); -// } -// -// /** -// * 메인이미지 목록을 조회한다. -// * @return 글 목록 -// * @exception Exception -// */ -// public List selectMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ -// return list("MainzoneManage.selectMainzoneList", mainzoneVO); -// } -// -// public int getMainMaxSort() throws Exception{ -// return (Integer)select("MainzoneManage.getMainMaxSort"); -// } -// -// public void insertMainzone(MainzoneVO mainzoneVO) throws Exception{ -// insert("MainzoneManage.insertMainzone", mainzoneVO); -// } -// -// public void resetMainSort(MainzoneVO mainzoneVO) throws Exception{ -// insert("MainzoneManage.resetMainSort", mainzoneVO); -// } -// -// public void updateMainSortUp(SortVO sortVO) throws Exception{ -// update("MainzoneManage.updateMainSortUp", sortVO); -// } -// -// public MainzoneVO selectMainzoneVO(String mazId) throws Exception{ -// return (MainzoneVO)select("MainzoneManage.selectMainzoneVO", mazId); -// } -// -// @SuppressWarnings("unchecked") -// public List getMainSortList() throws Exception{ -// return (List) list("MainzoneManage.getMainSortList",null); -// } -// -// public void deleteMainzone(String mazId) throws Exception{ -// delete("MainzoneManage.deleteMainzone", mazId); -// } -// -// public void updateMainSortDown(SortVO sortVO) throws Exception{ -// update("MainzoneManage.updateMainSortDown", sortVO); -// } -// -// public void updateMainzone(MainzoneVO mainzoneVO) throws Exception{ -// update("MainzoneManage.updateMainzone", mainzoneVO); -// } -// -// @SuppressWarnings("unchecked") -// public List selectMainzoneListRolling() throws Exception{ -// return (List) list("MainzoneManage.selectMainzoneListRolling"); -// } -// -// public int selectPopupzoneListTotCnt(PopupzoneVO popupzoneVo) throws Exception { -// return (int)select("PopupzoneManage.selectPopupzoneListTotCnt", popupzoneVo); -// } -// -// public int selectMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ -// return (int)select("MainzoneManage.selectMainzoneCount", mainzoneVO); -// } -// -// public void resetVOSort(PopupzoneVO popupzoneVO) throws Exception{ -// update("PopupzoneManage.resetVOSort", popupzoneVO); -// } -// -// public void resetMainVOSort(MainzoneVO mainzoneVO) throws Exception{ -// update("MainzoneManage.resetMainVOSort", mainzoneVO); -// } -// -// @SuppressWarnings("unchecked") -// public List selectSocialList(SocialVO socialVO) throws Exception{ -// return (List) list("SocialManage.selectSocialList",socialVO); -// } -// -// public SocialVO selectSocialVO(String socialId) throws Exception{ -// return (SocialVO)select("SocialManage.selectSocialVO", socialId); -// } -// -// public void updateSocial(SocialVO socialVO) throws Exception{ -// update("SocialManage.updateSocial", socialVO); -// } -// -// public void resetSocialSort(SocialVO socialVO) throws Exception{ -// update("SocialManage.resetSocialSort", socialVO); -// } -// -// public void insertSocial(SocialVO socialVO) throws Exception{ -// insert("SocialManage.insertSocial", socialVO); -// } -// -// public void deleteSocial(String id) throws Exception{ -// delete("SocialManage.deleteSocial", id); -// } } \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java b/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java index e4331651..159d5a34 100644 --- a/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java @@ -9,7 +9,7 @@ import org.springframework.stereotype.Service; import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; import egovframework.rte.fdl.idgnr.EgovIdGnrService; import itn.com.uss.ion.bnr.pop.service.MainPopupManageService; -import itn.com.uss.ion.pwm.service.MainzoneVO; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; /** * 개요 @@ -34,37 +34,37 @@ public class MainPopupManageServiceImpl extends EgovAbstractServiceImpl implemen private EgovIdGnrService idgenService; @Override - public List selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception { - return dao.selectSubMainzoneList(mainzoneVO); + public List selectMainPopupList(MainPopupVO mainPopupVO) throws Exception { + return dao.selectMainPopupList(mainPopupVO); } @Override - public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception { - return dao.selectSubMainzoneCount(mainzoneVO); + public int selectMainPopupCount(MainPopupVO mainPopupVO) throws Exception { + return dao.selectMainPopupCount(mainPopupVO); } @Override - public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception { - MainzoneVO resultVO = dao.selectSubMainzoneVO(mazId); + public MainPopupVO selectMainPopupVO(String mazId) throws Exception { + MainPopupVO resultVO = dao.selectMainPopupVO(mazId); if (resultVO == null) throw processException("info.nodata.msg"); return resultVO; } @Override - public List selectSubMainzoneListRolling() { - return dao.selectSubMainzoneListRolling(); + public List selectMainPopupListRolling() { + return dao.selectMainPopupListRolling(); } @Override - public void deleteSubMainzone(String id) { - dao.deleteSubMainzone(id); + public void deleteMainPopup(String id) { + dao.deleteMainPopup(id); } @Override - public void resetSubMainVOSort(MainzoneVO mainzoneVO) { - dao.resetSubMainVOSort(mainzoneVO); + public void resetMainPopupSort(MainPopupVO mainPopupVO) { + dao.resetMainPopupSort(mainPopupVO); } diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java b/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java index b1c22fa1..09ea540c 100644 --- a/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java +++ b/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupController.java @@ -32,6 +32,8 @@ import itn.com.cmm.service.EgovFileMngService; import itn.com.cmm.service.EgovFileMngUtil; import itn.com.cmm.service.FileVO; import itn.com.cmm.util.RedirectUrlMaker; +import itn.com.uss.ion.bnr.pop.service.MainPopupManageService; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; import itn.com.uss.ion.pwm.service.MainzoneVO; import itn.let.sym.site.service.EgovSiteManagerService; @@ -76,6 +78,9 @@ public class MainPopupController { @Resource(name = "subMainZoneManageService") private SubMainZoneManageService subMainZoneManageService; + @Resource(name = "mainPopupManageService") + private MainPopupManageService mainPopupManageService; + /** cmmUseService */ @Resource(name = "EgovCmmUseService") private EgovCmmUseService cmmUseService; @@ -106,63 +111,63 @@ public class MainPopupController { /*메인이미지 관리*/ // @RequestMapping(value="/uss/ion/bnr/subMainZoneList.do") - @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.doz") - public String selectMainzoneList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception { + @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.do") + public String selectMainzoneList(ModelMap model , MainPopupVO mainPopupVO , HttpSession session ) throws Exception { LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); - if(mainzoneVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 - mainzoneVO.setPageUnit(8); + if(mainPopupVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 + mainPopupVO.setPageUnit(8); }else { - mainzoneVO.setPageUnit(mainzoneVO.getPageUnit()); + mainPopupVO.setPageUnit(mainPopupVO.getPageUnit()); } /** pageing */ PaginationInfo paginationInfo = new PaginationInfo(); - paginationInfo.setCurrentPageNo(mainzoneVO.getPageIndex()); - paginationInfo.setRecordCountPerPage(mainzoneVO.getPageUnit()); - paginationInfo.setPageSize(mainzoneVO.getPageSize()); + paginationInfo.setCurrentPageNo(mainPopupVO.getPageIndex()); + paginationInfo.setRecordCountPerPage(mainPopupVO.getPageUnit()); + paginationInfo.setPageSize(mainPopupVO.getPageSize()); - mainzoneVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); - mainzoneVO.setLastIndex(paginationInfo.getLastRecordIndex()); - mainzoneVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); + mainPopupVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); + mainPopupVO.setLastIndex(paginationInfo.getLastRecordIndex()); + mainPopupVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //각각의 사이트 - mainzoneVO.setSiteId(loginVO.getSiteId()); + mainPopupVO.setSiteId(loginVO.getSiteId()); } - List mainzoneList = subMainZoneManageService.selectSubMainzoneList(mainzoneVO); - model.addAttribute("mainzoneList", mainzoneList); + List mainPopupList = mainPopupManageService.selectMainPopupList(mainPopupVO); + model.addAttribute("mainPopupList", mainPopupList); - int totCnt = subMainZoneManageService.selectSubMainzoneCount(mainzoneVO); + int totCnt = mainPopupManageService.selectMainPopupCount(mainPopupVO); paginationInfo.setTotalRecordCount(totCnt); model.addAttribute("paginationInfo", paginationInfo); - return "uss/ion/bnr/sub/subMainZoneList"; + return "uss/ion/bnr/pop/mainPopupList"; } /*알림창등록/수정 view*/ - @RequestMapping(value="/uss/ion/bnr/subMainzoneModify.do") + @RequestMapping(value="/uss/ion/bnr/pop/mainPopupModify.do") public String updateMainZoneView(@RequestParam Map commandMap, HttpServletRequest request, Model model, HttpSession session) throws Exception { - MainzoneVO mainzoneVO = new MainzoneVO(); + MainPopupVO mainPopupVO = new MainPopupVO(); if("Modify".equals((String)commandMap.get("pageType"))){ //수정 String mazId = (String)commandMap.get("selectedId"); - mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(mazId); - String sNtceBgnde = mainzoneVO.getNtceBgnde(); - String sNtceEndde = mainzoneVO.getNtceEndde(); + mainPopupVO = mainPopupManageService.selectMainPopupVO(mazId); + String sNtceBgnde = mainPopupVO.getNtceBgnde(); + String sNtceEndde = mainPopupVO.getNtceEndde(); if(sNtceBgnde != null && sNtceEndde != null ) { - mainzoneVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); - mainzoneVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); + mainPopupVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); + mainPopupVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); - mainzoneVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); - mainzoneVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); + mainPopupVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); + mainPopupVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); //게시기간 시작일자(시) model.addAttribute("ntceBgndeHH", getTimeHH()); @@ -176,11 +181,11 @@ public class MainPopupController { } - if(mainzoneVO != null){ - mainzoneVO.setBeSort(mainzoneVO.getSort()); + if(mainPopupVO != null){ + mainPopupVO.setBeSort(mainPopupVO.getSort()); FileVO fileVO = new FileVO(); - String atchFileId = mainzoneVO.getMainzoneImageFile(); + String atchFileId = mainPopupVO.getMainzoneImageFile(); fileVO.setAtchFileId(atchFileId); List fileList = fileService.selectFileInfs(fileVO); model.addAttribute("fileList", fileList); @@ -199,8 +204,8 @@ public class MainPopupController { } //model.addAttribute("sortList", sortList); - model.addAttribute("mainzoneVO", mainzoneVO); - System.out.println("mainzoneVO :: "+ mainzoneVO.toString()); + model.addAttribute("mainPopupVO", mainPopupVO); + System.out.println("mainPopupVO :: "+ mainPopupVO.toString()); /* 타겟 코드 */ ComDefaultCodeVO vo = new ComDefaultCodeVO(); @@ -209,33 +214,33 @@ public class MainPopupController { //model.addAttribute("targetList", targetList); - return "uss/ion/bnr/sub/subMainZoneModify"; + return "uss/ion/bnr/pop/mainPopupModify"; } /*메인 이미지삭제 */ - @RequestMapping("/uss/ion/bnr/subMainzoneListDelete.do") + @RequestMapping("/uss/ion/bnr/pop/mainPopupListDelete.do") public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); - MainzoneVO mainzoneVO = new MainzoneVO(); + MainPopupVO mainPopupVO = new MainPopupVO(); for(String id:del) { try{ - mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(id); + mainPopupVO = mainPopupManageService.selectMainPopupVO(id); }catch(Exception e){ redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); - RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); + RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/pop/mainPopupList.do"); return redirectUrlMaker.getRedirectUrl(); } - subMainZoneManageService.deleteSubMainzone(id); + mainPopupManageService.deleteMainPopup(id); if(null != loginVO && !"super".equals(loginVO.getSiteId())){ - mainzoneVO.setSiteId(loginVO.getSiteId()); + mainPopupVO.setSiteId(loginVO.getSiteId()); } - subMainZoneManageService.resetSubMainVOSort(mainzoneVO); + mainPopupManageService.resetMainPopupSort(mainPopupVO); } redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); - RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); + RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/pop/mainPopupList.do"); return redirectUrlMaker.getRedirectUrl(); } @@ -306,930 +311,4 @@ public class MainPopupController { - - - - - - - - - - - - - - - - - - - - - -// -// -// -// -// /** -// * 팝업창관리 목록을 조회한다. -// * @param popupManageVO -// * @param model -// * @return "uss/ion/pwm/listPopupManage" -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/pwm/listPopup.do") -// public String selectEgovPopupManageList(@RequestParam Map commandMap, PopupManageVO popupManageVO, ModelMap model , HttpSession session) throws Exception { -// -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// /** EgovPropertyService.sample */ -// -// if(popupManageVO.getPageUnit() != 10) { -// popupManageVO.setPageUnit(popupManageVO.getPageUnit()); -// } -// -// /** pageing */ -// PaginationInfo paginationInfo = new PaginationInfo(); -// paginationInfo.setCurrentPageNo(popupManageVO.getPageIndex()); -// paginationInfo.setRecordCountPerPage(popupManageVO.getPageUnit()); -// paginationInfo.setPageSize(popupManageVO.getPageSize()); -// -// popupManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); -// popupManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); -// popupManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); -// -// if("".equals(popupManageVO.getSearchSortCnd())){ //최초조회시 최신것 조회List -// popupManageVO.setSearchSortCnd("POPUP_ID"); -// popupManageVO.setSearchSortOrd("desc"); -// } -// List reusltList = egovPopupManageService.selectPopupList(popupManageVO); -// model.addAttribute("resultList", reusltList); -// -// model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword")); -// model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition")); -// -// model.addAttribute("delSttus", popupManageVO.getDelSttus()); -// -// int totCnt = egovPopupManageService.selectPopupListCount(popupManageVO); -// paginationInfo.setTotalRecordCount(totCnt); -// model.addAttribute("paginationInfo", paginationInfo); -// return "uss/ion/pwm/EgovPopupList"; -// } - -// /** -// * 통합링크관리 목록을 상세조회 조회한다. -// * @param popupManageVO -// * @param commandMap -// * @param model -// * @return -// * "/uss/ion/pwm/detailPopupManage" -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/pwm/detailPopup.do") -// public String egovPopupManageDetail(PopupManageVO popupManageVO, @RequestParam Map commandMap, RedirectAttributes redirectAttributes, ModelMap model) throws Exception { -// -// String sLocationUrl = "uss/ion/pwm/EgovPopupDetail"; -// -// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); -// -// if (sCmd.equals("del")) { -// //egovPopupManageService.deletePopup(popupManageVO); -// popupManageVO.setDelSttus("Y"); -// try{ -// egovPopupManageService.deletePopup(popupManageVO); -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); -// }catch(Exception e){ -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); -// } -// -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do"); -// return redirectUrlMaker.getRedirectUrl(); -// -// -// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; -// } else { -// //상세정보 불러오기 -// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); -// model.addAttribute("popupManageVO", popupManageVOs); -// } -// -// return sLocationUrl; -// } -// -// /** -// * 통합링크관리를 수정한다. -// * @param searchVO -// * @param popupManageVO -// * @param bindingResult -// * @param model -// * @return -// * "/uss/ion/pwm/updtPopupManage" -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/pwm/updtPopup.do") -// public String updateEgovPopupManage(HttpSession session , @RequestParam Map commandMap, PopupManageVO popupManageVO, BindingResult bindingResult, RedirectAttributes redirectAttributes,ModelMap model) throws Exception { -// -// // 미인증 사용자에 대한 보안처리 -// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); -// if(!isAuthenticated) { -// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login")); -// return "uat/uia/EgovLoginUsr"; -// } -// -// // 로그인 객체 선언 -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// -// String sLocationUrl = "uss/ion/pwm/EgovPopupUpdt"; -// -// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); -// -// //팝업창시작일자(시) -// model.addAttribute("ntceBgndeHH", getTimeHH()); -// //팝업창시작일자(분) -// model.addAttribute("ntceBgndeMM", getTimeMM()); -// //팝업창종료일자(시) -// model.addAttribute("ntceEnddeHH", getTimeHH()); -// //팝업창정료일자(분) -// model.addAttribute("ntceEnddeMM", getTimeMM()); -// -// if (sCmd.equals("save")) { -// sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; -// //서버 validate 체크 -// beanValidator.validate(popupManageVO, bindingResult); -// if (bindingResult.hasErrors()) { -// return sLocationUrl; -// } -// //아이디 설정 -// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); -// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); -// //저장 -// egovPopupManageService.updatePopup(popupManageVO); -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do"); -// return redirectUrlMaker.getRedirectUrl(); -// } else { -// -// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); -// -// String sNtceBgnde = popupManageVOs.getNtceBgnde(); -// String sNtceEndde = popupManageVOs.getNtceEndde(); -// -// popupManageVOs.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); -// popupManageVOs.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); -// -// popupManageVOs.setNtceEnddeHH(sNtceEndde.substring(8, 10)); -// popupManageVOs.setNtceEnddeMM(sNtceEndde.substring(10, 12)); -// -// model.addAttribute("popupManageVO", popupManageVOs); -// } -// return sLocationUrl; -// } -// -// /** -// * 통합링크관리를 등록한다. -// * @param searchVO -// * @param popupManageVO -// * @param bindingResult -// * @param model -// * @return -// * "/uss/ion/pwm/registPopupManage" -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/pwm/egovPopupRegist.do") -// public String insertEgovPopupRegist(@RequestParam Map commandMap, @ModelAttribute("popupManageVO") PopupManageVO popupManageVO, BindingResult bindingResult, -// RedirectAttributes redirectAttributes ,ModelMap model, HttpSession session ) throws Exception { -// -// /*if (!EgovDoubleSubmitHelper.checkAndSaveToken()) { -// return "forward:/uss/ion/pwm/listPopup.do"; -// }*/ -// -// // 0. Spring Security 사용자권한 처리 -// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); -// if (!isAuthenticated) { -// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login")); -// return "uat/uia/EgovLoginUsr"; -// } -// -// // 로그인 객체 선언 -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// -// String sLocationUrl = "uss/ion/pwm/EgovPopupRegist"; -// -// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd"); -// LOGGER.info("cmd => {}", sCmd); -// -// if (sCmd.equals("save")) { -// beanValidator.validate(popupManageVO, bindingResult); -// if (bindingResult.hasErrors()) { -// return sLocationUrl; -// } -// //아이디 설정 -// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); -// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); -// //저장 -// popupManageVO.setNttCn(unscript(popupManageVO.getNttCn())); // XSS 방지 -// popupManageVO.setDelSttus("N"); //최초 생성시 삭제여부 N -// egovPopupManageService.insertPopup(popupManageVO); -// -// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 -// popupManageVO.setSiteId(loginVO.getSiteId()); -// } -// -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do"); -// return redirectUrlMaker.getRedirectUrl(); -// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; -// } -// -// //팝업창시작일자(시) -// model.addAttribute("ntceBgndeHH", getTimeHH()); -// //팝업창시작일자(분) -// model.addAttribute("ntceBgndeMM", getTimeMM()); -// //팝업창종료일자(시) -// model.addAttribute("ntceEnddeHH", getTimeHH()); -// //팝업창정료일자(분) -// model.addAttribute("ntceEnddeMM", getTimeMM()); -// return sLocationUrl; -// } -// -// /** -// * 팝업창정보를 조회한다. -// * @param commandMap -// * @param popupManageVO -// * @return -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfoBack.do") -// public void egovPopupManageInfoAjaxBack(@RequestParam Map commandMap, HttpServletResponse response, PopupManageVO popupManageVO) throws Exception { -// -// response.setHeader("Content-Type", "text/html;charset=utf-8"); -// PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8")); -// -// LOGGER.debug("commandMap : {}", commandMap); -// LOGGER.debug("popupManageVO : {}", popupManageVO); -// -// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); -// -// -// String sPrint = ""; -// sPrint = popupManageVOs.getFileUrl(); -// sPrint = sPrint + "||" + popupManageVOs.getPopupWSize(); -// sPrint = sPrint + "||" + popupManageVOs.getPopupHSize(); -// sPrint = sPrint + "||" + popupManageVOs.getPopupHlc(); -// sPrint = sPrint + "||" + popupManageVOs.getPopupWlc(); -// sPrint = sPrint + "||" + popupManageVOs.getStopVewAt(); -// sPrint = sPrint + "||" + popupManageVOs.getPopupType(); -// out.print(sPrint); -// out.flush(); -// } -// -// -// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfo.do") -// public ModelAndView ajaxPopupManageInfo(@RequestParam Map commandMap) throws Exception { -// ModelAndView modelAndView = new ModelAndView(); -// modelAndView.setViewName("jsonView"); -// -// PopupManageVO popupManageVO = new PopupManageVO(); -// popupManageVO.setPopupId((String) commandMap.get("popupIds")); -// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); -// modelAndView.addObject("popupManageVOs", popupManageVOs); -// return modelAndView; -// } -// -// /** -// * 팝업창을 오픈 한다. -// * @param commandMap -// * @param popupManageVO -// * @return -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/pwm/openPopupManage.do") -// public String egovPopupManagePopupOpen(@RequestParam("fileUrl") String fileUrl, @RequestParam("stopVewAt") String stopVewAt, @RequestParam("popupId") String popupId, -// ModelMap model) throws Exception { -// //팝업창이 윈도우일 경우 -// //상세정보 불러오기 -// -// PopupManageVO paramPopupManageVO = new PopupManageVO(); -// paramPopupManageVO.setPopupId(popupId); -// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(paramPopupManageVO); -// model.addAttribute("popupManageVO", popupManageVOs); -// -// model.addAttribute("stopVewAt", stopVewAt); -// model.addAttribute("popupId", popupId); -// -// return fileUrl; -// } -// -// /** -// * 팝업창관리 메인 테스트 목록을 조회한다. -// * @param popupManageVO -// * @param model -// * @return "uss/ion/pwm/listMainPopup" -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/pwm/listMainPopup.do") -// public String egovPopupManageMainList(PopupManageVO popupManageVO, ModelMap model) throws Exception { -// -// List reusltList = egovPopupManageService.selectPopupMainList(popupManageVO); -// model.addAttribute("resultList", reusltList); -// -// return "uss/ion/pwm/EgovPopupMainList"; -// } -// -// /** -// * 시간을 LIST를 반환한다. -// * @return List -// * @throws -// */ -// @SuppressWarnings("unused") -// private List getTimeHH() { -// ArrayList listHH = new ArrayList(); -// HashMap hmHHMM; -// for (int i = 0; i <= 24; i++) { -// String sHH = ""; -// String strI = String.valueOf(i); -// if (i < 10) { -// sHH = "0" + strI; -// } else { -// sHH = strI; -// } -// -// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); -// codeVO.setCode(sHH); -// codeVO.setCodeNm(sHH); -// -// listHH.add(codeVO); -// } -// -// return listHH; -// } -// -// /** -// * 분을 LIST를 반환한다. -// * @return List -// * @throws -// */ -// @SuppressWarnings("unused") -// private List getTimeMM() { -// ArrayList listMM = new ArrayList(); -// HashMap hmHHMM; -// for (int i = 0; i <= 60; i++) { -// -// String sMM = ""; -// String strI = String.valueOf(i); -// if (i < 10) { -// sMM = "0" + strI; -// } else { -// sMM = strI; -// } -// -// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); -// codeVO.setCode(sMM); -// codeVO.setCodeNm(sMM); -// -// listMM.add(codeVO); -// } -// return listMM; -// } -// -// /** -// * 0을 붙여 반환 -// * @return String -// * @throws -// */ -// public String dateTypeIntForString(int iInput) { -// String sOutput = ""; -// if (Integer.toString(iInput).length() == 1) { -// sOutput = "0" + Integer.toString(iInput); -// } else { -// sOutput = Integer.toString(iInput); -// } -// -// return sOutput; -// } -// -// /** -// * XSS 방지 처리. -// * -// * @param data -// * @return -// */ -// protected String unscript(String data) { -// if (data == null || data.trim().equals("")) { -// return ""; -// } -// -// String ret = data; -// -// ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script"); -// ret = ret.replaceAll(" popupzoneList = egovPopupManageService.selectPopupzoneList(popupzoneVo); -// model.addAttribute("popupzoneList", popupzoneList); -// -// /* 타겟 코드 */ -// ComDefaultCodeVO vo = new ComDefaultCodeVO(); -// vo.setCodeId("COM037"); -// List targetList = cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("targetList", targetList); -// -// /*메인이미지 코드*/ -// vo.setCodeId("ITN008"); -// List imgCode= cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("imgCodeList", imgCode); -// -// int totCnt = egovPopupManageService.selectPopupzoneListTotCnt(popupzoneVo); -// paginationInfo.setTotalRecordCount(totCnt); -// model.addAttribute("paginationInfo", paginationInfo); -// return "uss/ion/pwm/PopupzoneList"; -// } -// -// /*알림창수정 view*/ -// @RequestMapping(value="/uss/ion/pwm/popupzoneModify.do") -// public String updatePopupZoneView(@RequestParam Map commandMap, -// HttpServletRequest request, Model model , HttpSession session) -// throws Exception { -// -// PopupzoneVO popupzoneVO = new PopupzoneVO(); -// if("Modify".equals((String)commandMap.get("pageType"))){ //수정 -// String pozId = (String)commandMap.get("selectedId"); -// popupzoneVO = egovPopupManageService.selectPopupzoneVO(pozId); -// if(popupzoneVO != null){ -// popupzoneVO.setBeSort(popupzoneVO.getSort()); -// FileVO fileVO = new FileVO(); -// String atchFileId = popupzoneVO.getPopupzoneImageFile(); -// fileVO.setAtchFileId(atchFileId); -// List fileList = fileService.selectFileInfs(fileVO); -// model.addAttribute("fileList", fileList); -// } -// }else{ //등록 -// } -// -// if(null != commandMap.get("seCd")){ -// popupzoneVO.setSeCd((String)(commandMap.get("seCd"))); -// } -// -// model.addAttribute("popupzoneVO", popupzoneVO); -// -// /* 타겟 코드 */ -// ComDefaultCodeVO vo = new ComDefaultCodeVO(); -// vo.setCodeId("COM037"); -// List targetList = cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("targetList", targetList); -// -// /*메인이미지 코드*/ -// vo.setCodeId("ITN008"); -// List imgCode= cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("imgCodeList", imgCode); -// return "uss/ion/pwm/PopupZoneModify"; -// } -// -// /*알림창수정 */ -// @RequestMapping("/uss/ion/pwm/popupzoneUpdate.do") -// public String updatePopupzone( -// @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, -// final MultipartHttpServletRequest multiRequest, -// HttpServletRequest request, -// RedirectAttributes redirectAttributes, -// HttpServletResponse response,Model model) -// throws Exception { -// //popupzoneVO.setUpfile(managementPopupzoneFile(popupzoneVO.getSeq(),popupzoneVO.getUpfile(),multiRequest)); -// -// /*SortVO sortVO = new SortVO(); -// -// if(odl_popupzoneVO.getSort() > popupzoneVO.getSort()){ -// sortVO.setStartSort(popupzoneVO.getSort()); -// sortVO.setEndSort(odl_popupzoneVO.getSort()); -// egovPopupManageService.updateSortUp(sortVO); -// } -// else if(odl_popupzoneVO.getSort() < popupzoneVO.getSort()) { -// sortVO.setStartSort(odl_popupzoneVO.getSort()); -// sortVO.setEndSort(popupzoneVO.getSort()); -// egovPopupManageService.updateSortDown(sortVO); -// }*/ -// -// /*파일등록 */ -// List result = null; -// String uploadFolder = ""; -// String orignlFileNm = ""; -// String atchFileId = ""; -// final Map files = multiRequest.getFileMap(); -// -// if (!files.isEmpty()){ -// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); -// atchFileId = fileMngService.insertFileInfs(result); -// FileVO vo = null; -// Iterator iter = result.iterator(); -// while (iter.hasNext()) { -// vo = iter.next(); -// orignlFileNm = vo.getOrignlFileNm(); -// atchFileId = vo.getAtchFileId(); -// } -// if (vo == null) { -// } else { -// popupzoneVO.setPopupzoneImage(orignlFileNm); -// popupzoneVO.setPopupzoneImageFile(atchFileId); -// } -// } -// -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 -// popupzoneVO.setSiteId(loginVO.getSiteId()); -// } -// popupzoneVO.setRegisterId(loginVO.getUniqId()); -// egovPopupManageService.updatePopupzone(popupzoneVO); -// -// if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 -// popupzoneVO.setSortOver("D"); -// } -// egovPopupManageService.resetVOSort(popupzoneVO); -// -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd()); -// return redirectUrlMaker.getRedirectUrl(); -// // return "forward:/uss/ion/pwm/popupzoneList.do"; -// } -// -// /*알림창삭제 */ -// @RequestMapping("/uss/ion/pwm/popupzoneListDelete.do") -// public String deletePopupzone(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , @RequestParam Map commandMap , Model model) throws Exception { -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// PopupzoneVO popupzoneVO = new PopupzoneVO(); -// for(String id:del) { -// try{ -// popupzoneVO = egovPopupManageService.selectPopupzoneVO(id); -// }catch(Exception e){ -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"); -// return redirectUrlMaker.getRedirectUrl(); -// } -// egovPopupManageService.deletePopupzone(id); -// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ -// popupzoneVO.setSiteId(loginVO.getSiteId()); -// } -// egovPopupManageService.resetSort(popupzoneVO); -// } -// -// String paramSeCd = ""; -// if(null != commandMap.get("seCd")) { -// paramSeCd = "?seCd="+(String)commandMap.get("seCd") ; -// } -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"+paramSeCd); -// return redirectUrlMaker.getRedirectUrl(); -// } -// -// /* 알림창 등록 */ -// @RequestMapping("/uss/ion/pwm/popupzoneInsert.do") -// public String insertPopupzone( @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, final MultipartHttpServletRequest multiRequest, RedirectAttributes redirectAttributes, -// HttpServletRequest request, HttpServletResponse response,Model model) -// throws Exception { -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// String pozId = idgenService.getNextStringId(); -// popupzoneVO.setPozId(pozId); -// -// /*파일등록 */ -// List result = null; -// String uploadFolder = ""; -// String orignlFileNm = ""; -// String atchFileId = ""; -// final Map files = multiRequest.getFileMap(); -// if (!files.isEmpty()){ -// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); -// atchFileId = fileMngService.insertFileInfs(result); -// FileVO vo = null; -// Iterator iter = result.iterator(); -// while (iter.hasNext()) { -// vo = iter.next(); -// orignlFileNm = vo.getOrignlFileNm(); -// atchFileId = vo.getAtchFileId(); -// } -// if (vo == null) { -// } else { -// popupzoneVO.setPopupzoneImage(orignlFileNm); -// popupzoneVO.setPopupzoneImageFile(atchFileId); -// } -// } -// -// popupzoneVO.setRegisterId(loginVO.getUniqId()); -// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 -// popupzoneVO.setSiteId(loginVO.getSiteId()); -// } -// -// egovPopupManageService.insertPopupzone(popupzoneVO); -// //sort 1부터 재 정렬 -// popupzoneVO.setSortOver("D"); -// egovPopupManageService.resetSort(popupzoneVO); -// -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd()); -// return redirectUrlMaker.getRedirectUrl(); -// //return "forward:/uss/ion/pwm/popupzoneList.do"; -// } -// -// /* 메인이미지 등록 */ -// @RequestMapping("/uss/ion/pwm/mainzoneInsert.do") -// public String insertMainzone( @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, final MultipartHttpServletRequest multiRequest, -// HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes , Model model) -// throws Exception { -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// -// String mainId = idgenServiceMain.getNextStringId(); -// mainzoneVO.setMazId(mainId); -// mainzoneVO.setRegisterId(loginVO.getUniqId()); -// //SortVO sortVO = new SortVO(); -// //sortVO.setStartSort(mainzoneVO.getSort()); -// //sortVO.setEndSort(egovPopupManageService.getMainMaxSort()); -// -// /*파일등록 */ -// List result = null; -// String uploadFolder = ""; -// String orignlFileNm = ""; -// String atchFileId = ""; -// final Map files = multiRequest.getFileMap(); -// if (!files.isEmpty()){ -// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); -// atchFileId = fileMngService.insertFileInfs(result); -// FileVO vo = null; -// Iterator iter = result.iterator(); -// while (iter.hasNext()) { -// vo = iter.next(); -// orignlFileNm = vo.getOrignlFileNm(); -// atchFileId = vo.getAtchFileId(); -// } -// if (vo == null) { -// } else { -// mainzoneVO.setMainzoneImage(orignlFileNm); -// mainzoneVO.setMainzoneImageFile(atchFileId); -// } -// } -// -// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 -// mainzoneVO.setSiteId(loginVO.getSiteId()); -// } -// -// egovPopupManageService.insertMainzone(mainzoneVO); -// //sort 1부터 재 정렬 -// mainzoneVO.setSortOver("D"); //앞쪽에 넣음 -// egovPopupManageService.resetMainVOSort(mainzoneVO); -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); -// return redirectUrlMaker.getRedirectUrl(); -// //return "forward:/uss/ion/pwm/mainzoneList.do"; -// } -// -// -// /*메인 이미지삭제 */ -// @RequestMapping("/uss/ion/pwm/mainzoneListDelete.do") -// public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// MainzoneVO mainzoneVO = new MainzoneVO(); -// for(String id:del) { -// try{ -// mainzoneVO = egovPopupManageService.selectMainzoneVO(id); -// }catch(Exception e){ -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); -// return redirectUrlMaker.getRedirectUrl(); -// } -// egovPopupManageService.deleteMainzone(id); -// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ -// mainzoneVO.setSiteId(loginVO.getSiteId()); -// } -// egovPopupManageService.resetMainVOSort(mainzoneVO); -// } -// -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); -// return redirectUrlMaker.getRedirectUrl(); -// } -// -// -// /*알림창수정 */ -// @RequestMapping("/uss/ion/pwm/mainzoneUpdate.do") -// public String updateMainzone( -// @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, -// final MultipartHttpServletRequest multiRequest, -// HttpServletRequest request, -// RedirectAttributes redirectAttributes, -// HttpServletResponse response,Model model) -// throws Exception { -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// -// /*파일등록 */ -// List result = null; -// String uploadFolder = ""; -// String orignlFileNm = ""; -// String atchFileId = ""; -// final Map files = multiRequest.getFileMap(); -// -// if (!files.isEmpty()){ -// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); -// atchFileId = fileMngService.insertFileInfs(result); -// FileVO vo = null; -// Iterator iter = result.iterator(); -// while (iter.hasNext()) { -// vo = iter.next(); -// orignlFileNm = vo.getOrignlFileNm(); -// atchFileId = vo.getAtchFileId(); -// } -// if (vo == null) { -// } else { -// mainzoneVO.setMainzoneImage(orignlFileNm); -// mainzoneVO.setMainzoneImageFile(atchFileId); -// } -// } -// mainzoneVO.setRegisterId(loginVO.getUniqId()); -// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력 -// mainzoneVO.setSiteId(loginVO.getSiteId()); -// } -// -// egovPopupManageService.updateMainzone(mainzoneVO); -// -// //sort 1부터 재 정렬 -// if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 -// mainzoneVO.setSortOver("D"); -// } -// egovPopupManageService.resetMainVOSort(mainzoneVO); -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update")); -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do"); -// return redirectUrlMaker.getRedirectUrl(); -// } -// -// /** -// * 통합링크관리 목록을 상세조회 조회한다. -// * @param popupManageVO -// * @param commandMap -// * @param model -// * @return -// * "/uss/ion/pwm/detailPopupManage" -// * @throws Exception -// */ -// @RequestMapping(value = "/uss/ion/bnr/removePopupList.do") -// public String deletePopupList(PopupManageVO popupManageVO, @RequestParam Map commandMap, @RequestParam("checkList") String[] checkList, RedirectAttributes redirectAttributes, ModelMap model) throws Exception { -// try{ -// for(String id:checkList) { -// popupManageVO.setPopupId(id); -// popupManageVO.setDelSttus("Y"); -// egovPopupManageService.deletePopup(popupManageVO); -// } -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); -// }catch (Exception e) { -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); -// } -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do"); -// return redirectUrlMaker.getRedirectUrl(); -// } -// -// -// -// /*소셜허브괸리*/ -// @RequestMapping(value="/uss/ion/pwm/socialList.do") -// public String selectSocialList(ModelMap model , @ModelAttribute("searchVO") SocialVO socialVO, HttpSession session) -// throws Exception { -// -// /** paging */ -// if(socialVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 -// socialVO.setPageUnit(8); -// }else { -// socialVO.setPageUnit(socialVO.getPageUnit()); -// } -// -// PaginationInfo paginationInfo = new PaginationInfo(); -// paginationInfo.setCurrentPageNo(socialVO.getPageIndex()); -// paginationInfo.setRecordCountPerPage(socialVO.getPageUnit()); -// paginationInfo.setPageSize(socialVO.getPageSize()); -// -// socialVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); -// socialVO.setLastIndex(paginationInfo.getLastRecordIndex()); -// socialVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); -// -// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); -// -// /** 소설괸리 */ -// if("".equals(socialVO.getSearchSortCnd())){ //최초조회시 최신것 조회List -// socialVO.setSearchSortCnd("SORT"); -// socialVO.setSearchSortOrd("asc"); -// } -// List socialList = egovPopupManageService.selectSocialList(socialVO); -// model.addAttribute("socialList", socialList); -// -// /* 타겟 코드 */ -// ComDefaultCodeVO vo = new ComDefaultCodeVO(); -// vo.setCodeId("COM037"); -// List targetList = cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("targetList", targetList); -// -// /*메인이미지 코드*/ -// vo.setCodeId("ITN016"); -// List imgCode= cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("imgCodeList", imgCode); -// -// paginationInfo.setTotalRecordCount(socialList.size()> 0 ? ((SocialVO)socialList.get(0)).getTotCnt() : 0); -// model.addAttribute("paginationInfo", paginationInfo); -// return "uss/ion/pwm/SocialList"; -// } -// -// -// -// /*소셜창수정 view*/ -// @RequestMapping(value="/uss/ion/pwm/socialModify.do") -// public String updateSocialModifyView(@RequestParam Map commandMap, -// HttpServletRequest request, Model model , HttpSession session) -// throws Exception { -// -// SocialVO socialVO = new SocialVO(); -// if("Modify".equals((String)commandMap.get("pageType"))){ //수정 -// String socialId = (String)commandMap.get("selectedId"); -// //socialVO = egovPopupManageService.selectPopupzoneVO(pozId); -// socialVO = egovPopupManageService.selectSocialVO(socialId); -// if(socialVO != null){ -// socialVO.setBeSort(socialVO.getSort()); -// FileVO fileVO = new FileVO(); -// String atchFileId = socialVO.getSocialImageFile(); -// fileVO.setAtchFileId(atchFileId); -// List fileList = fileService.selectFileInfs(fileVO); -// model.addAttribute("fileList", fileList); -// } -// }else{ //등록 -// } -// -// model.addAttribute("socialVO", socialVO); -// -// /* 타겟 코드 */ -// ComDefaultCodeVO vo = new ComDefaultCodeVO(); -// vo.setCodeId("COM037"); -// List targetList = cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("targetList", targetList); -// -// /*소셜허브종류 코드*/ -// vo.setCodeId("ITN016"); -// List imgCode= cmmUseService.selectCmmCodeDetail(vo); -// model.addAttribute("imgCodeList", imgCode); -// //return "uss/ion/pwm/PopupZoneModify"; -// return "uss/ion/pwm/SocialModify"; -// } -// -// @RequestMapping(value = "/uss/ion/pwm/socialDelete.do") -// public String deleteSocial(@RequestParam Map commandMap, @RequestParam("del") String[] del , RedirectAttributes redirectAttributes, ModelMap model) throws Exception { -// try{ -// for(String id:del) { -// egovPopupManageService.deleteSocial(id); -// } -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); -// }catch (Exception e) { -// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete")); -// } -// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/socialList.do"); -// return redirectUrlMaker.getRedirectUrl(); -// } -// -// -// } \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java b/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java deleted file mode 100644 index 8c9fab97..00000000 --- a/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java +++ /dev/null @@ -1,306 +0,0 @@ -package itn.com.uss.ion.bnr.pop.web; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.servlet.mvc.support.RedirectAttributes; -import org.springmodules.validation.commons.DefaultBeanValidator; - -import egovframework.rte.fdl.idgnr.EgovIdGnrService; -import egovframework.rte.fdl.property.EgovPropertyService; -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; -import itn.com.cmm.util.RedirectUrlMaker; -import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; -import itn.com.uss.ion.pwm.service.MainzoneVO; -import itn.let.sym.site.service.EgovSiteManagerService; - -/** - * 개요 - * - 팝업창에 대한 Controller를 정의한다. - * - * 상세내용 - * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. - * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자 화면 보기로 구분된다. - * @author 이창원 - * @version 1.0 - * @created 05-8-2009 오후 2:19:57 - *
-  * << 개정이력(Modification Information) >>
-  *
-  *   수정일      수정자           수정내용
-  *  -------    --------    ---------------------------
-  *   2025.02.24  이호영          최초 생성
-  *
-  * 
- */ - -@Controller -public class MainPopupManageController { - - private static final Logger LOGGER = LoggerFactory.getLogger(MainPopupManageController.class); - - @Autowired - private DefaultBeanValidator beanValidator; - - /** EgovMessageSource */ - @Resource(name = "egovMessageSource") - EgovMessageSource egovMessageSource; - - /** EgovPropertyService */ - @Resource(name = "propertiesService") - protected EgovPropertyService propertiesService; - - /** EgovPopupManageService */ - @Resource(name = "subMainZoneManageService") - private SubMainZoneManageService subMainZoneManageService; - - /** cmmUseService */ - @Resource(name = "EgovCmmUseService") - private EgovCmmUseService cmmUseService; - - @Resource(name="EgovFileMngUtil") - private EgovFileMngUtil fileUtil; - - @Resource(name="EgovFileMngService") - private EgovFileMngService fileMngService; - - @Resource(name = "egovPopupZoneIdGnrService") - private EgovIdGnrService idgenService; - -// @Resource(name = "egovMainZoneIdGnrService") -// private EgovIdGnrService idgenServiceMain; - - @Resource(name = "egovSubMainZoneIdGnrService") - private EgovIdGnrService idgenServiceSubMain; - - @Resource(name = "egovSiteManagerService") - EgovSiteManagerService egovSiteManagerService; - - @Resource(name = "EgovFileMngService") - private EgovFileMngService fileService; - - - - - /*메인이미지 관리*/ - @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.do") - public String popupList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception { - LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); - - - if(mainzoneVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 - mainzoneVO.setPageUnit(8); - }else { - mainzoneVO.setPageUnit(mainzoneVO.getPageUnit()); - } - - /** pageing */ - PaginationInfo paginationInfo = new PaginationInfo(); - paginationInfo.setCurrentPageNo(mainzoneVO.getPageIndex()); - paginationInfo.setRecordCountPerPage(mainzoneVO.getPageUnit()); - paginationInfo.setPageSize(mainzoneVO.getPageSize()); - - mainzoneVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); - mainzoneVO.setLastIndex(paginationInfo.getLastRecordIndex()); - mainzoneVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); - - if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //각각의 사이트 - mainzoneVO.setSiteId(loginVO.getSiteId()); - } - List mainzoneList = subMainZoneManageService.selectSubMainzoneList(mainzoneVO); - model.addAttribute("mainzoneList", mainzoneList); - - int totCnt = subMainZoneManageService.selectSubMainzoneCount(mainzoneVO); - - paginationInfo.setTotalRecordCount(totCnt); - model.addAttribute("paginationInfo", paginationInfo); - - return "uss/ion/bnr/sub/subMainZoneList"; - } - - - - /*알림창등록/수정 view*/ - @RequestMapping(value="/uss/ion/bnr/pop/mainPopupModify.do") - public String popupModify(@RequestParam Map commandMap, - HttpServletRequest request, Model model, HttpSession session) - throws Exception { - - MainzoneVO mainzoneVO = new MainzoneVO(); - if("Modify".equals((String)commandMap.get("pageType"))){ //수정 - String mazId = (String)commandMap.get("selectedId"); - mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(mazId); - String sNtceBgnde = mainzoneVO.getNtceBgnde(); - String sNtceEndde = mainzoneVO.getNtceEndde(); - - if(sNtceBgnde != null && sNtceEndde != null ) { - - mainzoneVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); - mainzoneVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); - - mainzoneVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); - mainzoneVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); - - //게시기간 시작일자(시) - model.addAttribute("ntceBgndeHH", getTimeHH()); - //게시기간 시작일자(분) - model.addAttribute("ntceBgndeMM", getTimeMM()); - //게시기간 종료일자(시) - model.addAttribute("ntceEnddeHH", getTimeHH()); - //게시기간 종료일자(분) - model.addAttribute("ntceEnddeMM", getTimeMM()); - - - } - - if(mainzoneVO != null){ - mainzoneVO.setBeSort(mainzoneVO.getSort()); - - FileVO fileVO = new FileVO(); - String atchFileId = mainzoneVO.getMainzoneImageFile(); - fileVO.setAtchFileId(atchFileId); - List fileList = fileService.selectFileInfs(fileVO); - model.addAttribute("fileList", fileList); - } - }else{ //등록 - - //게시기간 시작일자(시) - model.addAttribute("ntceBgndeHH", getTimeHH()); - //게시기간 시작일자(분) - model.addAttribute("ntceBgndeMM", getTimeMM()); - //게시기간 종료일자(시) - model.addAttribute("ntceEnddeHH", getTimeHH()); - //게시기간 종료일자(분) - model.addAttribute("ntceEnddeMM", getTimeMM()); - - } - - //model.addAttribute("sortList", sortList); - model.addAttribute("mainzoneVO", mainzoneVO); - System.out.println("mainzoneVO :: "+ mainzoneVO.toString()); - - /* 타겟 코드 */ - ComDefaultCodeVO vo = new ComDefaultCodeVO(); - vo.setCodeId("COM037"); - //List targetList = cmmUseService.selectCmmCodeDetail(vo); - //model.addAttribute("targetList", targetList); - - - return "uss/ion/bnr/sub/subMainZoneModify"; - } - - - - /*메인 이미지삭제 */ - @RequestMapping(value="/uss/ion/bnr/pop/mainPopupListDelete.do") - public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { - LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); - MainzoneVO mainzoneVO = new MainzoneVO(); - for(String id:del) { - try{ - mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(id); - }catch(Exception e){ - redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); - RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); - return redirectUrlMaker.getRedirectUrl(); - } - subMainZoneManageService.deleteSubMainzone(id); - if(null != loginVO && !"super".equals(loginVO.getSiteId())){ - mainzoneVO.setSiteId(loginVO.getSiteId()); - } - subMainZoneManageService.resetSubMainVOSort(mainzoneVO); - } - - redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); - RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); - return redirectUrlMaker.getRedirectUrl(); - } - - - - - - - - - - - /** - * 시간을 LIST를 반환한다. - * @return List - * @throws - */ - @SuppressWarnings("unused") - private List getTimeHH() { - ArrayList listHH = new ArrayList(); - HashMap hmHHMM; - for (int i = 0; i <= 24; i++) { - String sHH = ""; - String strI = String.valueOf(i); - if (i < 10) { - sHH = "0" + strI; - } else { - sHH = strI; - } - - ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); - codeVO.setCode(sHH); - codeVO.setCodeNm(sHH); - - listHH.add(codeVO); - } - - return listHH; - } - - /** - * 분을 LIST를 반환한다. - * @return List - * @throws - */ - @SuppressWarnings("unused") - private List getTimeMM() { - ArrayList listMM = new ArrayList(); - HashMap hmHHMM; - for (int i = 0; i <= 60; i++) { - - String sMM = ""; - String strI = String.valueOf(i); - if (i < 10) { - sMM = "0" + strI; - } else { - sMM = strI; - } - - ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); - codeVO.setCode(sMM); - codeVO.setCodeNm(sMM); - - listMM.add(codeVO); - } - return listMM; - } - -} \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java b/src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java index c3646d09..86795c09 100644 --- a/src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java +++ b/src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java @@ -38,6 +38,7 @@ import itn.com.cmm.service.EgovFileMngService; import itn.com.cmm.service.EgovFileMngUtil; import itn.com.cmm.service.FileVO; import itn.com.cmm.util.RedirectUrlMaker; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; import itn.com.uss.ion.bnr.service.Banner; import itn.com.uss.ion.bnr.service.BannerVO; import itn.com.uss.ion.bnr.service.EgovBannerService; @@ -115,6 +116,9 @@ public class FmsFileController { @Resource(name = "egovSubMainZoneIdGnrService") private EgovIdGnrService idgenServiceSubMain; + @Resource(name = "egovMainPopupIdGnrService") + private EgovIdGnrService idgenServiceMainPopup; + @Resource(name = "egovBannerService") private EgovBannerService egovBannerService; @@ -390,6 +394,7 @@ public class FmsFileController { public ModelAndView insertFmsFileInsertAjax(@RequestParam Map commandMap, @ModelAttribute("fmsFileVO") FmsFileVO fmsFileVO, MainzoneVO mainzoneVO, + MainPopupVO mainPopupVO, PopupzoneVO popupzoneVO, Banner banner, BannerVO bannerVO, @@ -419,6 +424,8 @@ public class FmsFileController { KeyStr = "MAZ_"; }else if("subMainzone".equals(fileVO.getMenuName())) { //메인비주얼 KeyStr = "SMAZ_"; + }else if("mainPopup".equals(fileVO.getMenuName())) { //메인비주얼 + KeyStr = "MPP_"; }else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼 KeyStr = "POZ_"; }else if("banner".equals(fileVO.getMenuName())) { //매뉴별 비주얼 @@ -447,6 +454,9 @@ public class FmsFileController { mainzoneVO.setMainzoneImage(orignlFileNm); mainzoneVO.setMainzoneImageFile(atchFileId); + mainPopupVO.setMainzoneImage(orignlFileNm); + mainPopupVO.setMainzoneImageFile(atchFileId); + fmsFileVO.setFmsImage(orignlFileNm); fmsFileVO.setFmsImageFile(atchFileId); @@ -482,14 +492,24 @@ public class FmsFileController { egovPopupManageService.insertMainzone(mainzoneVO); mainzoneVO.setSortOver("D"); //앞쪽에 넣음 egovPopupManageService.resetMainVOSort(mainzoneVO); - }else if("subMainzone".equals(fileVO.getMenuName())) { // 서브 메인비주얼 새글 + } + else if("subMainzone".equals(fileVO.getMenuName())) { // 서브 메인비주얼 새글 String mainId = idgenServiceSubMain.getNextStringId(); mainzoneVO.setMazId(mainId); mainzoneVO.setRegisterId(loginVO.getUniqId()); egovPopupManageService.insertSubMainzone(mainzoneVO); mainzoneVO.setSortOver("D"); //앞쪽에 넣음 egovPopupManageService.resetSubMainVOSort(mainzoneVO); - }else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼 + } + else if("mainPopup".equals(fileVO.getMenuName())) { // 메인팝업 새글 + String mainId = idgenServiceMainPopup.getNextStringId(); + mainPopupVO.setPopId(mainId); + mainPopupVO.setRegisterId(loginVO.getUniqId()); + egovPopupManageService.insertMainPopup(mainPopupVO); + mainPopupVO.setSortOver("D"); //앞쪽에 넣음 + egovPopupManageService.resetMainPopup(mainPopupVO); + } + else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼 String pozId = idgenService.getNextStringId(); popupzoneVO.setPozId(pozId); popupzoneVO.setRegisterId(loginVO.getUniqId()); @@ -538,7 +558,14 @@ public class FmsFileController { if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 mainzoneVO.setSortOver("D"); } - egovPopupManageService.resetSubMainVOSort(mainzoneVO); + egovPopupManageService.resetMainVOSort(mainzoneVO); + }else if("mainPopup".equals(fileVO.getMenuName())) { // 메인팝업 새글 + egovPopupManageService.updateMainPopup(mainPopupVO); + if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 + mainzoneVO.setSortOver("D"); + } + egovPopupManageService.resetMainPopup(mainPopupVO); + }else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼 egovPopupManageService.updatePopupzone(popupzoneVO); if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 @@ -575,7 +602,8 @@ public class FmsFileController { } } modelAndView.addObject("result", "success"); - }catch (Exception e) { + }catch (Exception e) { + e.printStackTrace(); modelAndView.addObject("result", "fail"); } return modelAndView; diff --git a/src/main/java/itn/com/uss/ion/pwm/service/EgovPopupManageService.java b/src/main/java/itn/com/uss/ion/pwm/service/EgovPopupManageService.java index ddbf72eb..a1f53f6b 100644 --- a/src/main/java/itn/com/uss/ion/pwm/service/EgovPopupManageService.java +++ b/src/main/java/itn/com/uss/ion/pwm/service/EgovPopupManageService.java @@ -3,6 +3,8 @@ package itn.com.uss.ion.pwm.service; import java.util.List; import java.util.Map; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; + /** * 개요 * - 팝업창에 대한 Service Interface를 정의한다. @@ -167,4 +169,11 @@ public interface EgovPopupManageService { //사용자 메인화면 롤링 배너 이미지 조회 public List selectMainzoneListRolling() throws Exception; + public void insertMainPopup(MainPopupVO mainPopupVO); + + public void resetMainPopup(MainPopupVO mainPopupVO) throws Exception; + + public void updateMainPopup(MainPopupVO mainPopupVO) throws Exception; + + } \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java b/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java index d273c689..4107d68b 100644 --- a/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java +++ b/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java @@ -1,9 +1,12 @@ package itn.com.uss.ion.pwm.service.impl; import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Comparator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.stream.IntStream; import javax.annotation.Resource; @@ -12,6 +15,8 @@ import org.springframework.stereotype.Service; import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; import egovframework.rte.fdl.idgnr.EgovIdGnrService; import egovframework.rte.psl.dataaccess.util.EgovMap; +import itn.com.uss.ion.bnr.pop.service.MainPopupLinkVO; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; import itn.com.uss.ion.pwm.service.EgovPopupManageService; import itn.com.uss.ion.pwm.service.MainzoneVO; import itn.com.uss.ion.pwm.service.PopupManageVO; @@ -244,6 +249,10 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen public void insertSubMainzone(MainzoneVO mainzoneVO) throws Exception { dao.insertSubMainzone(mainzoneVO); } + @Override + public void resetMainPopup(MainPopupVO mainPopupVO) throws Exception { + dao.resetMainPopup(mainPopupVO); + } @Override public void resetMainSort(MainzoneVO mainzoneVO) throws Exception { @@ -305,6 +314,7 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen dao.updateSubMainzone(mainzoneVO); } + //사용자 메인화면 롤링 배너 이미지 조회 @Override public List selectMainzoneListRolling() throws Exception{ @@ -371,4 +381,47 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen public void deleteSocial(String id) throws Exception { dao.deleteSocial(id); } + + @Override + public void insertMainPopup(MainPopupVO mainPopupVO) { + dao.insertMainPopup(mainPopupVO); + + List mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); + + + mainPopupLinkListVO.stream().forEach(t-> System.out.println(t.toString())); + + + dao.insertMainPopupLinkInfo(mainPopupLinkListVO); + } + + @Override + public void updateMainPopup(MainPopupVO mainPopupVO) throws Exception { + + dao.updateMainPopup(mainPopupVO); + + List mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); + + dao.deleteMainPopupLinkInfo(mainPopupVO.getPopId()); + + dao.insertMainPopupLinkInfo(mainPopupLinkListVO); + + + } + + private List getMainPopupLinkList(MainPopupVO mainPopupVO) { + + List mainPopupLinkListVO = mainPopupVO.getMainPopupLinkList(); + + // 기존 sort 값을 숫자로 변환하여 오름차순 정렬 + mainPopupLinkListVO.sort(Comparator.comparingInt(vo -> vo.getSort())); + // 2. 정렬된 상태에서 sort 값을 연속적인 숫자로 변경 (1, 2, 3, ...) + IntStream.range(0, mainPopupLinkListVO.size()) + .forEach(i -> mainPopupLinkListVO.get(i).setSort(i + 1)); + + mainPopupLinkListVO.stream().forEach(t-> t.setPopId(mainPopupVO.getPopId())); + return mainPopupLinkListVO; + } + + } \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/pwm/service/impl/PopupManageDAO.java b/src/main/java/itn/com/uss/ion/pwm/service/impl/PopupManageDAO.java index a47099ee..4e663210 100644 --- a/src/main/java/itn/com/uss/ion/pwm/service/impl/PopupManageDAO.java +++ b/src/main/java/itn/com/uss/ion/pwm/service/impl/PopupManageDAO.java @@ -5,6 +5,8 @@ import org.springframework.stereotype.Repository; import egovframework.rte.psl.dataaccess.util.EgovMap; import itn.com.cmm.service.impl.EgovComAbstractDAO; +import itn.com.uss.ion.bnr.pop.service.MainPopupLinkVO; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; import itn.com.uss.ion.pwm.service.MainzoneVO; import itn.com.uss.ion.pwm.service.PopupManageVO; import itn.com.uss.ion.pwm.service.PopupzoneVO; @@ -280,4 +282,30 @@ public class PopupManageDAO extends EgovComAbstractDAO { public void deleteSocial(String id) throws Exception{ delete("SocialManage.deleteSocial", id); } + + public void insertMainPopup(MainPopupVO mainPopupVO) { + insert("MainzoneManage.insertMainPopup", mainPopupVO); + } + + public void insertMainPopupLinkInfo(List mainPopupLinkListVO) { + insert("MainzoneManage.insertMainPopupLinkInfo", mainPopupLinkListVO); + } + + public void resetMainPopup(MainPopupVO mainPopupVO) { +// update("MainzoneManage.resetSubMainVOSort", mainzoneVO); + insert("MainzoneManage.resetMainPopup", mainPopupVO); + } + + public void updateMainPopup(MainPopupVO mainPopupVO) throws Exception{ + update("MainzoneManage.updateMainPopup", mainPopupVO); + } + + public void updateMainPopupLinkInfo(MainPopupLinkVO mainPopupLinkVO) { + update("MainzoneManage.updateMainPopupLinkInfo", mainPopupLinkVO); + + } + + public void deleteMainPopupLinkInfo(String popId) { + delete("MainzoneManage.deleteMainPopupLinkInfo", popId); + } } \ No newline at end of file diff --git a/src/main/resources/egovframework/spring/com/context-idgen.xml b/src/main/resources/egovframework/spring/com/context-idgen.xml index 63c84f06..736abf18 100644 --- a/src/main/resources/egovframework/spring/com/context-idgen.xml +++ b/src/main/resources/egovframework/spring/com/context-idgen.xml @@ -2020,6 +2020,23 @@ + + + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/let/uss/pwm/PopupManage_SQL_Mysql.xml b/src/main/resources/egovframework/sqlmap/let/uss/pwm/PopupManage_SQL_Mysql.xml index f497d22e..1fd5bf05 100644 --- a/src/main/resources/egovframework/sqlmap/let/uss/pwm/PopupManage_SQL_Mysql.xml +++ b/src/main/resources/egovframework/sqlmap/let/uss/pwm/PopupManage_SQL_Mysql.xml @@ -12,6 +12,10 @@ + + + + @@ -653,6 +657,8 @@ ) + + UPDATE MAINZONE A , (SELECT ROW_NUMBER() OVER(ORDER BY SORT) AS SORT1 , MAZ_ID FROM MAINZONE WHERE 1=1 @@ -837,6 +843,27 @@ WHERE A.MAZ_ID = B.MAZ_ID + + UPDATE MAIN_POPUP A , + ( + SELECT ROW_NUMBER() OVER + ( + ORDER BY SORT + + , MODDT ASC + + + , MODDT DESC + + ) AS SORT1 , POP_ID + FROM MAIN_POPUP + WHERE 1=1 + ORDER BY SORT1 + ) B + SET A.SORT = B.SORT1 + WHERE A.POP_ID = B.POP_ID + + + + + INSERT INTO MAIN_POPUP ( + POP_ID + , CONTENT + , SORT + , DEL + , MAINZONE_IMAGE_FILE + , MAINZONE_IMAGE + , REGDT + , MODDT + , POP_NM + , USE_YN + , REGISTER_ID + , DEVICETYPE + , NTCE_BGNDE + , NTCE_ENDDE + ) VALUES ( + #popId# + , #content# + , #sort# + , #del# + , #mainzoneImageFile# + , #mainzoneImage# + , now() + , now() + , #popNm# + , #useYn# + , #registerId# + , #devicetype# + , #ntceBgnde# + , #ntceEndde# + ) + + + + INSERT INTO MAIN_POPUP_LINK ( + POP_ID + , MLINK + , COORDS + , SORT + ) + VALUES + + ( + #[].popId# + , #[].mlink# + , #[].coords# + , #[].sort# + ) + + + + + + + + UPDATE MAIN_POPUP + SET + CONTENT = #content#, + SORT = #sort#, + DEL = #del#, + MAINZONE_IMAGE_FILE = #mainzoneImageFile#, + MAINZONE_IMAGE = #mainzoneImage#, + MODDT = now(), + POP_NM = #popNm#, + USE_YN = #useYn#, + + DEVICETYPE = #deviceType# , + + NTCE_BGNDE = #ntceBgnde#, + NTCE_ENDDE = #ntceEndde# + WHERE POP_ID = #popId# + + + + UPDATE MAIN_POPUP_LINK + SET + MLINK = #mlink# + , COORDS = #coords# + , SORT = #sort# + WHERE POP_ID = #popId# + + + + + + DELETE FROM MAIN_POPUP_LINK + WHERE POP_ID = #popId# + + + \ No newline at end of file From 6d8186d38b9970a3b642181c89ee67511ddf6b01 Mon Sep 17 00:00:00 2001 From: "hehihoho3@gmail.com" Date: Fri, 28 Feb 2025 13:22:26 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=EB=A9=94=EC=9D=B8=20=ED=8C=9D=EC=97=85=20?= =?UTF-8?q?=EC=BA=90=EC=8B=9C=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=99=84?= =?UTF-8?q?=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/EgovPopupManageServiceImpl.java | 24 +- src/main/java/itn/web/MainController.java | 16 +- .../webapp/WEB-INF/jsp/web/main/mainPage.jsp | 527 ++++++------------ 3 files changed, 201 insertions(+), 366 deletions(-) diff --git a/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java b/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java index 4107d68b..8e224fb7 100644 --- a/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java +++ b/src/main/java/itn/com/uss/ion/pwm/service/impl/EgovPopupManageServiceImpl.java @@ -10,6 +10,7 @@ import java.util.stream.IntStream; import javax.annotation.Resource; +import org.apache.commons.collections4.CollectionUtils; import org.springframework.stereotype.Service; import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; @@ -386,13 +387,14 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen public void insertMainPopup(MainPopupVO mainPopupVO) { dao.insertMainPopup(mainPopupVO); - List mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); - - mainPopupLinkListVO.stream().forEach(t-> System.out.println(t.toString())); - - - dao.insertMainPopupLinkInfo(mainPopupLinkListVO); + + if(CollectionUtils.isNotEmpty(mainPopupVO.getMainPopupLinkList())) { + + List mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); +// mainPopupLinkListVO.stream().forEach(t-> System.out.println(t.toString())); + dao.insertMainPopupLinkInfo(mainPopupLinkListVO); + } } @Override @@ -400,11 +402,15 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen dao.updateMainPopup(mainPopupVO); - List mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); - dao.deleteMainPopupLinkInfo(mainPopupVO.getPopId()); + if(CollectionUtils.isNotEmpty(mainPopupVO.getMainPopupLinkList())) { - dao.insertMainPopupLinkInfo(mainPopupLinkListVO); + List mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO); + + dao.deleteMainPopupLinkInfo(mainPopupVO.getPopId()); + + dao.insertMainPopupLinkInfo(mainPopupLinkListVO); + } } diff --git a/src/main/java/itn/web/MainController.java b/src/main/java/itn/web/MainController.java index 4f010818..cfaf8028 100644 --- a/src/main/java/itn/web/MainController.java +++ b/src/main/java/itn/web/MainController.java @@ -78,6 +78,8 @@ import itn.com.cmm.service.EgovFileMngUtil; import itn.com.cmm.service.FileVO; import itn.com.cmm.util.StringUtil; import itn.com.cmm.util.WebUtil; +import itn.com.uss.ion.bnr.pop.service.MainPopupManageService; +import itn.com.uss.ion.bnr.pop.service.MainPopupVO; import itn.com.uss.ion.bnr.service.BannerVO; import itn.com.uss.ion.bnr.service.EgovBannerService; import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; @@ -264,10 +266,13 @@ public class MainController { @Resource(name = "mjonCandidateService") private MjonCandidateService mjonCandidateService; - /** EgovPopupManageService */ @Resource(name = "subMainZoneManageService") private SubMainZoneManageService subMainZoneManageService; + /** 메인팝업 service */ + @Resource(name = "mainPopupManageService") + private MainPopupManageService mainPopupManageService; + @Value("#{globalSettings['Globals.email.host']}") private String Globals_email_host; @@ -701,6 +706,15 @@ public class MainController { } + + {//팝업 롤링 이미지 불러오기 + + List resultMainPopupList = mainPopupManageService.selectMainPopupListRolling(); + model.addAttribute("mainPopupList", resultMainPopupList); + System.out.println("===================mainPopupList"); + + } + return "web/main/mainPage"; } diff --git a/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp b/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp index a3178cab..8ea353ef 100644 --- a/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp @@ -13,116 +13,18 @@ + + + + + + + + + + + + + +
+ + +
+ +
+ + + + +
+ +
+ + + +
+ +
+ + + + + + +
+
+

QUICK
MENU

+

QUICK

+ + +
+
+ + + + + + +
+
+ +
+ +
+
+

발송결과 상세

+ +
+ + + +
+ +
+ +
+
+
+

발송정보

+

+
+
+
+
발송일시
+
2024-07-18 15:25
+
+
+
등록일시
+
2024-07-10 15:25
+
+
+
형태
+
친구톡
+
+
+
발송건수
+
100
+
+
+
채널정보
+
채널명(@채널ID)
+
+
+
진행상황 + +
+
예약
+
100,000건35분 간격
+
+ +
+ + +
+ +
+
+
+
+
발송요금(합계)
+
78,100
+ +
+
+
· 카카오톡
+
8,100
+
+
+
· 대체문자
+
8,100
+
+
+
+
+ + +
+
+
+

상세결과

+

+
+
+
+
+
전체건수
+
300,101
+
+
+
+
+
대기건수
+
300,000건(100%)
+
+
+
+
+
+
+
성공건수(카카오톡)
+
0건(0%)
+
+
+
+
+
실패건수(카카오톡)
+
1건(100%)
+
+
+
+
+
+
+
성공건수(대체문자)
+
0건(0%)
+
+
+
+
+
실패건수(대체문자)
+
1건(100%)
+
+
+
+

* 전체건수를 클릭하면 받는 사람 상세정보를 확인하실 수 있습니다.

+
+
+ + +
+ + + +
+
+ +
+
    +
  • +
  • +
+
+ + + +
+ +
+
+

@munjaon

+ +
+
+ 알림톡 도착 +
+
+ + + +

강조표기 보조문구 미리보기

+

타이틀 미리보기

+

내용미리보기

+

부가정보내용

+

채널 추가 안내 메시지 미리보기

+ + + + + + + + + +
+
+ +
+

※ 단말기 설정에 따라 다르게 보일 수 있습니다

+

+ +
+ + + +
+
+
+

문자내용

+ + + + +
+ +
+

(광고)

+

내용을 입력해주세요.

+

+

무료 거부 080-0000-0000

+
+
+ +
+
+

※ 단말기 설정에 따라 다르게 보일 수 있습니다

+
+ +
+
+ +
+ + + + +
+ +
+ + +
+
+ +
+
+ + +
+ + +
+ + + + \ No newline at end of file diff --git a/src/main/webapp/publish/textingmsg_2025_list.html b/src/main/webapp/publish/textingmsg_2025_list.html index c4c40425..17728b10 100644 --- a/src/main/webapp/publish/textingmsg_2025_list.html +++ b/src/main/webapp/publish/textingmsg_2025_list.html @@ -220,8 +220,7 @@
  • -
  • +
@@ -613,7 +612,6 @@

- 최대 3개월간의 발송내역만 확인하실 수 있습니다.

- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.

-

- 단문문자는 최대 24시간, 장문 및 그림문자는 최대 72시간까지 결과값이 수신되지 않은 경우 실패(비과금) 처리됩니다.

@@ -638,11 +636,11 @@
- +
- +
@@ -728,44 +726,24 @@
-
+
  • -
  • -
  • -
  • +
- -
- -
-
-
[대기]
-
발송은 성공하였으며, 수신자측 통신사로부터 수신여부를 - 확인중인 상태
-
[성공]
-
발송 및 수신이 완료된 상태
-
[실패]
-
결번, 일시정지, 전화번호 오류 등의 사유로 발송이 - 불가한 상태
-
[예약]
-
예약 발송 대기 상태
-
-
-
- +

총 발송건수 171

-

※ 예약문자 발송취소는 예약 발송시간 기준 5분 전까지만 가능

+

※ 예약 발송취소는 예약 발송시간 기준 5분 전까지만 가능

- 카카오톡 결과 - 대체문자 결과 - 금액 - 예약관리 + 카카오톡결과 + 대체문자결과 + 금액(원) + 진행상황 대기 성공 실패 - 예약 성공 실패 + - + - + 2024-01-09 17:42 - 단문 - 내용을 클릭하면 상세보기 화면으로 이동합니다. - 125,895 + 알림톡 + + + + 0

0

@@ -850,40 +833,123 @@

0

-

0

+

0

-

125,895

- - - 8,485,258원 + 8,485,258

- + + + + + + + 2024-01-09 17:42 + 친구톡 + + + + 0 + +

0

+ + +

0

+ + +

0

+ + +

0

+ + +

0

+ + - + 예약취소 + + + + + + + 2024-01-09 17:42 + 친구톡 + + + + 458,002 + +

1

+ + +

458,000

+ + +

1

+ + +

1

+ + +

1

+ + 12,580 + 진행중 + + + + + + + 2024-01-09 17:42 + 친구톡 + + + + 458,002 + +

1

+ + +

458,000

+ + +

1

+ + +

1

+ + +

1

+ + 12,580 + 완료 + -
+
+
-
- - - - +
+
- - +
-
- +