From ebaa243d74cbd579d942fa1e043ab2738a4716ab Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 19 Jan 2024 17:50:57 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/index.jsp | 18 ------------- .../js/fims/framework/cmm/searchUtil.js | 25 ++++++++++++++++++- 2 files changed, 24 insertions(+), 19 deletions(-) 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