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 ShopDetail : BasePage
|
{
|
EC_MemberBasicBLL bll_EC_MemberBasicBLL = null;
|
Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;//字典业务逻辑操作类对象
|
public string MemberTypeUrl = "";
|
|
//初始化
|
public ShopDetail()
|
{
|
bll_EC_MemberBasicBLL = new EC_MemberBasicBLL();
|
bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
DataBindToPage();
|
}
|
}
|
|
//数据绑定
|
public void DataBindToPage()
|
{
|
Guid nowGuid = CurrentUser.MemberId;
|
|
EC_ShopInfo m_EC_ShopInfo = bll_EC_MemberBasicBLL.GetShopInfoByMemberId(nowGuid);
|
|
#region 厂商信息表赋值
|
if (m_EC_ShopInfo != null)
|
{
|
this.imgIdCardFileId.Visible = string.IsNullOrEmpty(m_EC_ShopInfo.IdCardFileId) ? false : true;
|
this.imgIdCardFileId.Src = m_EC_ShopInfo.IdCardFileId.ToString2();
|
this.imgIdCardFileId.Attributes.Add("onerror", "GetDefaultImg(this,'../.." + CY.Config.WebInfo.Instance.WebDefaultImg + "');");
|
|
this.spanCardIdea.InnerText = m_EC_ShopInfo.CardIdea.ToString2();
|
this.spanSellerName.InnerText = m_EC_ShopInfo.SellerName.ToString2();
|
}
|
#endregion
|
}
|
}
|
}
|