소스 정리

main
이범준 1 year ago
parent c1bee23259
commit 51b9079bcd

@ -815,19 +815,17 @@ $(document).ready(function(){
var basicInfo = resp.basicInfo; var basicInfo = resp.basicInfo;
$("#rtpyrNm--${pageName}").val(basicInfo.mber_nm); $("#rtpyrNm--${pageName}").val(basicInfo.mber_nm);
if(basicInfo.mber_se_code == "11"){
$("#rtpyrSeCd--${pageName}").val("01"); var pyrSeCd = "";
} else if(basicInfo.mber_se_code == "12"){ switch(basicInfo.mber_se_code){
$("#rtpyrSeCd--${pageName}").val("02"); case "11" : pyrSeCd = "01"; break;
} else if(basicInfo.mber_se_code == "13"){ case "12" : pyrSeCd = "02"; break;
$("#rtpyrSeCd--${pageName}").val("03"); case "13" : pyrSeCd = "03"; break;
} else if(basicInfo.mber_se_code == "14"){ case "14" : pyrSeCd = "04"; break;
$("#rtpyrSeCd--${pageName}").val("04"); case "15" : pyrSeCd = "05"; break;
} else if(basicInfo.mber_se_code == "15"){
$("#rtpyrSeCd--${pageName}").val("05");
} else {
$("#rtpyrSeCd--${pageName}").val("");
} }
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no); $("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no);
$("#vin--${pageName}").val(basicInfo.vin); $("#vin--${pageName}").val(basicInfo.vin);

@ -477,19 +477,17 @@ $(document).ready(function(){
var basicInfo = resp.basicInfo; var basicInfo = resp.basicInfo;
$("#rtpyrNm--${pageName}").val(basicInfo.mber_nm); $("#rtpyrNm--${pageName}").val(basicInfo.mber_nm);
if(basicInfo.mber_se_code == "11"){
$("#rtpyrSeCd--${pageName}").val("01"); var pyrSeCd = "";
} else if(basicInfo.mber_se_code == "12"){ switch(basicInfo.mber_se_code){
$("#rtpyrSeCd--${pageName}").val("02"); case "11" : pyrSeCd = "01"; break;
} else if(basicInfo.mber_se_code == "13"){ case "12" : pyrSeCd = "02"; break;
$("#rtpyrSeCd--${pageName}").val("03"); case "13" : pyrSeCd = "03"; break;
} else if(basicInfo.mber_se_code == "14"){ case "14" : pyrSeCd = "04"; break;
$("#rtpyrSeCd--${pageName}").val("04"); case "15" : pyrSeCd = "05"; break;
} else if(basicInfo.mber_se_code == "15"){
$("#rtpyrSeCd--${pageName}").val("05");
} else {
$("#rtpyrSeCd--${pageName}").val("");
} }
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no); $("#rtpyrNo--${pageName}").val(basicInfo.mber_se_no);
$("#vin--${pageName}").val(basicInfo.vin); $("#vin--${pageName}").val(basicInfo.vin);

Loading…
Cancel
Save