/// <summary>
        /// 简历面试登记
        /// </summary>
        /// <param name="eim"></param>
        /// <returns></returns>
        public ActionResult EngageInterviewRegister(EngageInterviewModel eim)
        {
            bool flag = false;

            //判断是否有过面试
            if (eim.Id > 1)
            {
                flag = ieib.EngageInterviewUpdate(eim) > 0 ? true : false;
            }
            else
            {
                flag = ieib.EngageInterviewAdd(eim) > 0 ? true : false;
            }
            EngageResumeModel er = ierb.EngageResumeSelectBy(eim.ResumeId);

            er.InterviewStatus = 2;
            ierb.EngageResumeUpdate(er);
            if (flag)
            {
                return(Content("<script>alert('登记成功!');location='/EngageInterview/Index';</script>"));
            }
            else
            {
                return(Content("<script>alert('登记失败!');</script>"));
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 人力资源登记
 /// </summary>
 /// <param name="hf"></param>
 /// <param name="ERid"></param>
 /// <returns></returns>
 public ActionResult Register(HumanFileModel hf, int ERid)
 {
     hf.HumanId   = "HF" + DateTime.Now.ToString("yyMMddssfff") + new Random().Next(100, 999);
     hf.Zhuangtai = 0;
     #region 移动图片
     string name = hf.HumanPicture.Substring(hf.HumanPicture.LastIndexOf('/'));
     string path = Server.MapPath("~/HumanFileImage/" + DateTime.Now.ToString("yyyy/MM/dd")) + "/" + name;
     new FileInfo(path).Directory.Create();
     FileInfo file1 = new FileInfo(hf.HumanPicture);
     file1.CopyTo(path);
     hf.HumanPicture = path;
     #endregion
     if (ihf.HumanFileAdd(hf) > 0)
     {
         EngageResumeModel er = ierb.EngageResumeSelectBy(ERid);
         er.InterviewStatus = 5;
         ierb.EngageResumeUpdate(er);
         Session["hfid"] = hf.HumanId;
         return(Content("<script>alert('登记成功!');location='/HumanFile/HumanFilePicture?gn=1';</script>"));
     }
     else
     {
         return(Content("<script>alert('登记失败!');</script>"));
     }
 }
Esempio n. 3
0
        /// <summary>
        /// 简历录用申请明细
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult GoEngageEmploySQ(int id)
        {
            EngageResumeModel           er  = ierb.EngageResumeSelectBy(id);
            EngageInterviewModel        ei  = ieib.EngageInterviewSelectResumeId(id);
            Dictionary <string, object> dic = new Dictionary <string, object>()
            {
                { "er", er }, { "ei", ei }
            };

            return(View(dic));
        }
Esempio n. 4
0
        // GET: HumanFile

        /// <summary>
        /// 人力资源登记页面
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult HumanFileRegister(int id)
        {
            EngageResumeModel er = ierb.EngageResumeSelectBy(id);

            ViewBag.ff = "false";
            if (er.EngageId > 0)
            {
                ViewBag.ff      = "true";
                ViewBag.Enagage = ieb.GetEngage(er.EngageId);
            }
            return(View(er));
        }
Esempio n. 5
0
        /// <summary>
        /// 简历审批
        /// </summary>
        /// <param name="id"></param>
        /// <param name="PassPassComment"></param>
        /// <returns></returns>
        public ActionResult EngageEmploySP(int id, string PassPassComment)
        {
            EngageResumeModel er = ierb.EngageResumeSelectBy(id);

            er.PassPassComment = PassPassComment;
            if (ierb.EngageResumeUpdate(er) > 0)
            {
                //修改职位发布表的人数(-1)
                if (er.EngageId > 0)
                {
                    EngageModel em = ieb.EngageBy(er.EngageId);
                    if (em != null)
                    {
                        if (em.ManCount > 0)
                        {
                            em.ManCount--;
                            ieb.EngageUpdate(em);
                        }
                    }
                }
                if (er.HumanEmail != null && er.HumanEmail != "")
                {
                    MailMessage mail = new MailMessage();
                    //发件人邮件地址
                    mail.From = new MailAddress("*****@*****.**");
                    //mail.From = new MailAddress("*****@*****.**");
                    //接收S人的邮件地址
                    mail.To.Add(new MailAddress(er.HumanEmail));
                    //mail.To.Add(new MailAddress("*****@*****.**"));
                    //主题
                    mail.Subject = string.Format("恭喜{0}入职", er.HumanName);
                    mail.Body    = string.Format("{0},你通过了我们公司的面试。快点来入职。", er.HumanName);

                    //创建smtp协议对象
                    SmtpClient sc = new SmtpClient("smtp.163.com")
                    {
                        UseDefaultCredentials = true,
                        EnableSsl             = false,
                        DeliveryMethod        = SmtpDeliveryMethod.Network
                    };;
                    //邮件服务发送的凭证
                    sc.Credentials = new NetworkCredential("*****@*****.**", "123456qq");
                    sc.Send(mail);
                }
                return(Content("<script>alert('提交成功!');location='/EngageEmploy/LYSP';</script>"));
            }
            else
            {
                return(Content("<script>alert('提交失败!');</script>"));
            }
        }
Esempio n. 6
0
        /// <summary>
        /// 简历录用申请
        /// </summary>
        /// <param name="id"></param>
        /// <param name="PassCheckComment"></param>
        /// <returns></returns>
        public ActionResult EngageEmploySQ(int id, string PassCheckComment)
        {
            EngageResumeModel er = ierb.EngageResumeSelectBy(id);

            er.PassCheckComment = PassCheckComment;
            if (ierb.EngageResumeUpdate(er) > 0)
            {
                return(Content("<script>alert('提交成功!');location='/EngageEmploy/Index';</script>"));
            }
            else
            {
                return(Content("<script>alert('提交失败!');</script>"));
            }
        }
Esempio n. 7
0
 /// <summary>
 /// 简历登记
 /// </summary>
 /// <param name="er"></param>
 /// <returns></returns>
 public ActionResult Add(EngageResumeModel er)
 {
     er.RegistTime     = DateTime.Now;
     er.CheckTime      = DateTime.Now;
     er.TestCheckTime  = DateTime.Now;
     er.PassEegistTime = DateTime.Now;
     er.PassCheckTime  = DateTime.Now;
     er.HumanPicture   = (string)TempData["imgSrc"];
     if (ierb.EngageResumeAdd(er) > 0)
     {
         return(Content("<script>alert('添加成功');location='../EngageResume/Index';</script>"));
     }
     else
     {
         return(Content("<script>alert('添加失败');location='../EngageResume/Index';</script>"));
     }
 }
        /// <summary>
        /// 面试筛选
        /// </summary>
        /// <param name="id"></param>
        /// <param name="Result"></param>
        /// <param name="Checker"></param>
        /// <param name="CheckTime"></param>
        /// <param name="CheckComment"></param>
        /// <returns></returns>
        public ActionResult SX(int id, string Result, string Checker, DateTime CheckTime, string CheckComment)
        {
            EngageResumeModel    er = ierb.EngageResumeSelectBy(id);
            EngageInterviewModel ei = ieib.EngageInterviewSelectResumeId(id);
            int InterviewStatus     = 0;

            //按建议修改状态
            switch (Result)
            {
            case "建议面试":
                InterviewStatus = 1;
                EngageResumeModel ee = ierb.EngageResumeSelectBy(ei.ResumeId);
                ee.InterviewStatus = 1;
                ierb.EngageResumeUpdate(ee);
                break;

            case "建议笔试":
                InterviewStatus = 2;
                break;

            case "建议录用":
                InterviewStatus = 3;
                break;

            case "删除简历":
                InterviewStatus = 4;
                break;
            }
            er.InterviewStatus = InterviewStatus;
            ei.Result          = Result;
            ei.Checker         = Checker;
            ei.CheckTime       = CheckTime;
            ei.CheckComment    = CheckComment;
            using (TransactionScope tr = new TransactionScope())
            {
                if (ierb.EngageResumeUpdate(er) > 0 && ieib.EngageInterviewUpdate(ei) > 0)
                {
                    tr.Complete();
                    return(Content("<script>alert('筛选成功!');location='/EngageInterview/EngageInterviewSX';</script>"));
                }
            }
            return(Content("<script>alert('筛选失败!');location='/EngageInterview/EngageInterviewMSSX?id=" + id + "';</script>"));
        }
Esempio n. 9
0
        /// <summary>
        /// 简历复核
        /// </summary>
        /// <param name="a"></param>
        /// <returns></returns>
        public ActionResult EngageResumeFH(EngageResumeModel a)
        {
            EngageResumeModel er = ierb.EngageResumeSelectBy(a.Id);

            er.CheckStatus      = a.CheckStatus;
            er.PassCheckComment = a.PassCheckComment;
            er.PassPassComment  = a.PassPassComment;
            er.InterviewStatus  = a.InterviewStatus;
            er.Checker          = a.Checker;
            er.TestCheckTime    = DateTime.Now;
            er.PassEegistTime   = DateTime.Now;
            er.PassCheckTime    = DateTime.Now;
            if (ierb.EngageResumeUpdate(er) > 0)
            {
                return(Content("<script>alert('复核成功');location='/EngageResume/JLSX';</script>"));
            }
            else
            {
                return(Content("<script>alert('复核失败');</script>"));
            }
        }
Esempio n. 10
0
 public int EngageResumeUpdate(EngageResumeModel ck)
 {
     return(ied.EngageResumeUpdate(ck));
 }
Esempio n. 11
0
 public int EngageResumeAdd(EngageResumeModel ck)
 {
     return(ied.EngageResumeAdd(ck));
 }