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 new file mode 100644 index 00000000..bff084df --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java @@ -0,0 +1,37 @@ +package itn.com.uss.ion.bnr.pop.service; + +import java.util.List; +import java.util.Map; + +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; + +/** + * 개요 + * - 팝업창에 대한 Service Interface를 정의한다. + * + * 상세내용 + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. + * - 팝업창의 조회기능은 목록조회, 상세조회, 팝업사용자 보기로 구분된다. + * @author 이창원 + * @version 1.0 + * @created 05-8-2009 오후 2:19:58 + */ +public interface MainPopupManageService { + + public List selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception; + + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception; + + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception; + + public List selectSubMainzoneListRolling(); + + public void deleteSubMainzone(String id); + + public void resetSubMainVOSort(MainzoneVO mainzoneVO); + +} \ 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 new file mode 100644 index 00000000..dd8fd7ee --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java @@ -0,0 +1,309 @@ +package itn.com.uss.ion.bnr.pop.service.impl; +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; + +/** + * 개요 + * - 팝업창에 대한 DAO를 정의한다. + * + * 상세내용 + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. + * @author 이창원 + * @version 1.0 + * @created 05-8-2009 오후 2:21:04 + */ +@Repository("mainPopupManageDAO") +public class MainPopupManageDAO extends EgovComAbstractDAO { + + + /** + * 메인이미지 목록을 조회한다. + * @return 글 목록 + * @exception Exception + */ + public List selectSubMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ + return list("subMainzoneManage.selectSubMainzoneList", mainzoneVO); + } + + + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ + return (int)select("subMainzoneManage.selectSubMainzoneCount", mainzoneVO); + } + + + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception{ + return (MainzoneVO)select("subMainzoneManage.selectSubMainzoneVO", mazId); + } + + + public List selectSubMainzoneListRolling() { + return (List) list("subMainzoneManage.selectSubMainzoneListRolling"); + } + + + public void deleteSubMainzone(String mazId) { + delete("subMainzoneManage.deleteSubMainzone", mazId); + } + + + public void resetSubMainVOSort(MainzoneVO mainzoneVO) { + update("subMainzoneManage.resetSubMainVOSort", mainzoneVO); + } + + + +// +// 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 new file mode 100644 index 00000000..e4331651 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java @@ -0,0 +1,72 @@ +package itn.com.uss.ion.bnr.pop.service.impl; + +import java.util.List; + +import javax.annotation.Resource; + +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; + +/** + * 개요 + * - 팝업창에 대한 ServiceImpl을 정의한다. + * + * 상세내용 + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. + * @author 이창원 + * @version 1.0 + * @created 05-8-2009 오후 2:19:58 + */ + +@Service("mainPopupManageService") +public class MainPopupManageServiceImpl extends EgovAbstractServiceImpl implements MainPopupManageService { + + @Resource(name = "mainPopupManageDAO") + public MainPopupManageDAO dao; + + + @Resource(name = "egovPopupManageIdGnrService") + private EgovIdGnrService idgenService; + + @Override + public List selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception { + return dao.selectSubMainzoneList(mainzoneVO); + } + + @Override + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception { + return dao.selectSubMainzoneCount(mainzoneVO); + } + + + @Override + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception { + MainzoneVO resultVO = dao.selectSubMainzoneVO(mazId); + if (resultVO == null) + throw processException("info.nodata.msg"); + return resultVO; + } + + @Override + public List selectSubMainzoneListRolling() { + return dao.selectSubMainzoneListRolling(); + } + + @Override + public void deleteSubMainzone(String id) { + dao.deleteSubMainzone(id); + } + + @Override + public void resetSubMainVOSort(MainzoneVO mainzoneVO) { + dao.resetSubMainVOSort(mainzoneVO); + + } + + +} \ 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 new file mode 100644 index 00000000..8c9fab97 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java @@ -0,0 +1,306 @@ +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/bnr/sub/service/SubMainZoneManageService.java b/src/main/java/itn/com/uss/ion/bnr/sub/service/SubMainZoneManageService.java new file mode 100644 index 00000000..9eda3580 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/sub/service/SubMainZoneManageService.java @@ -0,0 +1,37 @@ +package itn.com.uss.ion.bnr.sub.service; + +import java.util.List; +import java.util.Map; + +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; + +/** + * 개요 + * - 팝업창에 대한 Service Interface를 정의한다. + * + * 상세내용 + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. + * - 팝업창의 조회기능은 목록조회, 상세조회, 팝업사용자 보기로 구분된다. + * @author 이창원 + * @version 1.0 + * @created 05-8-2009 오후 2:19:58 + */ +public interface SubMainZoneManageService { + + public List selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception; + + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception; + + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception; + + public List selectSubMainzoneListRolling(); + + public void deleteSubMainzone(String id); + + public void resetSubMainVOSort(MainzoneVO mainzoneVO); + +} \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/bnr/sub/service/impl/SubMainZoneManageDAO.java b/src/main/java/itn/com/uss/ion/bnr/sub/service/impl/SubMainZoneManageDAO.java new file mode 100644 index 00000000..8cf5d9e6 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/sub/service/impl/SubMainZoneManageDAO.java @@ -0,0 +1,309 @@ +package itn.com.uss.ion.bnr.sub.service.impl; +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; + +/** + * 개요 + * - 팝업창에 대한 DAO를 정의한다. + * + * 상세내용 + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. + * @author 이창원 + * @version 1.0 + * @created 05-8-2009 오후 2:21:04 + */ +@Repository("subMainZoneManageDAO") +public class SubMainZoneManageDAO extends EgovComAbstractDAO { + + + /** + * 메인이미지 목록을 조회한다. + * @return 글 목록 + * @exception Exception + */ + public List selectSubMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ + return list("subMainzoneManage.selectSubMainzoneList", mainzoneVO); + } + + + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ + return (int)select("subMainzoneManage.selectSubMainzoneCount", mainzoneVO); + } + + + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception{ + return (MainzoneVO)select("subMainzoneManage.selectSubMainzoneVO", mazId); + } + + + public List selectSubMainzoneListRolling() { + return (List) list("subMainzoneManage.selectSubMainzoneListRolling"); + } + + + public void deleteSubMainzone(String mazId) { + delete("subMainzoneManage.deleteSubMainzone", mazId); + } + + + public void resetSubMainVOSort(MainzoneVO mainzoneVO) { + update("subMainzoneManage.resetSubMainVOSort", mainzoneVO); + } + + + +// +// 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/sub/service/impl/SubMainZoneManageServiceImpl.java b/src/main/java/itn/com/uss/ion/bnr/sub/service/impl/SubMainZoneManageServiceImpl.java new file mode 100644 index 00000000..847985e3 --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/sub/service/impl/SubMainZoneManageServiceImpl.java @@ -0,0 +1,85 @@ +package itn.com.uss.ion.bnr.sub.service.impl; + +import java.math.BigDecimal; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +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.sub.service.SubMainZoneManageService; +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.pwm.service.impl.PopupManageDAO; +import itn.com.uss.ion.pwm.service.impl.PopupzoneManageDAO; + +/** + * 개요 + * - 팝업창에 대한 ServiceImpl을 정의한다. + * + * 상세내용 + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. + * @author 이창원 + * @version 1.0 + * @created 05-8-2009 오후 2:19:58 + */ + +@Service("subMainZoneManageService") +public class SubMainZoneManageServiceImpl extends EgovAbstractServiceImpl implements SubMainZoneManageService { + + @Resource(name = "subMainZoneManageDAO") + public SubMainZoneManageDAO dao; + + /** PopupzoneManageDAO */ + @Resource(name="popupzoneManageDAO") + private PopupzoneManageDAO popupzoneManageDAO; + + @Resource(name = "egovPopupManageIdGnrService") + private EgovIdGnrService idgenService; + + @Override + public List selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception { + return dao.selectSubMainzoneList(mainzoneVO); + } + + @Override + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception { + return dao.selectSubMainzoneCount(mainzoneVO); + } + + + @Override + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception { + MainzoneVO resultVO = dao.selectSubMainzoneVO(mazId); + if (resultVO == null) + throw processException("info.nodata.msg"); + return resultVO; + } + + @Override + public List selectSubMainzoneListRolling() { + return dao.selectSubMainzoneListRolling(); + } + + @Override + public void deleteSubMainzone(String id) { + dao.deleteSubMainzone(id); + } + + @Override + public void resetSubMainVOSort(MainzoneVO mainzoneVO) { + dao.resetSubMainVOSort(mainzoneVO); + + } + + +} \ No newline at end of file diff --git a/src/main/java/itn/com/uss/ion/bnr/sub/web/SubMainZoneManageController.java b/src/main/java/itn/com/uss/ion/bnr/sub/web/SubMainZoneManageController.java new file mode 100644 index 00000000..d926563e --- /dev/null +++ b/src/main/java/itn/com/uss/ion/bnr/sub/web/SubMainZoneManageController.java @@ -0,0 +1,308 @@ +package itn.com.uss.ion.bnr.sub.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 SubMainZoneManageController { + + private static final Logger LOGGER = LoggerFactory.getLogger(SubMainZoneManageController.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/sub/subMainZoneList.do") +// @RequestMapping(value="/uss/ion/pwm/mainzoneList.do") + 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/sub/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/sub/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; + } + +} \ 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 a84fdef4..c3646d09 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 @@ -112,6 +112,9 @@ public class FmsFileController { @Resource(name = "egovMainZoneIdGnrService") private EgovIdGnrService idgenServiceMain; + @Resource(name = "egovSubMainZoneIdGnrService") + private EgovIdGnrService idgenServiceSubMain; + @Resource(name = "egovBannerService") private EgovBannerService egovBannerService; @@ -414,6 +417,8 @@ public class FmsFileController { String KeyStr = "FMS_"; if("mainzone".equals(fileVO.getMenuName())) { //메인비주얼 KeyStr = "MAZ_"; + }else if("subMainzone".equals(fileVO.getMenuName())) { //메인비주얼 + KeyStr = "SMAZ_"; }else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼 KeyStr = "POZ_"; }else if("banner".equals(fileVO.getMenuName())) { //매뉴별 비주얼 @@ -477,6 +482,13 @@ public class FmsFileController { egovPopupManageService.insertMainzone(mainzoneVO); mainzoneVO.setSortOver("D"); //앞쪽에 넣음 egovPopupManageService.resetMainVOSort(mainzoneVO); + }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())) { //매뉴별 비주얼 String pozId = idgenService.getNextStringId(); popupzoneVO.setPozId(pozId); @@ -521,6 +533,12 @@ public class FmsFileController { mainzoneVO.setSortOver("D"); } egovPopupManageService.resetMainVOSort(mainzoneVO); + }else if("subMainzone".equals(fileVO.getMenuName())) { //메인비주얼 수정 + egovPopupManageService.updateSubMainzone(mainzoneVO); + if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 + mainzoneVO.setSortOver("D"); + } + egovPopupManageService.resetSubMainVOSort(mainzoneVO); }else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼 egovPopupManageService.updatePopupzone(popupzoneVO); if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경 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 6e3eabdb..ddbf72eb 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 @@ -123,6 +123,8 @@ public interface EgovPopupManageService { public int getMainMaxSort() throws Exception; public void insertMainzone(MainzoneVO mainzoneVO) throws Exception; + + public void insertSubMainzone(MainzoneVO mainzoneVO) throws Exception; public void resetMainSort(MainzoneVO mainzoneVO) throws Exception; @@ -137,6 +139,8 @@ public interface EgovPopupManageService { public void updateMainSortDown(SortVO sortVO) throws Exception; public void updateMainzone(MainzoneVO mainzoneVO) throws Exception; + + public void updateSubMainzone(MainzoneVO mainzoneVO) throws Exception; public int selectPopupzoneListTotCnt(PopupzoneVO popupzoneVo) throws Exception; @@ -145,6 +149,8 @@ public interface EgovPopupManageService { public void resetVOSort(PopupzoneVO popupzoneVO) throws Exception; public void resetMainVOSort(MainzoneVO mainzoneVO) throws Exception; + + public void resetSubMainVOSort(MainzoneVO mainzoneVO) throws Exception; public List selectSocialList(SocialVO socialVO) throws Exception; diff --git a/src/main/java/itn/com/uss/ion/pwm/service/MainzoneVO.java b/src/main/java/itn/com/uss/ion/pwm/service/MainzoneVO.java index 1afdcb34..3e065cdd 100644 --- a/src/main/java/itn/com/uss/ion/pwm/service/MainzoneVO.java +++ b/src/main/java/itn/com/uss/ion/pwm/service/MainzoneVO.java @@ -18,6 +18,8 @@ package itn.com.uss.ion.pwm.service; import java.io.Serializable; import itn.com.cmm.ComDefaultVO; +import lombok.Getter; +import lombok.Setter; /** * @Class Name : MainzoneVO.java @@ -35,6 +37,8 @@ import itn.com.cmm.ComDefaultVO; * * */ +@Getter +@Setter public class MainzoneVO extends ComDefaultVO implements Serializable { @@ -95,190 +99,8 @@ public class MainzoneVO extends ComDefaultVO implements Serializable { private String ntceEnddeHH = ""; private String ntceEnddeMM = ""; - - public int getSeq() { - return seq; - } - - public void setSeq(int seq) { - this.seq = seq; - } - - public String getUpfile() { - return upfile; - } - - public void setUpfile(String upfile) { - this.upfile = upfile; - } - - public String getUpfileUrl() { - return upfileUrl; - } - - public void setUpfileUrl(String upfileUrl) { - this.upfileUrl = upfileUrl; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - public String getMlink() { - return mlink; - } - - public void setMlink(String mlink) { - this.mlink = mlink; - } - - public String getIstarget() { - return istarget; - } - - public void setIstarget(String istarget) { - this.istarget = istarget; - } - - public String getDel() { - return del; - } - - public void setDel(String del) { - this.del = del; - } - - public int getSort() { - return sort; - } - - public void setSort(int sort) { - this.sort = sort; - } - - public String getRegdt() { - return regdt; - } - - public void setRegdt(String regdt) { - this.regdt = regdt; - } - - public String getMainzoneImage() { - return mainzoneImage; - } - - public void setMainzoneImage(String mainzoneImage) { - this.mainzoneImage = mainzoneImage; - } - - public String getMainzoneImageFile() { - return mainzoneImageFile; - } - - public void setMainzoneImageFile(String mainzoneImageFile) { - this.mainzoneImageFile = mainzoneImageFile; - } - - public String getMazId() { - return mazId; - } - - public void setMazId(String mazId) { - this.mazId = mazId; - } - - public String getMazNm() { - return mazNm; - } - - public void setMazNm(String mazNm) { - this.mazNm = mazNm; - } - - public String getUseYn() { - return useYn; - } - - public void setUseYn(String useYn) { - this.useYn = useYn; - } - - public String getRegisterId() { - return registerId; - } - - public void setRegisterId(String registerId) { - this.registerId = registerId; - } - - public String getModdt() { - return moddt; - } - - public void setModdt(String moddt) { - this.moddt = moddt; - } - - public String getDeviceType() { - return deviceType; - } - - public void setDeviceType(String deviceType) { - this.deviceType = deviceType; - } - - public String getNtceBgnde() { - return ntceBgnde; - } - - public void setNtceBgnde(String ntceBgnde) { - this.ntceBgnde = ntceBgnde; - } - - public String getNtceEndde() { - return ntceEndde; - } - - public void setNtceEndde(String ntceEndde) { - this.ntceEndde = ntceEndde; - } - - public String getNtceBgndeHH() { - return ntceBgndeHH; - } - - public void setNtceBgndeHH(String ntceBgndeHH) { - this.ntceBgndeHH = ntceBgndeHH; - } - - public String getNtceBgndeMM() { - return ntceBgndeMM; - } - - public void setNtceBgndeMM(String ntceBgndeMM) { - this.ntceBgndeMM = ntceBgndeMM; - } - - public String getNtceEnddeHH() { - return ntceEnddeHH; - } - - public void setNtceEnddeHH(String ntceEnddeHH) { - this.ntceEnddeHH = ntceEnddeHH; - } - - public String getNtceEnddeMM() { - return ntceEnddeMM; - } - - public void setNtceEnddeMM(String ntceEnddeMM) { - this.ntceEnddeMM = ntceEnddeMM; - } - + + private String topTxt = ""; + private String lowTxt = ""; } 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 49edb2fc..d273c689 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 @@ -239,6 +239,11 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen public void insertMainzone(MainzoneVO mainzoneVO) throws Exception { dao.insertMainzone(mainzoneVO); } + + @Override + public void insertSubMainzone(MainzoneVO mainzoneVO) throws Exception { + dao.insertSubMainzone(mainzoneVO); + } @Override public void resetMainSort(MainzoneVO mainzoneVO) throws Exception { @@ -295,6 +300,11 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen dao.updateMainzone(mainzoneVO); } + @Override + public void updateSubMainzone(MainzoneVO mainzoneVO) throws Exception { + dao.updateSubMainzone(mainzoneVO); + } + //사용자 메인화면 롤링 배너 이미지 조회 @Override public List selectMainzoneListRolling() throws Exception{ @@ -324,6 +334,12 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen dao.resetMainVOSort(mainzoneVO); } + + @Override + public void resetSubMainVOSort(MainzoneVO mainzoneVO) throws Exception { + dao.resetSubMainVOSort(mainzoneVO); + + } @Override public List selectSocialList(SocialVO socialVO) throws Exception { 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 6b5e31a6..a47099ee 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 @@ -193,6 +193,10 @@ public class PopupManageDAO extends EgovComAbstractDAO { public void insertMainzone(MainzoneVO mainzoneVO) throws Exception{ insert("MainzoneManage.insertMainzone", mainzoneVO); } + + public void insertSubMainzone(MainzoneVO mainzoneVO) throws Exception{ + insert("MainzoneManage.insertSubMainzone", mainzoneVO); + } public void resetMainSort(MainzoneVO mainzoneVO) throws Exception{ insert("MainzoneManage.resetMainSort", mainzoneVO); @@ -223,6 +227,10 @@ public class PopupManageDAO extends EgovComAbstractDAO { update("MainzoneManage.updateMainzone", mainzoneVO); } + public void updateSubMainzone(MainzoneVO mainzoneVO) throws Exception{ + update("MainzoneManage.updateSubMainzone", mainzoneVO); + } + @SuppressWarnings("unchecked") public List selectMainzoneListRolling() throws Exception{ return (List) list("MainzoneManage.selectMainzoneListRolling"); @@ -243,6 +251,10 @@ public class PopupManageDAO extends EgovComAbstractDAO { public void resetMainVOSort(MainzoneVO mainzoneVO) throws Exception{ update("MainzoneManage.resetMainVOSort", mainzoneVO); } + + public void resetSubMainVOSort(MainzoneVO mainzoneVO) throws Exception{ + update("MainzoneManage.resetSubMainVOSort", mainzoneVO); + } @SuppressWarnings("unchecked") public List selectSocialList(SocialVO socialVO) throws Exception{ diff --git a/src/main/java/itn/com/uss/ion/pwm/web/EgovPopupManageController.java b/src/main/java/itn/com/uss/ion/pwm/web/EgovPopupManageController.java index 872ddf51..d0b012fa 100644 --- a/src/main/java/itn/com/uss/ion/pwm/web/EgovPopupManageController.java +++ b/src/main/java/itn/com/uss/ion/pwm/web/EgovPopupManageController.java @@ -845,6 +845,8 @@ public class EgovPopupManageController { HttpServletRequest request, Model model, HttpSession session) throws Exception { + System.out.println("??????"); + MainzoneVO mainzoneVO = new MainzoneVO(); if("Modify".equals((String)commandMap.get("pageType"))){ //수정 String mazId = (String)commandMap.get("selectedId"); @@ -896,7 +898,8 @@ public class EgovPopupManageController { //model.addAttribute("sortList", sortList); model.addAttribute("mainzoneVO", mainzoneVO); - + + System.out.println("mainzoneVO :: "+ mainzoneVO.toString()); /* 타겟 코드 */ ComDefaultCodeVO vo = new ComDefaultCodeVO(); vo.setCodeId("COM037"); diff --git a/src/main/java/itn/web/MainController.java b/src/main/java/itn/web/MainController.java index 38de9d90..4f010818 100644 --- a/src/main/java/itn/web/MainController.java +++ b/src/main/java/itn/web/MainController.java @@ -80,6 +80,7 @@ import itn.com.cmm.util.StringUtil; import itn.com.cmm.util.WebUtil; 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; import itn.com.uss.ion.cnf.service.MetaTagManageService; import itn.com.uss.ion.cyb.service.CyberAlertManageService; import itn.com.uss.ion.cyb.service.CyberAlertManageVO; @@ -262,6 +263,10 @@ public class MainController { @Resource(name = "mjonCandidateService") private MjonCandidateService mjonCandidateService; + + /** EgovPopupManageService */ + @Resource(name = "subMainZoneManageService") + private SubMainZoneManageService subMainZoneManageService; @Value("#{globalSettings['Globals.email.host']}") @@ -689,6 +694,13 @@ public class MainController { } + {//하단 서브메인배너 롤링 이미지 불러오기 + + List resultSubMainzoneList = subMainZoneManageService.selectSubMainzoneListRolling(); + model.addAttribute("subMainzoneList", resultSubMainzoneList); + + } + return "web/main/mainPage"; } diff --git a/src/main/resources/egovframework/spring/com/context-idgen.xml b/src/main/resources/egovframework/spring/com/context-idgen.xml index 29478fda..63c84f06 100644 --- a/src/main/resources/egovframework/spring/com/context-idgen.xml +++ b/src/main/resources/egovframework/spring/com/context-idgen.xml @@ -2002,6 +2002,24 @@ + + + + + + + + + + + + + + + + diff --git a/src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/SubMainZoneManage_SQL_Mysql.xml b/src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/SubMainZoneManage_SQL_Mysql.xml new file mode 100644 index 00000000..e59dd231 --- /dev/null +++ b/src/main/resources/egovframework/sqlmap/let/uss/ion/bnr/SubMainZoneManage_SQL_Mysql.xml @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM SUB_MAINZONE WHERE MAZ_ID=#mazId# + + + + + UPDATE SUB_MAINZONE A , + (SELECT ROW_NUMBER() OVER(ORDER BY SORT + + , MODDT ASC + + + , MODDT DESC + + ) AS SORT1 , MAZ_ID FROM SUB_MAINZONE + WHERE 1=1 + ORDER BY SORT1 + ) B + SET A.SORT = B.SORT1 + WHERE A.MAZ_ID = B.MAZ_ID + + + + \ No newline at end of file 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 a2e2054f..f497d22e 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 @@ -605,6 +605,54 @@ ) + + INSERT INTO SUB_MAINZONE ( + MAZ_ID, + UPFILE, + CONTENT, + MLINK, + ISTARGET, + REGDT, + MODDT, + DEL, + SORT, + MAINZONE_IMAGE, + MAINZONE_IMAGE_FILE, + MAZ_NM, + USE_YN, + + DEVICETYPE, + + REGISTER_ID, + NTCE_BGNDE, + NTCE_ENDDE, + TOP_TXT, + LOW_TXT + ) VALUES ( + #mazId#, + #upfile#, + #content#, + #mlink#, + #istarget#, + now(), + now(), + #del#, + #sort#, + #mainzoneImage#, + #mainzoneImageFile#, + #mazNm#, + #useYn#, + + #deviceType#, + + #registerId#, + #ntceBgnde#, + #ntceEndde#, + #topTxt#, + #lowTxt# + ) + + UPDATE MAINZONE A , (SELECT ROW_NUMBER() OVER(ORDER BY SORT) AS SORT1 , MAZ_ID FROM MAINZONE WHERE 1=1 @@ -690,6 +738,28 @@ WHERE MAZ_ID=#mazId# + + UPDATE SUB_MAINZONE SET + UPFILE=#upfile#, + CONTENT=#content#, + MLINK=#mlink#, + ISTARGET=#istarget#, + SORT=#sort#, + MAINZONE_IMAGE = #mainzoneImage#, + MAINZONE_IMAGE_FILE = #mainzoneImageFile#, + USE_YN = #useYn#, + MAZ_NM = #mazNm# , + + DEVICETYPE = #deviceType# , + + NTCE_BGNDE = #ntceBgnde#, + NTCE_ENDDE = #ntceEndde#, + TOP_TXT = #topTxt#, + LOW_TXT = #lowTxt#, + MODDT = now() + WHERE MAZ_ID=#mazId# + + @@ -914,7 +1001,8 @@ MZ.CONTENT AS content, MZ.SORT AS sort, MZ.MAINZONE_IMAGE_FILE AS mainzoneImageFile, - MZ.MAZ_NM AS mazNm + MZ.MAZ_NM AS mazNm, + MZ.MLINK AS mlink FROM MAINZONE MZ WHERE MZ.NTCE_BGNDE IS NOT NULL AND MZ.NTCE_ENDDE IS NOT NULL diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneList.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneList.jsp new file mode 100644 index 00000000..63dcb960 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneList.jsp @@ -0,0 +1,254 @@ +<%-- + 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"%> +<% + response.setHeader("Cache-Control","no-store"); + response.setHeader("Pragma","no-cache"); + response.setDateHeader("Expires",0); + if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); +%> + + + + + + +메인이미지 관리 + + + + +
+ + + +
+
+
+

서비스안내 배너관리

+

사이트별로 사용자 메인 상단에 적용되는 (하단)비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.

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

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

    ${result.mazNm}

    + + + + + + + + +
    작성자 : ${result.registerId}
    노출순서 : ${result.sort}${result.ntceBgnde} ~ ${result.ntceEndde}
    +
    +
  • +
    +
+ +
+
+
+
+ +
+
+ + +
+ + +
+
    + +
+
+
+ +
+
+
+
+ + +
+
+ + + + +
+ + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp new file mode 100644 index 00000000..8b805b44 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp @@ -0,0 +1,583 @@ +<%-- + 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"%> +<% + response.setHeader("Cache-Control","no-store"); + response.setHeader("Pragma","no-cache"); + response.setDateHeader("Expires",0); + if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); +%> + + + + + + +팝업창관리 관리 + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

서비스안내 배너관리 등록/수정

+

사이트별로 사용자 메인 상단에 적용되는 비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.

+
+ +
+
+

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

+ + + + + + + <%-- + + + --%> + + + + + + + + + + + + + + + + + + <%-- ${mainzoneVO.deviceType eq 'P' or mainzoneVO.deviceType eq '' ? 'checked="checked"' : ''} --%> + + + <%-- ${mainzoneVO.deviceType eq 'M' ? 'checked="checked"' : ''} --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + + + + + + + + + +
메인화면에 보이는 메인 이미지 + + 등록된 메인 이미지가 없습니다. + + + ${mainzoneVO.content}?atchFileId=' width="196" height="237" /> + +
사이트 + +
원본이미지 + +
+
+ + ${mainzoneVO.content}?atchFileId=' style="max-width:300px;padding: 10px;" /> + <%-- ${mainzoneVO.content}?atchFileId=' style="max-width:600px;" /> --%> + +
비주얼명 + +
사용여부 + + +
노출순서 + +
게시기간 + + --" readonly> + + + + <%-- 달력창팝업버튼이미지 --%> + + + + 시 + + + 분 +   ~   + --" readonly> + + + <%-- 달력창팝업버튼이미지 --%> + + + + 시 + + + 분 +
상단텍스트 + +
하단텍스트 + +
링크주소 + +
파일 첨부 +
+ + + + + + + + + + + + + + + +
파일명크기등록일시삭제
+
+ +
+
    +
  • +

    0개 | 0MB

    +
  • +
  • +

    최대 개 | 50MB제한

    +
  • +
+
+
+ + +
+
대체텍스트 + +
*첨부 파일 + + + + + + + + +
최종수정일 + ${mainzoneVO.moddt} +
작성자 + ${mainzoneVO.registerId} +
+
+
+ + + + + + + + +
+
+
+
+
+ + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainZoneModify.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainZoneModify.jsp index 939951cb..135d43bb 100644 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainZoneModify.jsp +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainZoneModify.jsp @@ -37,10 +37,82 @@ + + + + + + + + + + + + + +
+ + + + + + 최저 8.1원 요금안내 + + + + + + + + +
+
+

QUICK
MENU

+

QUICK

+ + +
+ +
+ + + + + +
+ + + +
+ +
+
+
+
+
문자는 이제, 문자온! 선택은 역시 문자온! 문자사이트 선택의 5가지 기준 1. 가격, 속도, 성능, 기능, 보안이 보장되는가? 2. 결제, 정산, 계산서 발행 등 업무가 자동화 되어 있고 편리한가? 3. 최신 IT 기술과 트렌드가 반영되어 있는가? 4. 회원가입 및 발신번호 인증이 쉽고 빠르며, 대량문자를 전송하기에 사용이 편리한가? 5. 매일 문자샘플이 업데이트 되고, CS 및 기술응대가 실시간적으로 이루어지는가?
+
+
+
문자는 이제, 문자온! 단 한번, 국내 최저가! 인생 최저가! 첫결제 단문 7.5원 장문 32원 그림 59원 HELLO SPRING 안녕, 봄 봄꽃축제 SHINING DAY
+
+
+
문자도 보내고! 현금도 챙기는! 문자온만의 특별한 혜택! 결제금액의 2% 포인트 추가 적립! 포인트 1만점 이상 적립 시 현금페이백
+
+
+
다른 사이트에는 없다! 오직 문자온에만 있다! 최고의 디자이너가 직접 제작하는 그림문자 맞춤제작을 통해 나만의 문자를 디자인 해보세요 문자온과 함께 떠나는 유채꽃 여행 봄맞이 여행을 가자!! 문자온투어에서 봄을 맞이하여 준비한 이벤트! 할인된 가격으로 제주도를 떠나보자~ 등산용품 40% 할인 DAY 2028.04.01~04.14 한라산 근처 마운틴샵 박물관 30% 할인 DAY 2028.04.01~04.28 제주 서귀포시 위치 올레길 명소 20% 할인 DAY 2028.04.01~04.21 올레길 명소 곳곳 위치 FRESH FRUITS 매주 봄제철 과일을 신선하게 받아보세요! 봄제철 한라봉 배송기간 2030.3.21-5.21까지 봄음악회 spring concert 2030.03.01~2030.03.10
+
+
+
문자는 이제, 문자온! 선택은 역시 문자온! 문자사이트 선택의 5가지 기준 1. 가격, 속도, 성능, 기능, 보안이 보장되는가? 2. 결제, 정산, 계산서 발행 등 업무가 자동화 되어 있고 편리한가? 3. 최신 IT 기술과 트렌드가 반영되어 있는가? 4. 회원가입 및 발신번호 인증이 쉽고 빠르며, 대량문자를 전송하기에 사용이 편리한가? 5. 매일 문자샘플이 업데이트 되고, CS 및 기술응대가 실시간적으로 이루어지는가?
+
+
+
문자는 이제, 문자온! 단 한번, 국내 최저가! 인생 최저가! 첫결제 단문 7.5원 장문 32원 그림 59원 HELLO SPRING 안녕, 봄 봄꽃축제 SHINING DAY
+
+
+ +
+
+ +
+
+ +
+ +
+
+ + + +
+ + + + + + + + + + +
+
+ + + + + + + + +
+
+

이런 문자 어때요?

+ +
+ +
+ + + + + + + + +
+
+
+
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 싱그러운 봄날 +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플. 향기 가득한 어느 봄날. +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 봄처럼 활짝 꽃봉오리들이 활짝 피어나듯 당신의 입가에도 웃음꽃이 피어나길 +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플. 봄처럼 아름다운 너. +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. HELLO SPRING 안녕, 나의 봄 따뜻한 햇빛에 포근해진 날씨에 마음도 따뜻해집니다. 오늘도 마음속에 봄을 가득 채워보시길 바랍니다. +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플. 봄을 가득담아 그대에게 드립니다. +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 행복한 봄 웃음꽃 피어나는 봄이 왔어요. 따스한 햇살 맞으며 건강하고, 행복한 하루 보내세요. +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플.  Hello Spring. Happy time with you. +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 꽃향 가득한 봄 +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플.  Hello Spring. +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 싱그러운 봄날 +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플. 향기 가득한 어느 봄날. +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 봄처럼 활짝 꽃봉오리들이 활짝 피어나듯 당신의 입가에도 웃음꽃이 피어나길 +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플. 봄처럼 아름다운 너. +
+
+ 봄인사·봄날씨 +
+
+
+ + +
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. HELLO SPRING 안녕, 나의 봄 따뜻한 햇빛에 포근해진 날씨에 마음도 따뜻해집니다. 오늘도 마음속에 봄을 가득 채워보시길 바랍니다. +
+
+ 봄인사·봄날씨 +
+
+
+ +
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플. 봄을 가득담아 그대에게 드립니다. +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 행복한 봄 웃음꽃 피어나는 봄이 왔어요. 따스한 햇살 맞으며 건강하고, 행복한 하루 보내세요. +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플.  Hello Spring. Happy time with you. +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 대량 / 단체 문자 발송 샘플. 꽃향 가득한 봄 +
+
+ 봄인사·봄날씨 +
+
+
+
+
+
+
+
+ + 단체 / 대량 문자 전송 샘플.  Hello Spring. +
+
+ 봄인사·봄날씨 +
+
+
+
+ +
+ +
+
+
+ + +
+ + + +
+ +
+
+
+ +
+
+ + +
+
+ 고객센터 +
+
+
+
+

010-8432-9333
010-2290-4786

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

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

+
+ +
+
+
+
+
+ +
+
+
    +
  • 중요한 개인정보! 안전하게 보호하고 싶다면!
  • +
  • 간판다움 간판|인테리어|썬팅|네온|어닝
  • +
  • NORDIC TOOLS
  • +
  • 폰더하기 내폰사기|내폰팔기|휴대폰수리
  • + +
+
+
+ + + + +
+
+ + +
+ + + + + \ No newline at end of file diff --git a/src/main/webapp/publish/js/content.js b/src/main/webapp/publish/js/content.js index 81d09511..33c18987 100644 --- a/src/main/webapp/publish/js/content.js +++ b/src/main/webapp/publish/js/content.js @@ -390,10 +390,10 @@ $(document).ready(function () { // 번호추가 ? 호버 시 팝업 $(".btn_add_number .qmMark").mouseover(function(){ - $(this).parents(".btnType").next().next(".send_hover_cont").addClass("on"); + $(this).parents(".btnType").siblings(".send_hover_cont").addClass("on"); }) $(".btn_add_number .qmMark").mouseleave(function(){ - $(this).parents(".btnType").next().next(".send_hover_cont").removeClass("on"); + $(this).parents(".btnType").siblings(".send_hover_cont").removeClass("on"); }) diff --git a/src/main/webapp/publish/js/popupLayer.js b/src/main/webapp/publish/js/popupLayer.js index c2e17c73..71facede 100644 --- a/src/main/webapp/publish/js/popupLayer.js +++ b/src/main/webapp/publish/js/popupLayer.js @@ -116,6 +116,19 @@ function tooltip() { $("body").find(".mask").addClass("on"); $("body").css("overflow","hidden"); wrapWindowByMask(popName); + + if($(e.target).closest(".popup-com").is(".popup-com") == true){ + $(".mask").attr("style","z-index:101;"); + $("."+popName).closest(".tooltip-wrap").attr("style","z-index:105;"); + } + + // 엑셀 불러오기 > 주소록 상세결과 팝업 마스크 오류 예외처리 + if($("[data-tooltip-con="+popName+"]").is(".adr_detail_result")){ + $(".mask").removeClass("on"); + $(".adr_detail_result").before('
'); + $("body").css("overflow","hidden"); + $(".adr_detail_result").closest(".tooltip-wrap").attr("style","z-index:120;"); + } /* 주소록 대량등록, 주소롟 불러오기 팝업에 있는 테이블 스크롤바 꾸미기 */ $(".adr_pop_list2 .adr_bd_wrap").mCustomScrollbar({ @@ -148,17 +161,32 @@ function tooltip() { /* 상세보기 버튼 클릭 시 레이어팝업*/ // 팝업이 보이고 있으면 마스크 노출/미노출 // 레이어 팝업 2개 뜰 경우 - if($(".popup-com:visible").length <= 1){ + if($(".popup-com:visible").length < 1){ $(".mask").removeClass("on"); - }else{} + }else{ + $(".mask").attr("style","z-index:99;"); + $(".mask").addClass("on"); + $("body").css("overflow","hidden"); + } if($(this).closest(".adr_layer").is(".adr_popup14") == true){ $(".mask").addClass("on"); + $("body").css("overflow","hidden"); }else{} + // 결과상세에서 레이어팝업 2개 뜰 경우 - if($(this).closest(".adr_layer").is(".rev_popup02") == true){ + if($(this).closest(".adr_layer").is(".rev_popup02") == true && $(this).closest(".adr_layer").is(".add_adr_popup") == false){ $(".mask").addClass("on"); - }else{} + $("body").css("overflow","hidden"); + } + else{} + + // 엑셀 불러오기 > 주소록 상세결과 팝업 마스크 오류 예외처리 + if($(this).closest(".adr_layer").is(".adr_detail_result")){ + $(".mask").removeClass("off"); + $(".adr_detail_result").siblings(".mask").remove(); + } + }) } diff --git a/src/main/webapp/publish/textingmsg_2025_detail.html b/src/main/webapp/publish/textingmsg_2025_detail.html index 9bca4843..21470587 100644 --- a/src/main/webapp/publish/textingmsg_2025_detail.html +++ b/src/main/webapp/publish/textingmsg_2025_detail.html @@ -244,7 +244,7 @@
-