Example #1
0
    /// <summary>
    /// 投递简历
    /// </summary>
    private void SubResume()
    {
        BLL.JobBLL  bll  = new BLL.JobBLL();
        BLL.UserBLL ubll = new BLL.UserBLL();
        DataTable   dt   = bll.GetResumeList(" CreateUser='******' ");

        if (dt.Rows.Count == 0)
        {
            throw new Exception("您还没有简历请先创建一份简历!");
        }
        else
        {
            DataRow dr = dt.Rows[0];
            Model.ResumeVsJobModel model = new ResumeVsJobModel();
            model.JobId    = ReStr("JobId");
            model.Memo     = "";
            model.ResumeId = dr["ResumeId"].ToString();
            model.VsType   = "正常投递";
            try
            {
                bll.SubResume(model);
            }
            catch
            {
                throw new Exception("投递错误! 您是否已经投递了此职位?!");
            }
            ReTrue();
        }
    }