private void Load_RecordCount(string strUserGUID)
 {
     if (Request.QueryString["type"] == "1")
     {
         string strEnterpriseGUID = Get_EnterpriseGUID(strUserGUID);//企业GUID
         zlzw.BLL.ResumeCollectionListBLL resumeCollectionListBLL = new zlzw.BLL.ResumeCollectionListBLL();//获取当前企业所下载的简历
         System.Data.DataTable dt = resumeCollectionListBLL.GetList("ResumeCollectionType=1 and EnterpriseGuid='" + strEnterpriseGUID + "' and EnterpriseIsDel=1 and IsEnable=1").Tables[0];
         AspNetPager1.RecordCount = dt.Rows.Count;
         tdName.InnerText = "职位名称";
         tdqiuzhi.InnerText = "年龄";
         tdPublishDate.InnerText = "投递日期";
         labDataIsNull.Text = "暂无求职者简历";
         titleName.Text = "查看投递简历";
     }
     else
     {
         string strEnterpriseGUID = Get_EnterpriseGUID(strUserGUID);//企业GUID
         zlzw.BLL.ResumeCollectionListBLL resumeCollectionListBLL = new zlzw.BLL.ResumeCollectionListBLL();//获取当前企业所下载的简历
         System.Data.DataTable dt = resumeCollectionListBLL.GetList("ResumeCollectionType=0 and EnterpriseGuid='" + strEnterpriseGUID + "' and EnterpriseIsDel=1 and IsEnable=1").Tables[0];
         AspNetPager1.RecordCount = dt.Rows.Count;
         tdName.InnerText = "求职者";
         tdqiuzhi.InnerText = "求职意向";
         tdPublishDate.InnerText = "下载日期";
         labDataIsNull.Text = "暂无下载简历";
         titleName.Text = "查看已下载简历";
     }
 }
        private string Get_ReceiveCount(string strEnterpriseGUID)
        {
            zlzw.BLL.ResumeCollectionListBLL resumeCollectionListBLL = new zlzw.BLL.ResumeCollectionListBLL();
            DataTable dt = resumeCollectionListBLL.GetList("ResumeCollectionType=1 and EnterpriseGuid='" + strEnterpriseGUID + "' and EnterpriseIsDel=1 and IsEnable=1 order by PublishDate desc").Tables[0];

            return dt.Rows.Count.ToString();
        }
 private bool Get_IsDownload()
 {
     string strCurrentResumeID = Request.QueryString["id"];//简历ID
     string strCurrentEnterpriseID = Request.Cookies["CurrentUserGUID"].Value;//当前企业ID
     zlzw.BLL.ResumeCollectionListBLL resumeCollectionListBLL = new zlzw.BLL.ResumeCollectionListBLL();
     System.Data.DataTable dt = resumeCollectionListBLL.GetList("ResumeGuid='" + strCurrentResumeID + "' and EnterpriseGuid='" + strCurrentEnterpriseID + "' and ResumeCollectionType=0 and EnterpriseIsDel=1 and IsEnable=1").Tables[0];
     if (dt.Rows.Count > 0)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
 private void Load_DataList(string strUserGUID)
 {
     if (Request.QueryString["type"] == "1")
     {
         string strEnterpriseGUID = Get_EnterpriseGUID(strUserGUID);//企业GUID
         zlzw.BLL.ResumeCollectionListBLL resumeCollectionListBLL = new zlzw.BLL.ResumeCollectionListBLL();//获取当前企业所下载的简历
         int nPageIndex = AspNetPager1.CurrentPageIndex;
         int nPageSize = AspNetPager1.PageSize = 15;
         System.Data.DataTable dt = resumeCollectionListBLL.GetList(nPageSize, nPageIndex, "*", "PublishDate", 0, "desc", "ResumeCollectionType=1 and EnterpriseGuid='" + strEnterpriseGUID + "' and EnterpriseIsDel=1 and IsEnable=1").Tables[0];
         if (dt.Rows.Count == 0)
         {
             labDataIsNull.Visible = true;
         }
         else
         {
             labDataIsNull.Visible = false;
         }
         Repeater1.DataSource = dt;
         Repeater1.DataBind();
     }
     else
     {
         string strEnterpriseGUID = Get_EnterpriseGUID(strUserGUID);//企业GUID
         zlzw.BLL.ResumeCollectionListBLL resumeCollectionListBLL = new zlzw.BLL.ResumeCollectionListBLL();//获取当前企业所下载的简历
         int nPageIndex = AspNetPager1.CurrentPageIndex;
         int nPageSize = AspNetPager1.PageSize = 15;
         System.Data.DataTable dt = resumeCollectionListBLL.GetList(nPageSize, nPageIndex, "*", "PublishDate", 0, "desc", "ResumeCollectionType=0 and EnterpriseGuid='" + strEnterpriseGUID + "' and EnterpriseIsDel=1 and IsEnable=1").Tables[0];
         if (dt.Rows.Count == 0)
         {
             labDataIsNull.Visible = true;
         }
         else
         {
             labDataIsNull.Visible = false;
         }
         Repeater1.DataSource = dt;
         Repeater1.DataBind();
     }
 }
Пример #5
0
        protected void linkBtnApply_Click(object sender, EventArgs e)
        {
            if (Request.Cookies["CurrentUserGUID"] == null)
            {
                linkBtnApply.Text = "用户尚未登陆";
                return;
            }
            else
            {
                if (!Check_UserType())
                {
                    FineUI.Alert.Show("当前账号不允许申请职位");
                    return;
                }
                zlzw.BLL.ResumeCollectionListBLL resumeCollectionListBLL = new zlzw.BLL.ResumeCollectionListBLL();
                System.Data.DataTable dt = resumeCollectionListBLL.GetList("ResumeGuid='"+ Request.QueryString["id"] +"' and EnterpriseGuid='"+ Request.QueryString["type"] +"' and EnterpriseIsDel=1 and IsEnable=1").Tables[0];
                if(dt.Rows.Count > 0)
                {
                    FineUI.Alert.Show("您已申请过该职位");
                    return;
                }

                zlzw.Model.ResumeCollectionListModel resumeCollectionListModel = new zlzw.Model.ResumeCollectionListModel();
                resumeCollectionListModel.EnterpriseGuid = new Guid(Request.QueryString["type"]);//企业GUID
                resumeCollectionListModel.ResumeGuid = new Guid(Request.QueryString["id"]);//职位ID
                resumeCollectionListModel.ResumeCollectionType = 1;//主投简历
                resumeCollectionListModel.EnterpriseIsDel = 1;//企业删除标记
                resumeCollectionListModel.IsEnable = 1;//管理员删除标记
                resumeCollectionListModel.PublishDate = DateTime.Now;//投递日期
                resumeCollectionListModel.Other01 = Request.Cookies["CurrentUserGUID"].Value;//投递人GUID
                resumeCollectionListBLL.Add(resumeCollectionListModel);
                FineUI.Alert.Show("职位申请成功");
            }
        }