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);