동일차량 단속내역보기 기능 추가

main
이범준 10 months ago
parent b6782291eb
commit cae475c70c

@ -66,12 +66,13 @@ public class Crdn06Controller extends ApplicationController {
/** .
* @return fims/crdn/crdn06010-main
*/
public ModelAndView crackdownManagementMain() {
public ModelAndView crackdownManagementMain(String openType, String taskSeCd) {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn06010-main");
mav.addObject("pageName", "crdn06010");
mav.addObject("pageName", "crdn06010" + ifEmpty(openType, ()-> ""));
if(!ifEmpty(taskSeCd, ()-> "").equals("")) {
mav.addObject("taskSeCd", taskSeCd);
}
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM002", "FIM003", "FIM005", "FIM010", "FIM022", "FIM026",
"FIM034", "FIM054");
mav.addObject("FIM003List", commonCodes.get("FIM003"));

@ -146,8 +146,8 @@ public class CmnController {
*/
@Override
@RequestMapping(name="단속 관리 메인", value=METHOD_URL.crackdownManagementMain)
public ModelAndView crackdownManagementMain() {
return super.crackdownManagementMain();
public ModelAndView crackdownManagementMain(String openType, String taskSeCd) {
return super.crackdownManagementMain(openType, taskSeCd);
}
}

@ -492,8 +492,13 @@ $(document).ready(function(){
initDetailSearchButton("frmSearch--${pageName}");
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
if("${taskSeCd}" == ""){
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
} else {
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + "${taskSeCd}" + "']").prop("checked",true);
$P.fnResetAndChangeBiz("${taskSeCd}");
}
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드

@ -1059,17 +1059,23 @@ $(document).ready(function(){
url: wctx.url("/crdn/crdn06/010/main.do"),
data: {
openType : "D",
vhrno : $("#vhrno--${pageName}").val(),
taskSeCd : "${taskSeCd}"
taskSeCd : "${taskSeCd}",
vhrno : $("#vhrno--${pageName}").val()
},
success: function(resp) {
dialog.open({
id : "crdnListdialog--${pageName}",
title : "동일차량 단속 내역",
content : resp,
size : "xl",
size : "xxl",
init : () => {
setDialogZindex();
$(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#crdnListdialog--${pageName}").find("[name='schCrdnYmdFrom']").set("");
$("#crdnListdialog--${pageName}").find("[name='schCrdnYmdTo']").set("");
$("#crdnListdialog--${pageName}").find("[name='vhrno']").set($("#vhrno--${pageName}").val());
$("#crdnListdialog--${pageName}").find(".btn-search").eq(0).click();
});
},
onClose : () => {}
});
@ -1083,17 +1089,23 @@ $(document).ready(function(){
url: wctx.url("/sprt/sprt04/010/main.do"),
data: {
openType : "D",
vhrno : $("#vhrno--${pageName}").val(),
taskSeCd : "${taskSeCd}"
taskSeCd : "${taskSeCd}",
vhrno : $("#vhrno--${pageName}").val()
},
success: function(resp) {
dialog.open({
id : "cvlcptDscsnListdialog--${pageName}",
title : "민원상담 내역",
content : resp,
size : "xl",
size : "xxl",
init : () => {
setDialogZindex();
$(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#cvlcptDscsnListdialog--${pageName}").find("[name='schDscsnYmdFrom']").set("");
$("#cvlcptDscsnListdialog--${pageName}").find("[name='schDscsnYmdTo']").set("");
$("#cvlcptDscsnListdialog--${pageName}").find("[name='schVhrno']").set($("#vhrno--${pageName}").val());
$("#cvlcptDscsnListdialog--${pageName}").find(".btn-search").eq(0).click();
});
},
onClose : () => {}
});

Loading…
Cancel
Save