private string Get_EnterprisePublishCount(string strEnterpriseGUID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("EnterpriseKey='" + strEnterpriseGUID + "' and JobPositionStatus=1 and CanUsable=1").Tables[0]; return dt.Rows.Count.ToString(); }
private void Get_RecordCount() { string strGangWei = Request.Params["txbJobPositionKinds"];//岗位类别 string strHangYe = Request.Params["txbJobFeildKinds"];//行业类别 string strWorkAreas = Request.Params["txbWorkAreas"];//工作地区 string strSearchKey = Request.Params["txbSearchKey"];//关键字 string strSex = drpSex.SelectedValue;//性别 string strShiSu = drpShiSu.SelectedValue;//食宿 if (Session["DefaultSearchWhere"] != null) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList(Session["DefaultSearchWhere"].ToString()).Tables[0]; AspNetPager1.RecordCount = dt.Rows.Count; if (dt.Rows.Count == 0) { labDataIsNull.Visible = true; } else if (dt.Rows.Count > 0) { labDataIsNull.Visible = false; Repeater1.DataSource = dt; Repeater1.DataBind(); } } else { System.Text.StringBuilder strBuilder = new System.Text.StringBuilder(); strBuilder.Append("CanUsable=1"); if (strGangWei != "") { strBuilder.Append(" and JobPositionKind like '%" + strGangWei + "%'"); } if (strHangYe != "") { strBuilder.Append(" and JobFeildKinds like '%" + strHangYe + "%'"); } if (strWorkAreas != "") { strBuilder.Append(" and JobWorkPlaceNames like '%" + strWorkAreas + "%'"); } if (strShiSu != "-1" && strShiSu != "0") { strBuilder.Append(" and HopeRoomAndBoard like '%" + strShiSu + "%'"); } if (strSex != "-1") { strBuilder.Append(" and NeedSex like '%" + strSex + "%'"); } if (strSearchKey != "") { strBuilder.Append(" or (JobPositionDesc like '%" + strSearchKey + "%' or EnterpriseName like '%" + strSearchKey + "%' or JobPositionName like '%" + strSearchKey + "%')"); } zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); //System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("CanUsable=1 and JobPositionKind like '%" + strGangWei + "%' and JobFeildKinds like '%" + strHangYe + "%' and JobWorkPlaceNames like '%" + strWorkAreas + "%' and NeedSex like '%" + strSex + "%' or (JobPositionDesc like '%" + strSearchKey + "%' or EnterpriseName like '%" + strSearchKey + "%' or JobPositionName like '%" + strSearchKey + "%')").Tables[0]; System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList(strBuilder.ToString()).Tables[0]; AspNetPager1.RecordCount = dt.Rows.Count; } }
private void JobEnterpriseJobPositionList_BindGrid() { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); DataTable dt = jobEnterpriseJobPositionBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "CreateDate", 0, "desc", "CanUsable=1").Tables[0]; grid1.DataSource = dt; grid1.DataBind(); }
private void Load_DataList(string strEnterpriseGUID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); int nPageIndex = AspNetPager1.CurrentPageIndex; int nPageSize = AspNetPager1.PageSize = 15; System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList(nPageSize, nPageIndex, "*", "CreateDate", 0, "desc", "EnterpriseKey='" + strEnterpriseGUID + "' and CanUsable=1").Tables[0]; Repeater1.DataSource = dt; Repeater1.DataBind(); }
private void Get_EnterpriseJobList(string strEnterpriseID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("EnterpriseKey='"+ Request.QueryString["id"] +"' and CanUsable=1 order by CreateDate desc").Tables[0]; labBanner.Text = dt.Rows[0]["EnterpriseName"].ToString(); labEnterpriseContent.Text = Get_EnterpriseDesc(strEnterpriseID); txbTitle.Text = dt.Rows[0]["EnterpriseName"].ToString() + "-" + dt.Rows[0]["JobPositionName"].ToString(); DataList1.DataSource = dt; DataList1.DataBind(); }
private void Load_JobList(string strJobGUID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("EnterpriseKey='"+ strJobGUID +"' order by CreateDate desc").Tables[0]; labBanner.Text = dt.Rows[0]["EnterpriseName"].ToString() + "<br/>"; txbTitle.Text = dt.Rows[0]["EnterpriseName"].ToString() + "-" + dt.Rows[0]["JobPositionName"].ToString(); labEnterpriseContent.Text = Get_EnterpriseDesc(strJobGUID); DataList1.DataSource = dt; DataList1.DataBind(); }
private void Get_RecordCount(string strSearchKey) { if (Request.QueryString["type"] == "1") { //岗位类别 zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("CanUsable=1 and JobPositionKind like '%" + strSearchKey + "%'").Tables[0]; AspNetPager1.RecordCount = dt.Rows.Count; if (dt.Rows.Count == 0) { labDataIsNull.Visible = true; } else if (dt.Rows.Count > 0) { labDataIsNull.Visible = false; Repeater1.DataSource = dt; Repeater1.DataBind(); } } else if (Request.QueryString["type"] == "2") { //行业类别 zlzw.BLL.GeneralEnterpriseBLL generalEnterpriseBLL = new zlzw.BLL.GeneralEnterpriseBLL(); System.Data.DataTable dt = generalEnterpriseBLL.GetList("IndustryKey like '%" + Request.QueryString["id"] + "%'").Tables[0]; System.Text.StringBuilder strBuilder = new System.Text.StringBuilder(); if (dt.Rows.Count == 0) { labDataIsNull.Visible = true; } else if(dt.Rows.Count > 0) { strBuilder.Append("CanUsable=1 and "); int nRowCount = dt.Rows.Count; for (int nCount = 0; nCount < nRowCount; nCount++) { if ((nCount + 1) == nRowCount) { strBuilder.Append("EnterpriseKey='" + dt.Rows[nCount]["EnterpriseGuid"].ToString() + "'"); } else { strBuilder.Append("EnterpriseKey='" + dt.Rows[nCount]["EnterpriseGuid"].ToString() + "' or "); } } zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt01 = jobEnterpriseJobPositionBLL.GetList(strBuilder.ToString()).Tables[0]; labDataIsNull.Visible = false; Repeater1.DataSource = dt01; Repeater1.DataBind(); } } }
/// <summary> /// 获取总页数 /// </summary> /// <returns></returns> private int Get_JobEnterpriseJobPositionListTotalCount() { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); DataTable dt = jobEnterpriseJobPositionBLL.GetList("CanUsable=1").Tables[0]; if (dt.Rows.Count > 0) { return dt.Rows.Count; } else { return 0; } }
private void Load_JobInfo(string strID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("jobPositionGuid='"+ strID +"'").Tables[0]; System.Text.StringBuilder strBuilder = new System.Text.StringBuilder(); strBuilder.Append("<table border='0' style='width:91%;'>"); strBuilder.Append("<tr>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>岗位名称:</span> " + dt.Rows[0]["JobPositionName"].ToString()); strBuilder.Append("</td>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>岗位类别: </span>" + dt.Rows[0]["JobPositionKind"].ToString()); strBuilder.Append("</td>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>食宿福利: </span>" + Get_IsHopeRoomAndBoard(dt.Rows[0]["HopeRoomAndBoard"].ToString())); strBuilder.Append("</td>"); strBuilder.Append("</tr>"); strBuilder.Append("<tr>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>性别要求: </span>" + Get_UserSex(dt.Rows[0]["NeedSex"].ToString())); strBuilder.Append("</td>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>年龄要求: </span>" + dt.Rows[0]["NeedAge"].ToString()); strBuilder.Append("</td>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>最低学历: </span>" + Get_NeedEducation(dt.Rows[0]["NeedEducation"].ToString())); strBuilder.Append("</td>"); strBuilder.Append("</tr>"); strBuilder.Append("<tr>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>综合薪资: </span>" + dt.Rows[0]["ComprehensivePayroll"].ToString()); strBuilder.Append("</td>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>工作性质: </span>" + Get_JobWorkType(dt.Rows[0]["JobWorkType"].ToString())); strBuilder.Append("</td>"); strBuilder.Append("<td>"); strBuilder.Append("<span style='color:#052C65;'>发布日期: </span>" + DateTime.Parse(dt.Rows[0]["CreateDate"].ToString()).ToString("yyyy年MM月dd")); strBuilder.Append("</td>"); strBuilder.Append("</tr>"); strBuilder.Append("<tr colspan='3'>"); strBuilder.Append("<td colspan='3'>"); strBuilder.Append("<p><span style='color:#052C65;'>职位描述:</span></p>"); strBuilder.Append(dt.Rows[0]["JobPositionDesc"].ToString()); strBuilder.Append("</tr>"); strBuilder.Append("</tr>"); labJobList.Text = strBuilder.ToString(); labEnterpriseAdd.Text = dt.Rows[0]["JobWorkPlaceNames"].ToString();//公司地址 labPhone.Text = dt.Rows[0]["ContactTelephone"].ToString();//联系电话 labEmail.Text = dt.Rows[0]["ContactMail"].ToString();//电子邮件 labLxr.Text = dt.Rows[0]["ContactPerson"].ToString();//联系人 }
private int Load_RecordCount(string strEnterpriseGUID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("EnterpriseKey='" + strEnterpriseGUID + "' and CanUsable=1").Tables[0]; if (dt.Rows.Count == 0) { labDataIsNull.Visible = true; } else { labDataIsNull.Visible = false; } return dt.Rows.Count; }
private string Get_EnterpriseType(string strGUID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); DataTable dt = jobEnterpriseJobPositionBLL.GetList("EnterpriseKey='" + strGUID + "'").Tables[0]; if (dt.Rows.Count > 0) { return "无"; } else { zlzw.BLL.GeneralEnterpriseBLL generalEnterpriseBLL = new zlzw.BLL.GeneralEnterpriseBLL(); DataTable dt01 = generalEnterpriseBLL.GetList("EnterpriseGuid='"+ dt.Rows[0]["EnterpriseKey"].ToString() +"'").Tables[0]; if (dt01.Rows.Count > 0) { return dt.Rows[0]["IndustryKey"].ToString(); } else { return "未知"; } } }
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.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); DataTable dt = jobEnterpriseJobPositionBLL.GetList("JobPositionGuid='" + strSelectID + "'").Tables[0]; zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = jobEnterpriseJobPositionBLL.GetModel(int.Parse(dt.Rows[0]["JobPositionID"].ToString())); jobEnterpriseJobPositionModel.CanUsable = 0; jobEnterpriseJobPositionBLL.Update(jobEnterpriseJobPositionModel); JobEnterpriseJobPositionList_BindGrid(); #endregion } else { return; } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = jobEnterpriseJobPositionBLL.GetModel(int.Parse(Request.QueryString["id"])); if (jobEnterpriseJobPositionModel != null) { jobEnterpriseJobPositionModel.CanUsable = 0; jobEnterpriseJobPositionBLL.Update(jobEnterpriseJobPositionModel); Response.Redirect("ViewPublishJobList.aspx?id=" + jobEnterpriseJobPositionModel.EnterpriseKey + "&type=1"); } } catch (Exception exp) { //Response.Redirect("default.aspx"); } }
protected void libkBtnDel_Click(object sender, EventArgs e) { LinkButton linkBtnDel = sender as LinkButton; zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = jobEnterpriseJobPositionBLL.GetModel(int.Parse(linkBtnDel.CommandName)); jobEnterpriseJobPositionModel.CanUsable = 0; jobEnterpriseJobPositionBLL.Update(jobEnterpriseJobPositionModel); if (ViewState["EnterpriseGUID"] != null) { Load_DataList(ViewState["EnterpriseGUID"].ToString()); } else { Load_DataList(Request.QueryString["id"]); } }
protected void btnSaveRefresh_Click(object sender, EventArgs e) { if (Request.QueryString["Type"] == "1") { //编辑保存 zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = new zlzw.Model.JobEnterpriseJobPositionModel(); //jobEnterpriseJobPositionModel.JobFeildKinds = drpJobFeildKinds01.SelectedText + "|" + drpJobFeildKinds.SelectedText;//行业类别 jobEnterpriseJobPositionModel.EnterpriseKey = drpEnterpriseKey.SelectedValue;//所属企业GUID jobEnterpriseJobPositionModel.DepartmentName = txbDepartmentName.Text;//所要招聘的部门 jobEnterpriseJobPositionModel.JobPositionStatus = int.Parse(drpJobPositionStatus.SelectedValue);//简历状态 jobEnterpriseJobPositionModel.EnterpriseName = Get_EnterpriseName(drpEnterpriseKey.SelectedValue);//企业名称 jobEnterpriseJobPositionModel.JobPositionName = txbJobPositionName.Text;//岗位名称 jobEnterpriseJobPositionModel.JobPositionKind = txbJobPositionKind.Text;//岗位名称中文 jobEnterpriseJobPositionModel.JobWorkType = int.Parse(drpJobWorkType.SelectedValue);//岗位性质 jobEnterpriseJobPositionModel.JobWorkPlaceNames = txbJobWorkPlaceNames.Text;//工作地点 jobEnterpriseJobPositionModel.JobPositionKinds = txbJobPositionKinds.Text;//从事的职业类别 jobEnterpriseJobPositionModel.JobSalary = int.Parse(drpJobSalary.SelectedValue);//月薪 jobEnterpriseJobPositionModel.NeedPersonCount = int.Parse(txbNeedPersonCount.Text);//招聘人数 jobEnterpriseJobPositionModel.NeedEducation = int.Parse(drpNeedEducation.SelectedValue);//学历要求 jobEnterpriseJobPositionModel.NeedAge = txbNeedAge.Text;//年龄要求 jobEnterpriseJobPositionModel.NeedSex = int.Parse(drpNeedSex.SelectedValue);//性别要求 jobEnterpriseJobPositionModel.NeedWorkExperience = int.Parse(drpNeedWorkExperience.SelectedValue);//工作经验要求 jobEnterpriseJobPositionModel.NeedMangeExperience = int.Parse(drpNeedMangeExperience.SelectedValue);//是否有管理经验 jobEnterpriseJobPositionModel.JobPositionDesc = txbJobPositionDesc.Text;//职位描述 jobEnterpriseJobPositionModel.ContactPerson = txbContactPerson.Text;//联系人 jobEnterpriseJobPositionModel.ContactTelephone = txbContactTelephone.Text;//联系人电话 jobEnterpriseJobPositionModel.ContactMail = txbContactMail.Text;//联系人邮件 if (txbJobPositionStartDate.Text != "") { jobEnterpriseJobPositionModel.JobPositionStartDate = DateTime.Parse(txbJobPositionStartDate.Text);//开始日期 } if (txbJobPositionEndDate.Text != "") { jobEnterpriseJobPositionModel.JobPositionEndDate = DateTime.Parse(txbJobPositionEndDate.Text);//结束日期 } if (txbInterviewTime.Text != "") { jobEnterpriseJobPositionModel.InterviewTime = txbInterviewTime.Text;//面试时间 } jobEnterpriseJobPositionModel.InterviewAddress = txbInterviewAddress.Text;//面试地点 jobEnterpriseJobPositionModel.SpecialType = int.Parse(drpSpecialType.SelectedValue);//是否显示在首页 jobEnterpriseJobPositionModel.UpdateDate = DateTime.Now;//更新日期 //在数据库中添加JobPositionStatus简历状态 jobEnterpriseJobPositionModel.CanUsable = 1; jobEnterpriseJobPositionModel.CreateDate = DateTime.Parse(ViewState["CreateDate"].ToString()); jobEnterpriseJobPositionModel.JobPositionGuid = new Guid(ViewState["JobPositionGuid"].ToString()); zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); jobEnterpriseJobPositionModel.JobPositionID = int.Parse(Get_ID(jobEnterpriseJobPositionBLL, Request.QueryString["value"])); jobEnterpriseJobPositionBLL.Update(jobEnterpriseJobPositionModel); } else { //添加保存 zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = new zlzw.Model.JobEnterpriseJobPositionModel(); //jobEnterpriseJobPositionModel.JobFeildKinds = drpJobFeildKinds01.SelectedText + "|" + drpJobFeildKinds.SelectedText;//行业类别 jobEnterpriseJobPositionModel.EnterpriseKey = drpEnterpriseKey.SelectedValue;//所属企业GUID jobEnterpriseJobPositionModel.DepartmentName = txbDepartmentName.Text;//所要招聘的部门 jobEnterpriseJobPositionModel.JobPositionStatus = int.Parse(drpJobPositionStatus.SelectedValue);//简历状态 jobEnterpriseJobPositionModel.EnterpriseName = Get_EnterpriseName(drpEnterpriseKey.SelectedValue);//企业名称 jobEnterpriseJobPositionModel.JobPositionName = txbJobPositionName.Text;//岗位名称 jobEnterpriseJobPositionModel.JobPositionKind = txbJobPositionKind.Text;//岗位名称中文 jobEnterpriseJobPositionModel.JobWorkType = int.Parse(drpJobWorkType.SelectedValue);//岗位性质 jobEnterpriseJobPositionModel.JobWorkPlaceNames = txbJobWorkPlaceNames.Text;//工作地点 jobEnterpriseJobPositionModel.JobPositionKinds = txbJobPositionKinds.Text;//从事的职业类别 jobEnterpriseJobPositionModel.JobSalary = int.Parse(drpJobSalary.SelectedValue);//月薪 jobEnterpriseJobPositionModel.NeedPersonCount = int.Parse(txbNeedPersonCount.Text);//招聘人数 jobEnterpriseJobPositionModel.NeedEducation = int.Parse(drpNeedEducation.SelectedValue);//学历要求 jobEnterpriseJobPositionModel.NeedAge = txbNeedAge.Text;//年龄要求 jobEnterpriseJobPositionModel.NeedSex = int.Parse(drpNeedSex.SelectedValue);//性别要求 jobEnterpriseJobPositionModel.NeedWorkExperience = int.Parse(drpNeedWorkExperience.SelectedValue);//工作经验要求 jobEnterpriseJobPositionModel.NeedMangeExperience = int.Parse(drpNeedMangeExperience.SelectedValue);//是否有管理经验 jobEnterpriseJobPositionModel.JobPositionDesc = txbJobPositionDesc.Text;//职位描述 jobEnterpriseJobPositionModel.ContactPerson = txbContactPerson.Text;//联系人 jobEnterpriseJobPositionModel.ContactTelephone = txbContactTelephone.Text;//联系人电话 jobEnterpriseJobPositionModel.ContactMail = txbContactMail.Text;//联系人邮件 if (txbJobPositionStartDate.Text != "") { jobEnterpriseJobPositionModel.JobPositionStartDate = DateTime.Parse(txbJobPositionStartDate.Text);//开始日期 } if (txbJobPositionEndDate.Text != "") { jobEnterpriseJobPositionModel.JobPositionEndDate = DateTime.Parse(txbJobPositionEndDate.Text);//结束日期 } jobEnterpriseJobPositionModel.InterviewTime = txbInterviewTime.Text;//面试时间 jobEnterpriseJobPositionModel.InterviewAddress = txbInterviewAddress.Text;//面试地点 jobEnterpriseJobPositionModel.SpecialType = int.Parse(drpSpecialType.SelectedValue);//是否为紧急招聘 jobEnterpriseJobPositionModel.UpdateDate = DateTime.Now;//更新日期 jobEnterpriseJobPositionModel.CreateDate = DateTime.Now;//创建日期 jobEnterpriseJobPositionModel.CanUsable = 1; zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); jobEnterpriseJobPositionBLL.Add(jobEnterpriseJobPositionModel); } // 2. Close this window and Refresh parent window PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); }
//protected void drpJobFeildKinds_SelectedIndexChanged(object sender, EventArgs e) //{ // //drpJobFeildKinds01.Items.Clear(); // Load_JobFeildKinds01(drpJobFeildKinds.SelectedValue); //} #endregion #region 加载用户信息 private void LoadData(string strType) { if (strType == "1") { string strID = Request.QueryString["value"];//操作ID zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = jobEnterpriseJobPositionBLL.GetModel(int.Parse(Get_ID(jobEnterpriseJobPositionBLL, strID))); //string[] strJobFeildKindsList = jobEnterpriseJobPositionModel.JobFeildKinds.Split('|'); drpEnterpriseKey.SelectedValue = jobEnterpriseJobPositionModel.EnterpriseKey;//所属企业 txbDepartmentName.Text = jobEnterpriseJobPositionModel.DepartmentName;//所要招聘的部门 //drpJobFeildKinds.SelectedValue = strJobFeildKindsList[0];//行业分类 //drpJobFeildKinds01.SelectedValue = strJobFeildKindsList[1];//所属行业 drpJobPositionStatus.SelectedValue = jobEnterpriseJobPositionModel.JobPositionStatus.ToString();//简历状态 drpEnterpriseKey.SelectedValue = jobEnterpriseJobPositionModel.EnterpriseKey;//所属企业 txbJobPositionName.Text = jobEnterpriseJobPositionModel.JobPositionName;//岗位名称 txbJobPositionKind.Text = jobEnterpriseJobPositionModel.JobPositionKind;//岗位名称(中文) drpJobWorkType.Text = jobEnterpriseJobPositionModel.JobWorkType.ToString();//工作性质 txbJobWorkPlaceNames.Text = jobEnterpriseJobPositionModel.JobWorkPlaceNames;//工作地点 txbJobPositionKinds.Text = jobEnterpriseJobPositionModel.JobPositionKinds;//从事职业类别 drpJobSalary.SelectedValue = jobEnterpriseJobPositionModel.JobSalary.ToString();//月薪 txbNeedPersonCount.Text = jobEnterpriseJobPositionModel.NeedPersonCount.ToString();//招聘人数 drpNeedEducation.SelectedValue = jobEnterpriseJobPositionModel.NeedEducation.ToString();//学历要求 txbNeedAge.Text = jobEnterpriseJobPositionModel.NeedAge;//年龄要求 drpNeedSex.SelectedValue = jobEnterpriseJobPositionModel.NeedSex.ToString();//性别要求 drpNeedWorkExperience.SelectedValue = jobEnterpriseJobPositionModel.NeedWorkExperience.ToString();//工作经验 drpNeedMangeExperience.SelectedValue = jobEnterpriseJobPositionModel.NeedMangeExperience.ToString();//是否需要管理经验 txbJobPositionDesc.Text = jobEnterpriseJobPositionModel.JobPositionDesc;//职位描述 txbContactPerson.Text = jobEnterpriseJobPositionModel.ContactPerson;//联系人 txbContactTelephone.Text = jobEnterpriseJobPositionModel.ContactTelephone;//联系人电话 txbContactMail.Text = jobEnterpriseJobPositionModel.ContactMail;//联系人邮件 txbJobPositionStartDate.SelectedDate = jobEnterpriseJobPositionModel.JobPositionStartDate;//开始日期 txbJobPositionEndDate.SelectedDate = jobEnterpriseJobPositionModel.JobPositionEndDate;//结束日期 txbInterviewTime.Text = jobEnterpriseJobPositionModel.InterviewTime;//面试时间 txbInterviewAddress.Text = jobEnterpriseJobPositionModel.InterviewAddress;//面试地点 drpSpecialType.SelectedValue = jobEnterpriseJobPositionModel.SpecialType.ToString();//是否显示在首页 ViewState["CreateDate"] = jobEnterpriseJobPositionModel.CreateDate.ToString(); ViewState["JobPositionGuid"] = jobEnterpriseJobPositionModel.JobPositionGuid.ToString(); ToolbarText2.Text = "编辑一个管理员账号"; } btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference(); }
private void Load_SearchResultList(string strSearchKey) { int nPageIndex = AspNetPager1.CurrentPageIndex; int nPageSize = AspNetPager1.PageSize = 15; if (Request.QueryString["type"] == "1") { //岗位类别 zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList(nPageSize, nPageIndex, "*", "UpdateDate", 0, "desc", "CanUsable=1 and JobPositionKind like '%" + strSearchKey + "%'").Tables[0]; if (dt.Rows.Count == 0) { labDataIsNull.Visible = true; } else if (dt.Rows.Count > 0) { labDataIsNull.Visible = false; Repeater1.DataSource = dt; Repeater1.DataBind(); } } else if (Request.QueryString["type"] == "2") { zlzw.BLL.GeneralEnterpriseBLL generalEnterpriseBLL = new zlzw.BLL.GeneralEnterpriseBLL(); System.Data.DataTable dt = generalEnterpriseBLL.GetList("IndustryKey='" + Request.QueryString["id"] + "'").Tables[0]; System.Text.StringBuilder strBuilder = new System.Text.StringBuilder(); if (dt.Rows.Count == 0) { labDataIsNull.Visible = true; } else { strBuilder.Append("CanUsable=1 and "); int nRowCount = dt.Rows.Count; for (int nCount = 0; nCount < nRowCount; nCount++) { if ((nCount + 1) == nRowCount) { strBuilder.Append("EnterpriseKey='" + dt.Rows[nCount][""].ToString() + "' order by CreateDate desc"); } else { strBuilder.Append("EnterpriseKey='" + dt.Rows[nCount][""].ToString() + "' or "); } } } } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { if (Get_IsEnablePublishJob(Request.QueryString["id"]) == "0") { Alert.Show("当前账号暂不允许发布职位"); return; } string strUserGUID = Request.QueryString["id"];//用户ID strUserGUID = Get_EnterpriaseGUID(strUserGUID);//获取企业GUID zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = new zlzw.Model.JobEnterpriseJobPositionModel(); jobEnterpriseJobPositionModel.JobPositionName = Request.Form["txbJobPositionName"];//岗位名称 //jobEnterpriseJobPositionModel.JobPositionKind = drpJobPositionKindsType.SelectedValue + "-" + Request.Params["drpJobPositionKinds"];//岗位类别 jobEnterpriseJobPositionModel.JobPositionKind = Get_CurrentValue(Request.Params["txbJobPositionKinds"]) + "-" + Request.Params["txbJobPositionKinds"];//岗位类别 jobEnterpriseJobPositionModel.JobWorkPlaceNames = Request.Form["txbJobWorkPlaceNames"];//工作地点 jobEnterpriseJobPositionModel.ComprehensivePayroll = txbComprehensivePayroll.Text;//综合薪资 jobEnterpriseJobPositionModel.HopeRoomAndBoard = int.Parse(drpHopeRoomAndBoard.SelectedValue);//是否提供食宿 jobEnterpriseJobPositionModel.NeedSex = int.Parse(drpNeedSex.SelectedValue);//性别要求 jobEnterpriseJobPositionModel.NeedAge = Request.Form["txbNeedAge"];//年龄要求 jobEnterpriseJobPositionModel.NeedEducation = int.Parse(drpUserEducationalBackground.SelectedValue);//学历要求 jobEnterpriseJobPositionModel.ContactTelephone = Request.Form["txbContactTelephone"];//联系人电话 jobEnterpriseJobPositionModel.ContactPerson = Request.Form["txbContactPerson"];//联系人 jobEnterpriseJobPositionModel.ContactMail = Request.Form["txbContactMail"];//联系人邮箱 jobEnterpriseJobPositionModel.JobPositionDesc = Request.Form["txbJobPositionDesc"];//职位描述 jobEnterpriseJobPositionModel.EnterpriseName = Get_EnterpriseName(strUserGUID);//所属企业名称 jobEnterpriseJobPositionModel.EnterpriseKey = strUserGUID;//所属企业GUID jobEnterpriseJobPositionModel.CreateUserKey = strUserGUID;//发布人GUID jobEnterpriseJobPositionModel.CreateDate = DateTime.Now;//创建日期 jobEnterpriseJobPositionModel.UpdateDate = DateTime.Now;//修改日期 jobEnterpriseJobPositionModel.IsEnableEmergencyRecruitment = 0;//不显示在首页的紧急发布中 if (drpSpecialType.Enabled == true) { jobEnterpriseJobPositionModel.SpecialType = int.Parse(drpSpecialType.SelectedValue); } else { jobEnterpriseJobPositionModel.SpecialType = 0;//普通招聘 } if (Request.Form["txbInterviewTime"].Length > 0) { jobEnterpriseJobPositionModel.InterviewTime = Request.Form["txbInterviewTime"];//面试时间 } if (drpSpecialType.Enabled) { jobEnterpriseJobPositionModel.SpecialType = 1;//职位为紧急招聘 } else { jobEnterpriseJobPositionModel.SpecialType = 0;//职位为普通职位 } jobEnterpriseJobPositionModel.InterviewAddress = Request.Form["txbInterviewAddress"];//面试地点 jobEnterpriseJobPositionModel.JobWorkType = int.Parse(drpJobWorkType.SelectedValue);//工作性质 jobEnterpriseJobPositionModel.CanUsable = 1;// jobEnterpriseJobPositionModel.JobPositionStatus = 1; zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); jobEnterpriseJobPositionBLL.Add(jobEnterpriseJobPositionModel); Set_FormValue(); Alert.Show("职位发布成功"); //跳转到企业登录成功页面 } catch (Exception exp) { Alert.Show("职位发布失败,请稍后重试"); } }
private void Load_JobInfo() { try { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); zlzw.Model.JobEnterpriseJobPositionModel jobEnterpriseJobPositionModel = jobEnterpriseJobPositionBLL.GetModel(int.Parse(Request.QueryString["id"])); txbJobPositionName.Text = jobEnterpriseJobPositionModel.JobPositionName;//岗位名称 txbJobPositionKinds.Text = jobEnterpriseJobPositionModel.JobPositionKind;//岗位类别 txbJobWorkPlaceNames.Text = jobEnterpriseJobPositionModel.JobWorkPlaceNames;//工作地点 txbComprehensivePayroll.Text = jobEnterpriseJobPositionModel.ComprehensivePayroll;//综合薪资 if (jobEnterpriseJobPositionModel.HopeRoomAndBoard.ToString() == "1") { drpHopeRoomAndBoard.Text = "是"; } else { drpHopeRoomAndBoard.Text = "否"; } if (jobEnterpriseJobPositionModel.NeedSex.ToString() == "1") { txbNeedAge.Text = "男"; } else if (jobEnterpriseJobPositionModel.NeedSex.ToString() == "0") { txbNeedAge.Text = "女"; } else { txbNeedAge.Text = "不限"; } drpUserEducationalBackground.Text = Get_EducationName(jobEnterpriseJobPositionModel.NeedEducation.ToString());//学历要求 txbContactTelephone.Text = jobEnterpriseJobPositionModel.ContactTelephone;//联系人电话 txbContactPerson.Text = jobEnterpriseJobPositionModel.ContactPerson;//联系人 txbContactMail.Text = jobEnterpriseJobPositionModel.ContactMail;//联系人邮箱 txbJobPositionDesc.Text = jobEnterpriseJobPositionModel.JobPositionDesc;//职位描述 txbInterviewTime.Text = jobEnterpriseJobPositionModel.InterviewTime;//面试时间 txbInterviewAddress.Text = jobEnterpriseJobPositionModel.InterviewAddress;//面试地点 drpJobWorkType.Text = Get_JobWorkTypename(jobEnterpriseJobPositionModel.JobWorkType.ToString());//工作性质 labView02.Text = "<a style='font-size:14px;color:#fff;font-weight:bold;text-decoration:none;' target='_blank' href='AlreadyDownLoadResumeList.aspx?id=" + jobEnterpriseJobPositionModel.EnterpriseKey + "&type=1'>查看简历</a>"; labView01.Text = " " + "<a style='font-size:14px;color:#fff;font-weight:bold;text-decoration:none;' target='_blank' href='AlreadyDownLoadResumeList.aspx?id=" + jobEnterpriseJobPositionModel.EnterpriseKey + "&type=0'>查看简历</a>"; labView03.Text = " " + "<a style='font-size:14px;color:#fff;font-weight:bold;text-decoration:none;' target='_blank' href='ViewPublishJobList.aspx?id=" + jobEnterpriseJobPositionModel.EnterpriseKey + "&type=1'>查看职位</a>"; } catch (Exception exp) { Response.Redirect("default.aspx"); } }
private string Get_Jobname(string strResumeGUID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList("JobPositionGuid='"+ strResumeGUID +"'").Tables[0]; return dt.Rows[0]["JobPositionName"].ToString(); }
//protected void Repeater3_ItemDataBound(object sender, RepeaterItemEventArgs e) //{ // System.Web.UI.WebControls.ListItemType lit = e.Item.ItemType; // if (lit == System.Web.UI.WebControls.ListItemType.Item || lit == System.Web.UI.WebControls.ListItemType.AlternatingItem) // { // System.Data.DataRowView drv = (System.Data.DataRowView)e.Item.DataItem; // Label labParticipatingCompaniesList = (Label)e.Item.FindControl("labParticipatingCompaniesList"); // labParticipatingCompaniesList.Text = "<p style='line-height: 25px;'><img style='border:0px;' src='image/img7.png' width='11' height='12' /><a style='color:#6e6e6e;text-decoration:none;' target='_blank' href='ParticipatingCompaniesInfo.aspx?id=" + drv["ParticipatingCompaniesGUID"].ToString() + "'>" + drv["ParticipatingCompaniesContent"].ToString() + "</p>"; // } //} #endregion #region 紧急招聘行绑定事件 //protected void Repeater4_ItemDataBound(object sender, RepeaterItemEventArgs e) //{ // System.Web.UI.WebControls.ListItemType lit = e.Item.ItemType; // if (lit == System.Web.UI.WebControls.ListItemType.Item || lit == System.Web.UI.WebControls.ListItemType.AlternatingItem) // { // System.Data.DataRowView drv = (System.Data.DataRowView)e.Item.DataItem; // Label labJobTitle = (Label)e.Item.FindControl("labJobTitle"); // //Label labAdd = (Label)e.Item.FindControl("labAdd"); // Label labXueLi = (Label)e.Item.FindControl("labXueLi"); // Label labTel = (Label)e.Item.FindControl("labTel"); // labJobTitle.Text = "<a href='EnterpriseInfo/EnterpriseInfo.aspx?type=" + drv["EnterpriseKey"].ToString() + "&id=" + drv["JobPositionGuid"].ToString() + "' target='_blank' title='" + drv["EnterpriseName"].ToString() + "' style='text-decoration:none;color:#6e6e6e;'>" + Set_TitleLength(drv["EnterpriseName"].ToString()) + "</a>"; // //labAdd.Text = "<a href='EnterpriseInfo/EnterpriseInfo.aspx?type=" + drv["EnterpriseKey"].ToString() + "&id=" + drv["JobPositionGuid"].ToString() + "' style='text-decoration:none;color:#6e6e6e;' target='_blank' title='" + drv["JobWorkPlaceNames"].ToString() + "'>" + Get_AddLength(drv["JobWorkPlaceNames"].ToString()) + "</a>"; // //labXueLi.Text = "<a href='EnterpriseInfo/EnterpriseInfo.aspx?type=" + drv["EnterpriseKey"].ToString() + "&id=" + drv["JobPositionGuid"].ToString() + "' style='text-decoration:none;color:#6e6e6e;'>" + drv["JobPositionKind"].ToString() + "</a> " + Get_JobList(drv["JobPositionGuid"].ToString()); // labXueLi.Text = Get_JobList(drv["EnterpriseKey"].ToString()); // labTel.Text = "<span style='text-decoration:none;color:#6e6e6e;'>" + drv["ContactTelephone"].ToString() + "</span>"; // } //} #endregion #region 根据当前的企业GUID获取该企业下的所有紧急招聘职位 private string Get_JobList(string strEnterpriseGUID) { zlzw.BLL.JobEnterpriseJobPositionBLL jobEnterpriseJobPositionBLL = new zlzw.BLL.JobEnterpriseJobPositionBLL(); System.Data.DataTable dt = jobEnterpriseJobPositionBLL.GetList(10,"EnterpriseKey='"+ strEnterpriseGUID +"' and SpecialType=1 and CanUsable=1","CreateDate desc").Tables[0]; if (dt.Rows.Count > 0) { System.Text.StringBuilder strBuilder = new System.Text.StringBuilder(); int nAllCount = dt.Rows.Count; for (int nCount = 0; nCount < nAllCount; nCount++) { if ((nCount + 1) != nAllCount) { strBuilder.Append("<a target='_blank' style='text-decoration:none;color:#325C93;' href='EnterpriseInfo/EnterpriseInfo.aspx?type=" + strEnterpriseGUID + "&id=" + dt.Rows[nCount]["JobPositionGuid"].ToString() + "'>" + dt.Rows[nCount]["JobPositionName"].ToString() + "</a><span style='color:#3277C9;font-weight:bold;'>/</span>"); } else { strBuilder.Append("<a target='_blank' style='text-decoration:none;color:#325C93;' href='EnterpriseInfo/EnterpriseInfo.aspx?type=" + strEnterpriseGUID + "&id=" + dt.Rows[nCount]["JobPositionGuid"].ToString() + "'>" + dt.Rows[nCount]["JobPositionName"].ToString() + "</a>"); } } return strBuilder.ToString(); } else { return ""; } }