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 } } }