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
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 MemberAccount : BasePage
    {
        EC_MemberBasicBLL bll_EC_MemberBasicBLL = null;
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;//字典业务逻辑操作类对象
 
        //初始化
        public MemberAccount()
        {
            bll_EC_MemberBasicBLL = new EC_MemberBasicBLL();
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataBindToPage();
 
                if (CurrentUser != null)
                {
                    ///管理员
                    if (CurrentUser.MemberId.ToString() == UtilConst.AdminFirmId)
                    {
                        Response.Redirect("/Pages/member/AdminAccountNew.aspx");
                    }
                    else
                    {
                        Response.Redirect("/Pages/member/MemberAccountNew.aspx");
                    }
                }
            }
        }
 
        //数据绑定
        public void DataBindToPage()
        {
            Guid nowGuid = CurrentUser.MemberId;
 
            Pay_PaymentAccount m_Pay_PaymentAccount = bll_EC_MemberBasicBLL.GetPaymentAccountByMemberId(nowGuid);
 
            #region 账户信息表赋值
            if (m_Pay_PaymentAccount != null)
            {
                this.spanPaymentAccountUseStatus.InnerText = bll_Sys_DictionaryBLL.GetModelByKeyid(m_Pay_PaymentAccount.UseStatus);
                this.spanPaymentAccountPayPwd.InnerText = string.IsNullOrEmpty(m_Pay_PaymentAccount.PayPwd.ToString2()) ? "未设置" : "已设置";
                this.spanPaymentAccountPayLevel.InnerText = m_Pay_PaymentAccount.PayLevel.ToString2();
                this.spanPaymentAccountPayMoney.InnerText = m_Pay_PaymentAccount.PayMoney.ToDecimal2Yen().ToString2();
                this.spanPaymentAccountCreditLine.InnerText = m_Pay_PaymentAccount.CreditLine.ToDecimal2Yen().ToString2();
                this.spanPaymentAccountSurplusCredit.InnerText = m_Pay_PaymentAccount.SurplusCredit.ToDecimal2Yen().ToString2();
                //this.spanPaymentAccountSurplusMoney.InnerText = m_Pay_PaymentAccount.SurplusMoney.ToDecimal2Yen().ToString2();
                this.spanPaymentAccountOrderCommissionMoney.InnerText = m_Pay_PaymentAccount.OrderCommissionMoney.ToDecimal2Yen().ToString2();
                this.spanPaymentAccountScore.InnerText = m_Pay_PaymentAccount.Score.ToString2();
                this.spanPaymentAccountPromotionMoney.InnerText = m_Pay_PaymentAccount.PromotionMoney.ToDecimal2Yen().ToString2();
            }
            #endregion
        }
    }
}