단속관리 컨트롤러 수정

main
이범준 1 year ago
parent 1e19a6033e
commit 15091e3d7f

@ -0,0 +1,69 @@
package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService;
/** .<br />
* { }/crdn/crdn02 .
* @author leebj
*/
public class Crdn02Controller extends ApplicationController {
@Resource(name="crdnService")
private CrdnService crdnService;
@Resource(name="crdnStngService")
private CrdnStngService crdnStngService;
/** .
* @return fims/crdn/crdn02020-main
*/
public ModelAndView crackdownDataInspectionMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn02020-main");
mav.addObject("pageName", "crdn02020-main");
mav.addObject("module", "type='module'");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM002", "FIM003", "FIM010", "FIM026","FIM054");
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM003List", commonCodes.get("FIM003"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM002", "FIM003", "FIM010", "FIM026");
return mav;
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="검사자료 목록", value="/020/list.do")
public ModelAndView getInspectionDataList(CrdnQuery query) {
switch(query.getInspectionDataType()) {
case "photo" -> query.setGridType("photo");
case "sameVehicleMain" -> query.setGridType("sameVehicleMain");
case "sameVehicleSub" -> query.setGridType("sameVehicleSub");
}
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
}

@ -0,0 +1,40 @@
package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService;
/** .<br />
* { }/crdn/crdn03 .
* @author leebj
*/
public class Crdn03Controller extends ApplicationController {
@Resource(name="crdnService")
private CrdnService crdnService;
@Resource(name="crdnStngService")
private CrdnStngService crdnStngService;
/** .
* @return fims/crdn/crdn03030-main
*/
public ModelAndView tagInformationUndefinedDataMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn03030-main");
mav.addObject("pageName","crdn03030-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM003", "FIM010");
addCodes(commonCodes, mav, "FIM003", "FIM010");
return mav;
}
}

@ -0,0 +1,60 @@
package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService;
/** .<br />
* { }/crdn/crdn04 .
* @author leebj
*/
public class Crdn04Controller extends ApplicationController {
@Resource(name="crdnService")
private CrdnService crdnService;
@Resource(name="crdnStngService")
private CrdnStngService crdnStngService;
/** .
* @return fims/crdn/crdn04040-main
*/
public ModelAndView fineReductionDataMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn04040-main");
mav.addObject("pageName","crdn04040-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM010", "FIM019", "FIM054");
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM010", "FIM019");
return mav;
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="감경자료 목록", value="/040/list.do")
public ModelAndView getFineReductionDataList(CrdnQuery query) {
query.setGridType("fineReductionData");
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
}

@ -43,52 +43,6 @@ public class Crdn06Controller extends ApplicationController {
return mav;
}
/** .
* @return fims/crdn/crdn06020-main
*/
public ModelAndView crackdownDataInspectionMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn06020-main");
mav.addObject("pageName", "crdn06020-main");
mav.addObject("module", "type='module'");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM002", "FIM003", "FIM010", "FIM026","FIM054");
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM003List", commonCodes.get("FIM003"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM002", "FIM003", "FIM010", "FIM026");
return mav;
}
/** .
* @return fims/crdn/crdn06030-main
*/
public ModelAndView tagInformationUndefinedDataMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn06030-main");
mav.addObject("pageName","crdn06030-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM003", "FIM010");
addCodes(commonCodes, mav, "FIM003", "FIM010");
return mav;
}
/** .
* @return fims/crdn/crdn06040-main
*/
public ModelAndView fineReductionDataMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn06040-main");
mav.addObject("pageName","crdn06040-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM010", "FIM019", "FIM054");
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM010", "FIM019");
return mav;
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
@ -106,43 +60,4 @@ public class Crdn06Controller extends ApplicationController {
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="검사자료 목록", value="/020/list.do")
public ModelAndView getInspectionDataList(CrdnQuery query) {
switch(query.getInspectionDataType()) {
case "photo" -> query.setGridType("photo");
case "sameVehicleMain" -> query.setGridType("sameVehicleMain");
case "sameVehicleSub" -> query.setGridType("sameVehicleSub");
}
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="감경자료 목록", value="/040/list.do")
public ModelAndView getFineReductionDataList(CrdnQuery query) {
query.setGridType("fineReductionData");
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
}

@ -71,7 +71,7 @@ public class Cvlc02Controller extends ApplicationController {
boolean json = jsonResponse();
ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/cvlc/cvlc01060-info");
mav.addObject("pageName", "cvlc01060-info");
mav.addObject("pageName", "cvlc02060-info");
String urlTaskSeCd = hReq.getServletPath().split("/")[1];
mav.addObject("taskSeCd", urlTaskSeCd);

@ -15,6 +15,14 @@ public class BpvController {
@RequestMapping(name="전용차로과태료업무 민원답변대상자료 업무", value="/BPV/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller
@RequestMapping(name="전용차로과태료업무 단속자료검사 업무", value="/BPV/crdn/crdn02")
class Crdn02Controller extends cokr.xit.fims.crdn.web.Crdn02Controller {}
@Controller
@RequestMapping(name="전용차로과태료업무 과태료감경자료 업무", value="/BPV/crdn/crdn04")
class Crdn04Controller extends cokr.xit.fims.crdn.web.Crdn04Controller {}
@Controller
@RequestMapping(name="전용차로과태료업무 단속등록업무", value="/BPV/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {}

@ -75,50 +75,36 @@ public class CmnController {
}
@Controller
@RequestMapping(name="단속 자료 등록", value="/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {
/** .
* @return fims/crdn/crdn05010-main
*/
@Override
@RequestMapping(name="단속 자료 등록 메인", value="/010/main.do")
public ModelAndView crackdownDataRegistrationMain() {
return super.crackdownDataRegistrationMain();
}
}
@Controller
@RequestMapping(name="단속 관리", value="/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
/** .
* @return fims/crdn/crdn06010-main
*/
@Override
@RequestMapping(name="단속 관리 메인", value="/010/main.do")
public ModelAndView crackdownManagementMain() {
return super.crackdownManagementMain();
}
@RequestMapping(name="단속 자료 검사", value="/crdn/crdn02")
class Crdn02Controller extends cokr.xit.fims.crdn.web.Crdn02Controller {
/** .
* @return fims/crdn/crdn06020-main
* @return fims/crdn/crdn02020-main
*/
@Override
@RequestMapping(name="단속 자료 검사 메인", value="/020/main.do")
public ModelAndView crackdownDataInspectionMain() {
return super.crackdownDataInspectionMain();
}
}
@Controller
@RequestMapping(name="표지정보 미확인 자료 조회", value="/crdn/crdn03")
class Crdn03Controller extends cokr.xit.fims.crdn.web.Crdn03Controller {
/** .
* @return fims/crdn/crdn06030-main
* @return fims/crdn/crdn03030-main
*/
@Override
@RequestMapping(name="표지정보 미확인 자료 메인", value="/030/main.do")
public ModelAndView tagInformationUndefinedDataMain() {
return super.tagInformationUndefinedDataMain();
}
}
@Controller
@RequestMapping(name="과태료 감경 자료", value="/crdn/crdn04")
class Crdn04Controller extends cokr.xit.fims.crdn.web.Crdn04Controller {
/** .
* @return fims/crdn/crdn06040-main
* @return fims/crdn/crdn04040-main
*/
@Override
@RequestMapping(name="과태료 감경 자료 메인", value="/040/main.do")
@ -127,6 +113,32 @@ public class CmnController {
}
}
@Controller
@RequestMapping(name="단속 자료 등록", value="/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {
/** .
* @return fims/crdn/crdn05010-main
*/
@Override
@RequestMapping(name="단속 자료 등록 메인", value="/010/main.do")
public ModelAndView crackdownDataRegistrationMain() {
return super.crackdownDataRegistrationMain();
}
}
@Controller
@RequestMapping(name="단속 관리", value="/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
/** .
* @return fims/crdn/crdn06010-main
*/
@Override
@RequestMapping(name="단속 관리 메인", value="/010/main.do")
public ModelAndView crackdownManagementMain() {
return super.crackdownManagementMain();
}
}
@Controller
@RequestMapping(name="단속팀 관리", value="/crdn/crdn07")
class Crdn07Controller extends cokr.xit.fims.crdn.web.Crdn07Controller {

@ -23,12 +23,13 @@ public class DpvController {
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller
@RequestMapping(name="장애인과태료업무 단속등록업무", value="/DPV/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {}
@RequestMapping(name="장애인과태료업무 단속자료검사 업무", value="/DPV/crdn/crdn02")
class Crdn02Controller extends cokr.xit.fims.crdn.web.Crdn02Controller {}
@Controller
@RequestMapping(name="장애인과태료업무 단속업무", value="/DPV/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@RequestMapping(name="장애인과태료업무 표지정보확인 업무", value="/DPV/crdn/crdn03")
class Crdn03Controller extends cokr.xit.fims.crdn.web.Crdn03Controller {
@Resource(name="crdnService")
private CrdnService crdnService;
@ -66,6 +67,18 @@ public class DpvController {
}
@Controller
@RequestMapping(name="장애인과태료업무 과태료감경자료 업무", value="/DPV/crdn/crdn04")
class Crdn04Controller extends cokr.xit.fims.crdn.web.Crdn04Controller {}
@Controller
@RequestMapping(name="장애인과태료업무 단속등록업무", value="/DPV/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {}
@Controller
@RequestMapping(name="장애인과태료업무 단속업무", value="/DPV/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {}
@Controller
@RequestMapping(name="장애인과태료업무 부과제외 - 부과제외관리", value="/DPV/excl/excl01")
class Excl01Controller extends cokr.xit.fims.excl.web.Excl01Controller {}

@ -15,6 +15,14 @@ public class EcaController {
@RequestMapping(name="전기차과태료업무 민원답변대상자료 업무", value="/ECA/cvlc/cvlc02")
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller
@RequestMapping(name="전기차과태료업무 단속자료검사 업무", value="/ECA/crdn/crdn02")
class Crdn02Controller extends cokr.xit.fims.crdn.web.Crdn02Controller {}
@Controller
@RequestMapping(name="전기차과태료업무 과태료감경자료 업무", value="/ECA/crdn/crdn04")
class Crdn04Controller extends cokr.xit.fims.crdn.web.Crdn04Controller {}
@Controller
@RequestMapping(name="전기차과태료업무 단속등록업무", value="/ECA/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {}

@ -24,12 +24,9 @@ public class PvsController {
class Cvlc02Controller extends cokr.xit.fims.cvlc.web.Cvlc02Controller {}
@Controller
@RequestMapping(name="주정차과태료업무 단속등록업무", value="/PVS/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {}
@RequestMapping(name="주정차과태료업무 단속자료검사 업무", value="/PVS/crdn/crdn02")
class Crdn02Controller extends cokr.xit.fims.crdn.web.Crdn02Controller {
@Controller
@RequestMapping(name="주정차과태료업무 단속업무", value="/PVS/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@Resource(name="crdnService")
private CrdnService crdnService;
@ -38,14 +35,14 @@ public class PvsController {
/**2 .<br />
* @param crdnId ID
* @return crdn06050-info
* @return crdn02050-info
*/
@RequestMapping(name="2시간 초과 처리 화면 호출", value="/050/info.do")
public ModelAndView getOverTimeInfo(String openerPageName, String savedCallbackFuncName, String crdnId) {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn06050-info");
mav.addObject("pageName","crdn06050-info");
mav.setViewName("fims/crdn/crdn02050-info");
mav.addObject("pageName","crdn02050-info");
DataObject crdnInfo = crdnInfoMapper.selectCrdnInfo(crdnId);
@ -71,6 +68,18 @@ public class PvsController {
}
@Controller
@RequestMapping(name="주정차과태료업무 과태료감경자료 업무", value="/PVS/crdn/crdn04")
class Crdn04Controller extends cokr.xit.fims.crdn.web.Crdn04Controller {}
@Controller
@RequestMapping(name="주정차과태료업무 단속등록업무", value="/PVS/crdn/crdn05")
class Crdn05Controller extends cokr.xit.fims.crdn.web.Crdn05Controller {}
@Controller
@RequestMapping(name="주정차과태료업무 단속업무", value="/PVS/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {}
@Controller
@RequestMapping(name="주정차과태료업무 단속팀 관리", value="/PVS/crdn/crdn07")
class Crdn07Controller extends cokr.xit.fims.crdn.web.Crdn07Controller {}

@ -553,11 +553,11 @@ $(document).ready(function(){
$P.fnResetAndChangeBiz = (taskSeCd) => {
$P.fnReset();
$P.photoInspectionControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/020/list.do?inspectionDataType=photo");
$P.photoInspectionControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do?inspectionDataType=photo");
$P.photoInspectionControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
$P.sameVehicleControl.main.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/020/list.do?inspectionDataType=sameVehicleMain");
$P.sameVehicleControl.main.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do?inspectionDataType=sameVehicleMain");
$P.sameVehicleControl.main.urls.getInfo = "";
$P.sameVehicleControl.sub.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/020/list.do?inspectionDataType=sameVehicleSub");
$P.sameVehicleControl.sub.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn02/020/list.do?inspectionDataType=sameVehicleSub");
$P.sameVehicleControl.sub.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
var clsForTask = taskSeCd.toLowerCase();
@ -750,7 +750,7 @@ $(document).ready(function(){
var params = {
"crdnId" : info.data.CRDN_ID,
"levyExclSeCd" : levyExclSeCd,
"savedCallbackFuncName" : "pageObject['crdn06020-main']['popupSavedCallback']",
"savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']",
};
ajax.get({
@ -790,12 +790,12 @@ $(document).ready(function(){
var params = {
"crdnId" : info.data.CRDN_ID,
"openerPageName" : "crdn06020-main",
"savedCallbackFuncName" : "pageObject['crdn06020-main']['popupSavedCallback']"
"openerPageName" : "${pageName}",
"savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']"
};
ajax.get({
url : wctx.url("/PVS/crdn/crdn06/050/info.do"),
url : wctx.url("/PVS/crdn/crdn02/050/info.do"),
data : params,
success : resp => {

@ -48,7 +48,7 @@ $(document).ready(function(){
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
$P.crdnControl = new DatasetControl({
urls : { update : wctx.url("/PVS/crdn/crdn06/050/update.do") },
urls : { update : wctx.url("/PVS/crdn/crdn02/050/update.do") },
keymapper : info => info ? info.CRDN_ID : "",
dataGetter : obj => obj.crdnInfo,
formats: {}

@ -135,9 +135,9 @@ $(document).ready(function(){
**************************************************************************/
$P.crdnControl = new DatasetControl({
urls : {
load : wctx.url("/DPV/crdn/crdn06/030/list.do"),
load : wctx.url("/DPV/crdn/crdn03/030/list.do"),
getInfo : wctx.url("/DPV/sprt/sprt01/020/info.do"),
update: wctx.url("/DPV/crdn/crdn06/030/update.do")
update: wctx.url("/DPV/crdn/crdn03/030/update.do")
},
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",

@ -208,7 +208,7 @@ $(document).ready(function(){
$P.fnResetAndChangeBiz = taskSeCd => {
$P.fnReset();
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/040/list.do");
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn04/040/list.do");
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
}
Loading…
Cancel
Save