protected void BindData() { HttpCookie c*k = Request.Cookies["ftcook"]; if (c*k != null) { zp_id = Convert.ToInt32(c*k["zpid"]); } if (zp_id != -1) { Zhaopin zp = FTInterviewBLL.ZhaopinManage.GetZhaopinById(zp_id); ZhaopinFb zfb = FTInterviewBLL.ZhaopinFbManage.GetZhaopinFbByid(zp.ZpfbId); DataProcess.DepartmentBind(department); department.SelectedValue = "" + zfb.FbBmId; DataProcess.PositionBind(Position, zfb.FbBmId); Position.SelectedValue = zfb.ZpPosName; ZpSum.Value = zfb.ZpSums + ""; PubTime.Value = zp.InterviewTime; department.Enabled = false; Position.Enabled = false; ZpSum.Disabled = true; PubTime.Disabled = true; /*List<YingpinzheZhaopin>*/ ls = FTInterviewBLL.YingpinzheZhaopinManage.GetAllYingpinzheInzhaopinID(zp_id); YpSum.Text = ls.Count + "人"; MsOrderGridview.DataSource = ls; MsOrderGridview.DataBind(); } }
protected void BindData() { HttpCookie c*k = Request.Cookies["ftcook"]; if (c*k != null) { zpid = Convert.ToInt32(c*k["zpid"]); } if (zpid != -1) { string xuantistate = "抽选考题"; Zhaopin zp = FTInterviewBLL.ZhaopinManage.GetZhaopinById(zpid); if (zp.KaotiID != -1) { xuantistate = "已" + xuantistate; XuanTi.ControlStyle.ForeColor = System.Drawing.Color.Green; ResultID.Visible = true; LabelRes.Text = zp.KaotiID + ""; } else { xuantistate = "未" + xuantistate; XuanTi.ControlStyle.ForeColor = System.Drawing.Color.Red; ResultID.Visible = false; } XuanTi.Text = xuantistate; List <YingpinzheZhaopin> ls = FTInterviewBLL.YingpinzheZhaopinManage.GetAllYingpinzheInzhaopinID(zpid); MsOrderGridview.DataSource = ls; MsOrderGridview.DataBind(); } }