단속팀 관리, 면제차량 관리 파일 추가

main
이범준 1 year ago
parent de272205df
commit c8d7b3073f

@ -16,4 +16,10 @@ public interface CrdnTeamMapper extends AbstractMapper {
* @return * @return
*/ */
List<DataObject> selectTeamList(CrdnQuery query); List<DataObject> selectTeamList(CrdnQuery query);
/** .<br />
* @param teamId ID
* @return
*/
DataObject selectTeamInfo(String teamId);
} }

@ -13,4 +13,9 @@ public interface CrdnStngService {
*/ */
List<DataObject> getTeamList(CrdnQuery query); List<DataObject> getTeamList(CrdnQuery query);
/** .
* @param teamId ID
* @return
*/
DataObject getTeamInfo(String teamId);
} }

@ -28,4 +28,12 @@ public class CrdnStngBean extends AbstractComponent {
return crdnTeamMapper.selectTeamList(query); return crdnTeamMapper.selectTeamList(query);
} }
/** .
* @param teamId ID
* @return
*/
public DataObject selectTeamInfo(String teamId) {
return crdnTeamMapper.selectTeamInfo(teamId);
}
} }

@ -22,4 +22,9 @@ public class CrdnStngServiceBean extends AbstractServiceBean implements CrdnStng
return crdnStngBean.selectTeamList(query); return crdnStngBean.selectTeamList(query);
} }
@Override
public DataObject getTeamInfo(String teamId) {
return crdnStngBean.selectTeamInfo(teamId);
}
} }

@ -0,0 +1,43 @@
package cokr.xit.fims.crdn.web;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.CrdnStngService;
/** .<br />
* { }/crdn/crdn07 .
* @author leebj
*/
public class Crdn07Controller extends ApplicationController {
@Resource(name="crdnStngService")
private CrdnStngService crdnStngService;
/** .
* @return fims/crdn/crdn07010-main
*/
public ModelAndView crackdownTeamManagementMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn07010-main");
mav.addObject("pageName", "crdn07010-main");
return mav;
}
/** .<br />
* {@link CrdnStngService#getTeamInfo(String)}
* @param crdn
* @return jsonView
*/
@RequestMapping(name="단속팀 정보 조회", value="/010/info.do")
public ModelAndView getTeamInfo(String teamId) {
ModelAndView mav = new ModelAndView("jsonView");
mav.addObject("teamInfo", crdnStngService.getTeamInfo(teamId));
return mav;
}
}

@ -0,0 +1,30 @@
package cokr.xit.fims.crdn.web;
import javax.annotation.Resource;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.CrdnStngService;
/** .<br />
* { }/crdn/crdn08 .
* @author leebj
*/
public class Crdn08Controller extends ApplicationController {
@Resource(name="crdnStngService")
private CrdnStngService crdnStngService;
/** .
* @return fims/crdn/crdn08010-main
*/
public ModelAndView exemptionVehicleManagementMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn08010-main");
mav.addObject("pageName", "crdn08010-main");
return mav;
}
}

@ -23,6 +23,10 @@ public class BpvController {
@RequestMapping(name="전용차로과태료업무 단속업무", value="/BPV/crdn/crdn06") @RequestMapping(name="전용차로과태료업무 단속업무", value="/BPV/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {} class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {}
@Controller
@RequestMapping(name="전용차로과태료업무 단속팀 관리", value="/BPV/crdn/crdn07")
class Crdn07Controller extends cokr.xit.fims.crdn.web.Crdn07Controller {}
@Controller @Controller
@RequestMapping(name="전용차로과태료업무 업무지원", value="/BPV/sprt/sprt01/") @RequestMapping(name="전용차로과태료업무 업무지원", value="/BPV/sprt/sprt01/")
class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {} class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {}

@ -105,6 +105,32 @@ public class CmnController {
} }
} }
@Controller
@RequestMapping(name="단속팀 관리", value="/crdn/crdn07")
class Crdn07Controller extends cokr.xit.fims.crdn.web.Crdn07Controller {
/** .
* @return fims/crdn/crdn07010-main
*/
@Override
@RequestMapping(name="단속팀 관리 메인", value="/010/main.do")
public ModelAndView crackdownTeamManagementMain() {
return super.crackdownTeamManagementMain();
}
}
@Controller
@RequestMapping(name="면제차량 관리 관리", value="/crdn/crdn08")
class Crdn08Controller extends cokr.xit.fims.crdn.web.Crdn08Controller {
/** .
* @return fims/crdn/crdn08010-main
*/
@Override
@RequestMapping(name="면제차량 관리 메인", value="/010/main.do")
public ModelAndView exemptionVehicleManagementMain() {
return super.exemptionVehicleManagementMain();
}
}
@Controller @Controller
@RequestMapping(name="업무지원", value="/sprt/sprt01") @RequestMapping(name="업무지원", value="/sprt/sprt01")
class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller { class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {

@ -23,6 +23,10 @@ public class PvsController {
@RequestMapping(name="주정차과태료업무 단속업무", value="/PVS/crdn/crdn06") @RequestMapping(name="주정차과태료업무 단속업무", value="/PVS/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {} 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 {}
@Controller @Controller
@RequestMapping(name="주정차과태료업무 업무지원", value="/PVS/sprt/sprt01/") @RequestMapping(name="주정차과태료업무 업무지원", value="/PVS/sprt/sprt01/")
class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {} class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {}

@ -15,4 +15,16 @@ SELECT TEAM_ID
AND TASK_SE_CD = #{taskSeCd} AND TASK_SE_CD = #{taskSeCd}
</select> </select>
<select id="selectTeamInfo" parameterType="string" resultType="dataobject">
/* 단속팀 정보 조회(crdnTeamMapper.selectTeamInfo) */
SELECT TEAM_ID
, TEAM_NM
, TEAMER_1
, TEAMER_2
, TEAMER_3
, TEAMER_4
FROM TB_TEAM_INFO
WHERE TEAM_ID = #{teamId}
</select>
</mapper> </mapper>

@ -209,8 +209,7 @@
<template class="pvs bpv"> <template class="pvs bpv">
<slot> <slot>
<label for="teamId--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">단속조</label> <label for="teamId--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">단속조</label>
<select id="teamId--${pageName}" name="teamId" data-map="TEAM_ID" class="form-select" <select id="teamId--${pageName}" name="teamId" data-map="TEAM_ID" class="form-select">
onchange="">
<option value=""></option> <option value=""></option>
<c:forEach items="${TeamList}" var="item"> <c:forEach items="${TeamList}" var="item">
<option value="${item.TEAM_ID}">${item.TEAM_NM}</option> <option value="${item.TEAM_ID}">${item.TEAM_NM}</option>
@ -417,6 +416,14 @@ $(document).ready(function(){
}); });
} }
/**************************************************************************
* 초기화(업무별 입력항목)
**************************************************************************/
var clsForTask = $("#taskSeCd--${pageName}").val().toLowerCase();
//업무별 입력 항목
renderForTask('frmEdit--${pageName}', clsForTask);
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
@ -544,14 +551,32 @@ $(document).ready(function(){
}); });
$("#teamId--${pageName}").on("change",function(){
$("#teamer1--${pageName}").val("");
$("#teamer2--${pageName}").val("");
$("#teamer3--${pageName}").val("");
$("#teamer4--${pageName}").val("");
if(this.value != ""){
ajax.get({
url: wctx.url("/${taskSeCd}/crdn/crdn07/010/info.do"),
data: { "teamId" : this.value},
success:resp => {
if(resp.teamInfo != null){
var teamInfo = resp.teamInfo;
$("#teamer1--${pageName}").val(teamInfo.TEAMER_1);
$("#teamer2--${pageName}").val(teamInfo.TEAMER_2);
$("#teamer3--${pageName}").val(teamInfo.TEAMER_3);
$("#teamer4--${pageName}").val(teamInfo.TEAMER_4);
}
}
});
}
});
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
var clsForTask = $("#taskSeCd--${pageName}").val().toLowerCase();
//업무별 입력 항목
renderForTask('frmEdit--${pageName}', clsForTask);
initDatepicker("frmEdit--${pageName}"); //달력 초기화 initDatepicker("frmEdit--${pageName}"); //달력 초기화
$("#frmEdit--${pageName}").find(".form-date").each(function(){ $("#frmEdit--${pageName}").find(".form-date").each(function(){

Loading…
Cancel
Save