From 1e31e0eec9496c777d52e4b08dee828496c24050 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 15 Apr 2024 14:09:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/mngt/web/Mngt01Controller.java | 10 + .../xit/fims/mngt/web/Mngt02Controller.java | 10 + .../xit/fims/mngt/web/Mngt03Controller.java | 11 + .../xit/fims/mngt/web/Mngt04Controller.java | 10 + .../cokr/xit/fims/task/web/CmnController.java | 203 ------------------ 5 files changed, 41 insertions(+), 203 deletions(-) delete mode 100644 src/main/java/cokr/xit/fims/task/web/CmnController.java diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java index b4092a61..a4271813 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java @@ -4,6 +4,8 @@ import java.util.List; import javax.annotation.Resource; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.user.ManagedUser; @@ -18,6 +20,8 @@ import cokr.xit.foundation.data.DataObject; * {웹 컨텍스트}/mngt/mngt01 로 접근할 수 있다. * @author leebj */ +@Controller +@RequestMapping(name="공지사항 관리", value=Mngt01Controller.CLASS_URL) public class Mngt01Controller extends ApplicationController { public static final String CLASS_URL = "/mngt/mngt01"; @@ -42,6 +46,7 @@ public class Mngt01Controller extends ApplicationController { /** 공지사항 메인화면을 연다. * @return fims/mngt/mngt01010-main */ + @RequestMapping(name="공지사항 메인", value=METHOD_URL.ntcMain) public ModelAndView ntcMain() { ModelAndView mav = new ModelAndView(); mav.setViewName("fims/mngt/mngt01010-main"); @@ -61,6 +66,7 @@ public class Mngt01Controller extends ApplicationController { * "ntcTotal": 조회 결과 찾은 전체 공지사항 수 * } */ + @RequestMapping(name="공지사항 목록 조회", value=METHOD_URL.getNtcList) public ModelAndView getNtcList(NtcQuery req) { ModelAndView mav = new ModelAndView("jsonView"); setFetchSize(req); @@ -77,6 +83,7 @@ public class Mngt01Controller extends ApplicationController { * @param ntcId 공지사항 ID * @return jsonView */ + @RequestMapping(name="공지사항 상세 조회", value=METHOD_URL.getNtcInfo) public ModelAndView getNtcInfo(String ntcId) { boolean json = jsonResponse(); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/mngt/mngt01020-info"); @@ -102,6 +109,7 @@ public class Mngt01Controller extends ApplicationController { * "saved": 등록되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="공지사항 등록", value=METHOD_URL.create) public ModelAndView create(Ntc ntc) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; @@ -122,6 +130,7 @@ public class Mngt01Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="공지사항 수정", value=METHOD_URL.update) public ModelAndView update(Ntc ntc) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; @@ -143,6 +152,7 @@ public class Mngt01Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="공지사항 삭제", value=METHOD_URL.remove) public ModelAndView remove(Ntc ntc) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt02Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt02Controller.java index ddb4c32f..e0f7f590 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt02Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt02Controller.java @@ -4,6 +4,8 @@ import java.util.List; import javax.annotation.Resource; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.web.ApplicationController; @@ -16,6 +18,8 @@ import cokr.xit.foundation.data.DataObject; * {웹 컨텍스트}/mngt/mngt02 로 접근할 수 있다. * @author leebj */ +@Controller +@RequestMapping(name="일정관리", value=Mngt02Controller.CLASS_URL) public class Mngt02Controller extends ApplicationController { public static final String CLASS_URL = "/mngt/mngt02"; @@ -37,6 +41,7 @@ public class Mngt02Controller extends ApplicationController { /** 일정관리 메인화면을 연다. * @return fims/mngt/mngt02010-main */ + @RequestMapping(name="일정관리", value=Mngt02Controller.CLASS_URL) public ModelAndView schdlMain() { ModelAndView mav = new ModelAndView(); mav.setViewName("fims/mngt/mngt02010-main"); @@ -56,6 +61,7 @@ public class Mngt02Controller extends ApplicationController { * "schdlTotal": 조회 결과 찾은 전체 일정관리 수 * } */ + @RequestMapping(name="일정 목록 조회", value=METHOD_URL.getSchdlList) public ModelAndView getSchdlList(SchdlQuery req) { ModelAndView mav = new ModelAndView("jsonView"); @@ -70,6 +76,7 @@ public class Mngt02Controller extends ApplicationController { * @param req 일정관리 조회 조건 * @return jsonView */ + @RequestMapping(name="일정 조회", value=METHOD_URL.getSchdlInfo) public ModelAndView getSchdlInfo(String schdlId, String schdlBgngYmd, String schdlEndYmd) { boolean json = jsonResponse(); @@ -96,6 +103,7 @@ public class Mngt02Controller extends ApplicationController { * "saved": 등록되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="일정 추가", value=METHOD_URL.create) public ModelAndView create(Schdl schdl) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; @@ -117,6 +125,7 @@ public class Mngt02Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="일정 수정", value=METHOD_URL.update) public ModelAndView update(Schdl schdl) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; @@ -138,6 +147,7 @@ public class Mngt02Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="일정 삭제", value=METHOD_URL.remove) public ModelAndView remove(Schdl schdl) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java index 223bb42f..f8cec35e 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java @@ -8,6 +8,8 @@ import java.util.Map; import javax.annotation.Resource; import org.apache.commons.io.FilenameUtils; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.ModelAndView; @@ -29,6 +31,8 @@ import cokr.xit.foundation.data.DataObject; * {웹 컨텍스트}/mngt/mngt03 로 접근할 수 있다. * @author leebj */ +@Controller +@RequestMapping(name="시군구 정보 관리", value=Mngt03Controller.CLASS_URL) public class Mngt03Controller extends ApplicationController { public static final String CLASS_URL = "/mngt/mngt03"; @@ -72,6 +76,7 @@ public class Mngt03Controller extends ApplicationController { /** 시군구관리 메인화면을 연다. * @return fims/mngt/mngt03010-main */ + @RequestMapping(name="시군구 정보 관리 메인", value=METHOD_URL.sggMngtMain) public ModelAndView sggMngtMain(String sggCd) { ModelAndView mav = new ModelAndView(); @@ -106,6 +111,7 @@ public class Mngt03Controller extends ApplicationController { * @param req * @return jsonView */ + @RequestMapping(name="시군구 조회", value=METHOD_URL.getSggInfo) public ModelAndView getSggInfo(CmmnQuery req) { ModelAndView mav = new ModelAndView("jsonView"); DataObject sggInfo = factionService.getSggInfo(req); @@ -117,6 +123,7 @@ public class Mngt03Controller extends ApplicationController { * @param req * @return jsonView */ + @RequestMapping(name="업무 조회", value=METHOD_URL.getTasks) public ModelAndView getTasks(CmmnQuery req) { List result = taskBean.getTasks(req); @@ -126,6 +133,7 @@ public class Mngt03Controller extends ApplicationController { /**지정하는 시군구와 업무의 위반 설정 정보를 가져온다.
* @return 위반 설정 정보 */ + @RequestMapping(name="위반정보 조회", value=METHOD_URL.getVltns) public ModelAndView getVltns(VltnQuery req) { List result = vltnBean.getVltns(req); return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn"); @@ -138,6 +146,7 @@ public class Mngt03Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="시군구 정보 수정", value=METHOD_URL.updateSgg) public ModelAndView updateSgg(FimsSigungu sgg, MultipartFile symbol, MultipartFile logo, MultipartFile offcs) { ModelAndView mav = new ModelAndView("jsonView"); @@ -204,6 +213,7 @@ public class Mngt03Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="업무 설정 정보 수정", value=METHOD_URL.updateTaskStng) public ModelAndView updateTaskStng(Task task) { ModelAndView mav = new ModelAndView("jsonView"); @@ -223,6 +233,7 @@ public class Mngt03Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="시군구 과태료 업무 추가", value=METHOD_URL.createTaskStng) public ModelAndView createTaskStng(String sggCd, String taskSeCd) { ModelAndView mav = new ModelAndView("jsonView"); diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java index 51a5c0da..5992d693 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt04Controller.java @@ -4,6 +4,8 @@ import java.util.List; import javax.annotation.Resource; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.web.ApplicationController; @@ -18,6 +20,8 @@ import cokr.xit.foundation.data.DataObject; * {웹 컨텍스트}/mngt/mngt04 로 접근할 수 있다. * @author leebj */ +@Controller +@RequestMapping(name="부서 정보 관리", value=Mngt04Controller.CLASS_URL) public class Mngt04Controller extends ApplicationController { public static final String CLASS_URL = "/mngt/mngt04"; @@ -47,6 +51,7 @@ public class Mngt04Controller extends ApplicationController { /** 부서관리 메인화면을 연다. * @return fims/mngt/mngt04010-main */ + @RequestMapping(name="부서 정보 관리 메인", value=METHOD_URL.deptMngtMain) public ModelAndView deptMngtMain() { ModelAndView mav = new ModelAndView(); @@ -65,6 +70,7 @@ public class Mngt04Controller extends ApplicationController { * @param query 부서 목록 조회 조건 * @return jsonView */ + @RequestMapping(name="부서 목록 조회", value=METHOD_URL.getDeptList) public ModelAndView getDeptList(CmmnQuery query) { setFetchSize(query); @@ -80,6 +86,7 @@ public class Mngt04Controller extends ApplicationController { * "deptInfo": 부서 정보 * } */ + @RequestMapping(name="부서 상세 조회", value=METHOD_URL.getDeptInfo) public ModelAndView getDeptInfo(CmmnQuery query) { DataObject deptInfo = new DataObject(); @@ -104,6 +111,7 @@ public class Mngt04Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="부서 삭제", value=METHOD_URL.removeDept) public ModelAndView removeDept(String... deptCds) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; @@ -123,6 +131,7 @@ public class Mngt04Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="부서 등록", value=METHOD_URL.createDept) public ModelAndView createDept(FimsDepartment dept) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; @@ -142,6 +151,7 @@ public class Mngt04Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ + @RequestMapping(name="부서 수정", value=METHOD_URL.updateDept) public ModelAndView updateDept(FimsDepartment dept) { ModelAndView mav = new ModelAndView("jsonView"); boolean saved = false; diff --git a/src/main/java/cokr/xit/fims/task/web/CmnController.java b/src/main/java/cokr/xit/fims/task/web/CmnController.java deleted file mode 100644 index 236e8abb..00000000 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ /dev/null @@ -1,203 +0,0 @@ -package cokr.xit.fims.task.web; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.multipart.MultipartFile; -import org.springframework.web.servlet.ModelAndView; - -import cokr.xit.fims.cmmn.CmmnQuery; -import cokr.xit.fims.mngt.FimsDepartment; -import cokr.xit.fims.mngt.FimsSigungu; -import cokr.xit.fims.mngt.Ntc; -import cokr.xit.fims.mngt.NtcQuery; -import cokr.xit.fims.mngt.Schdl; -import cokr.xit.fims.mngt.SchdlQuery; -import cokr.xit.fims.mngt.Task; -import cokr.xit.fims.mngt.VltnQuery; - -@Controller -public class CmnController { - - - - @Controller - @RequestMapping(name="공지사항 관리", value=Mngt01Controller.CLASS_URL) - class Mngt01Controller extends cokr.xit.fims.mngt.web.Mngt01Controller { - - @Override - @RequestMapping(name="공지사항 메인", value=METHOD_URL.ntcMain) - public ModelAndView ntcMain() { - return super.ntcMain(); - } - - @Override - @RequestMapping(name="공지사항 목록 조회", value=METHOD_URL.getNtcList) - public ModelAndView getNtcList(NtcQuery req) { - return super.getNtcList(req); - } - - @Override - @RequestMapping(name="공지사항 상세 조회", value=METHOD_URL.getNtcInfo) - public ModelAndView getNtcInfo(String ntcId) { - return super.getNtcInfo(ntcId); - } - - @Override - @RequestMapping(name="공지사항 등록", value=METHOD_URL.create) - public ModelAndView create(Ntc ntc) { - return super.create(ntc); - } - - @Override - @RequestMapping(name="공지사항 수정", value=METHOD_URL.update) - public ModelAndView update(Ntc ntc) { - return super.update(ntc); - } - - @Override - @RequestMapping(name="공지사항 삭제", value=METHOD_URL.remove) - public ModelAndView remove(Ntc ntc) { - return super.remove(ntc); - } - - } - - @Controller - @RequestMapping(name="일정관리", value=Mngt02Controller.CLASS_URL) - class Mngt02Controller extends cokr.xit.fims.mngt.web.Mngt02Controller { - - @Override - @RequestMapping(name="일정관리 메인", value=METHOD_URL.schdlMain) - public ModelAndView schdlMain() { - return super.schdlMain(); - } - - @Override - @RequestMapping(name="일정 목록 조회", value=METHOD_URL.getSchdlList) - public ModelAndView getSchdlList(SchdlQuery req) { - return super.getSchdlList(req); - } - - @Override - @RequestMapping(name="일정 조회", value=METHOD_URL.getSchdlInfo) - public ModelAndView getSchdlInfo(String schdlId, String schdlBgngYmd, String schdlEndYmd) { - return super.getSchdlInfo(schdlId, schdlBgngYmd, schdlEndYmd); - } - - - @Override - @RequestMapping(name="일정 추가", value=METHOD_URL.create) - public ModelAndView create(Schdl schdl) { - return super.create(schdl); - } - - @Override - @RequestMapping(name="일정 수정", value=METHOD_URL.update) - public ModelAndView update(Schdl schdl) { - return super.update(schdl); - } - - @Override - @RequestMapping(name="일정 삭제", value=METHOD_URL.remove) - public ModelAndView remove(Schdl schdl) { - return super.remove(schdl); - } - - } - - @Controller - @RequestMapping(name="시군구 정보 관리", value=Mngt03Controller.CLASS_URL) - class Mngt03Controller extends cokr.xit.fims.mngt.web.Mngt03Controller { - - @Override - @RequestMapping(name="시군구 정보 관리 메인", value=METHOD_URL.sggMngtMain) - public ModelAndView sggMngtMain(String sggCd) { - return super.sggMngtMain(sggCd); - } - - @Override - @RequestMapping(name="시군구 조회", value=METHOD_URL.getSggInfo) - public ModelAndView getSggInfo(CmmnQuery req) { - return super.getSggInfo(req); - } - - @Override - @RequestMapping(name="업무 조회", value=METHOD_URL.getTasks) - public ModelAndView getTasks(CmmnQuery req) { - return super.getTasks(req); - } - - @Override - @RequestMapping(name="위반정보 조회", value=METHOD_URL.getVltns) - public ModelAndView getVltns(VltnQuery req) { - return super.getVltns(req); - } - - @Override - @RequestMapping(name="시군구 정보 수정", value=METHOD_URL.updateSgg) - public ModelAndView updateSgg(FimsSigungu sgg, MultipartFile symbol, MultipartFile logo, MultipartFile offcs) { - return super.updateSgg(sgg, symbol, logo, offcs); - } - - @Override - @RequestMapping(name="업무 설정 정보 수정", value=METHOD_URL.updateTaskStng) - public ModelAndView updateTaskStng(Task task) { - return super.updateTaskStng(task); - } - - @Override - @RequestMapping(name="시군구 과태료 업무 추가", value=METHOD_URL.createTaskStng) - public ModelAndView createTaskStng(String sggCd, String taskSeCd) { - return super.createTaskStng(sggCd,taskSeCd); - } - - } - - @Controller - @RequestMapping(name="부서 정보 관리", value=Mngt04Controller.CLASS_URL) - class Mngt04Controller extends cokr.xit.fims.mngt.web.Mngt04Controller { - - @Override - @RequestMapping(name="부서 정보 관리 메인", value=METHOD_URL.deptMngtMain) - public ModelAndView deptMngtMain() { - return super.deptMngtMain(); - } - - @Override - @RequestMapping(name="부서 목록 조회", value=METHOD_URL.getDeptList) - public ModelAndView getDeptList(CmmnQuery query) { - return super.getDeptList(query); - } - - @Override - @RequestMapping(name="부서 상세 조회", value=METHOD_URL.getDeptInfo) - public ModelAndView getDeptInfo(CmmnQuery query) { - return super.getDeptInfo(query); - } - - @Override - @RequestMapping(name="부서 삭제", value=METHOD_URL.removeDept) - public ModelAndView removeDept(String... deptCds) { - return super.removeDept(deptCds); - } - - @Override - @RequestMapping(name="부서 등록", value=METHOD_URL.createDept) - public ModelAndView createDept(FimsDepartment dept) { - return super.createDept(dept); - } - - @Override - @RequestMapping(name="부서 수정", value=METHOD_URL.updateDept) - public ModelAndView updateDept(FimsDepartment dept) { - return super.updateDept(dept); - } - } - - - - - - - -}