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

main
이범준 10 months ago
parent b6782291eb
commit cae475c70c

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

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

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

@ -1059,17 +1059,23 @@ $(document).ready(function(){
url: wctx.url("/crdn/crdn06/010/main.do"), url: wctx.url("/crdn/crdn06/010/main.do"),
data: { data: {
openType : "D", openType : "D",
vhrno : $("#vhrno--${pageName}").val(), taskSeCd : "${taskSeCd}",
taskSeCd : "${taskSeCd}" vhrno : $("#vhrno--${pageName}").val()
}, },
success: function(resp) { success: function(resp) {
dialog.open({ dialog.open({
id : "crdnListdialog--${pageName}", id : "crdnListdialog--${pageName}",
title : "동일차량 단속 내역", title : "동일차량 단속 내역",
content : resp, content : resp,
size : "xl", size : "xxl",
init : () => { init : () => {
setDialogZindex(); 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 : () => {} onClose : () => {}
}); });
@ -1083,17 +1089,23 @@ $(document).ready(function(){
url: wctx.url("/sprt/sprt04/010/main.do"), url: wctx.url("/sprt/sprt04/010/main.do"),
data: { data: {
openType : "D", openType : "D",
vhrno : $("#vhrno--${pageName}").val(), taskSeCd : "${taskSeCd}",
taskSeCd : "${taskSeCd}" vhrno : $("#vhrno--${pageName}").val()
}, },
success: function(resp) { success: function(resp) {
dialog.open({ dialog.open({
id : "cvlcptDscsnListdialog--${pageName}", id : "cvlcptDscsnListdialog--${pageName}",
title : "민원상담 내역", title : "민원상담 내역",
content : resp, content : resp,
size : "xl", size : "xxl",
init : () => { init : () => {
setDialogZindex(); 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 : () => {} onClose : () => {}
}); });

Loading…
Cancel
Save