명명규칙(약어+숫자4자리)에 따른 URL, 컨트롤러명 변경

main
이범준 1 year ago
parent b2997cff1b
commit 36521f8b86

@ -9,7 +9,7 @@ import cokr.xit.fims.crdn.service.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.web.AbstractController; import cokr.xit.foundation.web.AbstractController;
public class AbstractCrdnController extends ApplicationController { public class AbstractCrdn0600Controller extends ApplicationController {
@Resource(name="crdnService") @Resource(name="crdnService")
private CrdnService crdnService; private CrdnService crdnService;
@ -36,13 +36,13 @@ public class AbstractCrdnController extends ApplicationController {
/** . /** .
* @param crdnId * @param crdnId
* @return fims/crdn/initData-info * @return fims/crdn/crdnData-info
* <pre><code> { * <pre><code> {
* "crdnInfo": {...} * "crdnInfo": {...}
* }</code></pre> * }</code></pre>
*/ */
public ModelAndView getCrdnInfo(String crdnId) { public ModelAndView getCrdnInfo(String crdnId) {
ModelAndView mav = new ModelAndView("fims/crdn/initData-info"); ModelAndView mav = new ModelAndView("fims/crdn/crdnData-info");
if (!isEmpty(crdnId)) { if (!isEmpty(crdnId)) {
mav.addObject("crdnInfo", crdnService.getCrdnInfo(crdnId)); mav.addObject("crdnInfo", crdnService.getCrdnInfo(crdnId));
} }

@ -22,22 +22,24 @@ import cokr.xit.foundation.web.AbstractController;
*/ */
@Controller @Controller
@RequestMapping(name="단속관리", value="/crdn") @RequestMapping(name="단속관리", value="/crdn")
public class CrdnController extends AbstractCrdnController { public class Crdn0600Controller extends AbstractCrdn0600Controller {
@Resource(name = "codeService") @Resource(name = "codeService")
private CodeService codeService; private CodeService codeService;
/** . /** .
* @return fims/crdn/initData-main * @return fims/crdn/crdnDataInquire-main
*/ */
@RequestMapping(name="단속 초기자료 메인", value="/initData/main.do") @RequestMapping(name="단속 자료 조회 메인", value="/crdn0600/main.do")
public ModelAndView initDataMain() { public ModelAndView crdnDataInquireMain() {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/initData-main"); mav.setViewName("fims/crdn/crdnDataInquire-main");
mav.addObject("pageSuffix","initData-main"); mav.addObject("pageSuffix","crdnDataInquire-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM026"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM001", "FIM002", "FIM010", "FIM026");
mav.addObject("FIM001", commonCodes.get("FIM001")); mav.addObject("FIM001List", commonCodes.get("FIM001"));
mav.addObject("FIM002List", commonCodes.get("FIM002"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
addCodes(commonCodes, mav, "FIM002", "FIM026"); addCodes(commonCodes, mav, "FIM002", "FIM026");
return mav; return mav;
} }

@ -25,29 +25,14 @@
<div class="col-12"> <div class="col-12">
<label class="form-label fw-bold form-search-title">시스템구분</label> <label class="form-label fw-bold form-search-title">시스템구분</label>
<span class="form-search-linebox"> <span class="form-search-linebox">
<input type="radio" id="sysSeCd1--${pageSuffix}" name="sysSeCd" value="PVS" <c:forEach items="${FIM001List}" var="item">
onchange="fnResetAndChangeBiz(this.value);" /> <label>
<label for="sysSeCd1">주정차</label> <input name="sysSeCd" type="radio" value="${item.code}"
<input type="radio" id="sysSeCd2--${pageSuffix}" name="sysSeCd" value="BPV" class="form-check-input" alt="시스템구분"
onchange="fnResetAndChangeBiz(this.value);" /> onchange="fnResetAndChangeBiz(this.value);">
<label for="sysSeCd2">전용차로</label> ${item.value}
<input type="radio" id="sysSeCd3--${pageSuffix}" name="sysSeCd" value="DPV" </label>
onchange="fnResetAndChangeBiz(this.value);" /> </c:forEach>
<label for="sysSeCd3">장애인</label>
<input type="radio" id="sysSeCd4--${pageSuffix}" name="sysSeCd" value="ECA"
onchange="fnResetAndChangeBiz(this.value);" />
<label for="sysSeCd4">전기차</label>
<%--
<code:radio
grpId="FIM001"
id="sysSeCd"
name="sysSeCd"
cls="form-check-input"
alt="시스템구분"/>
--%>
</span> </span>
</div> </div>
<div class="col-12"> <div class="col-12">
@ -66,27 +51,27 @@
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label fw-bold form-search-title">단속구분</label> <label class="form-label fw-bold form-search-title">단속구분</label>
<span class="form-search-linebox"> <select id="crdnSeCd--${pageSuffix}" name="crdnSeCd" class="form-select">
<%-- <option value="">전체</option>
<code:radio type="CMM_ETC2" id="crdnSeCd" name="crdnSeCd" grpId="FIM002" <c:forEach items="${FIM002List}" var="item">
cls="form-check-input" alt="단속구분" /> <option value="${item.code}">${item.value}</option>
--%> </c:forEach>
</span> </select>
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label fw-bold form-search-title">자료상태</label> <label class="form-label fw-bold form-search-title">자료상태</label>
<%-- <select id="crdnSttsCd--${pageSuffix}" name="crdnSttsCd" class="form-select">
<code:select id="crdnSttsCd" name="crdnSttsCd" <option value="">전체</option>
grpId="FIM010" defaultSelect="01" title="단속처리상태" cls="form-select" alt="단속처리상태" disabled="false"/> <c:forEach items="${FIM010List}" var="item">
--%> <option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
<select id="schOpt--${pageSuffix}" name="schOpt" class="form-select"> <select id="schOpt--${pageSuffix}" name="schOpt" class="form-select">
<option value="schVhrno">차량번호</option> <option value="schVhrno">차량번호</option>
</select> </select>
<input type="text" id="schWord--${pageSuffix}" name="schWord" class="form-control" value="" /> <input type="text" id="schWord--${pageSuffix}" name="schWord" class="form-control" value="" />
<span class="flr"> <span class="flr">
<button type="button" class="btn btn-open-detail btn-sm" data-bs-toggle="collapse" data-bs-target="#searchDetail"> <button type="button" class="btn btn-open-detail btn-sm" data-bs-toggle="collapse" data-bs-target="#searchDetail">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
@ -284,7 +269,7 @@ var fnBiz = {
,schDateOpt: form.find("[name='schDateOpt']").val() ,schDateOpt: form.find("[name='schDateOpt']").val()
,schDateFrom: form.find("[name='schDateFrom']").val() ,schDateFrom: form.find("[name='schDateFrom']").val()
,schDateTo: form.find("[name='schDateTo']").val() ,schDateTo: form.find("[name='schDateTo']").val()
,crdnSeCd: form.find("[name='crdnSeCd']:checked").val() ,crdnSeCd: form.find("[name='crdnSeCd']").val()
,crdnSttsCd: form.find("[name='crdnSttsCd']").val() ,crdnSttsCd: form.find("[name='crdnSttsCd']").val()
,ctznAnsYn: form.find("[name='ctznAnsYn']:checked").val() ,ctznAnsYn: form.find("[name='ctznAnsYn']:checked").val()
,fetchSize: 30 ,fetchSize: 30
Loading…
Cancel
Save