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
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;
 
namespace CY.WebForm.Pages.personnel
{
    //吴辉
    //简历头像上传
    public partial class EditMyPic : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OA_StaffResumeBLL bll_OA_StaffResumeBLL = new OA_StaffResumeBLL();
                 OA_StaffResume m_OA_StaffResume = bll_OA_StaffResumeBLL.GetModelByMemberid(CurrentUser.MemberId);
                 if (m_OA_StaffResume != null)
                 {
                     if (!string.IsNullOrEmpty(m_OA_StaffResume.R_G_Avatar) && System.IO.File.Exists(HttpContext.Current.Server.MapPath("~" + m_OA_StaffResume.R_G_Avatar)))
                         this.ImgR_G_Avatar.Src = m_OA_StaffResume.R_G_Avatar;
                     else
                         this.ImgR_G_Avatar.Src = "../../images/admin/_LoadDefault.gif";
                 }
                 else
                 {
                     this.ImgR_G_Avatar.Src = "../../images/admin/_LoadDefault.gif";
                 }
            }
        }
    }
}