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");
     }
 }
        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;
            }
        }
Example #3
0
        private int Get_JobRecordCount()
        {
            zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
            DataTable dt = defaultPostListBLL.GetList("IsEnable=1 and EnterpriseName LIKE '%" + strSearchKey + "%' or WorkAdd LIKE '%" + strSearchKey + "%' or PostInfo LIKE '%" + strSearchKey + "%'").Tables[0];

            return(dt.Rows.Count);
        }
Example #4
0
        protected void btnSaveRefresh_Click(object sender, EventArgs e)
        {
            if (Request.QueryString["Type"] == "1")
            {
                //编辑保存
                zlzw.Model.DefaultPostListModal defaultPostListModal = new zlzw.Model.DefaultPostListModal();
                defaultPostListModal.EnterpriseName    = txbEnterpriseName.Text;             //企业名称
                defaultPostListModal.DictionaryListID  = int.Parse(drpRegion.SelectedValue); //所属区域ID
                defaultPostListModal.WorkAdd           = txbWorkAdd.Text;                    //工作地点
                defaultPostListModal.PostInfo          = txbPostInfo.Text;                   //招聘职位
                defaultPostListModal.RecruitmentNumber = txbRecruitmentNumber.Text;          //招聘人数
                defaultPostListModal.PostDemand        = txbPostDemand.Text;                 //岗位要求
                defaultPostListModal.TreatmentInfo     = txbTreatmentInfo.Text;              //待遇相关
                defaultPostListModal.OtherInfo         = txbOtherInfo.Text;                  //备注信息
                defaultPostListModal.IsEnable          = 1;
                if (ckbIsHot.Checked)
                {
                    defaultPostListModal.IsHot = 1;
                }
                else
                {
                    defaultPostListModal.IsHot = 0;
                }
                defaultPostListModal.PublishDate    = DateTime.Parse(ViewState["PublishDate"].ToString());
                defaultPostListModal.EnterpriseGUID = new Guid(ViewState["EnterpriseGUID"].ToString());
                defaultPostListModal.EnterpriseID   = int.Parse(Request.QueryString["value"]);
                zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
                defaultPostListBLL.Update(defaultPostListModal);
            }
            else
            {
                //添加保存

                zlzw.Model.DefaultPostListModal defaultPostListModal = new zlzw.Model.DefaultPostListModal();
                defaultPostListModal.EnterpriseName    = txbEnterpriseName.Text;             //企业名称
                defaultPostListModal.DictionaryListID  = int.Parse(drpRegion.SelectedValue); //所属区域ID
                defaultPostListModal.WorkAdd           = txbWorkAdd.Text;                    //工作地点
                defaultPostListModal.PostInfo          = txbPostInfo.Text;                   //招聘职位
                defaultPostListModal.RecruitmentNumber = txbRecruitmentNumber.Text;          //招聘人数
                defaultPostListModal.PostDemand        = txbPostDemand.Text;                 //岗位要求
                defaultPostListModal.TreatmentInfo     = txbTreatmentInfo.Text;              //待遇相关
                defaultPostListModal.OtherInfo         = txbOtherInfo.Text;                  //备注信息
                defaultPostListModal.IsEnable          = 1;
                if (ckbIsHot.Checked)
                {
                    defaultPostListModal.IsHot = 1;
                }
                else
                {
                    defaultPostListModal.IsHot = 0;
                }
                defaultPostListModal.PublishDate    = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"));
                defaultPostListModal.EnterpriseGUID = System.Guid.NewGuid();
                zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
                defaultPostListBLL.Add(defaultPostListModal);
            }

            // 2. Close this window and Refresh parent window
            PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
        }
Example #5
0
        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();
        }
Example #6
0
        private int Get_JobRecordCount()
        {
            zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
            DataTable dt = defaultPostListBLL.GetList("DictionaryListID=" + drpSelectCity.SelectedValue + "").Tables[0];

            return(dt.Rows.Count);
        }
        private void PostList_BindGrid()
        {
            zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
            DataTable dt = defaultPostListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
        /// <summary>
        /// 获取总页数
        /// </summary>
        /// <returns></returns>
        private int Get_PostListTotalCount()
        {
            zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
            DataTable dt = defaultPostListBLL.GetList("IsEnable=1").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows.Count);
            }
            else
            {
                return(0);
            }
        }
Example #9
0
        private void Load_JobList()
        {
            int nPageIndex = AspNetPager1.CurrentPageIndex;
            int nPageSize  = AspNetPager1.PageSize = 10;

            zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
            DataTable dt = defaultPostListBLL.GetList(nPageSize, nPageIndex, "*", "PublishDate", 0, "desc", "IsEnable=1 and EnterpriseName LIKE '%" + strSearchKey + "%' or WorkAdd LIKE '%" + strSearchKey + "%' or PostInfo LIKE '%" + strSearchKey + "%'").Tables[0];

            if (dt.Rows.Count == 0)
            {
                labEmptyInfo.Visible = true;
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
                labEmptyInfo.Visible = false;
            }
        }
Example #10
0
        private void Load_JobList()
        {
            int nPageIndex = AspNetPager1.CurrentPageIndex;
            int nPageSize  = AspNetPager1.PageSize = 10;

            zlzw.BLL.DefaultPostListBLL defaultPostListBLL = new zlzw.BLL.DefaultPostListBLL();
            DataTable dt = defaultPostListBLL.GetList(nPageSize, nPageIndex, "*", "PublishDate", 0, "desc", "IsEnable=1 and DictionaryListID=" + drpSelectCity.SelectedValue).Tables[0];

            if (dt.Rows.Count == 0)
            {
                labEmptyInfo.Visible = true;
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
            }
            else
            {
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
                labEmptyInfo.Visible = false;
            }
        }