using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using CY.Model; using CY.BLL; using CY.Infrastructure.Common; using CY.Infrastructure.Query; namespace CY.WebForm.Pages.front { //吴辉 //招聘信息明细 public partial class RecruitmentsDetail : FrontBasePage { OA_StaffRecruitmentsBLL bll_OA_StaffRecruitmentsBLL = null; OA_StaffFirmProfileBLL bll_OA_StaffFirmProfileBLL = null; EC_MemberBasicBLL bll_EC_MemberBasicBLL = null; public string MemberId = ""; public string Keyid = ""; //初始化 public RecruitmentsDetail() { bll_OA_StaffRecruitmentsBLL = new OA_StaffRecruitmentsBLL(); bll_OA_StaffFirmProfileBLL = new OA_StaffFirmProfileBLL(); bll_EC_MemberBasicBLL = new EC_MemberBasicBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitData(); } } //数据加载 public void InitData() { OA_StaffRecruitments m_OA_StaffRecruitments = bll_OA_StaffRecruitmentsBLL.GetModelByKeyid(Request["id"].ToInt32()); if (m_OA_StaffRecruitments != null) { this.spanFirmId.InnerText = m_OA_StaffRecruitments.MP_CompanyName.ToString2(); this.spanPostid.InnerText = m_OA_StaffRecruitments.PostName.ToString2(); this.spanPostName.InnerText = m_OA_StaffRecruitments.PostName; this.spanR_Vacancies.InnerText = (m_OA_StaffRecruitments.R_Vacancies == 0 ? "若干人数" : (m_OA_StaffRecruitments.R_Vacancies.ToString2() + "人")); this.spanR_WorkProvence.InnerText = m_OA_StaffRecruitments.R_WorkProvence.ToString2(); this.spanR_WorkCity.InnerText = m_OA_StaffRecruitments.R_WorkCity.ToString2(); this.spanR_PostDetail.InnerHtml = m_OA_StaffRecruitments.R_PostDetail.ToString2(); this.spanR_PostNeed.InnerHtml = m_OA_StaffRecruitments.R_PostNeed.ToString2(); this.spanR_Salary.InnerText = m_OA_StaffRecruitments.R_Salary.ToString2(); MemberId = m_OA_StaffRecruitments.FirmId.ToString2(); Keyid = m_OA_StaffRecruitments.Keyid.ToString2(); OA_StaffFirmProfile m_OA_StaffFirmProfile = bll_OA_StaffFirmProfileBLL.GetModelByFirmId(m_OA_StaffRecruitments.FirmId); if (m_OA_StaffFirmProfile != null) { this.txtMP_PostNumber.InnerText = m_OA_StaffFirmProfile.MP_PostNumber.ToString2(); this.txtMP_ResumePlace.InnerText = m_OA_StaffFirmProfile.MP_ResumePlace.ToString2(); this.txtMP_ResumePeople.InnerText = m_OA_StaffFirmProfile.MP_ResumePeople.ToString2(); this.txtMP_ResumePhone.InnerText = m_OA_StaffFirmProfile.MP_ResumePhone.ToString2(); this.txtMP_ResumeCarWay.InnerText = m_OA_StaffFirmProfile.MP_ResumeCarWay.ToString2(); } Pagination pa = new Pagination(); pa.PageSize = 5; pa.PageIndex =1; this.RepClientList.DataSource = bll_OA_StaffRecruitmentsBLL.SelectModelPage(pa, m_OA_StaffRecruitments.FirmId, null, "", "", null, null, null, null, "", "", null, "", 2, null, null, null, null, "", ""); this.RepClientList.DataBind(); } } } }