시군구 관리 수정

main
이범준 10 months ago
parent c46a9afd80
commit 9075d0a8c9

@ -61,9 +61,9 @@ public class CodeController extends cokr.xit.base.code.web.CodeController {
req.setSggCd(sggCd);
List<DataObject> result = taskService.getTasks(req);
if(result != null && !result.isEmpty()) {
mav.addObject("taskForSgg", "Y");
mav.addObject("sggHasTask", "Y");
} else {
mav.addObject("taskForSgg", "N");
mav.addObject("sggHasTask", "N");
}

@ -11,6 +11,8 @@ import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.VltnQuery;
import cokr.xit.fims.mngt.service.TaskService;
import cokr.xit.fims.mngt.service.VltnService;
import cokr.xit.fims.mngt.service.bean.FactionBean;
import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject;
/** .<br />
@ -37,13 +39,35 @@ public class Mngt03Controller extends ApplicationController {
@Resource(name = "vltnService")
private VltnService vltnService;
@Resource(name = "factionBean")
private FactionBean factionBean;
/** .
* @return fims/mngt/mngt03010-main
*/
public ModelAndView sggMngtMain() {
public ModelAndView sggMngtMain(String sggCd) {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/mngt/mngt03010-main");
mav.addObject("pageName", "mngt03010-main");
UserInfo userInfo = currentUser();
if(userInfo.getInstitute().equals("default")) {
if(ifEmpty(sggCd, ()->"").equals("")) {
mav.setViewName("fims/mngt/mngt03011-main");
mav.addObject("pageName", "mngt03011-main");
} else {
mav.setViewName("fims/mngt/mngt03010-main");
mav.addObject("pageName", "mngt03010-main");
mav.addObject("sggCd", sggCd);
}
} else {
mav.setViewName("fims/mngt/mngt03010-main");
mav.addObject("pageName", "mngt03010-main");
factionBean.initUserInfo(userInfo);
mav.addObject("sggCd", userInfo.getInfo().get("sggCd"));
}
return mav;
}

@ -595,8 +595,8 @@ public class CmnController {
@Override
@RequestMapping(name="시군구 정보 관리 메인", value=METHOD_URL.sggMngtMain)
public ModelAndView sggMngtMain() {
return super.sggMngtMain();
public ModelAndView sggMngtMain(String sggCd) {
return super.sggMngtMain(sggCd);
}
@Override

@ -0,0 +1,10 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<c:set var="pageKorName" scope="request">시군구 목록</c:set>
<div class="content-wrapper">
<div class="container-xxl flex-grow-1 px-0">
<div class="card wrapper-list">
</div>
</div>
</div>

@ -97,7 +97,7 @@
data: {},
dataType: 'json',
success: function(resp, textStatus, jqXHR) {
if(resp.taskForSgg == "Y"){
if(resp.sggHasTask == "Y"){
resolve({resp, textStatus, jqXHR});
} else {
reject("시군구 업무 설정이 없습니다.");

Loading…
Cancel
Save