From 5cefc625144fd6bb822641751fed95dc81ae9171 Mon Sep 17 00:00:00 2001 From: lch Date: Fri, 25 Jun 2021 08:10:11 +0000 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90>=ED=9A=8C=EC=9B=90?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=EC=88=98=EC=A0=95=20=EC=83=9D=EB=85=84?= =?UTF-8?q?=EC=9B=94=EC=9D=BC=EC=9D=B4=20null=EC=9D=B8=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=EC=A3=BC=EB=AF=BC=EB=93=B1=EB=A1=9D=EB=B2=88?= =?UTF-8?q?=ED=98=B8=207=EC=9E=90=EB=A6=AC=20=EC=A0=95=EB=B3=B4=EB=A1=9C?= =?UTF-8?q?=20=EC=83=9D=EB=85=84=EC=9B=94=EC=9D=BC=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?(IPIN=20=EB=98=90=EB=8A=94=20=ED=95=B8=EB=93=9C=ED=8F=B0=20?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D=ED=9A=8C=EC=9B=90=EC=9D=B4=20=EC=95=84?= =?UTF-8?q?=EB=8B=8C=20=EA=B2=BD=EC=9A=B0=20-=20=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EC=9E=90=EB=93=B1=EB=A1=9D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Base/Controller/FCommonMy.cs | 1 + FO/FO.csproj | 1 + FO/Views/Account/CertOk3IPIN.cshtml | 9 +- FO/Views/Account/CertOk3MOBI.cshtml | 8 +- FO/Views/My/MyInfoCheck.cshtml | 59 +- FO/js/moment.js | 5670 +++++++++++++++++++++++++++ 6 files changed, 5741 insertions(+), 7 deletions(-) create mode 100644 FO/js/moment.js diff --git a/Base/Controller/FCommonMy.cs b/Base/Controller/FCommonMy.cs index a4fe29b..af21ee4 100644 --- a/Base/Controller/FCommonMy.cs +++ b/Base/Controller/FCommonMy.cs @@ -118,6 +118,7 @@ namespace NP.Base.Controllers telno.Length == 9 ? string.Format("{0}-{1}-{2}", telno.Substring(0, 2), telno.Substring(2, 3), telno.Substring(5, 4)) : telno.Length == 8 ? string.Format("{0}-{1}", telno.Substring(0, 4), telno.Substring(4, 4)) : telno.Length == 7 ? string.Format("{0}-{1}", telno.Substring(0, 3), telno.Substring(3, 4)) : u.telno; + u.birthday = u.birthday != null && u.birthday.Length == 8 ? (u.birthday ?? "").Substring(0, 4) + "-" + (u.birthday ?? "").Substring(4, 2) + "-" + (u.birthday ?? "").Substring(6, 2) : null; var check = Dao.Get("users.checkuser", new Hashtable() { { "usernonot", SUserInfo.UserNo }, { "email", u.email }, { "mobile", u.mobile } }).First(); if (check < 9) { diff --git a/FO/FO.csproj b/FO/FO.csproj index 974baf9..476b5dd 100644 --- a/FO/FO.csproj +++ b/FO/FO.csproj @@ -531,6 +531,7 @@ + diff --git a/FO/Views/Account/CertOk3IPIN.cshtml b/FO/Views/Account/CertOk3IPIN.cshtml index 7a525e7..1ec3455 100644 --- a/FO/Views/Account/CertOk3IPIN.cshtml +++ b/FO/Views/Account/CertOk3IPIN.cshtml @@ -17,6 +17,7 @@ } +
@@ -41,14 +42,18 @@ if ("@(RSLT_NAME)" == $(opener.document).find("#mform").find("#username").val()) { $(opener.document).find("#mform").find("#authplatform").val("@(AuthPlatform.IPIN.GetHashCode())"); - $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); + $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); $(opener.document).find("#mform").find("#di").val("@(DI)"); $(opener.document).find("#mform").find("#ci").val("@(CI)"); $(opener.document).find("#mform").find("#vssn").val("@(VSSN)"); $(opener.document).find("#mform").find("#authPlatform_IPIN").show(); $(opener.document).find("#mform").find("#authPlatform_IPIN").css("padding-bottom","0px"); $(opener.document).find("#mform").find("#authPlatform_IPIN_Name").text("I-PIN 인증"); - $(opener.document).find("#mform").find("#authPlatform_Mobile").hide(); + $(opener.document).find("#mform").find("#authPlatform_Mobile").hide(); + try { + $(opener.document).find("#mform").find("#txtbirthday").text(moment("@(RSLT_BIRTHDAY)").format('YYYY.MM.DD')); + } catch (error) { + } alert("인증완료"); } else { alert("입력한 정보와 일치하지 않습니다.\n 재인증해주세요."); diff --git a/FO/Views/Account/CertOk3MOBI.cshtml b/FO/Views/Account/CertOk3MOBI.cshtml index 8ce98d5..dd5fe74 100644 --- a/FO/Views/Account/CertOk3MOBI.cshtml +++ b/FO/Views/Account/CertOk3MOBI.cshtml @@ -17,7 +17,7 @@ var RETURN_MSG = (ViewBag.result ?? "").Split(':')[13]; } - +
@@ -59,12 +59,16 @@ $(opener.document).find("#mform").find("#authPlatform_IPIN").hide(); $(opener.document).find("#mform").find("#authPlatform_Mobile").show(); $(opener.document).find("#mform").find("#authPlatform_Mobile_Name").text("휴대폰 인증"); - $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); + $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); $(opener.document).find("#mform").find("#di").val("@(DI)"); $(opener.document).find("#mform").find("#ci").val("@(CI)"); $(opener.document).find("#mform").find("#mobile").val("@(TEL_NO)".replaceAll("-", "")); $(opener.document).find("#mform").find("#mobile").prop("readonly", true); $(opener.document).find("#mform").find("#mobilestr").text("@(TEL_NO)".replaceAll("-", "")); + try { + $(opener.document).find("#mform").find("#txtbirthday").text(moment("@(RSLT_BIRTHDAY)").format('YYYY.MM.DD')); + } catch (error) { + } alert("인증완료"); } else { alert("입력한 정보와 일치하지 않습니다.\n 재인증해주세요."); diff --git a/FO/Views/My/MyInfoCheck.cshtml b/FO/Views/My/MyInfoCheck.cshtml index 6cc9def..abadfb2 100644 --- a/FO/Views/My/MyInfoCheck.cshtml +++ b/FO/Views/My/MyInfoCheck.cshtml @@ -78,10 +78,12 @@ 생년월일 +

@if (!string.IsNullOrEmpty(u.birthday)) { -

@(u.birthday.Replace("-", "."))

+ @(u.birthday.Replace("-", ".")) } +

@@ -222,6 +224,7 @@ @Html.Partial("./Partial/ScriptPost") } @section scripts{ +