Ejemplo n.º 1
0
 public JsonResult Post(HR_JobSeeker _t)
 {
     if (Session[_t.JobId.ToString()] != null)
     {
         return Json(ResultMsg.Failure("请勿重复提交申请!"));
     }
     if (Guid.Empty == _t.JobId)
         return Json(ResultMsg.Failure("请先选择应聘职位!"));
     if (string.IsNullOrWhiteSpace(_t.SkrName) || string.IsNullOrWhiteSpace(_t.SkrSex)
         || string.IsNullOrWhiteSpace(_t.Telphone))
     {
         return Json(ResultMsg.Failure("信息不全,请补充完整后提交!"));
     }
     if (!Regex.IsMatch(_t.Telphone, @"^1[34578]\d{9}$", RegexOptions.IgnoreCase))
     {
         return Json(ResultMsg.Failure("请提供有效的手机号码!"));
     }
     _t.CreateUser = "******";
     if (WMFactory.JobSeeker.Insert(_t))
     {
         Session[_t.JobId.ToString()] = true;
         return Json(ResultMsg.Success("提交成功,我们会尽快联系您!"));
     }
     else
         return Json(ResultMsg.Failure("新增失败,请您重试!"));
 }
Ejemplo n.º 2
0
        public JsonResult SaveJob(HR_JobSeeker job)
        {
            job.CreateUser = "******";
            job.ModifyUser = "******";

            if (WMFactory.JobSeeker.Insert(job))
                return Json(ResultMsg.Success("信息提交成功。"));
            else
                return Json(ResultMsg.Failure("信息提交失败,请重试!"));
        }
Ejemplo n.º 3
0
 public JsonResult Delete(HR_JobSeeker _t)
 {
     if (WMFactory.JobSeeker.Delete(s => s.Id == _t.Id))
         return Json(ResultMsg.Success("删除成功!"));
     else
         return Json(ResultMsg.Failure("删除失败,请您重试!"));
 }