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.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL(); zlzw.Model.DefaultPostListModal defaultPostListModal = defaultPostListBLL.GetModel(int.Parse(strSelectID)); defaultPostListModal.IsEnable = 0; defaultPostListBLL.Update(defaultPostListModal); PostList_BindGrid(); #endregion } else { return; } }
private void Load_JobInfo(string strID) { try { zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL(); zlzw.Model.DefaultPostListModal defaultPostListModal = defaultPostListBLL.GetModel(int.Parse(strID)); labEnterpriseTitle.Text = defaultPostListModal.EnterpriseName; //企业名称 labPublisDate.Text = DateTime.Parse(defaultPostListModal.PublishDate.ToString()).ToString("yyyy年MM月dd日"); labWorkAdd.Text = defaultPostListModal.WorkAdd; //工作地点 labRecruitmentNumber.Text = defaultPostListModal.RecruitmentNumber + " 人"; labPostInfo.Text = defaultPostListModal.PostInfo; //招聘信息 labPostDemand.Text = defaultPostListModal.PostDemand; //岗位要求 labTreatmentInfo.Text = defaultPostListModal.TreatmentInfo; //待遇相关 if (defaultPostListModal.OtherInfo != "") { labOtherInfo.Visible = true; labOtherInfo.Text = defaultPostListModal.OtherInfo; } else { labOtherInfo.Visible = false; } } catch (Exception exp) { Response.Redirect("default.aspx"); } }
private void LoadData(string strType) { if (strType == "1") { string strID = Request.QueryString["value"];//操作ID zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL(); zlzw.Model.DefaultPostListModal defaultPostListModal = defaultPostListBLL.GetModel(int.Parse(strID)); txbEnterpriseName.Text = defaultPostListModal.EnterpriseName; //企业名称 drpRegion.SelectedValue = defaultPostListModal.DictionaryListID.ToString(); //所属区域ID txbWorkAdd.Text = defaultPostListModal.WorkAdd; //工作地点 txbPostInfo.Text = defaultPostListModal.PostInfo; //招聘职位 txbRecruitmentNumber.Text = defaultPostListModal.RecruitmentNumber; //招聘人数 txbPostDemand.Text = defaultPostListModal.PostDemand; //岗位要求 txbTreatmentInfo.Text = defaultPostListModal.TreatmentInfo; //待遇相关 txbOtherInfo.Text = defaultPostListModal.OtherInfo; //备注信息 if (defaultPostListModal.IsHot == 1) { ckbIsHot.Checked = true; } else { ckbIsHot.Checked = false; } ViewState["PublishDate"] = defaultPostListModal.PublishDate.ToString(); ViewState["EnterpriseGUID"] = defaultPostListModal.EnterpriseGUID.ToString(); ToolbarText2.Text = "编辑一个职位信息"; } btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference(); }