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