+++ src/main/java/itn/com/uss/ion/bnr/pop/service/MainPopupManageService.java
... | ... | @@ -0,0 +1,37 @@ |
| 1 | +package itn.com.uss.ion.bnr.pop.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import java.util.Map; | |
| 5 | + | |
| 6 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 7 | +import itn.com.uss.ion.pwm.service.PopupManageVO; | |
| 8 | +import itn.com.uss.ion.pwm.service.PopupzoneVO; | |
| 9 | +import itn.com.uss.ion.pwm.service.SocialVO; | |
| 10 | +import itn.com.uss.ion.pwm.service.SortVO; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * 개요 | |
| 14 | + * - 팝업창에 대한 Service Interface를 정의한다. | |
| 15 | + * | |
| 16 | + * 상세내용 | |
| 17 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 18 | + * - 팝업창의 조회기능은 목록조회, 상세조회, 팝업사용자 보기로 구분된다. | |
| 19 | + * @author 이창원 | |
| 20 | + * @version 1.0 | |
| 21 | + * @created 05-8-2009 오후 2:19:58 | |
| 22 | + */ | |
| 23 | +public interface MainPopupManageService { | |
| 24 | + | |
| 25 | + public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception; | |
| 26 | + | |
| 27 | + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception; | |
| 28 | + | |
| 29 | + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception; | |
| 30 | + | |
| 31 | + public List<MainzoneVO> selectSubMainzoneListRolling(); | |
| 32 | + | |
| 33 | + public void deleteSubMainzone(String id); | |
| 34 | + | |
| 35 | + public void resetSubMainVOSort(MainzoneVO mainzoneVO); | |
| 36 | + | |
| 37 | +}(No newline at end of file) |
+++ src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageDAO.java
... | ... | @@ -0,0 +1,309 @@ |
| 1 | +package itn.com.uss.ion.bnr.pop.service.impl; | |
| 2 | +import java.util.List; | |
| 3 | + | |
| 4 | +import org.springframework.stereotype.Repository; | |
| 5 | + | |
| 6 | +import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 7 | +import itn.com.cmm.service.impl.EgovComAbstractDAO; | |
| 8 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 9 | +import itn.com.uss.ion.pwm.service.PopupManageVO; | |
| 10 | +import itn.com.uss.ion.pwm.service.PopupzoneVO; | |
| 11 | +import itn.com.uss.ion.pwm.service.SocialVO; | |
| 12 | +import itn.com.uss.ion.pwm.service.SortVO; | |
| 13 | + | |
| 14 | +/** | |
| 15 | + * 개요 | |
| 16 | + * - 팝업창에 대한 DAO를 정의한다. | |
| 17 | + * | |
| 18 | + * 상세내용 | |
| 19 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 20 | + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. | |
| 21 | + * @author 이창원 | |
| 22 | + * @version 1.0 | |
| 23 | + * @created 05-8-2009 오후 2:21:04 | |
| 24 | + */ | |
| 25 | +@Repository("mainPopupManageDAO") | |
| 26 | +public class MainPopupManageDAO extends EgovComAbstractDAO { | |
| 27 | + | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * 메인이미지 목록을 조회한다. | |
| 31 | + * @return 글 목록 | |
| 32 | + * @exception Exception | |
| 33 | + */ | |
| 34 | + public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ | |
| 35 | + return list("subMainzoneManage.selectSubMainzoneList", mainzoneVO); | |
| 36 | + } | |
| 37 | + | |
| 38 | + | |
| 39 | + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ | |
| 40 | + return (int)select("subMainzoneManage.selectSubMainzoneCount", mainzoneVO); | |
| 41 | + } | |
| 42 | + | |
| 43 | + | |
| 44 | + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception{ | |
| 45 | + return (MainzoneVO)select("subMainzoneManage.selectSubMainzoneVO", mazId); | |
| 46 | + } | |
| 47 | + | |
| 48 | + | |
| 49 | + public List<MainzoneVO> selectSubMainzoneListRolling() { | |
| 50 | + return (List<MainzoneVO>) list("subMainzoneManage.selectSubMainzoneListRolling"); | |
| 51 | + } | |
| 52 | + | |
| 53 | + | |
| 54 | + public void deleteSubMainzone(String mazId) { | |
| 55 | + delete("subMainzoneManage.deleteSubMainzone", mazId); | |
| 56 | + } | |
| 57 | + | |
| 58 | + | |
| 59 | + public void resetSubMainVOSort(MainzoneVO mainzoneVO) { | |
| 60 | + update("subMainzoneManage.resetSubMainVOSort", mainzoneVO); | |
| 61 | + } | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | +// | |
| 66 | +// public SubMainZoneManageDAO(){} | |
| 67 | +// | |
| 68 | +// /** | |
| 69 | +// * 기 등록된 팝업창정보를 삭제한다. | |
| 70 | +// * @param popupManage - 팝업창 model | |
| 71 | +// * @return boolean - 반영성공 여부 | |
| 72 | +// * | |
| 73 | +// * @param popupManage | |
| 74 | +// */ | |
| 75 | +// public void deletePopup(PopupManageVO popupManageVO) throws Exception { | |
| 76 | +// delete("PopupManage.deletePopupManage", popupManageVO); | |
| 77 | +// } | |
| 78 | +// | |
| 79 | +// /** | |
| 80 | +// * 팝업창정보를 신규로 등록한다. | |
| 81 | +// * @param popupManage - 팝업창 model | |
| 82 | +// * @return boolean - 반영성공 여부 | |
| 83 | +// * | |
| 84 | +// * @param popupManage | |
| 85 | +// */ | |
| 86 | +// public void insertPopup(PopupManageVO popupManageVO) throws Exception { | |
| 87 | +// insert("PopupManage.insertPopupManage", popupManageVO); | |
| 88 | +// } | |
| 89 | +// | |
| 90 | +// /** | |
| 91 | +// * 기 등록된 팝업창정보를 수정한다. | |
| 92 | +// * @param popupManage - 팝업창 model | |
| 93 | +// * @return boolean - 반영성공 여부 | |
| 94 | +// * | |
| 95 | +// * @param popupManage | |
| 96 | +// */ | |
| 97 | +// public void updatePopup(PopupManageVO popupManageVO) throws Exception { | |
| 98 | +// update("PopupManage.updatePopupManage", popupManageVO); | |
| 99 | +// } | |
| 100 | +// | |
| 101 | +// /** | |
| 102 | +// * 팝업창을 사용자 화면에서 볼수 있는 정보들을 조회한다. | |
| 103 | +// * @param popupManageVO - 팝업창 Vo | |
| 104 | +// * @return popupManageVO - 팝업창 Vo | |
| 105 | +// * | |
| 106 | +// * @param popupManageVO | |
| 107 | +// */ | |
| 108 | +// public PopupManageVO selectPopup(PopupManageVO popupManageVO) throws Exception { | |
| 109 | +// return (PopupManageVO)select("PopupManage.selectPopupManageDetail", popupManageVO); | |
| 110 | +// } | |
| 111 | +// | |
| 112 | +// /** | |
| 113 | +// * 팝업창를 관리하기 위해 등록된 팝업창목록을 조회한다. | |
| 114 | +// * @param popupManageVO - 팝업창 Vo | |
| 115 | +// * @return List - 팝업창 목록 | |
| 116 | +// * | |
| 117 | +// * @param popupManageVO | |
| 118 | +// */ | |
| 119 | +// public List<?> selectPopupList(PopupManageVO popupManageVO) throws Exception { | |
| 120 | +// return list("PopupManage.selectPopupManage", popupManageVO); | |
| 121 | +// } | |
| 122 | +// | |
| 123 | +// /** | |
| 124 | +// * 팝업창를 관리하기 위해 등록된 팝업창목록 총갯수를 조회한다. | |
| 125 | +// * @param popupManageVO - 팝업창 Vo | |
| 126 | +// * @return List - 팝업창 목록 | |
| 127 | +// * | |
| 128 | +// * @param popupManageVO | |
| 129 | +// */ | |
| 130 | +// public int selectPopupListCount(PopupManageVO popupManageVO) throws Exception { | |
| 131 | +// return (Integer)select("PopupManage.selectPopupManageCnt", popupManageVO); | |
| 132 | +// } | |
| 133 | +// | |
| 134 | +// /** | |
| 135 | +// * 팝업창를 사용하기 위해 등록된 팝업창목록을 조회한다. | |
| 136 | +// * @param popupManageVO - 팝업창 Vo | |
| 137 | +// * @return List - 팝업창 목록 | |
| 138 | +// * | |
| 139 | +// * @param popupManageVO | |
| 140 | +// */ | |
| 141 | +// public List<?> selectPopupMainList(PopupManageVO popupManageVO) throws Exception { | |
| 142 | +// return list("PopupManage.selectPopupManageMain", popupManageVO); | |
| 143 | +// } | |
| 144 | +// | |
| 145 | +// /** | |
| 146 | +// * 메인알림창 목록을 조회한다. | |
| 147 | +// * @return 글 목록 | |
| 148 | +// * @exception Exception | |
| 149 | +// */ | |
| 150 | +// public List<?> selectPopupzoneList(PopupzoneVO popupzoneVo) throws Exception{ | |
| 151 | +// return list("PopupzoneManage.selectPopupzoneList", popupzoneVo); | |
| 152 | +// } | |
| 153 | +// | |
| 154 | +// /** | |
| 155 | +// * 메인배너 순번정보를 가져온다. | |
| 156 | +// * @param mode - 0:등록 1:수정 | |
| 157 | +// * @return 순번정보 | |
| 158 | +// * @exception Exception | |
| 159 | +// */ | |
| 160 | +// @SuppressWarnings("unchecked") | |
| 161 | +// public List<EgovMap> getSortList() throws Exception{ | |
| 162 | +// return (List<EgovMap>) list("PopupzoneManage.getSortList",null); | |
| 163 | +// } | |
| 164 | +// | |
| 165 | +// public PopupzoneVO selectPopupzoneVO(String pozId) throws Exception { | |
| 166 | +// return (PopupzoneVO)select("PopupzoneManage.selectPopupzoneVO", pozId); | |
| 167 | +// } | |
| 168 | +// | |
| 169 | +// /** | |
| 170 | +// * 메인배너 변경할때 나머지 배너들 순서 변경 | |
| 171 | +// * @param 입력된 sort번호 | |
| 172 | +// * @return 등록 결과 | |
| 173 | +// * @exception Exception | |
| 174 | +// */ | |
| 175 | +// public void updateSortUp(SortVO sortVO) throws Exception{ | |
| 176 | +// update("PopupzoneManage.updateSortUp", sortVO); | |
| 177 | +// } | |
| 178 | +// | |
| 179 | +// public void updateSortDown(SortVO sortVO) throws Exception { | |
| 180 | +// update("PopupzoneManage.updateSortDown", sortVO); | |
| 181 | +// } | |
| 182 | +// | |
| 183 | +// public void updatePopupzone(PopupzoneVO popupzoneVO) throws Exception { | |
| 184 | +// update("PopupzoneManage.updatePopupzone", popupzoneVO); | |
| 185 | +// } | |
| 186 | +// | |
| 187 | +// /** | |
| 188 | +// * 메인알림창을 삭제한다. | |
| 189 | +// * @param pozId - 삭제할 메인알림창 번호 | |
| 190 | +// * @return void형 | |
| 191 | +// * @exception Exception | |
| 192 | +// */ | |
| 193 | +// public void deletePopupzone(String pozId) throws Exception { | |
| 194 | +// delete("PopupzoneManage.deletePopupzone", pozId); | |
| 195 | +// } | |
| 196 | +// | |
| 197 | +// public int getMaxSort() throws Exception{ | |
| 198 | +// return (Integer)select("PopupzoneManage.getMaxSort") ; | |
| 199 | +// } | |
| 200 | +// | |
| 201 | +// /** | |
| 202 | +// * 메인배너의 새로운seq를 가지고온다. | |
| 203 | +// * @return seq | |
| 204 | +// * @exception Exception | |
| 205 | +// */ | |
| 206 | +// public int selectNextSeq() throws Exception{ | |
| 207 | +// return (Integer)select("PopupzoneManage.selectNextSeq"); | |
| 208 | +// } | |
| 209 | +// | |
| 210 | +// public void insertPopupzone(PopupzoneVO popupzoneVO) throws Exception{ | |
| 211 | +// insert("PopupzoneManage.insertPopupzone", popupzoneVO); | |
| 212 | +// } | |
| 213 | +// | |
| 214 | +// public void resetSort(PopupzoneVO popupzoneVO) throws Exception{ | |
| 215 | +// update("PopupzoneManage.resetSort", popupzoneVO); | |
| 216 | +// } | |
| 217 | +// | |
| 218 | +// /** | |
| 219 | +// * 메인이미지 목록을 조회한다. | |
| 220 | +// * @return 글 목록 | |
| 221 | +// * @exception Exception | |
| 222 | +// */ | |
| 223 | +// public List<?> selectMainzoneList(MainzoneVO mainzoneVO ) throws Exception{ | |
| 224 | +// return list("MainzoneManage.selectMainzoneList", mainzoneVO); | |
| 225 | +// } | |
| 226 | +// | |
| 227 | +// public int getMainMaxSort() throws Exception{ | |
| 228 | +// return (Integer)select("MainzoneManage.getMainMaxSort"); | |
| 229 | +// } | |
| 230 | +// | |
| 231 | +// public void insertMainzone(MainzoneVO mainzoneVO) throws Exception{ | |
| 232 | +// insert("MainzoneManage.insertMainzone", mainzoneVO); | |
| 233 | +// } | |
| 234 | +// | |
| 235 | +// public void resetMainSort(MainzoneVO mainzoneVO) throws Exception{ | |
| 236 | +// insert("MainzoneManage.resetMainSort", mainzoneVO); | |
| 237 | +// } | |
| 238 | +// | |
| 239 | +// public void updateMainSortUp(SortVO sortVO) throws Exception{ | |
| 240 | +// update("MainzoneManage.updateMainSortUp", sortVO); | |
| 241 | +// } | |
| 242 | +// | |
| 243 | +// public MainzoneVO selectMainzoneVO(String mazId) throws Exception{ | |
| 244 | +// return (MainzoneVO)select("MainzoneManage.selectMainzoneVO", mazId); | |
| 245 | +// } | |
| 246 | +// | |
| 247 | +// @SuppressWarnings("unchecked") | |
| 248 | +// public List<EgovMap> getMainSortList() throws Exception{ | |
| 249 | +// return (List<EgovMap>) list("MainzoneManage.getMainSortList",null); | |
| 250 | +// } | |
| 251 | +// | |
| 252 | +// public void deleteMainzone(String mazId) throws Exception{ | |
| 253 | +// delete("MainzoneManage.deleteMainzone", mazId); | |
| 254 | +// } | |
| 255 | +// | |
| 256 | +// public void updateMainSortDown(SortVO sortVO) throws Exception{ | |
| 257 | +// update("MainzoneManage.updateMainSortDown", sortVO); | |
| 258 | +// } | |
| 259 | +// | |
| 260 | +// public void updateMainzone(MainzoneVO mainzoneVO) throws Exception{ | |
| 261 | +// update("MainzoneManage.updateMainzone", mainzoneVO); | |
| 262 | +// } | |
| 263 | +// | |
| 264 | +// @SuppressWarnings("unchecked") | |
| 265 | +// public List<MainzoneVO> selectMainzoneListRolling() throws Exception{ | |
| 266 | +// return (List<MainzoneVO>) list("MainzoneManage.selectMainzoneListRolling"); | |
| 267 | +// } | |
| 268 | +// | |
| 269 | +// public int selectPopupzoneListTotCnt(PopupzoneVO popupzoneVo) throws Exception { | |
| 270 | +// return (int)select("PopupzoneManage.selectPopupzoneListTotCnt", popupzoneVo); | |
| 271 | +// } | |
| 272 | +// | |
| 273 | +// public int selectMainzoneCount(MainzoneVO mainzoneVO) throws Exception{ | |
| 274 | +// return (int)select("MainzoneManage.selectMainzoneCount", mainzoneVO); | |
| 275 | +// } | |
| 276 | +// | |
| 277 | +// public void resetVOSort(PopupzoneVO popupzoneVO) throws Exception{ | |
| 278 | +// update("PopupzoneManage.resetVOSort", popupzoneVO); | |
| 279 | +// } | |
| 280 | +// | |
| 281 | +// public void resetMainVOSort(MainzoneVO mainzoneVO) throws Exception{ | |
| 282 | +// update("MainzoneManage.resetMainVOSort", mainzoneVO); | |
| 283 | +// } | |
| 284 | +// | |
| 285 | +// @SuppressWarnings("unchecked") | |
| 286 | +// public List<SocialVO> selectSocialList(SocialVO socialVO) throws Exception{ | |
| 287 | +// return (List<SocialVO>) list("SocialManage.selectSocialList",socialVO); | |
| 288 | +// } | |
| 289 | +// | |
| 290 | +// public SocialVO selectSocialVO(String socialId) throws Exception{ | |
| 291 | +// return (SocialVO)select("SocialManage.selectSocialVO", socialId); | |
| 292 | +// } | |
| 293 | +// | |
| 294 | +// public void updateSocial(SocialVO socialVO) throws Exception{ | |
| 295 | +// update("SocialManage.updateSocial", socialVO); | |
| 296 | +// } | |
| 297 | +// | |
| 298 | +// public void resetSocialSort(SocialVO socialVO) throws Exception{ | |
| 299 | +// update("SocialManage.resetSocialSort", socialVO); | |
| 300 | +// } | |
| 301 | +// | |
| 302 | +// public void insertSocial(SocialVO socialVO) throws Exception{ | |
| 303 | +// insert("SocialManage.insertSocial", socialVO); | |
| 304 | +// } | |
| 305 | +// | |
| 306 | +// public void deleteSocial(String id) throws Exception{ | |
| 307 | +// delete("SocialManage.deleteSocial", id); | |
| 308 | +// } | |
| 309 | +}(No newline at end of file) |
+++ src/main/java/itn/com/uss/ion/bnr/pop/service/impl/MainPopupManageServiceImpl.java
... | ... | @@ -0,0 +1,72 @@ |
| 1 | +package itn.com.uss.ion.bnr.pop.service.impl; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import javax.annotation.Resource; | |
| 6 | + | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 9 | +import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | +import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | +import itn.com.uss.ion.bnr.pop.service.MainPopupManageService; | |
| 12 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 13 | + | |
| 14 | +/** | |
| 15 | + * 개요 | |
| 16 | + * - 팝업창에 대한 ServiceImpl을 정의한다. | |
| 17 | + * | |
| 18 | + * 상세내용 | |
| 19 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 20 | + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자화면 보기로 구분된다. | |
| 21 | + * @author 이창원 | |
| 22 | + * @version 1.0 | |
| 23 | + * @created 05-8-2009 오후 2:19:58 | |
| 24 | + */ | |
| 25 | + | |
| 26 | +@Service("mainPopupManageService") | |
| 27 | +public class MainPopupManageServiceImpl extends EgovAbstractServiceImpl implements MainPopupManageService { | |
| 28 | + | |
| 29 | + @Resource(name = "mainPopupManageDAO") | |
| 30 | + public MainPopupManageDAO dao; | |
| 31 | + | |
| 32 | + | |
| 33 | + @Resource(name = "egovPopupManageIdGnrService") | |
| 34 | + private EgovIdGnrService idgenService; | |
| 35 | + | |
| 36 | + @Override | |
| 37 | + public List<?> selectSubMainzoneList(MainzoneVO mainzoneVO) throws Exception { | |
| 38 | + return dao.selectSubMainzoneList(mainzoneVO); | |
| 39 | + } | |
| 40 | + | |
| 41 | + @Override | |
| 42 | + public int selectSubMainzoneCount(MainzoneVO mainzoneVO) throws Exception { | |
| 43 | + return dao.selectSubMainzoneCount(mainzoneVO); | |
| 44 | + } | |
| 45 | + | |
| 46 | + | |
| 47 | + @Override | |
| 48 | + public MainzoneVO selectSubMainzoneVO(String mazId) throws Exception { | |
| 49 | + MainzoneVO resultVO = dao.selectSubMainzoneVO(mazId); | |
| 50 | + if (resultVO == null) | |
| 51 | + throw processException("info.nodata.msg"); | |
| 52 | + return resultVO; | |
| 53 | + } | |
| 54 | + | |
| 55 | + @Override | |
| 56 | + public List<MainzoneVO> selectSubMainzoneListRolling() { | |
| 57 | + return dao.selectSubMainzoneListRolling(); | |
| 58 | + } | |
| 59 | + | |
| 60 | + @Override | |
| 61 | + public void deleteSubMainzone(String id) { | |
| 62 | + dao.deleteSubMainzone(id); | |
| 63 | + } | |
| 64 | + | |
| 65 | + @Override | |
| 66 | + public void resetSubMainVOSort(MainzoneVO mainzoneVO) { | |
| 67 | + dao.resetSubMainVOSort(mainzoneVO); | |
| 68 | + | |
| 69 | + } | |
| 70 | + | |
| 71 | + | |
| 72 | +}(No newline at end of file) |
+++ src/main/java/itn/com/uss/ion/bnr/pop/web/MainPopupManageController.java
... | ... | @@ -0,0 +1,306 @@ |
| 1 | +package itn.com.uss.ion.bnr.pop.web; | |
| 2 | + | |
| 3 | +import java.util.ArrayList; | |
| 4 | +import java.util.HashMap; | |
| 5 | +import java.util.List; | |
| 6 | +import java.util.Map; | |
| 7 | + | |
| 8 | +import javax.annotation.Resource; | |
| 9 | +import javax.servlet.http.HttpServletRequest; | |
| 10 | +import javax.servlet.http.HttpSession; | |
| 11 | + | |
| 12 | +import org.slf4j.Logger; | |
| 13 | +import org.slf4j.LoggerFactory; | |
| 14 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 15 | +import org.springframework.stereotype.Controller; | |
| 16 | +import org.springframework.ui.Model; | |
| 17 | +import org.springframework.ui.ModelMap; | |
| 18 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 19 | +import org.springframework.web.bind.annotation.RequestParam; | |
| 20 | +import org.springframework.web.servlet.mvc.support.RedirectAttributes; | |
| 21 | +import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 22 | + | |
| 23 | +import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 24 | +import egovframework.rte.fdl.property.EgovPropertyService; | |
| 25 | +import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; | |
| 26 | +import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 27 | +import itn.com.cmm.ComDefaultCodeVO; | |
| 28 | +import itn.com.cmm.EgovMessageSource; | |
| 29 | +import itn.com.cmm.LoginVO; | |
| 30 | +import itn.com.cmm.service.EgovCmmUseService; | |
| 31 | +import itn.com.cmm.service.EgovFileMngService; | |
| 32 | +import itn.com.cmm.service.EgovFileMngUtil; | |
| 33 | +import itn.com.cmm.service.FileVO; | |
| 34 | +import itn.com.cmm.util.RedirectUrlMaker; | |
| 35 | +import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService; | |
| 36 | +import itn.com.uss.ion.pwm.service.MainzoneVO; | |
| 37 | +import itn.let.sym.site.service.EgovSiteManagerService; | |
| 38 | + | |
| 39 | +/** | |
| 40 | + * 개요 | |
| 41 | + * - 팝업창에 대한 Controller를 정의한다. | |
| 42 | + * | |
| 43 | + * 상세내용 | |
| 44 | + * - 팝업창에 대한 등록, 수정, 삭제, 조회, 반영확인 기능을 제공한다. | |
| 45 | + * - 팝업창의 조회기능은 목록조회, 상세조회로, 사용자 화면 보기로 구분된다. | |
| 46 | + * @author 이창원 | |
| 47 | + * @version 1.0 | |
| 48 | + * @created 05-8-2009 오후 2:19:57 | |
| 49 | + * <pre> | |
| 50 | + * << 개정이력(Modification Information) >> | |
| 51 | + * | |
| 52 | + * 수정일 수정자 수정내용 | |
| 53 | + * ------- -------- --------------------------- | |
| 54 | + * 2025.02.24 이호영 최초 생성 | |
| 55 | + * | |
| 56 | + * </pre> | |
| 57 | + */ | |
| 58 | + | |
| 59 | +@Controller | |
| 60 | +public class MainPopupManageController { | |
| 61 | + | |
| 62 | + private static final Logger LOGGER = LoggerFactory.getLogger(MainPopupManageController.class); | |
| 63 | + | |
| 64 | + @Autowired | |
| 65 | + private DefaultBeanValidator beanValidator; | |
| 66 | + | |
| 67 | + /** EgovMessageSource */ | |
| 68 | + @Resource(name = "egovMessageSource") | |
| 69 | + EgovMessageSource egovMessageSource; | |
| 70 | + | |
| 71 | + /** EgovPropertyService */ | |
| 72 | + @Resource(name = "propertiesService") | |
| 73 | + protected EgovPropertyService propertiesService; | |
| 74 | + | |
| 75 | + /** EgovPopupManageService */ | |
| 76 | + @Resource(name = "subMainZoneManageService") | |
| 77 | + private SubMainZoneManageService subMainZoneManageService; | |
| 78 | + | |
| 79 | + /** cmmUseService */ | |
| 80 | + @Resource(name = "EgovCmmUseService") | |
| 81 | + private EgovCmmUseService cmmUseService; | |
| 82 | + | |
| 83 | + @Resource(name="EgovFileMngUtil") | |
| 84 | + private EgovFileMngUtil fileUtil; | |
| 85 | + | |
| 86 | + @Resource(name="EgovFileMngService") | |
| 87 | + private EgovFileMngService fileMngService; | |
| 88 | + | |
| 89 | + @Resource(name = "egovPopupZoneIdGnrService") | |
| 90 | + private EgovIdGnrService idgenService; | |
| 91 | + | |
| 92 | +// @Resource(name = "egovMainZoneIdGnrService") | |
| 93 | +// private EgovIdGnrService idgenServiceMain; | |
| 94 | + | |
| 95 | + @Resource(name = "egovSubMainZoneIdGnrService") | |
| 96 | + private EgovIdGnrService idgenServiceSubMain; | |
| 97 | + | |
| 98 | + @Resource(name = "egovSiteManagerService") | |
| 99 | + EgovSiteManagerService egovSiteManagerService; | |
| 100 | + | |
| 101 | + @Resource(name = "EgovFileMngService") | |
| 102 | + private EgovFileMngService fileService; | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + /*메인이미지 관리*/ | |
| 108 | + @RequestMapping(value="/uss/ion/bnr/pop/mainPopupList.do") | |
| 109 | + public String popupList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception { | |
| 110 | + LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 111 | + | |
| 112 | + | |
| 113 | + if(mainzoneVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅 | |
| 114 | + mainzoneVO.setPageUnit(8); | |
| 115 | + }else { | |
| 116 | + mainzoneVO.setPageUnit(mainzoneVO.getPageUnit()); | |
| 117 | + } | |
| 118 | + | |
| 119 | + /** pageing */ | |
| 120 | + PaginationInfo paginationInfo = new PaginationInfo(); | |
| 121 | + paginationInfo.setCurrentPageNo(mainzoneVO.getPageIndex()); | |
| 122 | + paginationInfo.setRecordCountPerPage(mainzoneVO.getPageUnit()); | |
| 123 | + paginationInfo.setPageSize(mainzoneVO.getPageSize()); | |
| 124 | + | |
| 125 | + mainzoneVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 126 | + mainzoneVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 127 | + mainzoneVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 128 | + | |
| 129 | + if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //각각의 사이트 | |
| 130 | + mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 131 | + } | |
| 132 | + List<?> mainzoneList = subMainZoneManageService.selectSubMainzoneList(mainzoneVO); | |
| 133 | + model.addAttribute("mainzoneList", mainzoneList); | |
| 134 | + | |
| 135 | + int totCnt = subMainZoneManageService.selectSubMainzoneCount(mainzoneVO); | |
| 136 | + | |
| 137 | + paginationInfo.setTotalRecordCount(totCnt); | |
| 138 | + model.addAttribute("paginationInfo", paginationInfo); | |
| 139 | + | |
| 140 | + return "uss/ion/bnr/sub/subMainZoneList"; | |
| 141 | + } | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + /*알림창등록/수정 view*/ | |
| 146 | + @RequestMapping(value="/uss/ion/bnr/pop/mainPopupModify.do") | |
| 147 | + public String popupModify(@RequestParam Map<?, ?> commandMap, | |
| 148 | + HttpServletRequest request, Model model, HttpSession session) | |
| 149 | + throws Exception { | |
| 150 | + | |
| 151 | + MainzoneVO mainzoneVO = new MainzoneVO(); | |
| 152 | + if("Modify".equals((String)commandMap.get("pageType"))){ //수정 | |
| 153 | + String mazId = (String)commandMap.get("selectedId"); | |
| 154 | + mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(mazId); | |
| 155 | + String sNtceBgnde = mainzoneVO.getNtceBgnde(); | |
| 156 | + String sNtceEndde = mainzoneVO.getNtceEndde(); | |
| 157 | + | |
| 158 | + if(sNtceBgnde != null && sNtceEndde != null ) { | |
| 159 | + | |
| 160 | + mainzoneVO.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); | |
| 161 | + mainzoneVO.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); | |
| 162 | + | |
| 163 | + mainzoneVO.setNtceEnddeHH(sNtceEndde.substring(8, 10)); | |
| 164 | + mainzoneVO.setNtceEnddeMM(sNtceEndde.substring(10, 12)); | |
| 165 | + | |
| 166 | + //게시기간 시작일자(시) | |
| 167 | + model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 168 | + //게시기간 시작일자(분) | |
| 169 | + model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 170 | + //게시기간 종료일자(시) | |
| 171 | + model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 172 | + //게시기간 종료일자(분) | |
| 173 | + model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 174 | + | |
| 175 | + | |
| 176 | + } | |
| 177 | + | |
| 178 | + if(mainzoneVO != null){ | |
| 179 | + mainzoneVO.setBeSort(mainzoneVO.getSort()); | |
| 180 | + | |
| 181 | + FileVO fileVO = new FileVO(); | |
| 182 | + String atchFileId = mainzoneVO.getMainzoneImageFile(); | |
| 183 | + fileVO.setAtchFileId(atchFileId); | |
| 184 | + List<FileVO> fileList = fileService.selectFileInfs(fileVO); | |
| 185 | + model.addAttribute("fileList", fileList); | |
| 186 | + } | |
| 187 | + }else{ //등록 | |
| 188 | + | |
| 189 | + //게시기간 시작일자(시) | |
| 190 | + model.addAttribute("ntceBgndeHH", getTimeHH()); | |
| 191 | + //게시기간 시작일자(분) | |
| 192 | + model.addAttribute("ntceBgndeMM", getTimeMM()); | |
| 193 | + //게시기간 종료일자(시) | |
| 194 | + model.addAttribute("ntceEnddeHH", getTimeHH()); | |
| 195 | + //게시기간 종료일자(분) | |
| 196 | + model.addAttribute("ntceEnddeMM", getTimeMM()); | |
| 197 | + | |
| 198 | + } | |
| 199 | + | |
| 200 | + //model.addAttribute("sortList", sortList); | |
| 201 | + model.addAttribute("mainzoneVO", mainzoneVO); | |
| 202 | + System.out.println("mainzoneVO :: "+ mainzoneVO.toString()); | |
| 203 | + | |
| 204 | + /* 타겟 코드 */ | |
| 205 | + ComDefaultCodeVO vo = new ComDefaultCodeVO(); | |
| 206 | + vo.setCodeId("COM037"); | |
| 207 | + //List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); | |
| 208 | + //model.addAttribute("targetList", targetList); | |
| 209 | + | |
| 210 | + | |
| 211 | + return "uss/ion/bnr/sub/subMainZoneModify"; | |
| 212 | + } | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + /*메인 이미지삭제 */ | |
| 217 | + @RequestMapping(value="/uss/ion/bnr/pop/mainPopupListDelete.do") | |
| 218 | + public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception { | |
| 219 | + LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); | |
| 220 | + MainzoneVO mainzoneVO = new MainzoneVO(); | |
| 221 | + for(String id:del) { | |
| 222 | + try{ | |
| 223 | + mainzoneVO = subMainZoneManageService.selectSubMainzoneVO(id); | |
| 224 | + }catch(Exception e){ | |
| 225 | + redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg")); | |
| 226 | + RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); | |
| 227 | + return redirectUrlMaker.getRedirectUrl(); | |
| 228 | + } | |
| 229 | + subMainZoneManageService.deleteSubMainzone(id); | |
| 230 | + if(null != loginVO && !"super".equals(loginVO.getSiteId())){ | |
| 231 | + mainzoneVO.setSiteId(loginVO.getSiteId()); | |
| 232 | + } | |
| 233 | + subMainZoneManageService.resetSubMainVOSort(mainzoneVO); | |
| 234 | + } | |
| 235 | + | |
| 236 | + redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete")); | |
| 237 | + RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/bnr/subMainZoneList.do"); | |
| 238 | + return redirectUrlMaker.getRedirectUrl(); | |
| 239 | + } | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + /** | |
| 251 | + * 시간을 LIST를 반환한다. | |
| 252 | + * @return List | |
| 253 | + * @throws | |
| 254 | + */ | |
| 255 | + @SuppressWarnings("unused") | |
| 256 | + private List<ComDefaultCodeVO> getTimeHH() { | |
| 257 | + ArrayList<ComDefaultCodeVO> listHH = new ArrayList<ComDefaultCodeVO>(); | |
| 258 | + HashMap<?, ?> hmHHMM; | |
| 259 | + for (int i = 0; i <= 24; i++) { | |
| 260 | + String sHH = ""; | |
| 261 | + String strI = String.valueOf(i); | |
| 262 | + if (i < 10) { | |
| 263 | + sHH = "0" + strI; | |
| 264 | + } else { | |
| 265 | + sHH = strI; | |
| 266 | + } | |
| 267 | + | |
| 268 | + ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); | |
| 269 | + codeVO.setCode(sHH); | |
| 270 | + codeVO.setCodeNm(sHH); | |
| 271 | + | |
| 272 | + listHH.add(codeVO); | |
| 273 | + } | |
| 274 | + | |
| 275 | + return listHH; | |
| 276 | + } | |
| 277 | + | |
| 278 | + /** | |
| 279 | + * 분을 LIST를 반환한다. | |
| 280 | + * @return List | |
| 281 | + * @throws | |
| 282 | + */ | |
| 283 | + @SuppressWarnings("unused") | |
| 284 | + private List<ComDefaultCodeVO> getTimeMM() { | |
| 285 | + ArrayList<ComDefaultCodeVO> listMM = new ArrayList<ComDefaultCodeVO>(); | |
| 286 | + HashMap<?, ?> hmHHMM; | |
| 287 | + for (int i = 0; i <= 60; i++) { | |
| 288 | + | |
| 289 | + String sMM = ""; | |
| 290 | + String strI = String.valueOf(i); | |
| 291 | + if (i < 10) { | |
| 292 | + sMM = "0" + strI; | |
| 293 | + } else { | |
| 294 | + sMM = strI; | |
| 295 | + } | |
| 296 | + | |
| 297 | + ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); | |
| 298 | + codeVO.setCode(sMM); | |
| 299 | + codeVO.setCodeNm(sMM); | |
| 300 | + | |
| 301 | + listMM.add(codeVO); | |
| 302 | + } | |
| 303 | + return listMM; | |
| 304 | + } | |
| 305 | + | |
| 306 | +}(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
... | ... | @@ -103,9 +103,10 @@ |
| 103 | 103 |
|
| 104 | 104 |
|
| 105 | 105 |
|
| 106 |
+ |
|
| 106 | 107 |
|
| 107 | 108 |
/*메인이미지 관리*/ |
| 108 |
- @RequestMapping(value="/uss/ion/bnr/subMainZoneList.do") |
|
| 109 |
+ @RequestMapping(value="/uss/ion/bnr/sub/subMainZoneList.do") |
|
| 109 | 110 |
// @RequestMapping(value="/uss/ion/pwm/mainzoneList.do") |
| 110 | 111 |
public String selectMainzoneList(ModelMap model , MainzoneVO mainzoneVO , HttpSession session ) throws Exception {
|
| 111 | 112 |
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
... | ... | @@ -144,7 +145,7 @@ |
| 144 | 145 |
|
| 145 | 146 |
|
| 146 | 147 |
/*알림창등록/수정 view*/ |
| 147 |
- @RequestMapping(value="/uss/ion/bnr/subMainzoneModify.do") |
|
| 148 |
+ @RequestMapping(value="/uss/ion/bnr/sub/subMainzoneModify.do") |
|
| 148 | 149 |
public String updateMainZoneView(@RequestParam Map<?, ?> commandMap, |
| 149 | 150 |
HttpServletRequest request, Model model, HttpSession session) |
| 150 | 151 |
throws Exception {
|
... | ... | @@ -215,7 +216,7 @@ |
| 215 | 216 |
|
| 216 | 217 |
|
| 217 | 218 |
/*메인 이미지삭제 */ |
| 218 |
- @RequestMapping("/uss/ion/bnr/subMainzoneListDelete.do")
|
|
| 219 |
+ @RequestMapping("/uss/ion/bnr/sub/subMainzoneListDelete.do")
|
|
| 219 | 220 |
public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception {
|
| 220 | 221 |
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
| 221 | 222 |
MainzoneVO mainzoneVO = new MainzoneVO(); |
... | ... | @@ -304,932 +305,4 @@ |
| 304 | 305 |
return listMM; |
| 305 | 306 |
} |
| 306 | 307 |
|
| 307 |
- |
|
| 308 |
- |
|
| 309 |
- |
|
| 310 |
- |
|
| 311 |
- |
|
| 312 |
- |
|
| 313 |
- |
|
| 314 |
- |
|
| 315 |
- |
|
| 316 |
- |
|
| 317 |
- |
|
| 318 |
- |
|
| 319 |
- |
|
| 320 |
- |
|
| 321 |
- |
|
| 322 |
- |
|
| 323 |
- |
|
| 324 |
- |
|
| 325 |
- |
|
| 326 |
- |
|
| 327 |
- |
|
| 328 |
- |
|
| 329 |
- |
|
| 330 |
-// |
|
| 331 |
-// |
|
| 332 |
-// |
|
| 333 |
-// |
|
| 334 |
-// /** |
|
| 335 |
-// * 팝업창관리 목록을 조회한다. |
|
| 336 |
-// * @param popupManageVO |
|
| 337 |
-// * @param model |
|
| 338 |
-// * @return "uss/ion/pwm/listPopupManage" |
|
| 339 |
-// * @throws Exception |
|
| 340 |
-// */ |
|
| 341 |
-// @RequestMapping(value = "/uss/ion/pwm/listPopup.do") |
|
| 342 |
-// public String selectEgovPopupManageList(@RequestParam Map<?, ?> commandMap, PopupManageVO popupManageVO, ModelMap model , HttpSession session) throws Exception {
|
|
| 343 |
-// |
|
| 344 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 345 |
-// /** EgovPropertyService.sample */ |
|
| 346 |
-// |
|
| 347 |
-// if(popupManageVO.getPageUnit() != 10) {
|
|
| 348 |
-// popupManageVO.setPageUnit(popupManageVO.getPageUnit()); |
|
| 349 |
-// } |
|
| 350 |
-// |
|
| 351 |
-// /** pageing */ |
|
| 352 |
-// PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 353 |
-// paginationInfo.setCurrentPageNo(popupManageVO.getPageIndex()); |
|
| 354 |
-// paginationInfo.setRecordCountPerPage(popupManageVO.getPageUnit()); |
|
| 355 |
-// paginationInfo.setPageSize(popupManageVO.getPageSize()); |
|
| 356 |
-// |
|
| 357 |
-// popupManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 358 |
-// popupManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 359 |
-// popupManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 360 |
-// |
|
| 361 |
-// if("".equals(popupManageVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 362 |
-// popupManageVO.setSearchSortCnd("POPUP_ID");
|
|
| 363 |
-// popupManageVO.setSearchSortOrd("desc");
|
|
| 364 |
-// } |
|
| 365 |
-// List<?> reusltList = egovPopupManageService.selectPopupList(popupManageVO); |
|
| 366 |
-// model.addAttribute("resultList", reusltList);
|
|
| 367 |
-// |
|
| 368 |
-// model.addAttribute("searchKeyword", commandMap.get("searchKeyword") == null ? "" : (String) commandMap.get("searchKeyword"));
|
|
| 369 |
-// model.addAttribute("searchCondition", commandMap.get("searchCondition") == null ? "" : (String) commandMap.get("searchCondition"));
|
|
| 370 |
-// |
|
| 371 |
-// model.addAttribute("delSttus", popupManageVO.getDelSttus());
|
|
| 372 |
-// |
|
| 373 |
-// int totCnt = egovPopupManageService.selectPopupListCount(popupManageVO); |
|
| 374 |
-// paginationInfo.setTotalRecordCount(totCnt); |
|
| 375 |
-// model.addAttribute("paginationInfo", paginationInfo);
|
|
| 376 |
-// return "uss/ion/pwm/EgovPopupList"; |
|
| 377 |
-// } |
|
| 378 |
- |
|
| 379 |
-// /** |
|
| 380 |
-// * 통합링크관리 목록을 상세조회 조회한다. |
|
| 381 |
-// * @param popupManageVO |
|
| 382 |
-// * @param commandMap |
|
| 383 |
-// * @param model |
|
| 384 |
-// * @return |
|
| 385 |
-// * "/uss/ion/pwm/detailPopupManage" |
|
| 386 |
-// * @throws Exception |
|
| 387 |
-// */ |
|
| 388 |
-// @RequestMapping(value = "/uss/ion/pwm/detailPopup.do") |
|
| 389 |
-// public String egovPopupManageDetail(PopupManageVO popupManageVO, @RequestParam Map<?, ?> commandMap, RedirectAttributes redirectAttributes, ModelMap model) throws Exception {
|
|
| 390 |
-// |
|
| 391 |
-// String sLocationUrl = "uss/ion/pwm/EgovPopupDetail"; |
|
| 392 |
-// |
|
| 393 |
-// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
|
| 394 |
-// |
|
| 395 |
-// if (sCmd.equals("del")) {
|
|
| 396 |
-// //egovPopupManageService.deletePopup(popupManageVO); |
|
| 397 |
-// popupManageVO.setDelSttus("Y");
|
|
| 398 |
-// try{
|
|
| 399 |
-// egovPopupManageService.deletePopup(popupManageVO); |
|
| 400 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 401 |
-// }catch(Exception e){
|
|
| 402 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete"));
|
|
| 403 |
-// } |
|
| 404 |
-// |
|
| 405 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do");
|
|
| 406 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 407 |
-// |
|
| 408 |
-// |
|
| 409 |
-// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; |
|
| 410 |
-// } else {
|
|
| 411 |
-// //상세정보 불러오기 |
|
| 412 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 413 |
-// model.addAttribute("popupManageVO", popupManageVOs);
|
|
| 414 |
-// } |
|
| 415 |
-// |
|
| 416 |
-// return sLocationUrl; |
|
| 417 |
-// } |
|
| 418 |
-// |
|
| 419 |
-// /** |
|
| 420 |
-// * 통합링크관리를 수정한다. |
|
| 421 |
-// * @param searchVO |
|
| 422 |
-// * @param popupManageVO |
|
| 423 |
-// * @param bindingResult |
|
| 424 |
-// * @param model |
|
| 425 |
-// * @return |
|
| 426 |
-// * "/uss/ion/pwm/updtPopupManage" |
|
| 427 |
-// * @throws Exception |
|
| 428 |
-// */ |
|
| 429 |
-// @RequestMapping(value = "/uss/ion/pwm/updtPopup.do") |
|
| 430 |
-// public String updateEgovPopupManage(HttpSession session , @RequestParam Map<?, ?> commandMap, PopupManageVO popupManageVO, BindingResult bindingResult, RedirectAttributes redirectAttributes,ModelMap model) throws Exception {
|
|
| 431 |
-// |
|
| 432 |
-// // 미인증 사용자에 대한 보안처리 |
|
| 433 |
-// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); |
|
| 434 |
-// if(!isAuthenticated) {
|
|
| 435 |
-// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
|
| 436 |
-// return "uat/uia/EgovLoginUsr"; |
|
| 437 |
-// } |
|
| 438 |
-// |
|
| 439 |
-// // 로그인 객체 선언 |
|
| 440 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 441 |
-// |
|
| 442 |
-// String sLocationUrl = "uss/ion/pwm/EgovPopupUpdt"; |
|
| 443 |
-// |
|
| 444 |
-// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
|
| 445 |
-// |
|
| 446 |
-// //팝업창시작일자(시) |
|
| 447 |
-// model.addAttribute("ntceBgndeHH", getTimeHH());
|
|
| 448 |
-// //팝업창시작일자(분) |
|
| 449 |
-// model.addAttribute("ntceBgndeMM", getTimeMM());
|
|
| 450 |
-// //팝업창종료일자(시) |
|
| 451 |
-// model.addAttribute("ntceEnddeHH", getTimeHH());
|
|
| 452 |
-// //팝업창정료일자(분) |
|
| 453 |
-// model.addAttribute("ntceEnddeMM", getTimeMM());
|
|
| 454 |
-// |
|
| 455 |
-// if (sCmd.equals("save")) {
|
|
| 456 |
-// sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; |
|
| 457 |
-// //서버 validate 체크 |
|
| 458 |
-// beanValidator.validate(popupManageVO, bindingResult); |
|
| 459 |
-// if (bindingResult.hasErrors()) {
|
|
| 460 |
-// return sLocationUrl; |
|
| 461 |
-// } |
|
| 462 |
-// //아이디 설정 |
|
| 463 |
-// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); |
|
| 464 |
-// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); |
|
| 465 |
-// //저장 |
|
| 466 |
-// egovPopupManageService.updatePopup(popupManageVO); |
|
| 467 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
|
| 468 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do");
|
|
| 469 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 470 |
-// } else {
|
|
| 471 |
-// |
|
| 472 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 473 |
-// |
|
| 474 |
-// String sNtceBgnde = popupManageVOs.getNtceBgnde(); |
|
| 475 |
-// String sNtceEndde = popupManageVOs.getNtceEndde(); |
|
| 476 |
-// |
|
| 477 |
-// popupManageVOs.setNtceBgndeHH(sNtceBgnde.substring(8, 10)); |
|
| 478 |
-// popupManageVOs.setNtceBgndeMM(sNtceBgnde.substring(10, 12)); |
|
| 479 |
-// |
|
| 480 |
-// popupManageVOs.setNtceEnddeHH(sNtceEndde.substring(8, 10)); |
|
| 481 |
-// popupManageVOs.setNtceEnddeMM(sNtceEndde.substring(10, 12)); |
|
| 482 |
-// |
|
| 483 |
-// model.addAttribute("popupManageVO", popupManageVOs);
|
|
| 484 |
-// } |
|
| 485 |
-// return sLocationUrl; |
|
| 486 |
-// } |
|
| 487 |
-// |
|
| 488 |
-// /** |
|
| 489 |
-// * 통합링크관리를 등록한다. |
|
| 490 |
-// * @param searchVO |
|
| 491 |
-// * @param popupManageVO |
|
| 492 |
-// * @param bindingResult |
|
| 493 |
-// * @param model |
|
| 494 |
-// * @return |
|
| 495 |
-// * "/uss/ion/pwm/registPopupManage" |
|
| 496 |
-// * @throws Exception |
|
| 497 |
-// */ |
|
| 498 |
-// @RequestMapping(value = "/uss/ion/pwm/egovPopupRegist.do") |
|
| 499 |
-// public String insertEgovPopupRegist(@RequestParam Map<?, ?> commandMap, @ModelAttribute("popupManageVO") PopupManageVO popupManageVO, BindingResult bindingResult,
|
|
| 500 |
-// RedirectAttributes redirectAttributes ,ModelMap model, HttpSession session ) throws Exception {
|
|
| 501 |
-// |
|
| 502 |
-// /*if (!EgovDoubleSubmitHelper.checkAndSaveToken()) {
|
|
| 503 |
-// return "forward:/uss/ion/pwm/listPopup.do"; |
|
| 504 |
-// }*/ |
|
| 505 |
-// |
|
| 506 |
-// // 0. Spring Security 사용자권한 처리 |
|
| 507 |
-// Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(); |
|
| 508 |
-// if (!isAuthenticated) {
|
|
| 509 |
-// model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
|
|
| 510 |
-// return "uat/uia/EgovLoginUsr"; |
|
| 511 |
-// } |
|
| 512 |
-// |
|
| 513 |
-// // 로그인 객체 선언 |
|
| 514 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 515 |
-// |
|
| 516 |
-// String sLocationUrl = "uss/ion/pwm/EgovPopupRegist"; |
|
| 517 |
-// |
|
| 518 |
-// String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
|
|
| 519 |
-// LOGGER.info("cmd => {}", sCmd);
|
|
| 520 |
-// |
|
| 521 |
-// if (sCmd.equals("save")) {
|
|
| 522 |
-// beanValidator.validate(popupManageVO, bindingResult); |
|
| 523 |
-// if (bindingResult.hasErrors()) {
|
|
| 524 |
-// return sLocationUrl; |
|
| 525 |
-// } |
|
| 526 |
-// //아이디 설정 |
|
| 527 |
-// popupManageVO.setFrstRegisterId(loginVO.getUniqId()); |
|
| 528 |
-// popupManageVO.setLastUpdusrId(loginVO.getUniqId()); |
|
| 529 |
-// //저장 |
|
| 530 |
-// popupManageVO.setNttCn(unscript(popupManageVO.getNttCn())); // XSS 방지 |
|
| 531 |
-// popupManageVO.setDelSttus("N"); //최초 생성시 삭제여부 N
|
|
| 532 |
-// egovPopupManageService.insertPopup(popupManageVO); |
|
| 533 |
-// |
|
| 534 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 535 |
-// popupManageVO.setSiteId(loginVO.getSiteId()); |
|
| 536 |
-// } |
|
| 537 |
-// |
|
| 538 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
|
| 539 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/listPopup.do");
|
|
| 540 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 541 |
-// //sLocationUrl = "forward:/uss/ion/pwm/listPopup.do"; |
|
| 542 |
-// } |
|
| 543 |
-// |
|
| 544 |
-// //팝업창시작일자(시) |
|
| 545 |
-// model.addAttribute("ntceBgndeHH", getTimeHH());
|
|
| 546 |
-// //팝업창시작일자(분) |
|
| 547 |
-// model.addAttribute("ntceBgndeMM", getTimeMM());
|
|
| 548 |
-// //팝업창종료일자(시) |
|
| 549 |
-// model.addAttribute("ntceEnddeHH", getTimeHH());
|
|
| 550 |
-// //팝업창정료일자(분) |
|
| 551 |
-// model.addAttribute("ntceEnddeMM", getTimeMM());
|
|
| 552 |
-// return sLocationUrl; |
|
| 553 |
-// } |
|
| 554 |
-// |
|
| 555 |
-// /** |
|
| 556 |
-// * 팝업창정보를 조회한다. |
|
| 557 |
-// * @param commandMap |
|
| 558 |
-// * @param popupManageVO |
|
| 559 |
-// * @return |
|
| 560 |
-// * @throws Exception |
|
| 561 |
-// */ |
|
| 562 |
-// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfoBack.do") |
|
| 563 |
-// public void egovPopupManageInfoAjaxBack(@RequestParam Map<?, ?> commandMap, HttpServletResponse response, PopupManageVO popupManageVO) throws Exception {
|
|
| 564 |
-// |
|
| 565 |
-// response.setHeader("Content-Type", "text/html;charset=utf-8");
|
|
| 566 |
-// PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8")); |
|
| 567 |
-// |
|
| 568 |
-// LOGGER.debug("commandMap : {}", commandMap);
|
|
| 569 |
-// LOGGER.debug("popupManageVO : {}", popupManageVO);
|
|
| 570 |
-// |
|
| 571 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 572 |
-// |
|
| 573 |
-// |
|
| 574 |
-// String sPrint = ""; |
|
| 575 |
-// sPrint = popupManageVOs.getFileUrl(); |
|
| 576 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupWSize(); |
|
| 577 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupHSize(); |
|
| 578 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupHlc(); |
|
| 579 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupWlc(); |
|
| 580 |
-// sPrint = sPrint + "||" + popupManageVOs.getStopVewAt(); |
|
| 581 |
-// sPrint = sPrint + "||" + popupManageVOs.getPopupType(); |
|
| 582 |
-// out.print(sPrint); |
|
| 583 |
-// out.flush(); |
|
| 584 |
-// } |
|
| 585 |
-// |
|
| 586 |
-// |
|
| 587 |
-// @RequestMapping(value = "/uss/ion/pwm/ajaxPopupManageInfo.do") |
|
| 588 |
-// public ModelAndView ajaxPopupManageInfo(@RequestParam Map<String, Object> commandMap) throws Exception {
|
|
| 589 |
-// ModelAndView modelAndView = new ModelAndView(); |
|
| 590 |
-// modelAndView.setViewName("jsonView");
|
|
| 591 |
-// |
|
| 592 |
-// PopupManageVO popupManageVO = new PopupManageVO(); |
|
| 593 |
-// popupManageVO.setPopupId((String) commandMap.get("popupIds"));
|
|
| 594 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(popupManageVO); |
|
| 595 |
-// modelAndView.addObject("popupManageVOs", popupManageVOs);
|
|
| 596 |
-// return modelAndView; |
|
| 597 |
-// } |
|
| 598 |
-// |
|
| 599 |
-// /** |
|
| 600 |
-// * 팝업창을 오픈 한다. |
|
| 601 |
-// * @param commandMap |
|
| 602 |
-// * @param popupManageVO |
|
| 603 |
-// * @return |
|
| 604 |
-// * @throws Exception |
|
| 605 |
-// */ |
|
| 606 |
-// @RequestMapping(value = "/uss/ion/pwm/openPopupManage.do") |
|
| 607 |
-// public String egovPopupManagePopupOpen(@RequestParam("fileUrl") String fileUrl, @RequestParam("stopVewAt") String stopVewAt, @RequestParam("popupId") String popupId,
|
|
| 608 |
-// ModelMap model) throws Exception {
|
|
| 609 |
-// //팝업창이 윈도우일 경우 |
|
| 610 |
-// //상세정보 불러오기 |
|
| 611 |
-// |
|
| 612 |
-// PopupManageVO paramPopupManageVO = new PopupManageVO(); |
|
| 613 |
-// paramPopupManageVO.setPopupId(popupId); |
|
| 614 |
-// PopupManageVO popupManageVOs = egovPopupManageService.selectPopup(paramPopupManageVO); |
|
| 615 |
-// model.addAttribute("popupManageVO", popupManageVOs);
|
|
| 616 |
-// |
|
| 617 |
-// model.addAttribute("stopVewAt", stopVewAt);
|
|
| 618 |
-// model.addAttribute("popupId", popupId);
|
|
| 619 |
-// |
|
| 620 |
-// return fileUrl; |
|
| 621 |
-// } |
|
| 622 |
-// |
|
| 623 |
-// /** |
|
| 624 |
-// * 팝업창관리 메인 테스트 목록을 조회한다. |
|
| 625 |
-// * @param popupManageVO |
|
| 626 |
-// * @param model |
|
| 627 |
-// * @return "uss/ion/pwm/listMainPopup" |
|
| 628 |
-// * @throws Exception |
|
| 629 |
-// */ |
|
| 630 |
-// @RequestMapping(value = "/uss/ion/pwm/listMainPopup.do") |
|
| 631 |
-// public String egovPopupManageMainList(PopupManageVO popupManageVO, ModelMap model) throws Exception {
|
|
| 632 |
-// |
|
| 633 |
-// List<?> reusltList = egovPopupManageService.selectPopupMainList(popupManageVO); |
|
| 634 |
-// model.addAttribute("resultList", reusltList);
|
|
| 635 |
-// |
|
| 636 |
-// return "uss/ion/pwm/EgovPopupMainList"; |
|
| 637 |
-// } |
|
| 638 |
-// |
|
| 639 |
-// /** |
|
| 640 |
-// * 시간을 LIST를 반환한다. |
|
| 641 |
-// * @return List |
|
| 642 |
-// * @throws |
|
| 643 |
-// */ |
|
| 644 |
-// @SuppressWarnings("unused")
|
|
| 645 |
-// private List<ComDefaultCodeVO> getTimeHH() {
|
|
| 646 |
-// ArrayList<ComDefaultCodeVO> listHH = new ArrayList<ComDefaultCodeVO>(); |
|
| 647 |
-// HashMap<?, ?> hmHHMM; |
|
| 648 |
-// for (int i = 0; i <= 24; i++) {
|
|
| 649 |
-// String sHH = ""; |
|
| 650 |
-// String strI = String.valueOf(i); |
|
| 651 |
-// if (i < 10) {
|
|
| 652 |
-// sHH = "0" + strI; |
|
| 653 |
-// } else {
|
|
| 654 |
-// sHH = strI; |
|
| 655 |
-// } |
|
| 656 |
-// |
|
| 657 |
-// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); |
|
| 658 |
-// codeVO.setCode(sHH); |
|
| 659 |
-// codeVO.setCodeNm(sHH); |
|
| 660 |
-// |
|
| 661 |
-// listHH.add(codeVO); |
|
| 662 |
-// } |
|
| 663 |
-// |
|
| 664 |
-// return listHH; |
|
| 665 |
-// } |
|
| 666 |
-// |
|
| 667 |
-// /** |
|
| 668 |
-// * 분을 LIST를 반환한다. |
|
| 669 |
-// * @return List |
|
| 670 |
-// * @throws |
|
| 671 |
-// */ |
|
| 672 |
-// @SuppressWarnings("unused")
|
|
| 673 |
-// private List<ComDefaultCodeVO> getTimeMM() {
|
|
| 674 |
-// ArrayList<ComDefaultCodeVO> listMM = new ArrayList<ComDefaultCodeVO>(); |
|
| 675 |
-// HashMap<?, ?> hmHHMM; |
|
| 676 |
-// for (int i = 0; i <= 60; i++) {
|
|
| 677 |
-// |
|
| 678 |
-// String sMM = ""; |
|
| 679 |
-// String strI = String.valueOf(i); |
|
| 680 |
-// if (i < 10) {
|
|
| 681 |
-// sMM = "0" + strI; |
|
| 682 |
-// } else {
|
|
| 683 |
-// sMM = strI; |
|
| 684 |
-// } |
|
| 685 |
-// |
|
| 686 |
-// ComDefaultCodeVO codeVO = new ComDefaultCodeVO(); |
|
| 687 |
-// codeVO.setCode(sMM); |
|
| 688 |
-// codeVO.setCodeNm(sMM); |
|
| 689 |
-// |
|
| 690 |
-// listMM.add(codeVO); |
|
| 691 |
-// } |
|
| 692 |
-// return listMM; |
|
| 693 |
-// } |
|
| 694 |
-// |
|
| 695 |
-// /** |
|
| 696 |
-// * 0을 붙여 반환 |
|
| 697 |
-// * @return String |
|
| 698 |
-// * @throws |
|
| 699 |
-// */ |
|
| 700 |
-// public String dateTypeIntForString(int iInput) {
|
|
| 701 |
-// String sOutput = ""; |
|
| 702 |
-// if (Integer.toString(iInput).length() == 1) {
|
|
| 703 |
-// sOutput = "0" + Integer.toString(iInput); |
|
| 704 |
-// } else {
|
|
| 705 |
-// sOutput = Integer.toString(iInput); |
|
| 706 |
-// } |
|
| 707 |
-// |
|
| 708 |
-// return sOutput; |
|
| 709 |
-// } |
|
| 710 |
-// |
|
| 711 |
-// /** |
|
| 712 |
-// * XSS 방지 처리. |
|
| 713 |
-// * |
|
| 714 |
-// * @param data |
|
| 715 |
-// * @return |
|
| 716 |
-// */ |
|
| 717 |
-// protected String unscript(String data) {
|
|
| 718 |
-// if (data == null || data.trim().equals("")) {
|
|
| 719 |
-// return ""; |
|
| 720 |
-// } |
|
| 721 |
-// |
|
| 722 |
-// String ret = data; |
|
| 723 |
-// |
|
| 724 |
-// ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script");
|
|
| 725 |
-// ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script");
|
|
| 726 |
-// |
|
| 727 |
-// ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object");
|
|
| 728 |
-// ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object");
|
|
| 729 |
-// |
|
| 730 |
-// ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet");
|
|
| 731 |
-// ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet");
|
|
| 732 |
-// |
|
| 733 |
-// ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 734 |
-// ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 735 |
-// |
|
| 736 |
-// ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 737 |
-// ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 738 |
-// |
|
| 739 |
-// return ret; |
|
| 740 |
-// } |
|
| 741 |
-// |
|
| 742 |
-// /*알림창괸리*/ |
|
| 743 |
-// @RequestMapping(value="/uss/ion/pwm/popupzoneList.do") |
|
| 744 |
-// public String selectPopupZoneList(ModelMap model , @ModelAttribute("searchVO") PopupzoneVO popupzoneVo, HttpSession session)
|
|
| 745 |
-// throws Exception {
|
|
| 746 |
-// |
|
| 747 |
-// /** paging */ |
|
| 748 |
-// if(popupzoneVo.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅
|
|
| 749 |
-// popupzoneVo.setPageUnit(8); |
|
| 750 |
-// }else {
|
|
| 751 |
-// popupzoneVo.setPageUnit(popupzoneVo.getPageUnit()); |
|
| 752 |
-// } |
|
| 753 |
-// |
|
| 754 |
-// PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 755 |
-// paginationInfo.setCurrentPageNo(popupzoneVo.getPageIndex()); |
|
| 756 |
-// paginationInfo.setRecordCountPerPage(popupzoneVo.getPageUnit()); |
|
| 757 |
-// paginationInfo.setPageSize(popupzoneVo.getPageSize()); |
|
| 758 |
-// |
|
| 759 |
-// popupzoneVo.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 760 |
-// popupzoneVo.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 761 |
-// popupzoneVo.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 762 |
-// |
|
| 763 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 764 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 765 |
-// popupzoneVo.setSiteId(loginVO.getSiteId()); |
|
| 766 |
-// } |
|
| 767 |
-// |
|
| 768 |
-// /** 알림창괸리 */ |
|
| 769 |
-// if("".equals(popupzoneVo.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 770 |
-// popupzoneVo.setSearchSortCnd("SORT");
|
|
| 771 |
-// popupzoneVo.setSearchSortOrd("asc");
|
|
| 772 |
-// } |
|
| 773 |
-// List<?> popupzoneList = egovPopupManageService.selectPopupzoneList(popupzoneVo); |
|
| 774 |
-// model.addAttribute("popupzoneList", popupzoneList);
|
|
| 775 |
-// |
|
| 776 |
-// /* 타겟 코드 */ |
|
| 777 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 778 |
-// vo.setCodeId("COM037");
|
|
| 779 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 780 |
-// model.addAttribute("targetList", targetList);
|
|
| 781 |
-// |
|
| 782 |
-// /*메인이미지 코드*/ |
|
| 783 |
-// vo.setCodeId("ITN008");
|
|
| 784 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 785 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 786 |
-// |
|
| 787 |
-// int totCnt = egovPopupManageService.selectPopupzoneListTotCnt(popupzoneVo); |
|
| 788 |
-// paginationInfo.setTotalRecordCount(totCnt); |
|
| 789 |
-// model.addAttribute("paginationInfo", paginationInfo);
|
|
| 790 |
-// return "uss/ion/pwm/PopupzoneList"; |
|
| 791 |
-// } |
|
| 792 |
-// |
|
| 793 |
-// /*알림창수정 view*/ |
|
| 794 |
-// @RequestMapping(value="/uss/ion/pwm/popupzoneModify.do") |
|
| 795 |
-// public String updatePopupZoneView(@RequestParam Map<?, ?> commandMap, |
|
| 796 |
-// HttpServletRequest request, Model model , HttpSession session) |
|
| 797 |
-// throws Exception {
|
|
| 798 |
-// |
|
| 799 |
-// PopupzoneVO popupzoneVO = new PopupzoneVO(); |
|
| 800 |
-// if("Modify".equals((String)commandMap.get("pageType"))){ //수정
|
|
| 801 |
-// String pozId = (String)commandMap.get("selectedId");
|
|
| 802 |
-// popupzoneVO = egovPopupManageService.selectPopupzoneVO(pozId); |
|
| 803 |
-// if(popupzoneVO != null){
|
|
| 804 |
-// popupzoneVO.setBeSort(popupzoneVO.getSort()); |
|
| 805 |
-// FileVO fileVO = new FileVO(); |
|
| 806 |
-// String atchFileId = popupzoneVO.getPopupzoneImageFile(); |
|
| 807 |
-// fileVO.setAtchFileId(atchFileId); |
|
| 808 |
-// List<FileVO> fileList = fileService.selectFileInfs(fileVO); |
|
| 809 |
-// model.addAttribute("fileList", fileList);
|
|
| 810 |
-// } |
|
| 811 |
-// }else{ //등록
|
|
| 812 |
-// } |
|
| 813 |
-// |
|
| 814 |
-// if(null != commandMap.get("seCd")){
|
|
| 815 |
-// popupzoneVO.setSeCd((String)(commandMap.get("seCd")));
|
|
| 816 |
-// } |
|
| 817 |
-// |
|
| 818 |
-// model.addAttribute("popupzoneVO", popupzoneVO);
|
|
| 819 |
-// |
|
| 820 |
-// /* 타겟 코드 */ |
|
| 821 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 822 |
-// vo.setCodeId("COM037");
|
|
| 823 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 824 |
-// model.addAttribute("targetList", targetList);
|
|
| 825 |
-// |
|
| 826 |
-// /*메인이미지 코드*/ |
|
| 827 |
-// vo.setCodeId("ITN008");
|
|
| 828 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 829 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 830 |
-// return "uss/ion/pwm/PopupZoneModify"; |
|
| 831 |
-// } |
|
| 832 |
-// |
|
| 833 |
-// /*알림창수정 */ |
|
| 834 |
-// @RequestMapping("/uss/ion/pwm/popupzoneUpdate.do")
|
|
| 835 |
-// public String updatePopupzone( |
|
| 836 |
-// @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO,
|
|
| 837 |
-// final MultipartHttpServletRequest multiRequest, |
|
| 838 |
-// HttpServletRequest request, |
|
| 839 |
-// RedirectAttributes redirectAttributes, |
|
| 840 |
-// HttpServletResponse response,Model model) |
|
| 841 |
-// throws Exception {
|
|
| 842 |
-// //popupzoneVO.setUpfile(managementPopupzoneFile(popupzoneVO.getSeq(),popupzoneVO.getUpfile(),multiRequest)); |
|
| 843 |
-// |
|
| 844 |
-// /*SortVO sortVO = new SortVO(); |
|
| 845 |
-// |
|
| 846 |
-// if(odl_popupzoneVO.getSort() > popupzoneVO.getSort()){
|
|
| 847 |
-// sortVO.setStartSort(popupzoneVO.getSort()); |
|
| 848 |
-// sortVO.setEndSort(odl_popupzoneVO.getSort()); |
|
| 849 |
-// egovPopupManageService.updateSortUp(sortVO); |
|
| 850 |
-// } |
|
| 851 |
-// else if(odl_popupzoneVO.getSort() < popupzoneVO.getSort()) {
|
|
| 852 |
-// sortVO.setStartSort(odl_popupzoneVO.getSort()); |
|
| 853 |
-// sortVO.setEndSort(popupzoneVO.getSort()); |
|
| 854 |
-// egovPopupManageService.updateSortDown(sortVO); |
|
| 855 |
-// }*/ |
|
| 856 |
-// |
|
| 857 |
-// /*파일등록 */ |
|
| 858 |
-// List<FileVO> result = null; |
|
| 859 |
-// String uploadFolder = ""; |
|
| 860 |
-// String orignlFileNm = ""; |
|
| 861 |
-// String atchFileId = ""; |
|
| 862 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 863 |
-// |
|
| 864 |
-// if (!files.isEmpty()){
|
|
| 865 |
-// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); |
|
| 866 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 867 |
-// FileVO vo = null; |
|
| 868 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 869 |
-// while (iter.hasNext()) {
|
|
| 870 |
-// vo = iter.next(); |
|
| 871 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 872 |
-// atchFileId = vo.getAtchFileId(); |
|
| 873 |
-// } |
|
| 874 |
-// if (vo == null) {
|
|
| 875 |
-// } else {
|
|
| 876 |
-// popupzoneVO.setPopupzoneImage(orignlFileNm); |
|
| 877 |
-// popupzoneVO.setPopupzoneImageFile(atchFileId); |
|
| 878 |
-// } |
|
| 879 |
-// } |
|
| 880 |
-// |
|
| 881 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 882 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 883 |
-// popupzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 884 |
-// } |
|
| 885 |
-// popupzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 886 |
-// egovPopupManageService.updatePopupzone(popupzoneVO); |
|
| 887 |
-// |
|
| 888 |
-// if(popupzoneVO.getSort() < popupzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
|
|
| 889 |
-// popupzoneVO.setSortOver("D");
|
|
| 890 |
-// } |
|
| 891 |
-// egovPopupManageService.resetVOSort(popupzoneVO); |
|
| 892 |
-// |
|
| 893 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
|
| 894 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd());
|
|
| 895 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 896 |
-// // return "forward:/uss/ion/pwm/popupzoneList.do"; |
|
| 897 |
-// } |
|
| 898 |
-// |
|
| 899 |
-// /*알림창삭제 */ |
|
| 900 |
-// @RequestMapping("/uss/ion/pwm/popupzoneListDelete.do")
|
|
| 901 |
-// public String deletePopupzone(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , @RequestParam Map<?, ?> commandMap , Model model) throws Exception {
|
|
| 902 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 903 |
-// PopupzoneVO popupzoneVO = new PopupzoneVO(); |
|
| 904 |
-// for(String id:del) {
|
|
| 905 |
-// try{
|
|
| 906 |
-// popupzoneVO = egovPopupManageService.selectPopupzoneVO(id); |
|
| 907 |
-// }catch(Exception e){
|
|
| 908 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg"));
|
|
| 909 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do");
|
|
| 910 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 911 |
-// } |
|
| 912 |
-// egovPopupManageService.deletePopupzone(id); |
|
| 913 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){
|
|
| 914 |
-// popupzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 915 |
-// } |
|
| 916 |
-// egovPopupManageService.resetSort(popupzoneVO); |
|
| 917 |
-// } |
|
| 918 |
-// |
|
| 919 |
-// String paramSeCd = ""; |
|
| 920 |
-// if(null != commandMap.get("seCd")) {
|
|
| 921 |
-// paramSeCd = "?seCd="+(String)commandMap.get("seCd") ;
|
|
| 922 |
-// } |
|
| 923 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 924 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do"+paramSeCd);
|
|
| 925 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 926 |
-// } |
|
| 927 |
-// |
|
| 928 |
-// /* 알림창 등록 */ |
|
| 929 |
-// @RequestMapping("/uss/ion/pwm/popupzoneInsert.do")
|
|
| 930 |
-// public String insertPopupzone( @ModelAttribute("popupzoneVO") PopupzoneVO popupzoneVO, final MultipartHttpServletRequest multiRequest, RedirectAttributes redirectAttributes,
|
|
| 931 |
-// HttpServletRequest request, HttpServletResponse response,Model model) |
|
| 932 |
-// throws Exception {
|
|
| 933 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 934 |
-// String pozId = idgenService.getNextStringId(); |
|
| 935 |
-// popupzoneVO.setPozId(pozId); |
|
| 936 |
-// |
|
| 937 |
-// /*파일등록 */ |
|
| 938 |
-// List<FileVO> result = null; |
|
| 939 |
-// String uploadFolder = ""; |
|
| 940 |
-// String orignlFileNm = ""; |
|
| 941 |
-// String atchFileId = ""; |
|
| 942 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 943 |
-// if (!files.isEmpty()){
|
|
| 944 |
-// result = fileUtil.parseFileInf(files, "POZ_", 0, "", uploadFolder, ""); |
|
| 945 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 946 |
-// FileVO vo = null; |
|
| 947 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 948 |
-// while (iter.hasNext()) {
|
|
| 949 |
-// vo = iter.next(); |
|
| 950 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 951 |
-// atchFileId = vo.getAtchFileId(); |
|
| 952 |
-// } |
|
| 953 |
-// if (vo == null) {
|
|
| 954 |
-// } else {
|
|
| 955 |
-// popupzoneVO.setPopupzoneImage(orignlFileNm); |
|
| 956 |
-// popupzoneVO.setPopupzoneImageFile(atchFileId); |
|
| 957 |
-// } |
|
| 958 |
-// } |
|
| 959 |
-// |
|
| 960 |
-// popupzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 961 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 962 |
-// popupzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 963 |
-// } |
|
| 964 |
-// |
|
| 965 |
-// egovPopupManageService.insertPopupzone(popupzoneVO); |
|
| 966 |
-// //sort 1부터 재 정렬 |
|
| 967 |
-// popupzoneVO.setSortOver("D");
|
|
| 968 |
-// egovPopupManageService.resetSort(popupzoneVO); |
|
| 969 |
-// |
|
| 970 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
|
| 971 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/popupzoneList.do?seCd="+popupzoneVO.getSeCd());
|
|
| 972 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 973 |
-// //return "forward:/uss/ion/pwm/popupzoneList.do"; |
|
| 974 |
-// } |
|
| 975 |
-// |
|
| 976 |
-// /* 메인이미지 등록 */ |
|
| 977 |
-// @RequestMapping("/uss/ion/pwm/mainzoneInsert.do")
|
|
| 978 |
-// public String insertMainzone( @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO, final MultipartHttpServletRequest multiRequest,
|
|
| 979 |
-// HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes , Model model) |
|
| 980 |
-// throws Exception {
|
|
| 981 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 982 |
-// |
|
| 983 |
-// String mainId = idgenServiceMain.getNextStringId(); |
|
| 984 |
-// mainzoneVO.setMazId(mainId); |
|
| 985 |
-// mainzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 986 |
-// //SortVO sortVO = new SortVO(); |
|
| 987 |
-// //sortVO.setStartSort(mainzoneVO.getSort()); |
|
| 988 |
-// //sortVO.setEndSort(egovPopupManageService.getMainMaxSort()); |
|
| 989 |
-// |
|
| 990 |
-// /*파일등록 */ |
|
| 991 |
-// List<FileVO> result = null; |
|
| 992 |
-// String uploadFolder = ""; |
|
| 993 |
-// String orignlFileNm = ""; |
|
| 994 |
-// String atchFileId = ""; |
|
| 995 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 996 |
-// if (!files.isEmpty()){
|
|
| 997 |
-// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); |
|
| 998 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 999 |
-// FileVO vo = null; |
|
| 1000 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 1001 |
-// while (iter.hasNext()) {
|
|
| 1002 |
-// vo = iter.next(); |
|
| 1003 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 1004 |
-// atchFileId = vo.getAtchFileId(); |
|
| 1005 |
-// } |
|
| 1006 |
-// if (vo == null) {
|
|
| 1007 |
-// } else {
|
|
| 1008 |
-// mainzoneVO.setMainzoneImage(orignlFileNm); |
|
| 1009 |
-// mainzoneVO.setMainzoneImageFile(atchFileId); |
|
| 1010 |
-// } |
|
| 1011 |
-// } |
|
| 1012 |
-// |
|
| 1013 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 1014 |
-// mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 1015 |
-// } |
|
| 1016 |
-// |
|
| 1017 |
-// egovPopupManageService.insertMainzone(mainzoneVO); |
|
| 1018 |
-// //sort 1부터 재 정렬 |
|
| 1019 |
-// mainzoneVO.setSortOver("D"); //앞쪽에 넣음
|
|
| 1020 |
-// egovPopupManageService.resetMainVOSort(mainzoneVO); |
|
| 1021 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.insert"));
|
|
| 1022 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1023 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1024 |
-// //return "forward:/uss/ion/pwm/mainzoneList.do"; |
|
| 1025 |
-// } |
|
| 1026 |
-// |
|
| 1027 |
-// |
|
| 1028 |
-// /*메인 이미지삭제 */ |
|
| 1029 |
-// @RequestMapping("/uss/ion/pwm/mainzoneListDelete.do")
|
|
| 1030 |
-// public String deleteMainzoneDelete(@RequestParam("del") String[] del, RedirectAttributes redirectAttributes , Model model) throws Exception {
|
|
| 1031 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 1032 |
-// MainzoneVO mainzoneVO = new MainzoneVO(); |
|
| 1033 |
-// for(String id:del) {
|
|
| 1034 |
-// try{
|
|
| 1035 |
-// mainzoneVO = egovPopupManageService.selectMainzoneVO(id); |
|
| 1036 |
-// }catch(Exception e){
|
|
| 1037 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("info.nodata.msg"));
|
|
| 1038 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1039 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1040 |
-// } |
|
| 1041 |
-// egovPopupManageService.deleteMainzone(id); |
|
| 1042 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){
|
|
| 1043 |
-// mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 1044 |
-// } |
|
| 1045 |
-// egovPopupManageService.resetMainVOSort(mainzoneVO); |
|
| 1046 |
-// } |
|
| 1047 |
-// |
|
| 1048 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 1049 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1050 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1051 |
-// } |
|
| 1052 |
-// |
|
| 1053 |
-// |
|
| 1054 |
-// /*알림창수정 */ |
|
| 1055 |
-// @RequestMapping("/uss/ion/pwm/mainzoneUpdate.do")
|
|
| 1056 |
-// public String updateMainzone( |
|
| 1057 |
-// @ModelAttribute("mainzoneVO") MainzoneVO mainzoneVO,
|
|
| 1058 |
-// final MultipartHttpServletRequest multiRequest, |
|
| 1059 |
-// HttpServletRequest request, |
|
| 1060 |
-// RedirectAttributes redirectAttributes, |
|
| 1061 |
-// HttpServletResponse response,Model model) |
|
| 1062 |
-// throws Exception {
|
|
| 1063 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 1064 |
-// |
|
| 1065 |
-// /*파일등록 */ |
|
| 1066 |
-// List<FileVO> result = null; |
|
| 1067 |
-// String uploadFolder = ""; |
|
| 1068 |
-// String orignlFileNm = ""; |
|
| 1069 |
-// String atchFileId = ""; |
|
| 1070 |
-// final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 1071 |
-// |
|
| 1072 |
-// if (!files.isEmpty()){
|
|
| 1073 |
-// result = fileUtil.parseFileInf(files, "MAZ_", 0, "", uploadFolder, ""); |
|
| 1074 |
-// atchFileId = fileMngService.insertFileInfs(result); |
|
| 1075 |
-// FileVO vo = null; |
|
| 1076 |
-// Iterator<FileVO> iter = result.iterator(); |
|
| 1077 |
-// while (iter.hasNext()) {
|
|
| 1078 |
-// vo = iter.next(); |
|
| 1079 |
-// orignlFileNm = vo.getOrignlFileNm(); |
|
| 1080 |
-// atchFileId = vo.getAtchFileId(); |
|
| 1081 |
-// } |
|
| 1082 |
-// if (vo == null) {
|
|
| 1083 |
-// } else {
|
|
| 1084 |
-// mainzoneVO.setMainzoneImage(orignlFileNm); |
|
| 1085 |
-// mainzoneVO.setMainzoneImageFile(atchFileId); |
|
| 1086 |
-// } |
|
| 1087 |
-// } |
|
| 1088 |
-// mainzoneVO.setRegisterId(loginVO.getUniqId()); |
|
| 1089 |
-// if(null != loginVO && !"super".equals(loginVO.getSiteId())){ //리스트, 수정, 입력
|
|
| 1090 |
-// mainzoneVO.setSiteId(loginVO.getSiteId()); |
|
| 1091 |
-// } |
|
| 1092 |
-// |
|
| 1093 |
-// egovPopupManageService.updateMainzone(mainzoneVO); |
|
| 1094 |
-// |
|
| 1095 |
-// //sort 1부터 재 정렬 |
|
| 1096 |
-// if(mainzoneVO.getSort() < mainzoneVO.getBeSort() ){ //sortOver : A 후번호로 변경 , D : 선번호로 변경
|
|
| 1097 |
-// mainzoneVO.setSortOver("D");
|
|
| 1098 |
-// } |
|
| 1099 |
-// egovPopupManageService.resetMainVOSort(mainzoneVO); |
|
| 1100 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.update"));
|
|
| 1101 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/mainzoneList.do");
|
|
| 1102 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1103 |
-// } |
|
| 1104 |
-// |
|
| 1105 |
-// /** |
|
| 1106 |
-// * 통합링크관리 목록을 상세조회 조회한다. |
|
| 1107 |
-// * @param popupManageVO |
|
| 1108 |
-// * @param commandMap |
|
| 1109 |
-// * @param model |
|
| 1110 |
-// * @return |
|
| 1111 |
-// * "/uss/ion/pwm/detailPopupManage" |
|
| 1112 |
-// * @throws Exception |
|
| 1113 |
-// */ |
|
| 1114 |
-// @RequestMapping(value = "/uss/ion/bnr/removePopupList.do") |
|
| 1115 |
-// public String deletePopupList(PopupManageVO popupManageVO, @RequestParam Map<?, ?> commandMap, @RequestParam("checkList") String[] checkList, RedirectAttributes redirectAttributes, ModelMap model) throws Exception {
|
|
| 1116 |
-// try{
|
|
| 1117 |
-// for(String id:checkList) {
|
|
| 1118 |
-// popupManageVO.setPopupId(id); |
|
| 1119 |
-// popupManageVO.setDelSttus("Y");
|
|
| 1120 |
-// egovPopupManageService.deletePopup(popupManageVO); |
|
| 1121 |
-// } |
|
| 1122 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 1123 |
-// }catch (Exception e) {
|
|
| 1124 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete"));
|
|
| 1125 |
-// } |
|
| 1126 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("uss/ion/pwm/listPopup.do");
|
|
| 1127 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1128 |
-// } |
|
| 1129 |
-// |
|
| 1130 |
-// |
|
| 1131 |
-// |
|
| 1132 |
-// /*소셜허브괸리*/ |
|
| 1133 |
-// @RequestMapping(value="/uss/ion/pwm/socialList.do") |
|
| 1134 |
-// public String selectSocialList(ModelMap model , @ModelAttribute("searchVO") SocialVO socialVO, HttpSession session)
|
|
| 1135 |
-// throws Exception {
|
|
| 1136 |
-// |
|
| 1137 |
-// /** paging */ |
|
| 1138 |
-// if(socialVO.getPageUnit()% 8 != 0) {//9 배수로 넘어오지 않으면 초기세팅
|
|
| 1139 |
-// socialVO.setPageUnit(8); |
|
| 1140 |
-// }else {
|
|
| 1141 |
-// socialVO.setPageUnit(socialVO.getPageUnit()); |
|
| 1142 |
-// } |
|
| 1143 |
-// |
|
| 1144 |
-// PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 1145 |
-// paginationInfo.setCurrentPageNo(socialVO.getPageIndex()); |
|
| 1146 |
-// paginationInfo.setRecordCountPerPage(socialVO.getPageUnit()); |
|
| 1147 |
-// paginationInfo.setPageSize(socialVO.getPageSize()); |
|
| 1148 |
-// |
|
| 1149 |
-// socialVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 1150 |
-// socialVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 1151 |
-// socialVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 1152 |
-// |
|
| 1153 |
-// LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); |
|
| 1154 |
-// |
|
| 1155 |
-// /** 소설괸리 */ |
|
| 1156 |
-// if("".equals(socialVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 1157 |
-// socialVO.setSearchSortCnd("SORT");
|
|
| 1158 |
-// socialVO.setSearchSortOrd("asc");
|
|
| 1159 |
-// } |
|
| 1160 |
-// List<SocialVO> socialList = egovPopupManageService.selectSocialList(socialVO); |
|
| 1161 |
-// model.addAttribute("socialList", socialList);
|
|
| 1162 |
-// |
|
| 1163 |
-// /* 타겟 코드 */ |
|
| 1164 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 1165 |
-// vo.setCodeId("COM037");
|
|
| 1166 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 1167 |
-// model.addAttribute("targetList", targetList);
|
|
| 1168 |
-// |
|
| 1169 |
-// /*메인이미지 코드*/ |
|
| 1170 |
-// vo.setCodeId("ITN016");
|
|
| 1171 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 1172 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 1173 |
-// |
|
| 1174 |
-// paginationInfo.setTotalRecordCount(socialList.size()> 0 ? ((SocialVO)socialList.get(0)).getTotCnt() : 0); |
|
| 1175 |
-// model.addAttribute("paginationInfo", paginationInfo);
|
|
| 1176 |
-// return "uss/ion/pwm/SocialList"; |
|
| 1177 |
-// } |
|
| 1178 |
-// |
|
| 1179 |
-// |
|
| 1180 |
-// |
|
| 1181 |
-// /*소셜창수정 view*/ |
|
| 1182 |
-// @RequestMapping(value="/uss/ion/pwm/socialModify.do") |
|
| 1183 |
-// public String updateSocialModifyView(@RequestParam Map<?, ?> commandMap, |
|
| 1184 |
-// HttpServletRequest request, Model model , HttpSession session) |
|
| 1185 |
-// throws Exception {
|
|
| 1186 |
-// |
|
| 1187 |
-// SocialVO socialVO = new SocialVO(); |
|
| 1188 |
-// if("Modify".equals((String)commandMap.get("pageType"))){ //수정
|
|
| 1189 |
-// String socialId = (String)commandMap.get("selectedId");
|
|
| 1190 |
-// //socialVO = egovPopupManageService.selectPopupzoneVO(pozId); |
|
| 1191 |
-// socialVO = egovPopupManageService.selectSocialVO(socialId); |
|
| 1192 |
-// if(socialVO != null){
|
|
| 1193 |
-// socialVO.setBeSort(socialVO.getSort()); |
|
| 1194 |
-// FileVO fileVO = new FileVO(); |
|
| 1195 |
-// String atchFileId = socialVO.getSocialImageFile(); |
|
| 1196 |
-// fileVO.setAtchFileId(atchFileId); |
|
| 1197 |
-// List<FileVO> fileList = fileService.selectFileInfs(fileVO); |
|
| 1198 |
-// model.addAttribute("fileList", fileList);
|
|
| 1199 |
-// } |
|
| 1200 |
-// }else{ //등록
|
|
| 1201 |
-// } |
|
| 1202 |
-// |
|
| 1203 |
-// model.addAttribute("socialVO", socialVO);
|
|
| 1204 |
-// |
|
| 1205 |
-// /* 타겟 코드 */ |
|
| 1206 |
-// ComDefaultCodeVO vo = new ComDefaultCodeVO(); |
|
| 1207 |
-// vo.setCodeId("COM037");
|
|
| 1208 |
-// List<?> targetList = cmmUseService.selectCmmCodeDetail(vo); |
|
| 1209 |
-// model.addAttribute("targetList", targetList);
|
|
| 1210 |
-// |
|
| 1211 |
-// /*소셜허브종류 코드*/ |
|
| 1212 |
-// vo.setCodeId("ITN016");
|
|
| 1213 |
-// List<?> imgCode= cmmUseService.selectCmmCodeDetail(vo); |
|
| 1214 |
-// model.addAttribute("imgCodeList", imgCode);
|
|
| 1215 |
-// //return "uss/ion/pwm/PopupZoneModify"; |
|
| 1216 |
-// return "uss/ion/pwm/SocialModify"; |
|
| 1217 |
-// } |
|
| 1218 |
-// |
|
| 1219 |
-// @RequestMapping(value = "/uss/ion/pwm/socialDelete.do") |
|
| 1220 |
-// public String deleteSocial(@RequestParam Map<?, ?> commandMap, @RequestParam("del") String[] del , RedirectAttributes redirectAttributes, ModelMap model) throws Exception {
|
|
| 1221 |
-// try{
|
|
| 1222 |
-// for(String id:del) {
|
|
| 1223 |
-// egovPopupManageService.deleteSocial(id); |
|
| 1224 |
-// } |
|
| 1225 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("success.common.delete"));
|
|
| 1226 |
-// }catch (Exception e) {
|
|
| 1227 |
-// redirectAttributes.addFlashAttribute("message", egovMessageSource.getMessage("fail.common.delete"));
|
|
| 1228 |
-// } |
|
| 1229 |
-// RedirectUrlMaker redirectUrlMaker = new RedirectUrlMaker("/uss/ion/pwm/socialList.do");
|
|
| 1230 |
-// return redirectUrlMaker.getRedirectUrl(); |
|
| 1231 |
-// } |
|
| 1232 |
-// |
|
| 1233 |
-// |
|
| 1234 |
-// |
|
| 1235 | 308 |
}(No newline at end of file) |
--- 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 @@ |
| 51 | 51 |
function fn_mainzone_view(id, pageType){
|
| 52 | 52 |
document.modiForm.selectedId.value = id; |
| 53 | 53 |
document.modiForm.pageType.value = "Modify"; |
| 54 |
- document.modiForm.action = "<c:url value='/uss/ion/bnr/subMainzoneModify.do'/>"; |
|
| 54 |
+ document.modiForm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneModify.do'/>"; |
|
| 55 | 55 |
document.modiForm.submit(); |
| 56 | 56 |
} |
| 57 | 57 |
|
| 58 | 58 |
/* 메인창 등록화면*/ |
| 59 | 59 |
function fn_mainzone_insert_view(){
|
| 60 | 60 |
document.modiForm.pageType.value = "Insert"; |
| 61 |
- document.modiForm.action = "<c:url value='/uss/ion/bnr/subMainzoneModify.do'/>"; |
|
| 61 |
+ document.modiForm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneModify.do'/>"; |
|
| 62 | 62 |
document.modiForm.submit(); |
| 63 | 63 |
} |
| 64 | 64 |
|
... | ... | @@ -117,7 +117,7 @@ |
| 117 | 117 |
|
| 118 | 118 |
if (confirm("해당 메인이미지 삭제하시겠습니까?")){
|
| 119 | 119 |
frm = document.listForm; |
| 120 |
- frm.action = "<c:url value='/uss/ion/bnr/subMainzoneListDelete.do' />"; |
|
| 120 |
+ frm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneListDelete.do' />"; |
|
| 121 | 121 |
frm.submit(); |
| 122 | 122 |
} |
| 123 | 123 |
} |
... | ... | @@ -136,7 +136,7 @@ |
| 136 | 136 |
</script> |
| 137 | 137 |
</head> |
| 138 | 138 |
<body> |
| 139 |
-<form name="listForm" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>" method="post"> |
|
| 139 |
+<form name="listForm" action="<c:url value='/uss/ion/bnr/sub/subMainZoneList.do'/>" method="post"> |
|
| 140 | 140 |
<input name="pageIndex" type="hidden" value="<c:out value='${mainzoneVO.pageIndex}'/>"/>
|
| 141 | 141 |
<input type="hidden" name="selectedId" /> |
| 142 | 142 |
<input type="hidden" name="pageType" /> |
... | ... | @@ -240,16 +240,11 @@ |
| 240 | 240 |
</div> |
| 241 | 241 |
</div> |
| 242 | 242 |
</form> |
| 243 |
-<form name="subForm" method="get" action="<c:url value='/uss/ion/pwm/detailPopup.do'/>"> |
|
| 244 |
- <input name="popupId" type="hidden" value="" /> |
|
| 245 |
- <input name="pageIndex" type="hidden" value="<c:out value='${mainzoneVO.pageIndex}'/>"/>
|
|
| 246 |
- <input name="cmd" type="hidden" value="<c:out value=''/>"/> |
|
| 247 |
- </form> |
|
| 248 |
-<form name="modiForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneModify.do'/>" > |
|
| 243 |
+<form name="modiForm" method="get" action="<c:url value='/uss/ion/bnr/sub/subMainzoneModify.do'/>" > |
|
| 249 | 244 |
<input name="selectedId" type="hidden" /> |
| 250 | 245 |
<input name="pageType" type="hidden" /> |
| 251 | 246 |
</form> |
| 252 |
-<form name="searchForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>"> |
|
| 247 |
+<form name="searchForm" method="get" action="<c:url value='/uss/ion/bnr/sub/subMainZoneList.do'/>"> |
|
| 253 | 248 |
<input name="pageIndex" type="hidden" value="1" /> |
| 254 | 249 |
<input name="searchCondition" type="hidden" /> |
| 255 | 250 |
<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
... | ... | @@ -163,7 +163,7 @@ |
| 163 | 163 |
if (confirm(msg)) {
|
| 164 | 164 |
frm = document.writeForm; |
| 165 | 165 |
frm.del.value = frm.mazId.value ; |
| 166 |
- frm.action = "<c:url value='/uss/ion/bnr/subMainzoneListDelete.do'/>"; |
|
| 166 |
+ frm.action = "<c:url value='/uss/ion/bnr/sub/subMainzoneListDelete.do'/>"; |
|
| 167 | 167 |
frm.submit(); |
| 168 | 168 |
} |
| 169 | 169 |
|
... | ... | @@ -578,6 +578,6 @@ |
| 578 | 578 |
</div> |
| 579 | 579 |
</div> |
| 580 | 580 |
</form:form> |
| 581 |
-<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/bnr/subMainZoneList.do'/>" ></form> |
|
| 581 |
+<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/bnr/sub/subMainZoneList.do'/>" ></form> |
|
| 582 | 582 |
</body> |
| 583 | 583 |
</html> |
--- src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp
+++ src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp
... | ... | @@ -1515,7 +1515,7 @@ |
| 1515 | 1515 |
<div class="swiper-slide"> |
| 1516 | 1516 |
<div class="contWrap"> |
| 1517 | 1517 |
<c:if test="${not empty sub.mlink }">
|
| 1518 |
- <a href="/web/mjon/msgdata/excel/selectMsgExcelDataView.do" title="페이지 이동"> |
|
| 1518 |
+ <a href="<c:out value='${sub.mlink}'/>" title="페이지 이동">
|
|
| 1519 | 1519 |
</c:if> |
| 1520 | 1520 |
<ul class="slide_cont1 table_cell1"> |
| 1521 | 1521 |
<li class="cont1_title"><c:out value="${sub.topTxt }" /></li>
|
... | ... | @@ -1530,7 +1530,7 @@ |
| 1530 | 1530 |
</c:if> |
| 1531 | 1531 |
</ul> |
| 1532 | 1532 |
<c:if test="${not empty sub.mlink }">
|
| 1533 |
- </a> |
|
| 1533 |
+ </a> |
|
| 1534 | 1534 |
</c:if> |
| 1535 | 1535 |
</div> |
| 1536 | 1536 |
</div> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?