private int Get_CareersListRecordCount() { zlzw.BLL.CareersListBLL careersListBLL = new zlzw.BLL.CareersListBLL(); DataTable dt = careersListBLL.GetList("IsEnable=1").Tables[0]; return(dt.Rows.Count); }
protected void btnDel_Click(object sender, EventArgs e) { if (grid1.SelectedRowIndexArray != null && grid1.SelectedRowIndexArray.Length > 0) { string strSelectID = "0"; for (int i = 0, count = grid1.SelectedRowIndexArray.Length; i < count; i++) { int rowIndex = grid1.SelectedRowIndexArray[i]; foreach (object key in grid1.DataKeys[rowIndex]) { strSelectID = key.ToString(); } } #region 除逻辑 zlzw.BLL.CareersListBLL careersListBLL = new zlzw.BLL.CareersListBLL(); DataTable dt = careersListBLL.GetList("CareersGUID='" + strSelectID + "'").Tables[0]; zlzw.Model.CareersListModal careersListModel = careersListBLL.GetModel(int.Parse(dt.Rows[0]["CareersID"].ToString())); careersListModel.IsEnable = 0; careersListBLL.Update(careersListModel); CareersTypeList_BindGrid(); #endregion } else { return; } }
private string Get_CareersID(string strCareersGUID) { zlzw.BLL.CareersListBLL careersListBLL = new zlzw.BLL.CareersListBLL(); DataTable dt = careersListBLL.GetList("CareersGUID='" + strCareersGUID + "'").Tables[0]; return(dt.Rows[0]["CareersID"].ToString()); }
private void Load_JobInfo(string strID) { try { zlzw.BLL.CareersListBLL careersListBLL = new zlzw.BLL.CareersListBLL(); DataTable dt = careersListBLL.GetList("CareersGUID='" + strID + "'").Tables[0]; this.Title = "校企英才官网-" + dt.Rows[0]["CareersTitle"].ToString();; labJobTitle.Text = dt.Rows[0]["CareersTitle"].ToString(); //labNavTitle.Text = dt.Rows[0]["CareersTitle"].ToString(); labPublishDate.Text = DateTime.Parse(dt.Rows[0]["PublishDate"].ToString()).ToString("yyyy年MM月dd日"); labDeptName.Text = dt.Rows[0]["DepartmentName"].ToString(); labCareersCount.Text = dt.Rows[0]["CareersCount"].ToString() + "人"; labEducational.Text = dt.Rows[0]["Educational"].ToString(); labWorkExperience.Text = dt.Rows[0]["WorkExperience"].ToString(); labResponsibilities.Text = dt.Rows[0]["Responsibilities"].ToString(); labQualifications.Text = dt.Rows[0]["Qualifications"].ToString(); labWorkAdd.Text = dt.Rows[0]["WorkAdd"].ToString(); labTel.Text = dt.Rows[0]["Telephone"].ToString(); labMail.Text = dt.Rows[0]["EMail"].ToString(); labContactMan.Text = dt.Rows[0]["ContactMan"].ToString(); } catch (Exception exp) { Response.Redirect("CareersList.aspx"); } }
private void CareersTypeList_BindGrid() { zlzw.BLL.CareersListBLL careersListBLL = new zlzw.BLL.CareersListBLL(); DataTable dt = careersListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0]; grid1.DataSource = dt; grid1.DataBind(); }
private void Load_CareersList() { int nPageIndex = AspNetPager1.CurrentPageIndex; int nPageSize = AspNetPager1.PageSize = 4; zlzw.BLL.CareersListBLL careersListBLL = new zlzw.BLL.CareersListBLL(); DataTable dt = careersListBLL.GetList(nPageSize, nPageIndex, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0]; Repeater1.DataSource = dt; Repeater1.DataBind(); }
/// <summary> /// 获取总页数 /// </summary> /// <returns></returns> private int Get_AdminListTotalCount() { zlzw.BLL.CareersListBLL careersListBLL = new zlzw.BLL.CareersListBLL(); DataTable dt = careersListBLL.GetList("IsEnable=1").Tables[0]; if (dt.Rows.Count > 0) { return(dt.Rows.Count); } else { return(0); } }