diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index 944cc87e..dcf9030c 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -94,24 +94,6 @@ var MY_INFO = {}; var PARAM_TASK = "${param.taskSeCd}"; - async function getVhclInfo(sggCd, vhrno, levy_stdde){ - return new Promise((resolve, reject) => { - json.post({ - url: wctx.url("/payer/vehicle.do"), - data: { - sggCd : sggCd, - vhrno : vhrno, - levy_stdde : levy_stdde - }, - success: function(resp, textStatus, jqXHR) { - resolve(resp); - }, - error: function(jqXHR, textStatus, error) { - } - }); - }); - }; - async function fnGetAllTask(){ return new Promise((resolve, reject) => { $.ajax({ diff --git a/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js b/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js index 6c34bceb..017b69b1 100644 --- a/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js +++ b/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js @@ -1,4 +1,6 @@ - +/************************************************************************** +* 그리드의 특정 열 값을 키워드로 자료 조회 +**************************************************************************/ function searchFromGridTitle(byValue, byOutputValue, mainOption, subOption){ var trDataset = event.target.parentElement.dataset; @@ -13,3 +15,24 @@ function searchFromGridTitle(byValue, byOutputValue, mainOption, subOption){ document.getElementById(mainOptionElementId).value = mainOption; document.getElementById(subOptionElementId).value = subOption; } + +/************************************************************************** +* 시군구코드, 차량번호, 기준일자로 차적 조회 +**************************************************************************/ +async function getVhclInfo(sggCd, vhrno, levy_stdde){ + return new Promise((resolve, reject) => { + json.post({ + url: wctx.url("/payer/vehicle.do"), + data: { + sggCd : sggCd, + vhrno : vhrno, + levy_stdde : levy_stdde + }, + success: function(resp, textStatus, jqXHR) { + resolve(resp); + }, + error: function(jqXHR, textStatus, error) { + } + }); + }); +}; \ No newline at end of file