From 51b9079bcd5abc2b13806d9180f73c085e104da6 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 11 Aug 2023 09:14:17 +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 --- .../WEB-INF/jsp/fims/crdn/crdn01020-info.jsp | 22 ++++++++--------- .../WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 24 +++++++++---------- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp index f51740ea..111bff9e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp @@ -815,19 +815,17 @@ $(document).ready(function(){ var basicInfo = resp.basicInfo; $("#rtpyrNm--${pageName}").val(basicInfo.mber_nm); - if(basicInfo.mber_se_code == "11"){ - $("#rtpyrSeCd--${pageName}").val("01"); - } else if(basicInfo.mber_se_code == "12"){ - $("#rtpyrSeCd--${pageName}").val("02"); - } else if(basicInfo.mber_se_code == "13"){ - $("#rtpyrSeCd--${pageName}").val("03"); - } else if(basicInfo.mber_se_code == "14"){ - $("#rtpyrSeCd--${pageName}").val("04"); - } else if(basicInfo.mber_se_code == "15"){ - $("#rtpyrSeCd--${pageName}").val("05"); - } else { - $("#rtpyrSeCd--${pageName}").val(""); + + var pyrSeCd = ""; + switch(basicInfo.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(basicInfo.mber_se_no); $("#vin--${pageName}").val(basicInfo.vin); 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 44647053..c83dd3e5 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 @@ -477,21 +477,19 @@ $(document).ready(function(){ var basicInfo = resp.basicInfo; $("#rtpyrNm--${pageName}").val(basicInfo.mber_nm); - if(basicInfo.mber_se_code == "11"){ - $("#rtpyrSeCd--${pageName}").val("01"); - } else if(basicInfo.mber_se_code == "12"){ - $("#rtpyrSeCd--${pageName}").val("02"); - } else if(basicInfo.mber_se_code == "13"){ - $("#rtpyrSeCd--${pageName}").val("03"); - } else if(basicInfo.mber_se_code == "14"){ - $("#rtpyrSeCd--${pageName}").val("04"); - } else if(basicInfo.mber_se_code == "15"){ - $("#rtpyrSeCd--${pageName}").val("05"); - } else { - $("#rtpyrSeCd--${pageName}").val(""); + + var pyrSeCd = ""; + switch(basicInfo.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; } - $("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no); + $("#rtpyrSeCd--${pageName}").val(pyrSeCd); + $("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no); + $("#vin--${pageName}").val(basicInfo.vin); $("#vhclNm--${pageName}").val(basicInfo.cnm); $("#vhclColor--${pageName}").val(basicInfo.color_nm);