diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp index 04eaef64..44bf3909 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp @@ -517,8 +517,8 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date); $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date()); - $P.photoInspectionControl.setData([]); - $P.sameVehicleMainControl.setData([]); + $P.photoInspectionControl.dataset.setData([]); + $P.sameVehicleMainControl.dataset.setData([]); }; $P.fnResetAndChangeBiz = (taskSeCd) => { @@ -597,8 +597,8 @@ $(document).ready(function(){ $P.photoInspectionControl.untilPageNum = $P.photoInspectionControl.query.pageNum; $P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize * $P.photoInspectionControl.query.pageNum; $P.photoInspectionControl.beforeCurrent = { - key : $P.photoInspectionControl.getCurrent()["CRDN_ID"], - index : $P.photoInspectionControl.getCurrent()["ROW_NUM"] - 1 + key : $P.photoInspectionControl.dataset.getCurrent()["CRDN_ID"], + index : $P.photoInspectionControl.dataset.getCurrent()["ROW_NUM"] - 1 }; Apply.fromDatasetControl.load($P.photoInspectionControl, 1).then((resp)=>{ @@ -641,8 +641,8 @@ $(document).ready(function(){ $P.sameVehicleMainControl.untilPageNum = $P.sameVehicleMainControl.query.pageNum; $P.sameVehicleMainControl.query.fetchSize = $P.sameVehicleMainControl.defaultFetchSize * $P.sameVehicleMainControl.query.pageNum; $P.sameVehicleMainControl.beforeCurrent = { - key : $P.sameVehicleMainControl.getCurrent()["CRDN_ID_LIST"], - index : $P.sameVehicleMainControl.getCurrent()["ROW_NUM"] - 1 + key : $P.sameVehicleMainControl.dataset.getCurrent()["CRDN_ID_LIST"], + index : $P.sameVehicleMainControl.dataset.getCurrent()["ROW_NUM"] - 1 }; Apply.fromDatasetControl.load($P.sameVehicleMainControl, 1).then((resp)=>{ @@ -939,7 +939,7 @@ $(document).ready(function(){ } dialog.open({ - id : "levyExcldialog", + id : "levyExclDialog--${pageName}", title : "부과제외 정보", content : resp, size : "md", @@ -997,6 +997,10 @@ $(document).ready(function(){ } $P.popupSavedCallback = (saved) => { + if($("#levyExclDialog--${pageName}").length > 0){ + dialog.close("levyExclDialog--${pageName}"); + } + if(saved){ $P.refreshInspectionList(); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp index fd43bafa..f62021fe 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp @@ -168,7 +168,7 @@ $(document).ready(function(){ * 초기화 **************************************************************************/ var crdnInfo = ${crdnInfo}; - $P.crdnControl.setData([crdnInfo]); + $P.crdnControl.dataset.setData([crdnInfo]); }); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp index 883d4f70..9a8e817f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp @@ -189,7 +189,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date()); - $P.crdnControl.setData([]); + $P.crdnControl.dataset.setData([]); } $P.getParams = () => { @@ -330,7 +330,7 @@ $(document).ready(function(){ } $P.save = () => { - if(!$P.crdnControl.getCurrent()) { + if(!$P.crdnControl.dataset.getCurrent()) { dialog.alert({ content : "선택된 자료가 없습니다.", init : function(){ @@ -346,7 +346,7 @@ $(document).ready(function(){ focusOK(); }, onOK : () => { - var info = { 'crdnId' : $P.crdnControl.getCurrent()["CRDN_ID"] }; + var info = { 'crdnId' : $P.crdnControl.dataset.getCurrent()["CRDN_ID"] }; ajax.post({ url : $P.crdnControl.urls.update, data : info, diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp index 4c0a3aec..cd0b575e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp @@ -139,35 +139,6 @@ $(document).ready(function(){ $P.crdnControl.urls.newInfoByFile = ""; $P.crdnControl.urls.newInfoByHand = ""; - $P.crdnControl.newInfo = (type) => { - var url = ""; - if(type == "file") url = $P.crdnControl.urls.newInfoByFile; - if(type == "hand") url = $P.crdnControl.urls.newInfoByHand; - - var dialogId = ""; - if(type == "file") dialogId = "filedialog"; - if(type == "hand") dialogId = "manualdialog"; - - var title = ""; - if(type == "file") title = "단속파일 등록"; - if(type == "hand") title = "단속자료 수기 등록"; - - - ajax.get({ - url : url, - data : {}, - success : (resp) => { - dialog.open({ - id: dialogId, - title: title, - content:resp, - size: "xxl", - init:() => {} - }); - } - }); - }; - /************************************************************************** * Dataset.on **************************************************************************/ @@ -189,7 +160,7 @@ $(document).ready(function(){ **************************************************************************/ $P.fnReset = () => { $("#regDt--${pageName}").datepicker('setDate', new Date()); - $P.crdnControl.setData([]); + $P.crdnControl.dataset.setData([]); } $P.fnResetAndChangeBiz = (taskSeCd) => { @@ -273,17 +244,46 @@ $(document).ready(function(){ } $("#crdnTbody--${pageName}").setCurrentRow(dataKey); - $P.crdnControl.setCurrent(dataKey); + $P.crdnControl.dataset.setCurrent(dataKey); Apply.toDataset.current($P.crdnControl.dataset, dataKey); } + $P.newInfo = (type) => { + var url = ""; + if(type == "file") url = $P.crdnControl.urls.newInfoByFile; + if(type == "hand") url = $P.crdnControl.urls.newInfoByHand; + + var dialogId = ""; + if(type == "file") dialogId = "fileDialog"; + if(type == "hand") dialogId = "manualDialog"; + + var title = ""; + if(type == "file") title = "단속파일 등록"; + if(type == "hand") title = "단속자료 수기 등록"; + + + ajax.get({ + url : url, + data : {}, + success : (resp) => { + dialog.open({ + id: dialogId, + title: title, + content:resp, + size: "xxl", + init:() => {} + }); + } + }); + }; + /************************************************************************** * element.on **************************************************************************/ $('#btnReset--${pageName}').on('click', () => $P.fnReset()); $("#btnSearch--${pageName}").on("click", () => $P.searchCrdnList()); - $("#btnInsertByFile--${pageName}").on('click', () => { $P.crdnControl.newInfo("file"); }); - $("#btnInsertByHand--${pageName}").on('click', () => { $P.crdnControl.newInfo("hand"); }); + $("#btnInsertByFile--${pageName}").on('click', () => { $P.newInfo("file"); }); + $("#btnInsertByHand--${pageName}").on('click', () => { $P.newInfo("hand"); }); fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp index d748474a..b1a089ce 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp @@ -298,7 +298,7 @@ $(document).ready(function(){ //서버에 등록된 파일 조회 $P.searchFileList = () => { - $P.parsedInfoControl.setData([]); + $P.parsedInfoControl.dataset.setData([]); ajax.post({ url : wctx.url("/${taskSeCd}/crdn/crdn05/020/list.do"), @@ -306,7 +306,7 @@ $(document).ready(function(){ taskSeCd : $("#taskSeCd--${pageName}").val() }, success : (resp) => { - $P.parsedInfoControl.setData(resp); + $P.parsedInfoControl.dataset.setData(resp); } }); } @@ -370,7 +370,7 @@ $(document).ready(function(){ return; } - $P.parsedInfoControl.setCurrent(dataKey); + $P.parsedInfoControl.dataset.setCurrent(dataKey); }; $P.createCrdn = () => { @@ -426,7 +426,7 @@ $(document).ready(function(){ }; $P.deleteFile = () => { - var current = $P.parsedInfoControl.getCurrent(); + var current = $P.parsedInfoControl.dataset.getCurrent(); if(current == null) return; var fileName = current.FILE_NAME; @@ -505,7 +505,7 @@ $(document).ready(function(){ } }); - $P.parsedInfoControl.setData([]); + $P.parsedInfoControl.dataset.setData([]); }); \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 450ca1ec..aac5a610 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -498,7 +498,7 @@ $(document).ready(function(){ focusClose(); } }); - dialog.close("manualdialog"); + dialog.close("manualDialog"); } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 1ac0243f..9012286c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -349,7 +349,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date); $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date()); - $P.crdnControl.setData([]); + $P.crdnControl.dataset.setData([]); } $P.fnResetAndChangeBiz = (taskSeCd) => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp index bd8e545a..be8ec122 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp @@ -342,13 +342,13 @@ $(document).ready(function(){ searchForm.find("input[type='text']").val(""); searchForm.find("input[type='hidden']").val(""); - $P.useTeamControl.setData([]); + $P.useTeamControl.dataset.setData([]); var editForm = $("#frmEdit--${pageName}"); editForm.find("input[type='text']").val(""); editForm.find("input[type='hidden']").val(""); - $P.delTeamControl.setData([]); + $P.delTeamControl.dataset.setData([]); } $P.fnResetAndChangeBiz = (taskSeCd) => { @@ -415,7 +415,7 @@ $(document).ready(function(){ } $P.clickUseTeamList = (dataKey) => { - $P.useTeamControl.setCurrent(dataKey); + $P.useTeamControl.dataset.setCurrent(dataKey); } $P.fnSave = () => { @@ -436,7 +436,7 @@ $(document).ready(function(){ } $P.fnRemove = () => { - var dataKey = $P.useTeamControl.getCurrent()["TEAM_ID"]; + var dataKey = $P.useTeamControl.dataset.getCurrent()["TEAM_ID"]; ajax.get({ url : $P.useTeamControl.urls.remove, data : { @@ -464,7 +464,7 @@ $(document).ready(function(){ }, success:(resp) => { - $P.delTeamControl.setData(resp); + $P.delTeamControl.dataset.setData(resp); } }); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp index c8cdeb88..2416e441 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp @@ -179,64 +179,6 @@ $(document).ready(function(){ $P.exmptnVhclControl.defaultFetchSize = FETCH_XS; $P.exmptnVhclControl.untilPageNum = 0; $P.exmptnVhclControl.beforeCurrent = null; - - $P.exmptnVhclControl.newInfo = () => { - ajax.get({ - url : $P.exmptnVhclControl.urls.newInfo, - data: {}, - success:(resp) => { - dialog.open({ - id: "exmptnvhcldialog", - title: "면제차량 등록", - content:resp, - size: "lg", - init:() => { - var parentRes = new Object(); - var childReq = pageObject.childReq.pop(); - - for(var reqKey in childReq) { - if($P.provide[reqKey]){ - parentRes[reqKey] = $P.provide[reqKey]; - } else { - parentRes[reqKey] = function(){}; - } - } - - pageObject.parentRes.push(parentRes); - } - }); - } - }); - }; - - $P.exmptnVhclControl.getInfo = (param) => { - ajax.get({ - url : $P.exmptnVhclControl.urls.getInfo, - data: param, - success:(resp) => { - dialog.open({ - id: "exmptnvhcldialog", - title: "면제차량 수정", - content:resp, - size: "lg", - init:() => { - var parentRes = new Object(); - var childReq = pageObject.childReq.pop(); - - for(var reqKey in childReq) { - if($P.provide[reqKey]){ - parentRes[reqKey] = $P.provide[reqKey]; - } else { - parentRes[reqKey] = function(){}; - } - } - - pageObject.parentRes.push(parentRes); - } - }); - } - }); - }; /************************************************************************** * Dataset.on @@ -261,7 +203,7 @@ $(document).ready(function(){ searchForm.find("input[type='text']").val(""); searchForm.find("input[type='hidden']").val(""); - $P.exmptnVhclControl.setData([]); + $P.exmptnVhclControl.dataset.setData([]); } $P.getParams = () => { @@ -367,10 +309,67 @@ $(document).ready(function(){ }); return; } - $P.exmptnVhclControl.getInfo({"exmptnVhclId" : dataKey}); + $P.getInfo({"exmptnVhclId" : dataKey}); } + $P.getInfo = (param) => { + ajax.get({ + url : $P.exmptnVhclControl.urls.getInfo, + data: param, + success:(resp) => { + dialog.open({ + id: "exmptnvhclDialog", + title: "면제차량 수정", + content:resp, + size: "lg", + init:() => { + var parentRes = new Object(); + var childReq = pageObject.childReq.pop(); + for(var reqKey in childReq) { + if($P.provide[reqKey]){ + parentRes[reqKey] = $P.provide[reqKey]; + } else { + parentRes[reqKey] = function(){}; + } + } + + pageObject.parentRes.push(parentRes); + } + }); + } + }); + }; + + $P.newInfo = () => { + ajax.get({ + url : $P.exmptnVhclControl.urls.newInfo, + data: {}, + success:(resp) => { + dialog.open({ + id: "exmptnvhclDialog", + title: "면제차량 등록", + content:resp, + size: "lg", + init:() => { + var parentRes = new Object(); + var childReq = pageObject.childReq.pop(); + + for(var reqKey in childReq) { + if($P.provide[reqKey]){ + parentRes[reqKey] = $P.provide[reqKey]; + } else { + parentRes[reqKey] = function(){}; + } + } + + pageObject.parentRes.push(parentRes); + } + }); + } + }); + }; + $P.fnOpenDelRsnDialog = () => { dialog.open({ id : "delRsnDialog--${pageName}", @@ -387,7 +386,7 @@ $(document).ready(function(){ } $P.fnRemove = () => { - var dataKey = $P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"]; + var dataKey = $P.exmptnVhclControl.dataset.getCurrent()["EXMPTN_VHCL_ID"]; ajax.get({ url : $P.exmptnVhclControl.urls.remove, data : { @@ -404,14 +403,14 @@ $(document).ready(function(){ }; $P.fnOpenHistory = () => { - var dataKey = $P.exmptnVhclControl.getCurrent()["EXMPTN_VHCL_ID"]; + var dataKey = $P.exmptnVhclControl.dataset.getCurrent()["EXMPTN_VHCL_ID"]; ajax.get({ url : wctx.url("/BPV/crdn/crdn08/030/list.do"), data: { "exmptnVhclId" : dataKey }, success:(resp) => { dialog.open({ - id: "exmptnvhclHistorydialog", + id: "exmptnvhclHistoryDialog", title: "면제차량 이력", content : resp, size: "xxl", @@ -437,7 +436,7 @@ $(document).ready(function(){ $("#btnSearch--${pageName}").on("click", () => $P.searchExmptnVhclList()); $('#btnExcel--${pageName}').on('click', () => $P.fnExcelDown()); - $("#btnCreate--${pageName}").on('click', () => { $P.exmptnVhclControl.newInfo(); }); + $("#btnCreate--${pageName}").on('click', () => { $P.newInfo(); }); $("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); }); $("#btnHistory--${pageName}").on('click', () => { $P.fnOpenHistory(); }); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp index 6154c2a9..5ef20bd1 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp @@ -1,6 +1,6 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> - +면제차량 상세 조회
@@ -108,20 +108,15 @@ $(document).ready(function(){ }); /************************************************************************** - * DatasetControl.set + * pageObject.function **************************************************************************/ - $P.exmptnVhclControl.setInfo = (item) => { + $P.setInfo = (item) => { $P.formFields.set(item); var create = isEmpty(item.EXMPTN_VHCL_ID); $("#vhrno--${pageName}").prop("readonly", !create); } - - /************************************************************************** - * pageObject.function - **************************************************************************/ - $P.fnSave = () => { if(!customValidate($("#frmEdit--${pageName} input"))) return; @@ -155,7 +150,7 @@ $(document).ready(function(){ focusClose(); } }); - dialog.close("exmptnvhcldialog"); + dialog.close("exmptnvhclDialog"); $P.provided.refreshList(); } }; @@ -187,7 +182,7 @@ $(document).ready(function(){ fn_securityModeToggle($("#securityMode--top").is(":checked")); var exmptnVhclInfo = ${exmptnVhclInfo}; - $P.exmptnVhclControl.setInfo(exmptnVhclInfo); + $P.setInfo(exmptnVhclInfo); }); \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp index b50e5471..04fe27b8 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp @@ -1,5 +1,7 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> +면제차량 이력 +