username@email.com
2025-05-15 6fe02a16e55f17e45a3997171e1b2284d45af25b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL;
using CY.Model;
using CY.Infrastructure.Query;
using CY.Infrastructure.Common;
using CY.BLL.Sys;
 
namespace CY.WebForm.Pages.member
{
    //吴辉
    //账户安全信息
    public partial class AccountSafe : BasePage
    {
        EC_MemberBasicBLL bll_EC_MemberBasicBLL = null;
 
        //初始化
        public AccountSafe()
        {
            bll_EC_MemberBasicBLL = new EC_MemberBasicBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataBindToPage();
            }
        }
 
        //数据绑定
        public void DataBindToPage()
        {
            Guid nowGuid = CurrentUser.MemberId;
 
            EC_SafeValidation m_EC_SafeValidation = bll_EC_MemberBasicBLL.GetSafeValidationByMemberId(nowGuid);
            int AccountSafeLevel = 0; //账户安全级别
            #region 账户安全信息表赋值
            if (m_EC_SafeValidation != null)
            {
                if (m_EC_SafeValidation.MobileNumValidated)
                {
                    this.imgSMS.Src = "../../images/Common/icon-msg_true.png";
                    this.spanSMS.InnerHtml = "已验证";
                    AccountSafeLevel += 1;
                }
                else
                {
                    this.imgSMS.Src = "../../images/Common/icon-msg_false.png";
                    this.spanSMS.InnerHtml = "<a onclick='SetSMS();'  style='cursor: pointer;' class='a_under'>立即验证</a>";
                }
 
                if (m_EC_SafeValidation.MailValidated)
                {
                    this.imgEmail.Src = "../../images/Common/icon-msg_true.png";
                    this.spanEmail.InnerHtml = "已验证";
                    AccountSafeLevel += 1;
                }
                else
                {
                    this.imgEmail.Src = "../../images/Common/icon-msg_false.png";
                    this.spanEmail.InnerHtml = "<a onclick='SetEmail();'  style='cursor: pointer;' class='a_under'>立即验证</a>";
                }
 
                if (!string.IsNullOrEmpty(CurrentPayAccount.PayPwd))
                {
                    this.imgSafeCode.Src = "../../images/Common/icon-msg_true.png";
                    this.spanSafeCode.InnerHtml = "已设置";
                    AccountSafeLevel += 1;
                }
                else
                {
                    this.imgSafeCode.Src = "../../images/Common/icon-msg_false.png";
                    this.spanSafeCode.InnerHtml = "<a onclick='SetSafeCode();'  style='cursor: pointer;' class='a_under'>立即设置</a>";
                }
 
 
                switch ( AccountSafeLevel)
                {
                    case 0:
                    case 1:
                        this.spanAccountSafeLevel.InnerText = "差";
                        break;
                    case 2:
                        this.spanAccountSafeLevel.InnerText = "一般";
                        break;
                    case 3:
                        this.spanAccountSafeLevel.InnerText = "极好";
                        break;
                    default:
                        break;
                }
            }
            #endregion
        }
    }
}