From e425ab61cd9d8264d85ee0ab9e06ab8295d32a02 Mon Sep 17 00:00:00 2001 From: kdh0120 Date: Tue, 16 Nov 2021 01:35:00 +0000 Subject: [PATCH] =?UTF-8?q?<=EA=B8=B0=EB=8A=A5=EA=B0=9C=EC=84=A0>=20?= =?UTF-8?q?=ED=86=B5=ED=95=A9=ED=85=8C=EC=8A=A4=ED=8A=B8=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20.=20546=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=ED=9A=8C=EC=82=AC?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/User.xml | 3 ++- FO/Views/My/MyAssInfo.cshtml | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 16 deletions(-) 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"); }