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; namespace CY.WebForm.Pages.front { //吴辉 //简历信息列表 public partial class ResumeDetail : FrontBasePage { OA_StaffResumeBLL bll_OA_StaffResumeBLL = null; OA_StaffPostCategoryBLL bll_OA_StaffPostCategoryBLL = null; OA_StaffPostBLL bll_OA_StaffPostBLL = null; public string OLDProvince = ""; //接收值 Request["selectProvince"].ToString2(); public string OLDCity = "";//接收值 Request["selectCity"].ToString2(); public string OLDCounty = "";//接收值 Request["selectCounty"].ToString2(); public string NowProvince = ""; //接收值 Request["selectProvince"].ToString2(); public string NowCity = "";//接收值 Request["selectCity"].ToString2(); public string NowCounty = "";//接收值 Request["selectCounty"].ToString2(); public string Province = ""; //接收值 Request["selectProvince"].ToString2(); public string City = "";//接收值 Request["selectCity"].ToString2(); public Guid MemberId = Guid.Empty; //初始化 public ResumeDetail() { bll_OA_StaffResumeBLL = new OA_StaffResumeBLL(); bll_OA_StaffPostCategoryBLL = new OA_StaffPostCategoryBLL(); bll_OA_StaffPostBLL = new OA_StaffPostBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { OA_StaffResume m_OA_StaffResume = bll_OA_StaffResumeBLL.GetModelByKeyid(Request["id"].ToInt32()); MemberId = m_OA_StaffResume.Memberid; BindList(); InitData(); } } //绑定数据 private void BindList() { List m_OA_StaffResumeEducationList = bll_OA_StaffResumeBLL.GetOA_StaffResumeEducationListByKeyid (MemberId) as List; this.RepClientList.DataSource = m_OA_StaffResumeEducationList; this.RepClientList.DataBind(); List m_OA_StaffResumeWorkList = bll_OA_StaffResumeBLL.GetOA_StaffResumeWorkListByKeyid(MemberId) as List; this.RepClientList2.DataSource = m_OA_StaffResumeWorkList; this.RepClientList2.DataBind(); } //数据加载 public void InitData() { #region OA_StaffResume OA_StaffResume m_OA_StaffResume = bll_OA_StaffResumeBLL.GetModelByMemberid(MemberId); if (m_OA_StaffResume != null) { this.txtR_G_Name.InnerText = m_OA_StaffResume.R_G_Name.ToString2(); this.txtR_G_Sex.InnerText = m_OA_StaffResume.R_G_Sex.ToString2(); this.txtR_G_WorkYear.InnerText = m_OA_StaffResume.R_G_WorkYear.ToString2(); this.txtR_G_Degree.InnerText = m_OA_StaffResume.R_G_Degree.ToString2(); this.txtR_G_DocumentsType.InnerText = m_OA_StaffResume.R_G_DocumentsType.ToString2(); this.txtR_G_DocumentsNumber.InnerText = m_OA_StaffResume.R_G_DocumentsNumber.ToString2(); this.txtR_G_Email.InnerText = m_OA_StaffResume.R_G_Email.ToString2(); this.txtR_G_Moblie.InnerText = m_OA_StaffResume.R_G_Moblie.ToString2(); 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"; OLDProvince = m_OA_StaffResume.R_G_OldProvence.ToString2(); OLDCity = m_OA_StaffResume.R_G_OldCity.ToString2(); OLDCounty = m_OA_StaffResume.R_G_OldArea.ToString2(); this.OldAddress.InnerText = OLDProvince + OLDCity + OLDCounty + m_OA_StaffResume.R_G_OldAdress.ToString2(); NowProvince = m_OA_StaffResume.R_G_NowProvince.ToString2(); NowCity = m_OA_StaffResume.R_G_NowCity.ToString2(); NowCounty = m_OA_StaffResume.R_G_NowArea.ToString2(); this.NowAddress.InnerText = NowProvince + NowCity + NowCounty + m_OA_StaffResume.R_G_NowAddress.ToString2(); this.txtR_G_YearsMoney.InnerText = m_OA_StaffResume.R_G_YearsMoney.ToString2(); this.txtR_G_WorkStatus.InnerText = m_OA_StaffResume.R_G_WorkStatus.ToString2(); this.txtR_G_QQ.InnerText = m_OA_StaffResume.R_G_QQ.ToString2(); this.txtR_G_YouHome.InnerText = m_OA_StaffResume.R_G_YouHome.ToString2(); this.txtR_G_YouHeight.InnerText = m_OA_StaffResume.R_G_YouHeight.ToString2(); this.txtR_G_YouWeight.InnerText = m_OA_StaffResume.R_G_YouWeight.ToString2(); this.txtR_G_MarryStatus.InnerText = (m_OA_StaffResume.R_G_MarryStatus == 1 ? "已婚" : "未婚"); this.txtR_G_YouPolitical.InnerText = m_OA_StaffResume.R_G_YouPolitical.ToString2(); } #endregion #region OA_StaffResumeIntention OA_StaffResumeIntention m_OA_StaffResumeIntention = bll_OA_StaffResumeBLL.GetOA_StaffResumeIntentionByKeyid(MemberId); if (m_OA_StaffResumeIntention != null) { Province = m_OA_StaffResumeIntention.R_I_WorkProvence.ToString2(); City = m_OA_StaffResumeIntention.R_I_WorkCity.ToString2(); this.PCACCommon.InnerText = (City.IndexOf(Province) >= 0 ? City : (Province + City)); this.txtR_I_Industry.InnerText = m_OA_StaffResumeIntention.R_I_Industry.ToString2(); this.txtR_I_Consultants_id.InnerText = m_OA_StaffResumeIntention.R_I_PostName.ToString2(); this.txtR_I_HopeMoney.InnerText = m_OA_StaffResumeIntention.R_I_HopeMoney.ToString2(); this.txtR_I_WorkTime.InnerText = m_OA_StaffResumeIntention.R_I_WorkTime.ToString2(); this.txtR_I_YouDetail.InnerText = m_OA_StaffResumeIntention.R_I_YouDetail.ToString2(); } #endregion } } }