diff --git a/Dao/MyBatis/Maps/User.xml b/Dao/MyBatis/Maps/User.xml index f06ee3a..181672b 100644 --- a/Dao/MyBatis/Maps/User.xml +++ b/Dao/MyBatis/Maps/User.xml @@ -507,7 +507,8 @@ ,asname=#asname#,ceoname=#ceoname#,brno =#brno#,grno =#grno#,btype =#btype#,bkind =#bkind#,salesamount=#salesamount#,homeurl=#homeurl# ,mcount=#mcount#,aday =#aday# ,post =#post#,address1=#address1#,address2=#address2#,fgnobno=#fgnobno#,fgnobank=#fgnobank# - ,eino=#eino#,mname=#mname# + ,eino=#eino# + ,mname=case when #mname# is not null then #mname# else mname end ,mphone =case when #mphone# is not null then HEX(AES_ENCRYPT(#mphone#, )) else mphone end ,taxemail =case when #taxemail# is not null then HEX(AES_ENCRYPT(#taxemail#, )) else taxemail end where asno=#asno# diff --git a/FO/Views/My/MyAssInfo.cshtml b/FO/Views/My/MyAssInfo.cshtml index 253608a..cb3c2eb 100644 --- a/FO/Views/My/MyAssInfo.cshtml +++ b/FO/Views/My/MyAssInfo.cshtml @@ -60,11 +60,11 @@ 고용보험관리번호 - + @* 담당자 성명 - - + *@ + @* 담당자연락처 @@ -103,8 +103,8 @@
  • - - + *@ + @* 계산서받을 이메일 @@ -124,7 +124,7 @@ - + *@ 사업자등록증 @@ -194,20 +194,20 @@ function save() { var isCompany = $("input:radio[name='isCompany']:checked").val() == "1"; setv("brno", val("brno").replace(/-/gi, '')); - setv("mphone", val("mphone1").replace(/ /, '').replace(/ /, '') + val("mphone2").replace(/ /, '').replace(/ /, '') + val("mphone3").replace(/ /, '').replace(/ /, '')); - setv("mphone", formattel(val("mphone"))); + //setv("mphone", val("mphone1").replace(/ /, '').replace(/ /, '') + val("mphone2").replace(/ /, '').replace(/ /, '') + val("mphone3").replace(/ /, '').replace(/ /, '')); + //setv("mphone", formattel(val("mphone"))); if (isCompany) { - if (val("taxemail2") != "") { - setv("taxemail", val("taxemail1") + "@Html.Raw("@")" + val("taxemail2")); - } else { - setv("taxemail", val("taxemail1")); - } + //if (val("taxemail2") != "") { + //setv("taxemail", val("taxemail1") + "@Html.Raw("@")" + val("taxemail2")); + //} else { + //setv("taxemail", val("taxemail1")); + //} if (check("asno", null, "직장을 선택해주세요.")) { } else if (check("brno", null, "사업자번호를 입력해주세요.")) { } else if (getBytes(val("brno")) != 10) { focus("brno"); msg("10자리의 사업자번호를 입력해주세요."); } else if (check("asname", null, "회사명을 입력해주세요.")) { } - else if (val("mphone") != "" && (!istelnumber(val("mphone")) && !ismobilenumber(val("mphone")))) { focus("mphone2"); msg("올바른 휴대전화번호를 입력해주세요."); } - else if (val("taxemail") != "" && !isemail(val("taxemail"))) { focus("taxemail1"); msg("올바른 이메일주소를 입력해주세요."); } + //else if (val("mphone") != "" && (!istelnumber(val("mphone")) && !ismobilenumber(val("mphone")))) { focus("mphone2"); msg("올바른 휴대전화번호를 입력해주세요."); } + //else if (val("taxemail") != "" && !isemail(val("taxemail"))) { focus("taxemail1"); msg("올바른 이메일주소를 입력해주세요."); } else { capfileform("/fcommon/assignupdate", "mform", "cbsave"); }