소스 정리

main
이범준 10 months ago
parent 4f24e21ee7
commit ebaa243d74

@ -94,24 +94,6 @@
var MY_INFO = {}; var MY_INFO = {};
var PARAM_TASK = "${param.taskSeCd}"; 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(){ async function fnGetAllTask(){
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
$.ajax({ $.ajax({

@ -1,4 +1,6 @@
/**************************************************************************
* 그리드의 특정 값을 키워드로 자료 조회
**************************************************************************/
function searchFromGridTitle(byValue, byOutputValue, mainOption, subOption){ function searchFromGridTitle(byValue, byOutputValue, mainOption, subOption){
var trDataset = event.target.parentElement.dataset; var trDataset = event.target.parentElement.dataset;
@ -13,3 +15,24 @@ function searchFromGridTitle(byValue, byOutputValue, mainOption, subOption){
document.getElementById(mainOptionElementId).value = mainOption; document.getElementById(mainOptionElementId).value = mainOption;
document.getElementById(subOptionElementId).value = subOption; 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) {
}
});
});
};
Loading…
Cancel
Save