소스정리

main
이범준 7 months ago
parent e57eecccc1
commit 1e31e0eec9

@ -4,6 +4,8 @@ import java.util.List;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.user.ManagedUser; import cokr.xit.base.user.ManagedUser;
@ -18,6 +20,8 @@ import cokr.xit.foundation.data.DataObject;
* { }/mngt/mngt01 . * { }/mngt/mngt01 .
* @author leebj * @author leebj
*/ */
@Controller
@RequestMapping(name="공지사항 관리", value=Mngt01Controller.CLASS_URL)
public class Mngt01Controller extends ApplicationController { public class Mngt01Controller extends ApplicationController {
public static final String CLASS_URL = "/mngt/mngt01"; public static final String CLASS_URL = "/mngt/mngt01";
@ -42,6 +46,7 @@ public class Mngt01Controller extends ApplicationController {
/** . /** .
* @return fims/mngt/mngt01010-main * @return fims/mngt/mngt01010-main
*/ */
@RequestMapping(name="공지사항 메인", value=METHOD_URL.ntcMain)
public ModelAndView ntcMain() { public ModelAndView ntcMain() {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.setViewName("fims/mngt/mngt01010-main"); mav.setViewName("fims/mngt/mngt01010-main");
@ -61,6 +66,7 @@ public class Mngt01Controller extends ApplicationController {
* "ntcTotal": * "ntcTotal":
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="공지사항 목록 조회", value=METHOD_URL.getNtcList)
public ModelAndView getNtcList(NtcQuery req) { public ModelAndView getNtcList(NtcQuery req) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
setFetchSize(req); setFetchSize(req);
@ -77,6 +83,7 @@ public class Mngt01Controller extends ApplicationController {
* @param ntcId ID * @param ntcId ID
* @return jsonView * @return jsonView
*/ */
@RequestMapping(name="공지사항 상세 조회", value=METHOD_URL.getNtcInfo)
public ModelAndView getNtcInfo(String ntcId) { public ModelAndView getNtcInfo(String ntcId) {
boolean json = jsonResponse(); boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/mngt/mngt01020-info"); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/mngt/mngt01020-info");
@ -102,6 +109,7 @@ public class Mngt01Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="공지사항 등록", value=METHOD_URL.create)
public ModelAndView create(Ntc ntc) { public ModelAndView create(Ntc ntc) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;
@ -122,6 +130,7 @@ public class Mngt01Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="공지사항 수정", value=METHOD_URL.update)
public ModelAndView update(Ntc ntc) { public ModelAndView update(Ntc ntc) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;
@ -143,6 +152,7 @@ public class Mngt01Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="공지사항 삭제", value=METHOD_URL.remove)
public ModelAndView remove(Ntc ntc) { public ModelAndView remove(Ntc ntc) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;

@ -4,6 +4,8 @@ import java.util.List;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
@ -16,6 +18,8 @@ import cokr.xit.foundation.data.DataObject;
* { }/mngt/mngt02 . * { }/mngt/mngt02 .
* @author leebj * @author leebj
*/ */
@Controller
@RequestMapping(name="일정관리", value=Mngt02Controller.CLASS_URL)
public class Mngt02Controller extends ApplicationController { public class Mngt02Controller extends ApplicationController {
public static final String CLASS_URL = "/mngt/mngt02"; public static final String CLASS_URL = "/mngt/mngt02";
@ -37,6 +41,7 @@ public class Mngt02Controller extends ApplicationController {
/** . /** .
* @return fims/mngt/mngt02010-main * @return fims/mngt/mngt02010-main
*/ */
@RequestMapping(name="일정관리", value=Mngt02Controller.CLASS_URL)
public ModelAndView schdlMain() { public ModelAndView schdlMain() {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.setViewName("fims/mngt/mngt02010-main"); mav.setViewName("fims/mngt/mngt02010-main");
@ -56,6 +61,7 @@ public class Mngt02Controller extends ApplicationController {
* "schdlTotal": * "schdlTotal":
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="일정 목록 조회", value=METHOD_URL.getSchdlList)
public ModelAndView getSchdlList(SchdlQuery req) { public ModelAndView getSchdlList(SchdlQuery req) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
@ -70,6 +76,7 @@ public class Mngt02Controller extends ApplicationController {
* @param req * @param req
* @return jsonView * @return jsonView
*/ */
@RequestMapping(name="일정 조회", value=METHOD_URL.getSchdlInfo)
public ModelAndView getSchdlInfo(String schdlId, String schdlBgngYmd, String schdlEndYmd) { public ModelAndView getSchdlInfo(String schdlId, String schdlBgngYmd, String schdlEndYmd) {
boolean json = jsonResponse(); boolean json = jsonResponse();
@ -96,6 +103,7 @@ public class Mngt02Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="일정 추가", value=METHOD_URL.create)
public ModelAndView create(Schdl schdl) { public ModelAndView create(Schdl schdl) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;
@ -117,6 +125,7 @@ public class Mngt02Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="일정 수정", value=METHOD_URL.update)
public ModelAndView update(Schdl schdl) { public ModelAndView update(Schdl schdl) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;
@ -138,6 +147,7 @@ public class Mngt02Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="일정 삭제", value=METHOD_URL.remove)
public ModelAndView remove(Schdl schdl) { public ModelAndView remove(Schdl schdl) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;

@ -8,6 +8,8 @@ import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.apache.commons.io.FilenameUtils; 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.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
@ -29,6 +31,8 @@ import cokr.xit.foundation.data.DataObject;
* { }/mngt/mngt03 . * { }/mngt/mngt03 .
* @author leebj * @author leebj
*/ */
@Controller
@RequestMapping(name="시군구 정보 관리", value=Mngt03Controller.CLASS_URL)
public class Mngt03Controller extends ApplicationController { public class Mngt03Controller extends ApplicationController {
public static final String CLASS_URL = "/mngt/mngt03"; public static final String CLASS_URL = "/mngt/mngt03";
@ -72,6 +76,7 @@ public class Mngt03Controller extends ApplicationController {
/** . /** .
* @return fims/mngt/mngt03010-main * @return fims/mngt/mngt03010-main
*/ */
@RequestMapping(name="시군구 정보 관리 메인", value=METHOD_URL.sggMngtMain)
public ModelAndView sggMngtMain(String sggCd) { public ModelAndView sggMngtMain(String sggCd) {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
@ -106,6 +111,7 @@ public class Mngt03Controller extends ApplicationController {
* @param req * @param req
* @return jsonView * @return jsonView
*/ */
@RequestMapping(name="시군구 조회", value=METHOD_URL.getSggInfo)
public ModelAndView getSggInfo(CmmnQuery req) { public ModelAndView getSggInfo(CmmnQuery req) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
DataObject sggInfo = factionService.getSggInfo(req); DataObject sggInfo = factionService.getSggInfo(req);
@ -117,6 +123,7 @@ public class Mngt03Controller extends ApplicationController {
* @param req * @param req
* @return jsonView * @return jsonView
*/ */
@RequestMapping(name="업무 조회", value=METHOD_URL.getTasks)
public ModelAndView getTasks(CmmnQuery req) { public ModelAndView getTasks(CmmnQuery req) {
List<DataObject> result = taskBean.getTasks(req); List<DataObject> result = taskBean.getTasks(req);
@ -126,6 +133,7 @@ public class Mngt03Controller extends ApplicationController {
/** .<br /> /** .<br />
* @return * @return
*/ */
@RequestMapping(name="위반정보 조회", value=METHOD_URL.getVltns)
public ModelAndView getVltns(VltnQuery req) { public ModelAndView getVltns(VltnQuery req) {
List<DataObject> result = vltnBean.getVltns(req); List<DataObject> result = vltnBean.getVltns(req);
return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn"); return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn");
@ -138,6 +146,7 @@ public class Mngt03Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="시군구 정보 수정", value=METHOD_URL.updateSgg)
public ModelAndView updateSgg(FimsSigungu sgg, MultipartFile symbol, MultipartFile logo, MultipartFile offcs) { public ModelAndView updateSgg(FimsSigungu sgg, MultipartFile symbol, MultipartFile logo, MultipartFile offcs) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
@ -204,6 +213,7 @@ public class Mngt03Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="업무 설정 정보 수정", value=METHOD_URL.updateTaskStng)
public ModelAndView updateTaskStng(Task task) { public ModelAndView updateTaskStng(Task task) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
@ -223,6 +233,7 @@ public class Mngt03Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="시군구 과태료 업무 추가", value=METHOD_URL.createTaskStng)
public ModelAndView createTaskStng(String sggCd, String taskSeCd) { public ModelAndView createTaskStng(String sggCd, String taskSeCd) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");

@ -4,6 +4,8 @@ import java.util.List;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
@ -18,6 +20,8 @@ import cokr.xit.foundation.data.DataObject;
* { }/mngt/mngt04 . * { }/mngt/mngt04 .
* @author leebj * @author leebj
*/ */
@Controller
@RequestMapping(name="부서 정보 관리", value=Mngt04Controller.CLASS_URL)
public class Mngt04Controller extends ApplicationController { public class Mngt04Controller extends ApplicationController {
public static final String CLASS_URL = "/mngt/mngt04"; public static final String CLASS_URL = "/mngt/mngt04";
@ -47,6 +51,7 @@ public class Mngt04Controller extends ApplicationController {
/** . /** .
* @return fims/mngt/mngt04010-main * @return fims/mngt/mngt04010-main
*/ */
@RequestMapping(name="부서 정보 관리 메인", value=METHOD_URL.deptMngtMain)
public ModelAndView deptMngtMain() { public ModelAndView deptMngtMain() {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
@ -65,6 +70,7 @@ public class Mngt04Controller extends ApplicationController {
* @param query * @param query
* @return jsonView * @return jsonView
*/ */
@RequestMapping(name="부서 목록 조회", value=METHOD_URL.getDeptList)
public ModelAndView getDeptList(CmmnQuery query) { public ModelAndView getDeptList(CmmnQuery query) {
setFetchSize(query); setFetchSize(query);
@ -80,6 +86,7 @@ public class Mngt04Controller extends ApplicationController {
* "deptInfo": * "deptInfo":
* }</pre> * }</pre>
*/ */
@RequestMapping(name="부서 상세 조회", value=METHOD_URL.getDeptInfo)
public ModelAndView getDeptInfo(CmmnQuery query) { public ModelAndView getDeptInfo(CmmnQuery query) {
DataObject deptInfo = new DataObject(); DataObject deptInfo = new DataObject();
@ -104,6 +111,7 @@ public class Mngt04Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="부서 삭제", value=METHOD_URL.removeDept)
public ModelAndView removeDept(String... deptCds) { public ModelAndView removeDept(String... deptCds) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;
@ -123,6 +131,7 @@ public class Mngt04Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="부서 등록", value=METHOD_URL.createDept)
public ModelAndView createDept(FimsDepartment dept) { public ModelAndView createDept(FimsDepartment dept) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;
@ -142,6 +151,7 @@ public class Mngt04Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="부서 수정", value=METHOD_URL.updateDept)
public ModelAndView updateDept(FimsDepartment dept) { public ModelAndView updateDept(FimsDepartment dept) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;

@ -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);
}
}
}
Loading…
Cancel
Save