|
|
|
@ -1,5 +1,8 @@
|
|
|
|
|
package cokr.xit.fims.crdn.web;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
@ -7,6 +10,8 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
|
import cokr.xit.base.code.service.CodeService;
|
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnService;
|
|
|
|
|
import cokr.xit.foundation.web.AbstractController;
|
|
|
|
@ -19,6 +24,9 @@ import cokr.xit.foundation.web.AbstractController;
|
|
|
|
|
@RequestMapping(name="단속관리", value="/crdn")
|
|
|
|
|
public class CrdnController extends AbstractCrdnController {
|
|
|
|
|
|
|
|
|
|
@Resource(name = "codeService")
|
|
|
|
|
private CodeService codeService;
|
|
|
|
|
|
|
|
|
|
/** 단속 초기자료 관리 메인화면을 연다.
|
|
|
|
|
* @return fims/crdn/initData-main
|
|
|
|
|
*/
|
|
|
|
@ -27,9 +35,24 @@ public class CrdnController extends AbstractCrdnController {
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
mav.setViewName("fims/crdn/initData-main");
|
|
|
|
|
mav.addObject("pageSuffix","initData-main");
|
|
|
|
|
setCommonCodes(mav);
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setCommonCodes(ModelAndView mav) {
|
|
|
|
|
Map<String, List<CommonCode>> byGroups = codeService.getCodesOf(
|
|
|
|
|
"FIM001"
|
|
|
|
|
, "FIM002"
|
|
|
|
|
);
|
|
|
|
|
if ("jsonView".equals(mav.getViewName())) {
|
|
|
|
|
mav.addAllObjects(byGroups);
|
|
|
|
|
} else {
|
|
|
|
|
byGroups.forEach((k, v) -> {
|
|
|
|
|
mav.addObject(k, toJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="주정차과태료업무 단속자료 목록", value="/PVS/list.do")
|
|
|
|
|
public ModelAndView getPvsCrdnList(CrdnQuery req) {
|
|
|
|
|
return getCrdnList(req);
|
|
|
|
@ -47,4 +70,20 @@ public class CrdnController extends AbstractCrdnController {
|
|
|
|
|
return getCrdnList(req);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="주정차과태료업무 단속자료 정보", value="/PVS/info.do")
|
|
|
|
|
public ModelAndView getPvsCrdnInfo(String crdnId) {
|
|
|
|
|
return getCrdnInfo(crdnId);
|
|
|
|
|
}
|
|
|
|
|
@RequestMapping(name="전용차로과태료업무 단속자료 정보", value="/BPV/info.do")
|
|
|
|
|
public ModelAndView getBpvCrdnInfo(String crdnId) {
|
|
|
|
|
return getCrdnInfo(crdnId);
|
|
|
|
|
}
|
|
|
|
|
@RequestMapping(name="장애인과태료업무 단속자료 정보", value="/DPV/info.do")
|
|
|
|
|
public ModelAndView getDpvCrdnInfo(String crdnId) {
|
|
|
|
|
return getCrdnInfo(crdnId);
|
|
|
|
|
}
|
|
|
|
|
@RequestMapping(name="전기차과태료업무 단속자료 정보", value="/ECA/info.do")
|
|
|
|
|
public ModelAndView getEcaCrdnInfo(String crdnId) {
|
|
|
|
|
return getCrdnInfo(crdnId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|