From 9992505b52fd661cc08adb10362c99491ac95ee7 Mon Sep 17 00:00:00 2001 From: jity7777 Date: Mon, 3 Jun 2024 04:00:50 +0000 Subject: [PATCH] =?UTF-8?q?<=EA=B8=B0=EB=8A=A5=EA=B0=9C=EC=84=A0>=201.=20P?= =?UTF-8?q?MS=20NO=20:=205102,=205226,=205227=202.=20(=EC=A3=BC=EC=9A=94)?= =?UTF-8?q?=EC=9E=91=EC=97=85=EB=82=B4=EC=9A=A9=20(1)=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=EB=8C=80=EC=83=81=20=EC=9D=BC=EA=B4=84=20=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/Web.config | 2 +- Base/Controller/ACommon.cs | 2 + FO/Controllers/FOBaseController.cs | 2 +- FO/Views/CDMS/Contents.cshtml | 7 +- FO/Views/My/MyInfoCheck.cshtml | 202 ++++++++--------------------- FO/Web.config | 5 +- 6 files changed, 69 insertions(+), 151 deletions(-) diff --git a/BO/Web.config b/BO/Web.config index c55e7fe..7d4c0ec 100644 --- a/BO/Web.config +++ b/BO/Web.config @@ -34,7 +34,7 @@ - + diff --git a/Base/Controller/ACommon.cs b/Base/Controller/ACommon.cs index 1db4e0f..91e8fe3 100644 --- a/Base/Controller/ACommon.cs +++ b/Base/Controller/ACommon.cs @@ -1622,6 +1622,8 @@ namespace NP.Base.Controllers d.cc3 = (cc.Where(w => w.cgroup == "cc3" && w.cname == d.ccname3).FirstOrDefault() ?? new ComCode() { }).ccode; d.cc4 = (cc.Where(w => w.cgroup == "cc4" && w.cname == d.ccname4).FirstOrDefault() ?? new ComCode() { }).ccode; d.cc5 = (cc.Where(w => w.cgroup == "cc5" && w.cname == d.ccname5).FirstOrDefault() ?? new ComCode() { }).ccode; + d.ispassspace = 1; + d.isignorecase = 1; d.uno = SUserInfo.UserNo; d.uip = GetUserIP(); d.QIs = new List(); diff --git a/FO/Controllers/FOBaseController.cs b/FO/Controllers/FOBaseController.cs index 474267e..d5d6a5b 100644 --- a/FO/Controllers/FOBaseController.cs +++ b/FO/Controllers/FOBaseController.cs @@ -42,7 +42,7 @@ namespace NP.FO.Controllers if ( Request.IsSecureConnection && Request.Url.AbsolutePath.ToUpper().StartsWith("/CDMS/") && - Request.Url.AbsolutePath.ToUpper() != "/CDMS/HTTPS" + Request.Url.AbsolutePath.ToUpper() != "/CDMS/HTTPS" && false ) { //Response.Redirect("http://" + Request.Url.Host + Request.Url.PathAndQuery, true); diff --git a/FO/Views/CDMS/Contents.cshtml b/FO/Views/CDMS/Contents.cshtml index 539e7c7..174c716 100644 --- a/FO/Views/CDMS/Contents.cshtml +++ b/FO/Views/CDMS/Contents.cshtml @@ -45,8 +45,9 @@ } else if (Model.CMInning.ctype == 2) { +
- @Html.Raw(Model.ismobile == 1 ? (string.IsNullOrEmpty(Model.Page.srcm) ? Model.Page.srcp : Model.Page.srcm) : Model.Page.srcp) + @Html.Raw((Model.ismobile == 1 ? (string.IsNullOrEmpty(Model.Page.srcm) ? Model.Page.srcp : Model.Page.srcm) : Model.Page.srcp).Replace("http:", "https:"))
} @@ -126,6 +127,7 @@ golog(false, true, false, true); _passunload = true; } + //opener.document.location.reload(); self.close(); } $(window).load(function () { @@ -293,7 +295,8 @@ } else { _passunload = true; clearInterval(_timerlog); - msg("콘텐츠를 학습할 수 없는 상태입니다. 운영자에게 문의해주세요...", null, null, null, "goclose()", 3000); + msg("콘텐츠를 학습할 수 없는 상태입니다. 운영자에게 문의해주세요...", null, null, null, "goclose()", 3000); + //msg("콘텐츠를 학습할 수 없는 상태입니다. 운영자에게 문의해주세요...", null, null, null); } } }); diff --git a/FO/Views/My/MyInfoCheck.cshtml b/FO/Views/My/MyInfoCheck.cshtml index 54ac5f2..ae6329a 100644 --- a/FO/Views/My/MyInfoCheck.cshtml +++ b/FO/Views/My/MyInfoCheck.cshtml @@ -24,14 +24,14 @@ - - - - + + + + - + @@ -83,60 +83,67 @@ - - + + - + @* - - - *@ + + + *@ @* - - - *@ + + + *@
ID

@u.userid

이름(한글)

@u.username

이름(한글)

@u.username

비밀번호
비밀번호 확인
생년월일

- @if (!string.IsNullOrEmpty(u.birthday)) - { - @(u.birthday.Replace("-", ".")) - } + @if (!string.IsNullOrEmpty(u.birthday)) + { + @(u.birthday.Replace("-", ".")) + }

학습인증수단 -
+

@(u.authplatform == AuthPlatform.None ? "-" : "I-PIN 인증")

- 휴대폰 인증으로 변경 -
- +

@(u.authplatform == AuthPlatform.None ? "-" : "휴대폰 인증")

- I-PIN 인증으로 변경 + I-PIN 인증으로 변경

※ 인증수단 변경 시 추가 인증을 진행해야 합니다.
※ 추가 인증 후 하단의 [저장] 버튼을 클릭해야 변경이 완료됩니다.
연락처
- -

@(u.mobile)

수정 + @if(u.authplatform == AuthPlatform.Mobile) + { + +

@(u.mobile)

수정 + } + else + { + + }
소속 -
    -
  • -
  • -
-
소속 +
    +
  • +
  • +
+
직장 -
- -

@(u.asname ?? "-")

- 수정 -
-
직장 +
+ +

@(u.asname ?? "-")

+ 수정 +
+
학력 @@ -188,9 +195,6 @@ - - - @Html.Partial("./Partial/OkCert3", null, new ViewDataDictionary { })
    @@ -215,22 +219,16 @@
    문의 : 1544-7660
    @*
    탈퇴사유
    - - *@ + + *@ - -
    - -
    - - @Html.Partial("./Partial/BoxAssign", null, new ViewDataDictionary { { "bindmethod", "bindassign" } }) @section scriptsHeader{ @Html.Partial("./Partial/ScriptPost") @@ -251,7 +249,7 @@ var referrer = document.referrer; if (referrer.toLowerCase().indexOf('myinfocheck') > 0 || referrer.toLowerCase().indexOf('snslinkcallback') > 0) { selectTab("sns"); - + } $("input:radio[name='isCompany']").on("click", function () { @@ -268,10 +266,10 @@ } }); - $("#userpno2").on("keyup", function () { + $("#userpno2").on("keyup", function () { setbirthday(val("userpno1") + val("userpno2")); }); - }); + }); function chkassign() { var isCompany = $("input:radio[name='isCompany']:checked").val(); if (isCompany == "1") { @@ -279,9 +277,9 @@ } } function setbirthday(userpno) { - var birthday = ""; + var birthday = ""; if (userpno.length == 13 && moment(userpno.substr(0, 6), 'YYMMDD', true).isValid() && userpno.substr(6, 1) > 0) - { + { switch (userpno.substr(6, 1)) { case "1": @@ -312,7 +310,7 @@ break; } - birthday += userpno.substr(0, 2) + "-" + userpno.substr(2, 2) + "-" + userpno.substr(4, 2); + birthday += userpno.substr(0, 2) + "-" + userpno.substr(2, 2) + "-" + userpno.substr(4, 2); } if (val("birthday") == "" && birthday != "") { $("#txtbirthday").text(birthday.replace(/-/gi, ".")); @@ -350,23 +348,12 @@ else if (val("userpass") != "" && !ispassword(val("userpass"))) { focus("userpass"); msg("(8자 이상, 영문/숫자/특수기호 포함) 규칙으로 비밀번호를 입력해주세요."); } else if (isRepeatedString(val("userpass"))) { focus("userpass"); msg("반복되는 문자/숫자를 사용할 수 없습니다."); } else if (val("userpass") != "" && val("userpass") != val("userpass2")) { focus("userpass2"); msg("비밀번호 확인이 다릅니다."); } - - // else if (check("mobile", null, "휴대전화번호를 입력해주세요.")) { } - // else if (!ismobilenumber(val("mobile"))) { focus("mobile"); msg("휴대전화번호를 확인해주세요."); } - + else if (check("mobile", null, "휴대전화번호를 입력해주세요.")) { } + else if (!ismobilenumber(val("mobile"))) { focus("mobile"); msg("휴대전화번호를 확인해주세요."); } else if (!isemail(val("email"))) { focus("email1"); msg("올바른 이메일주소를 입력해주세요."); } //else if ($("input:radio[name='isCompany']:checked").val() == "1" && check("asno", "btnassign", "직장을 선택해주세요.")) { } else { - if ($("#authPlatform_IPIN").css("display") == "block") { - cap("/fcommon/UserPassCheck", "mform", "save2"); - } - else { - if (check("mobile", null, "휴대전화번호를 입력해주세요.")) { } - else if (!ismobilenumber(val("mobile"))) { focus("mobile"); msg("휴대전화번호를 확인해주세요."); } - else { - cap("/fcommon/UserPassCheck", "mform", "save2"); - } - } + cap("/fcommon/UserPassCheck", "mform", "save2"); } } else if (idx == 0) { $('html, body').addClass('lock'); @@ -379,8 +366,6 @@ function save2() { if (capResult.obj == 0) { cap("/fcommon/usersave", "mform", "cbsave"); - }else if (capResult.obj == -1) { - msg("입력된 정보와 인증정보가 일치하지 않습니다."); } else { msg("이미 사용된 비밀번호는 사용할 수 없습니다."); @@ -400,9 +385,6 @@ function cbsave() { if (capResult.code == 1000) { msg("저장되었습니다."); - cap("/fcommon/userGetMyinfo", "mform", "cbsave2"); - } else if (capResult.obj == -1) { - msg("입력된 정보와 인증정보가 일치하지 않습니다."); } else if (capResult.obj == -2) { msg("이미 사용중인 이메일주소입니다. 다른 이메일주소를 사용해주세요."); } else { @@ -410,36 +392,6 @@ } } - function cbsave2() { - if (capResult.code == 1000) { - - $("#mobile").val(capResult.obj.mobile) - $("#mobilestr").text(capResult.obj.MobileFormat) - - if (capResult.obj.authplatform == 1) { - $("#authPlatform_IPIN").css("display", "") - $("#authPlatform_Mobile").css("display", "none") - } - else if (capResult.obj.authplatform == 2) { - $("#authPlatform_IPIN").css("display", "none") - $("#authPlatform_Mobile").css("display", "") - } - else { - $("#authPlatform_IPIN").css("display", "") - $("#authPlatform_Mobile").css("display", "") - } - $("#authplatform").val(capResult.obj.authplatform) - $("#post").val(capResult.obj.post) - $("#address1").val(capResult.obj.address1) - $("#address2").val(capResult.obj.address2) - - msg("저장되었습니다."); - } - else { - msg("사용자 정보를 불러오는데 실패하였습니다.") - } - } - function selectTab(type) { if (type == "user") { $("#liSnsTab").removeClass("current"); @@ -517,7 +469,7 @@ msg("구글 아이디로 로그인에 실패했습니다."); return; }); - } + } function loginWithNaver() { $("#naverIdLogin_loginButton > img").trigger("click"); @@ -527,46 +479,6 @@ naverLogin.init(); Kakao.init("@kakaoClientId"); } - - function certRslt(val) { - if (val.indexOf("er.") == -1) { - $("#frm #stringval").val(val) - var data = $("#frm").serialize() - capp("/focommon/GetOkCert3Rslt", data, "certOkRslt"); - } - else { - msg(val.replace("er.", "")) - } - } - - function certOkRslt() { - //console.log(capResult.obj); - - if (capResult.obj.username == $("#username").val().trim()) { - $("#okcert3no").val(capResult.obj.no); - $("#okcert3sn").val(capResult.obj.sn); - $("#okcert3gb").val(capResult.obj.gubn); - if (capResult.obj.gubn == "MOBI") { - $("#mobilestr").text(capResult.obj.mobile) - $("#mobile").val(capResult.obj.mobile.replace(/-/gi, "")) - } - if (capResult.obj.gubn == "IPIN") { - $("#authPlatform_IPIN").css("display", "") - $("#authPlatform_Mobile").css("display", "none") - - }else if (capResult.obj.gubn == "MOBI") { - $("#authPlatform_IPIN").css("display", "none") - $("#authPlatform_Mobile").css("display", "") - } - else { - $("#authPlatform_IPIN").css("display", "") - $("#authPlatform_Mobile").css("display", "") - } - } - else { - msg("입력된 정보와 인증정보가 일치하지 않습니다.") - } - } @*header가 아니라 하단에 위치해야 읽어올수있음*@ } diff --git a/FO/Web.config b/FO/Web.config index f069979..901845f 100644 --- a/FO/Web.config +++ b/FO/Web.config @@ -40,9 +40,10 @@ - + - + +