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
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.Common;
 
namespace CY.WebForm.Pages.webmanage
{
    //吴辉
    //印刷顾问-头像上传
    public partial class EditMyPic : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                EC_OnlineAdviserBLL bll_EC_OnlineAdviserBLL = new EC_OnlineAdviserBLL();
                EC_OnlineAdviser m_EC_OnlineAdviser = bll_EC_OnlineAdviserBLL.GetModelByKeyid(Request["keyid"].ToInt32());
                if (m_EC_OnlineAdviser != null)
                 {
                     if (!string.IsNullOrEmpty(m_EC_OnlineAdviser.LOGO) && System.IO.File.Exists(HttpContext.Current.Server.MapPath("~" + m_EC_OnlineAdviser.LOGO)))
                         this.ImgR_G_Avatar.Src = m_EC_OnlineAdviser.LOGO;
                     else
                         this.ImgR_G_Avatar.Src = "../../images/admin/_LoadDefault.gif";
                 }
                 else
                 {
                     this.ImgR_G_Avatar.Src = "../../images/admin/_LoadDefault.gif";
                 }
            }
        }
    }
}