|
|
|
@ -12,6 +12,10 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.service.CodeQuery;
|
|
|
|
|
import cokr.xit.base.code.service.bean.CodeBean;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnQuery;
|
|
|
|
|
import cokr.xit.fims.mngt.service.TaskService;
|
|
|
|
|
import cokr.xit.fims.mngt.service.bean.FactionBean;
|
|
|
|
|
import cokr.xit.foundation.UserInfo;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
@ -19,6 +23,12 @@ public class CodeController extends cokr.xit.base.code.web.CodeController {
|
|
|
|
|
@Resource(name = "codeBean")
|
|
|
|
|
private CodeBean codeBean;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "taskService")
|
|
|
|
|
private TaskService taskService;
|
|
|
|
|
|
|
|
|
|
@Resource(name = "factionBean")
|
|
|
|
|
private FactionBean factionBean;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="모든 업무구분코드 조회",value="/getAllTaskSeCd.do")
|
|
|
|
|
public ModelAndView getAllTaskSeCd() {
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
@ -33,4 +43,32 @@ public class CodeController extends cokr.xit.base.code.web.CodeController {
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="시군구 업무 설정 유무 조회", value="/sggHasTask.do")
|
|
|
|
|
public ModelAndView sggHasTask() {
|
|
|
|
|
ModelAndView mav = new ModelAndView("jsonView");
|
|
|
|
|
|
|
|
|
|
UserInfo userInfo = currentUser();
|
|
|
|
|
if(userInfo.getInstitute().equals("default")) {
|
|
|
|
|
mav.addObject("sggHasTask", "Y");
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
factionBean.initUserInfo(userInfo);
|
|
|
|
|
|
|
|
|
|
String sggCd = (String)userInfo.getInfo().get("sggCd");
|
|
|
|
|
|
|
|
|
|
CmmnQuery req = new CmmnQuery();
|
|
|
|
|
req.setUseYN("Y");
|
|
|
|
|
req.setSggCd(sggCd);
|
|
|
|
|
List<DataObject> result = taskService.getTasks(req);
|
|
|
|
|
if(result != null && !result.isEmpty()) {
|
|
|
|
|
mav.addObject("taskForSgg", "Y");
|
|
|
|
|
} else {
|
|
|
|
|
mav.addObject("taskForSgg", "N");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
}
|