이호영 이호영 2025-02-27
Merge branch '매인베너수정' into 메인_팝업_등록기능
@d6371aa6315d121deb763ada2f319c4d8f1d455e
 
src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java (added)
+++ 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<MainzoneVO> selectSubMainzoneListRolling();
+
+	public void deleteSubMainzone(String id);
+
+	public void resetSubMainVOSort(MainzoneVO mainzoneVO);
+
+}(No newline at end of file)
 
src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java (added)
+++ 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<MainzoneVO> selectSubMainzoneListRolling() {
+		return (List<MainzoneVO>) 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<EgovMap> getSortList() throws Exception{
+//		return (List<EgovMap>) 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<EgovMap> getMainSortList() throws Exception{
+//		return (List<EgovMap>) 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<MainzoneVO> selectMainzoneListRolling() throws Exception{
+//		return (List<MainzoneVO>) 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<SocialVO> selectSocialList(SocialVO socialVO) throws Exception{
+//		return (List<SocialVO>) 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)
 
src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java (added)
+++ 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<MainzoneVO> 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)
 
src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java (added)
+++ 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
+ * <pre>
+  * << 개정이력(Modification Information) >>
+  *
+  *   수정일      수정자           수정내용
+  *  -------    --------    ---------------------------
+  *   2025.02.24  이호영          최초 생성
+  *
+  * </pre>
+ */
+
+@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<FileVO> 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<ComDefaultCodeVO> getTimeHH() {
+		ArrayList<ComDefaultCodeVO> listHH = new ArrayList<ComDefaultCodeVO>();
+		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<ComDefaultCodeVO> getTimeMM() {
+		ArrayList<ComDefaultCodeVO> listMM = new ArrayList<ComDefaultCodeVO>();
+		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)
src/main/java/itn/com/uss/ion/bnr/sub/web/SubMainZoneManageController.java
--- src/main/java/itn/com/uss/ion/bnr/sub/web/SubMainZoneManageController.java
+++ src/main/java/itn/com/uss/ion/bnr/sub/web/SubMainZoneManageController.java
@@ -103,9 +103,10 @@
 	
 	
 
+
     
     /*메인이미지 관리*/
-    @RequestMapping(value="/uss/ion/bnr/subMainZoneList.do")
+    @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();
@@ -144,7 +145,7 @@
 	
 
 	/*알림창등록/수정 view*/
-	@RequestMapping(value="/uss/ion/bnr/subMainzoneModify.do")
+	@RequestMapping(value="/uss/ion/bnr/sub/subMainzoneModify.do")
 	public String updateMainZoneView(@RequestParam Map<?, ?> commandMap,
 				HttpServletRequest request, Model model, HttpSession session)
 				throws Exception  {
@@ -215,7 +216,7 @@
 	
 
 	/*메인 이미지삭제 */
-	@RequestMapping("/uss/ion/bnr/subMainzoneListDelete.do")
+	@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();
@@ -304,932 +305,4 @@
 		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<String, Object> 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<ComDefaultCodeVO> getTimeHH() {
-//		ArrayList<ComDefaultCodeVO> listHH = new ArrayList<ComDefaultCodeVO>();
-//		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<ComDefaultCodeVO> getTimeMM() {
-//		ArrayList<ComDefaultCodeVO> listMM = new ArrayList<ComDefaultCodeVO>();
-//		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)", "&lt;script");
-//        ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "&lt;/script");
-//        
-//        ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "&lt;object");
-//        ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "&lt;/object");
-//        
-//        ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "&lt;applet");
-//        ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "&lt;/applet");
-//        
-//        ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "&lt;embed");
-//        ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "&lt;embed");
-//        
-//        ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "&lt;form");
-//        ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "&lt;form");
-//
-//        return ret;
-//    }
-//    
-//    /*알림창괸리*/
-//    @RequestMapping(value="/uss/ion/pwm/popupzoneList.do")
-//    public String selectPopupZoneList(ModelMap model , @ModelAttribute("searchVO")  PopupzoneVO  popupzoneVo, HttpSession session)
-//            throws Exception {   
-//    	        
-//    	/** paging */
-//    	if(popupzoneVo.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅
-//    		popupzoneVo.setPageUnit(8);
-//		}else {
-//			popupzoneVo.setPageUnit(popupzoneVo.getPageUnit());
-//		}
-//    	
-//    	PaginationInfo paginationInfo = new PaginationInfo();
-//		paginationInfo.setCurrentPageNo(popupzoneVo.getPageIndex());
-//		paginationInfo.setRecordCountPerPage(popupzoneVo.getPageUnit());
-//		paginationInfo.setPageSize(popupzoneVo.getPageSize());
-//
-//		popupzoneVo.setFirstIndex(paginationInfo.getFirstRecordIndex());
-//		popupzoneVo.setLastIndex(paginationInfo.getLastRecordIndex());
-//		popupzoneVo.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
-//
-//		LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
-//		if(null != loginVO && !"super".equals(loginVO.getSiteId())){  //리스트, 수정, 입력
-//			popupzoneVo.setSiteId(loginVO.getSiteId());
-//		}
-//		
-//        /** 알림창괸리  */
-//		if("".equals(popupzoneVo.getSearchSortCnd())){ //최초조회시 최신것 조회List
-//			popupzoneVo.setSearchSortCnd("SORT");
-//			popupzoneVo.setSearchSortOrd("asc");
-//		}
-//        List<?> 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<FileVO> 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<FileVO> result = null;
-//    	String uploadFolder = "";
-//    	String orignlFileNm = "";
-//    	String atchFileId = "";
-//    	final Map<String, MultipartFile> files = multiRequest.getFileMap();
-//
-//		if (!files.isEmpty()){
-//			result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, "");
-//			atchFileId = fileMngService.insertFileInfs(result);
-//			FileVO vo = null;
-//			Iterator<FileVO> 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<FileVO> result = null;
-//    	String uploadFolder = "";
-//    	String orignlFileNm = "";
-//    	String atchFileId = "";
-//    	final Map<String, MultipartFile> files = multiRequest.getFileMap();
-//		if (!files.isEmpty()){
-//			result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, "");
-//			atchFileId = fileMngService.insertFileInfs(result);
-//			FileVO vo = null;
-//			Iterator<FileVO> 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<FileVO> result = null;
-//    	String uploadFolder = "";
-//    	String orignlFileNm = "";
-//    	String atchFileId = "";
-//    	final Map<String, MultipartFile> files = multiRequest.getFileMap();
-//		if (!files.isEmpty()){
-//			result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, "");
-//			atchFileId = fileMngService.insertFileInfs(result);
-//			FileVO vo = null;
-//			Iterator<FileVO> 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<FileVO> result = null;
-//    	String uploadFolder = "";
-//    	String orignlFileNm = "";
-//    	String atchFileId = "";
-//    	final Map<String, MultipartFile> files = multiRequest.getFileMap();
-//
-//		if (!files.isEmpty()){
-//			result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, "");
-//			atchFileId = fileMngService.insertFileInfs(result);
-//			FileVO vo = null;
-//			Iterator<FileVO> 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<SocialVO> 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<FileVO> 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)
src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java
--- src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java
+++ src/main/java/itn/com/uss/ion/fms/web/FmsFileController.java
@@ -538,7 +538,7 @@
 	    			if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
 	    				mainzoneVO.setSortOver("D");
 	    			}
-	    			egovPopupManageService.resetMainVOSort(mainzoneVO);	
+	    			egovPopupManageService.resetSubMainVOSort(mainzoneVO);	
 	    		}else if("popupzone".equals(fileVO.getMenuName())) { //매뉴별 비주얼
 	    			egovPopupManageService.updatePopupzone(popupzoneVO);
 	    			if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneList.jsp
--- src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneList.jsp
+++ src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneList.jsp
@@ -51,14 +51,14 @@
 function fn_mainzone_view(id, pageType){
 	document.modiForm.selectedId.value = id;
 	document.modiForm.pageType.value = "Modify";
-	document.modiForm.action = "<c:url value='/uss/ion/bnr/subMainzoneModify.do'/>";
+	document.modiForm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneModify.do'/>";
 	document.modiForm.submit();	 
 }
 
 /* 메인창 등록화면*/
 function fn_mainzone_insert_view(){
 	document.modiForm.pageType.value = "Insert";
-	document.modiForm.action = "<c:url value='/uss/ion/bnr/subMainzoneModify.do'/>";
+	document.modiForm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneModify.do'/>";
 	document.modiForm.submit();	
 }
 
@@ -117,7 +117,7 @@
 		
 	if (confirm("해당 메인이미지 삭제하시겠습니까?")){
 		frm = document.listForm;
-		frm.action = "<c:url value='/uss/ion/bnr/subMainzoneListDelete.do' />";
+		frm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneListDelete.do' />";
 	    frm.submit();
 	}
 }
@@ -136,14 +136,14 @@
 </script>
 </head>
 <body>
-<form name="listForm" action="<c:url value='/uss/ion/bnr/subMainZoneList.do'/>" method="post">
+<form name="listForm" action="<c:url value='/uss/ion/bnr/sub/subMainZoneList.do'/>" method="post">
 	<input name="pageIndex" type="hidden" value="<c:out value='${mainzoneVO.pageIndex}'/>"/>
 	<input type="hidden" name="selectedId" />
 	<input type="hidden" name="pageType" />	
 	<div class="contWrap">
 		<div class="pageTitle">
 			<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
-			<h2 class="titType1 c_222222 fwBold">서브메인비주얼관리</h2>
+			<h2 class="titType1 c_222222 fwBold">서비스안내 배너관리</h2>
 			<p class="tType6 c_999999">사이트별로 사용자 메인 상단에 적용되는 (하단)비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.</p>
 		</div>
 		<div class="pageCont">
@@ -240,11 +240,11 @@
 		</div>
 	</div>
 </form>
-<form name="modiForm" method="get" action="<c:url value='/uss/ion/bnr/subMainzoneModify.do'/>" >
+<form name="modiForm" method="get" action="<c:url value='/uss/ion/bnr/sub/subMainzoneModify.do'/>" >
 	<input name="selectedId" type="hidden" />
 	<input name="pageType" type="hidden" />
 </form>
-<form name="searchForm" method="get" action="<c:url value='/uss/ion/bnr/subMainZoneList.do'/>">
+<form name="searchForm" method="get" action="<c:url value='/uss/ion/bnr/sub/subMainZoneList.do'/>">
 	<input name="pageIndex" type="hidden" value="1" />
 	<input name="searchCondition" type="hidden" />
 	<input name="searchKeyword" type="hidden" />
src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp
--- src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp
+++ src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp
@@ -163,7 +163,7 @@
 	if (confirm(msg)) {
 		frm = document.writeForm;
 		frm.del.value = frm.mazId.value ;
-		frm.action = "<c:url value='/uss/ion/bnr/subMainzoneListDelete.do'/>";
+		frm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneListDelete.do'/>";
 	    frm.submit();
 	}
 	
@@ -255,6 +255,8 @@
 	if(!confirm(msg)){
 		return false;
 	}	
+	
+	// 공통 수정/삭제 :: /uss/ion/fms/FmsFileInsertAjax.do
 	goSave(method_parm);
 }
 function fn_egov_downFile(atchFileId, fileSn){
@@ -317,7 +319,7 @@
 	<div class="contWrap">
 		<div class="pageTitle">
 			<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
-			<h2 class="titType1 c_222222 fwBold">서브메인비주얼 등록/수정</h2>
+			<h2 class="titType1 c_222222 fwBold">서비스안내 배너관리 등록/수정</h2>
 			<p class="tType6 c_999999">사이트별로 사용자 메인 상단에 적용되는 비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.</p>
 		</div>
 		<div class="pageNav">
@@ -576,6 +578,6 @@
 	 	</div>
 	</div>
 </form:form>
-<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/bnr/subMainZoneList.do'/>" ></form>
+<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/bnr/sub/subMainZoneList.do'/>" ></form>
 </body>
 </html>
Add a comment
List