/// <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>"));
            }
        }
示例#2
0
        public int EngageInterviewUpdate(EngageInterviewModel p)
        {
            EngageInterview ei = new EngageInterview()
            {
                Id                    = p.Id,
                EQDegree              = p.EQDegree,
                IQDegree              = p.IQDegree,
                CheckComment          = p.CheckComment,
                MultiQualityDegree    = p.MultiQualityDegree,
                Checker               = p.Checker,
                CheckStatus           = p.CheckStatus,
                ForeignLanguageDegree = p.ForeignLanguageDegree,
                CheckTime             = p.CheckTime,
                HumanMajorId          = p.HumanMajorId,
                HumanMajorKindId      = p.HumanMajorKindId,
                HumanMajorKindName    = p.HumanMajorKindName,
                HumanMajorName        = p.HumanMajorName,
                HumanName             = p.HumanName,
                ImageDegree           = p.ImageDegree,
                InterviewComment      = p.InterviewComment,
                InterviewCount        = p.InterviewCount,
                InterviewStatus       = p.InterviewStatus,
                NativeLanguageDegree  = p.NativeLanguageDegree,
                Register              = p.Register,
                RegisteTime           = p.RegisteTime,
                ResponseSpeedDegree   = p.ResponseSpeedDegree,
                Result                = p.Result,
                ResumeId              = p.ResumeId
            };

            return(Update(ei));
        }
示例#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));
        }
        /// <summary>
        /// 简历面试登记明细
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult EngageInterviewDJ(int id)
        {
            EngageInterviewModel eim = ieib.EngageInterviewSelectResumeId(id);

            ViewBag.InterviewCount = 1;
            if (eim != null)
            {
                ViewBag.InterviewCount = eim.InterviewCount + 1;
                ViewBag.EIid           = eim.Id;
            }
            return(View(ierb.EngageResumeSelectBy(id)));
        }
示例#5
0
        public List <EngageInterviewModel> EngageInterviewMSSX(int currentPage, int pageSize, out int rows)
        {
            var list = CreateContext().EngageInterview.AsNoTracking().Where(e => e.Result == "完成").OrderBy(e => e.Id);

            rows = list.Count();
            var data = list
                       .Skip((currentPage - 1) * pageSize)
                       .Take(pageSize)
                       .ToList();
            List <EngageInterviewModel> list2 = new List <EngageInterviewModel>();

            foreach (var p in data)
            {
                EngageInterviewModel ei = new EngageInterviewModel()
                {
                    Id                    = p.Id,
                    EQDegree              = p.EQDegree,
                    IQDegree              = p.IQDegree,
                    CheckComment          = p.CheckComment,
                    MultiQualityDegree    = p.MultiQualityDegree,
                    Checker               = p.Checker,
                    CheckStatus           = p.CheckStatus,
                    ForeignLanguageDegree = p.ForeignLanguageDegree,
                    CheckTime             = p.CheckTime,
                    HumanMajorId          = p.HumanMajorId,
                    HumanMajorKindId      = p.HumanMajorKindId,
                    HumanMajorKindName    = p.HumanMajorKindName,
                    HumanMajorName        = p.HumanMajorName,
                    HumanName             = p.HumanName,
                    ImageDegree           = p.ImageDegree,
                    InterviewComment      = p.InterviewComment,
                    InterviewCount        = p.InterviewCount,
                    InterviewStatus       = p.InterviewStatus,
                    NativeLanguageDegree  = p.NativeLanguageDegree,
                    Register              = p.Register,
                    RegisteTime           = p.RegisteTime,
                    ResponseSpeedDegree   = p.ResponseSpeedDegree,
                    Result                = p.Result,
                    ResumeId              = p.ResumeId
                };
                list2.Add(ei);
            }
            return(list2);
        }
        /// <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>"));
        }
示例#7
0
        public List <EngageInterviewModel> EngageInterviewSelect()
        {
            var list = Select();
            List <EngageInterviewModel> list2 = new List <EngageInterviewModel>();

            foreach (var p in list)
            {
                EngageInterviewModel ei = new EngageInterviewModel()
                {
                    Id                    = p.Id,
                    EQDegree              = p.EQDegree,
                    IQDegree              = p.IQDegree,
                    CheckComment          = p.CheckComment,
                    MultiQualityDegree    = p.MultiQualityDegree,
                    Checker               = p.Checker,
                    CheckStatus           = p.CheckStatus,
                    ForeignLanguageDegree = p.ForeignLanguageDegree,
                    CheckTime             = p.CheckTime,
                    HumanMajorId          = p.HumanMajorId,
                    HumanMajorKindId      = p.HumanMajorKindId,
                    HumanMajorKindName    = p.HumanMajorKindName,
                    HumanMajorName        = p.HumanMajorName,
                    HumanName             = p.HumanName,
                    ImageDegree           = p.ImageDegree,
                    InterviewComment      = p.InterviewComment,
                    InterviewCount        = p.InterviewCount,
                    InterviewStatus       = p.InterviewStatus,
                    NativeLanguageDegree  = p.NativeLanguageDegree,
                    Register              = p.Register,
                    RegisteTime           = p.RegisteTime,
                    ResponseSpeedDegree   = p.ResponseSpeedDegree,
                    Result                = p.Result,
                    ResumeId              = p.ResumeId
                };
                list2.Add(ei);
            }
            return(list2);
        }
示例#8
0
 public int EngageInterviewUpdate(EngageInterviewModel p)
 {
     return(ied.EngageInterviewUpdate(p));
 }
示例#9
0
 public int EngageInterviewAdd(EngageInterviewModel p)
 {
     return(ied.EngageInterviewAdd(p));
 }