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 3dc7a5e8..906fbadb 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
@@ -549,102 +549,102 @@ $(document).ready(function(){
$P.fnDisplay();
});
- $("#vhrno--${pageName}").on("keyup",function(e){
+ $("#vhrno--${pageName}").onEnterPress(function(){
+
var alertDialogId = "alertDialog";
- if(e.key == "Enter"){
- var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
- var vhrno = this.value;
- if(crdnYmd == ""){
- dialog.alert({
- content : "단속일자를 입력하세요.",
- init : function(){ focusClose(); },
- onClose : function(){ $("#crdnYmd--${pageName}").focus(); }
- });
-
- return;
- }
- if(vhrno == ""){
- dialog.alert({
- content:"차량번호를 입력하세요.",
- init : function(){ focusClose(); },
- onClose:function(){ $("#vhrno--${pageName}").focus(); }
- });
- return;
- }
+ var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
+ var vhrnoEl = event.target;
+ var vhrno = vhrnoEl.value;
+ if(crdnYmd == ""){
+ dialog.alert({
+ content : "단속일자를 입력하세요.",
+ init : function(){ focusClose(); },
+ onClose : function(){ $("#crdnYmd--${pageName}").focus(); }
+ });
- json.post({
- url: wctx.url("/payer/vehicle.do"),
- data: {
- sggCd : $("#sggCd--${pageName}").val(),
- vhrno : vhrno,
- levy_stdde : crdnYmd
- },
- success:resp => {
- if(!resp.found){
- dialog.alert({
- content : "차량정보가 없습니다.",
- init : function(){ focusClose(); }
- });
- $("#rtpyrId--${pageName}").val("");
- $("#rtpyrNm--${pageName}").val("");
- $("#rtpyrSeCd--${pageName}").val("");
- $("#rtpyrNo--${pageName}").val("");
- $("#vin--${pageName}").val("");
- $("#vhclNm--${pageName}").val("");
- $("#vhclColor--${pageName}").val("");
- $("#useFuelCd--${pageName}").val("");
- $("#ffnlgCarmdlCd--${pageName}").val("");
- $("#zip--${pageName}").val("");
- $("#addr--${pageName}").val("");
- $("#dtlAddr--${pageName}").val("");
- return;
- }
-
- $("#rtpyrId--${pageName}").val(resp.rtpyrId);
-
- var vehicle = resp.vehicle;
-
- $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
-
- var pyrSeCd = "";
- switch(vehicle.mber_se_code){
- case "11" : pyrSeCd = "01"; break;
- case "12" : pyrSeCd = "02"; break;
- case "13" : pyrSeCd = "03"; break;
- case "14" : pyrSeCd = "04"; break;
- case "15" : pyrSeCd = "05"; break;
- }
- $("#rtpyrSeCd--${pageName}").val(pyrSeCd);
+ return;
+ }
+ if(vhrno == ""){
+ dialog.alert({
+ content:"차량번호를 입력하세요.",
+ init : function(){ focusClose(); },
+ onClose:function(){ $(vhrnoEl).focus(); }
+ });
+ return;
+ }
+
+ json.post({
+ url: wctx.url("/payer/vehicle.do"),
+ data: {
+ sggCd : $("#sggCd--${pageName}").val(),
+ vhrno : vhrno,
+ levy_stdde : crdnYmd
+ },
+ success:resp => {
+ if(!resp.found){
+ dialog.alert({
+ content : "차량정보가 없습니다.",
+ init : function(){ focusClose(); }
+ });
+ $("#rtpyrId--${pageName}").val("");
+ $("#rtpyrNm--${pageName}").val("");
+ $("#rtpyrSeCd--${pageName}").val("");
+ $("#rtpyrNo--${pageName}").val("");
+ $("#vin--${pageName}").val("");
+ $("#vhclNm--${pageName}").val("");
+ $("#vhclColor--${pageName}").val("");
+ $("#useFuelCd--${pageName}").val("");
+ $("#ffnlgCarmdlCd--${pageName}").val("");
+ $("#zip--${pageName}").val("");
+ $("#addr--${pageName}").val("");
+ $("#dtlAddr--${pageName}").val("");
+ return;
+ }
+
+ $("#rtpyrId--${pageName}").val(resp.rtpyrId);
+
+ var vehicle = resp.vehicle;
+
+ $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
+
+ var pyrSeCd = "";
+ switch(vehicle.mber_se_code){
+ case "11" : pyrSeCd = "01"; break;
+ case "12" : pyrSeCd = "02"; break;
+ case "13" : pyrSeCd = "03"; break;
+ case "14" : pyrSeCd = "04"; break;
+ case "15" : pyrSeCd = "05"; break;
+ }
+ $("#rtpyrSeCd--${pageName}").val(pyrSeCd);
- $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
-
- $("#vin--${pageName}").val(vehicle.vin);
- $("#vhclNm--${pageName}").val(vehicle.cnm);
- $("#vhclColor--${pageName}").val(vehicle.color_nm);
- $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
-
- if(vehicle.vhcty_asort_code == "1"){ //승용
- $("#ffnlgCarmdlCd--${pageName}").val("11");
- } else if(vehicle.vhcty_asort_code == "2"){ //승합
- $("#ffnlgCarmdlCd--${pageName}").val("12");
- } else if(vehicle.vhcty_asort_code == "3"){ //화물
- if(vehicle.mxmm_ldg <= 4000){
- $("#ffnlgCarmdlCd--${pageName}").val("13");
- } else {
- $("#ffnlgCarmdlCd--${pageName}").val("14");
- }
- } else if(vehicle.vhcty_asort_code == "4"){ //특수
- $("#ffnlgCarmdlCd--${pageName}").val("15");
+ $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
+
+ $("#vin--${pageName}").val(vehicle.vin);
+ $("#vhclNm--${pageName}").val(vehicle.cnm);
+ $("#vhclColor--${pageName}").val(vehicle.color_nm);
+ $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
+
+ if(vehicle.vhcty_asort_code == "1"){ //승용
+ $("#ffnlgCarmdlCd--${pageName}").val("11");
+ } else if(vehicle.vhcty_asort_code == "2"){ //승합
+ $("#ffnlgCarmdlCd--${pageName}").val("12");
+ } else if(vehicle.vhcty_asort_code == "3"){ //화물
+ if(vehicle.mxmm_ldg <= 4000){
+ $("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("");
+ $("#ffnlgCarmdlCd--${pageName}").val("14");
}
-
- $("#zip--${pageName}").val(vehicle.zip_code); //우편번호
- $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
- $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
+ } else if(vehicle.vhcty_asort_code == "4"){ //특수
+ $("#ffnlgCarmdlCd--${pageName}").val("15");
+ } else {
+ $("#ffnlgCarmdlCd--${pageName}").val("");
}
- });
- }
+
+ $("#zip--${pageName}").val(vehicle.zip_code); //우편번호
+ $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
+ $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
+ }
+ });
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp
index 5a9f3565..047f61ec 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp
@@ -445,12 +445,7 @@
});
});
- $("#vhrno--${pageName}").on("keyup", function(e) {
- if (e.key == "Enter") {
- // 차적 조회
- getVehicle${pageName}();
- }
- });
+ $("#vhrno--${pageName}").onEnterPress(getVehicle${pageName});
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
index f40e6c8a..8f19520c 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
@@ -847,102 +847,103 @@ $(document).ready(function(){
//차적조회
- $("#vhrno--${pageName}").on("keyup",function(e){
- if(e.key == "Enter"){
- var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
- var vhrno = this.value;
- if(crdnYmd == ""){
- dialog.alert({
- content:"단속일자를 입력하세요.",
- init : function() { focusClose(); },
- onClose:function(){ $("#crdnYmd--${pageName}").focus(); }
- });
- return;
- }
- if(vhrno == ""){
- dialog.alert({
- content:"차량번호를 입력하세요.",
- init : function() { focusClose(); },
- onClose:function(){ $(this).focus(); }
- });
- return;
- }
+ $("#vhrno--${pageName}").onEnterPress(function(){
- json.post({
- url: wctx.url("/payer/vehicle.do"),
- data: {
- sggCd : $("#sggCd--${pageName}").val(),
- vhrno : vhrno,
- levy_stdde : crdnYmd
- },
- success:resp => {
+ var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
+ var vhrnoEl = event.target;
+ var vhrno = vhrnoEl.value;
+ if(crdnYmd == ""){
+ dialog.alert({
+ content:"단속일자를 입력하세요.",
+ init : function() { focusClose(); },
+ onClose:function(){ $("#crdnYmd--${pageName}").focus(); }
+ });
+ return;
+ }
+ if(vhrno == ""){
+ dialog.alert({
+ content:"차량번호를 입력하세요.",
+ init : function() { focusClose(); },
+ onClose:function(){ $(vhrnoEl).focus(); }
+ });
+ return;
+ }
- if(!resp.found){
- dialog.alert({
- content : "차량 정보가 없습니다.",
- init : function() { focusClose(); }
- });
+ json.post({
+ url: wctx.url("/payer/vehicle.do"),
+ data: {
+ sggCd : $("#sggCd--${pageName}").val(),
+ vhrno : vhrno,
+ levy_stdde : crdnYmd
+ },
+ success:resp => {
- $("#rtpyrId--${pageName}").val("");
- $("#rtpyrNm--${pageName}").val("");
- $("#rtpyrSeCd--${pageName}").val("");
- $("#rtpyrNo--${pageName}").val("");
- $("#vin--${pageName}").val("");
- $("#vhclNm--${pageName}").val("");
- $("#vhclColor--${pageName}").val("");
- $("#useFuelCd--${pageName}").val("");
- $("#ffnlgCarmdlCd--${pageName}").val("");
- $("#zip--${pageName}").val("");
- $("#addr--${pageName}").val("");
- $("#dtlAddr--${pageName}").val("");
- return;
- }
+ if(!resp.found){
+ dialog.alert({
+ content : "차량 정보가 없습니다.",
+ init : function() { focusClose(); }
+ });
+
+ $("#rtpyrId--${pageName}").val("");
+ $("#rtpyrNm--${pageName}").val("");
+ $("#rtpyrSeCd--${pageName}").val("");
+ $("#rtpyrNo--${pageName}").val("");
+ $("#vin--${pageName}").val("");
+ $("#vhclNm--${pageName}").val("");
+ $("#vhclColor--${pageName}").val("");
+ $("#useFuelCd--${pageName}").val("");
+ $("#ffnlgCarmdlCd--${pageName}").val("");
+ $("#zip--${pageName}").val("");
+ $("#addr--${pageName}").val("");
+ $("#dtlAddr--${pageName}").val("");
+ return;
+ }
- $("#rtpyrId--${pageName}").val(resp.rtpyrId);
+ $("#rtpyrId--${pageName}").val(resp.rtpyrId);
- var vehicle = resp.vehicle;
+ var vehicle = resp.vehicle;
- $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
+ $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
- var pyrSeCd = "";
- switch(vehicle.mber_se_code){
- case "11" : pyrSeCd = "01"; break;
- case "12" : pyrSeCd = "02"; break;
- case "13" : pyrSeCd = "03"; break;
- case "14" : pyrSeCd = "04"; break;
- case "15" : pyrSeCd = "05"; break;
- }
- $("#rtpyrSeCd--${pageName}").val(pyrSeCd);
-
- $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
-
- $("#vin--${pageName}").val(vehicle.vin);
- $("#vhclNm--${pageName}").val(vehicle.cnm);
- $("#vhclColor--${pageName}").val(vehicle.color_nm);
- $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
-
- if(vehicle.vhcty_asort_code == "1"){ //승용
- $("#ffnlgCarmdlCd--${pageName}").val("11");
- } else if(vehicle.vhcty_asort_code == "2"){ //승합
- $("#ffnlgCarmdlCd--${pageName}").val("12");
- } else if(vehicle.vhcty_asort_code == "3"){ //화물
- if(vehicle.mxmm_ldg <= 4000){
- $("#ffnlgCarmdlCd--${pageName}").val("13");
- } else {
- $("#ffnlgCarmdlCd--${pageName}").val("14");
- }
- } else if(vehicle.vhcty_asort_code == "4"){ //특수
- $("#ffnlgCarmdlCd--${pageName}").val("15");
+ var pyrSeCd = "";
+ switch(vehicle.mber_se_code){
+ case "11" : pyrSeCd = "01"; break;
+ case "12" : pyrSeCd = "02"; break;
+ case "13" : pyrSeCd = "03"; break;
+ case "14" : pyrSeCd = "04"; break;
+ case "15" : pyrSeCd = "05"; break;
+ }
+ $("#rtpyrSeCd--${pageName}").val(pyrSeCd);
+
+ $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
+
+ $("#vin--${pageName}").val(vehicle.vin);
+ $("#vhclNm--${pageName}").val(vehicle.cnm);
+ $("#vhclColor--${pageName}").val(vehicle.color_nm);
+ $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
+
+ if(vehicle.vhcty_asort_code == "1"){ //승용
+ $("#ffnlgCarmdlCd--${pageName}").val("11");
+ } else if(vehicle.vhcty_asort_code == "2"){ //승합
+ $("#ffnlgCarmdlCd--${pageName}").val("12");
+ } else if(vehicle.vhcty_asort_code == "3"){ //화물
+ if(vehicle.mxmm_ldg <= 4000){
+ $("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("");
+ $("#ffnlgCarmdlCd--${pageName}").val("14");
}
-
- $("#zip--${pageName}").val(vehicle.zip_code); //우편번호
- $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
- $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
+ } else if(vehicle.vhcty_asort_code == "4"){ //특수
+ $("#ffnlgCarmdlCd--${pageName}").val("15");
+ } else {
+ $("#ffnlgCarmdlCd--${pageName}").val("");
}
- });
- }
+
+ $("#zip--${pageName}").val(vehicle.zip_code); //우편번호
+ $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
+ $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
+ }
+ });
+
});
if("${taskSeCd}" == "DPV"){
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03020-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03020-main.jsp
index 58be2697..2cd4f61d 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03020-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03020-main.jsp
@@ -47,18 +47,19 @@
">
-">
+">
">
">
+">
">
-
">
-">
-">
-">
-">
+
+
">
+
+">
+
">
">
@@ -147,10 +148,8 @@ $(document).ready(function(){
$("input[name='vhclNm']").val(vhclInfo.vhclNm);
$("input[name='vhclColor']").val(vhclInfo.vhclColor);
- $("input[name='vhrno']").on("keyup", function(e){
- if(e.key == "Enter"){
- fnCarLink(this.value);
- }
+ $("input[name='vhrno']").onEnterPress(function(){
+ fnCarLink(event.target.value);
});
}
} else {
diff --git a/src/main/webapp/WEB-INF/jsp/include/tail.jsp b/src/main/webapp/WEB-INF/jsp/include/tail.jsp
index c0da07cd..ae165e99 100644
--- a/src/main/webapp/WEB-INF/jsp/include/tail.jsp
+++ b/src/main/webapp/WEB-INF/jsp/include/tail.jsp
@@ -12,9 +12,11 @@
">
">
">
+
+
+">
">
">
-">
">
diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp
index efe3695b..18d27a9a 100644
--- a/src/main/webapp/WEB-INF/jsp/include/top.jsp
+++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp
@@ -338,11 +338,7 @@ $("#btnFastSearch--top").on( "click", function() {
doFastSearch();
});
-$("#fastTerm--top").on("keyup", function(e){
- if(e.key == "Enter"){
- doFastSearch();
- }
-});
+$("#fastTerm--top").onEnterPress(doFastSearch);
function doFastSearch(){
closeTab("17");