Ejemplo n.º 1
0
        public ActionResult SetInterStatus(string loginid, string rid, string pid, string status)
        {
            if (!string.IsNullOrEmpty(loginid))
            {
                ViewBag.LoginID = loginid;
            }
            else
            {
                ViewBag.LoginID = "";
            }
            List <CustomerOutsourc> custOut = custOutDAL.GetlList("CustomerOutID=" + loginid);

            if (custOut.Count > 0)
            {
                string types = custOut[0].Type.ToString();
                ViewBag.Type = types;
            }

            pid    = HttpUtility.UrlDecode(pid);
            rid    = HttpUtility.UrlDecode(rid);
            status = HttpUtility.UrlDecode(status);//1成功;2失败
            Outsourcing.EF.PushInterViewTable model = pushViewDAL.GetPushInterViewByWhere(int.Parse(rid), int.Parse(pid));
            if (model == null)
            {
                model.ID = Guid.NewGuid().ToString();
                model.InterviewStatus = "0";
                model.PlushStatute    = "0";
                model.RequirementId   = int.Parse(rid);
                model.PersonalInfoId  = int.Parse(pid);
                model.FeedbackState   = "0";
                model.InterviewStatus = status;
                if (status == "2")
                {
                    model.InterviewResult = HttpUtility.UrlDecode(Request.Form["InterViewResult"]);
                }
                pushViewDAL.Insert(model);
            }
            else
            {
                model.InterviewStatus = status;
                if (status == "2")
                {
                    model.InterviewResult = HttpUtility.UrlDecode(Request.Form["InterViewResult"]);
                }
                pushViewDAL.Update(model);
            }
            //暂时未找到跳转不到指定Action原因,据说是因为域的问题
            string url = string.Format("loginid={0}&rid={1}&pid={2}", loginid, rid, pid);

            //Redirect(url);
            return(Content(url));
        }
Ejemplo n.º 2
0
        public ActionResult GetInterResult(string rid, string pid)
        {
            pid = HttpUtility.UrlDecode(pid);
            rid = HttpUtility.UrlDecode(rid);
            Outsourcing.EF.PushInterViewTable model = pushViewDAL.GetPushInterViewByWhere(int.Parse(rid), int.Parse(pid));
            string message = "无";

            if (model != null)
            {
                message = model.InterviewResult;
            }
            return(Content(message));
        }
Ejemplo n.º 3
0
        public ActionResult Edit(string loginid, string rid, string pid)
        {
            if (!string.IsNullOrEmpty(loginid))
            {
                ViewBag.LoginID = loginid;
            }
            else
            {
                ViewBag.LoginID = "";
            }
            List <CustomerOutsourc> custOut = custOutDAL.GetlList("CustomerOutID=" + loginid);

            if (custOut.Count > 0)
            {
                string types = custOut[0].Type.ToString();
                ViewBag.Type = types;
            }

            pid = HttpUtility.UrlDecode(pid);
            rid = HttpUtility.UrlDecode(rid);
            Outsourcing.EF.PushInterViewTable model = pushViewDAL.GetPushInterViewByWhere(int.Parse(rid), int.Parse(pid));
            if (model == null)
            {
                model.ID = Guid.NewGuid().ToString();
                model.InterviewStatus = "0";
                model.PlushStatute    = "0";
                model.RequirementId   = int.Parse(rid);
                model.PersonalInfoId  = int.Parse(pid);
                model.FeedbackState   = "0";
                pushViewDAL.Insert(model);
            }
            else
            {
                model.InterviewStatus = "0";
                model.PlushStatute    = "0";
                model.FeedbackState   = "0";
                pushViewDAL.Update(model);
            }

            ////暂时未找到跳转不到指定Action原因,据说是因为域的问题
            string url = string.Format("/Personal/Personal/Index?loginid={0}&rid={1}&pid={2}", loginid, rid, pid);

            //return Content(url);
            return(RedirectToAction("Index", "Personal", new { area = "Personal", loginid = loginid, rid = rid }));
        }
Ejemplo n.º 4
0
        // GET: TalentPush/TalentPush/Edit/5
        public ActionResult Edit(string loginid, string id, string viewS, string plushS)
        {
            ValidateloginID(loginid);

            id     = HttpUtility.UrlDecode(id);
            viewS  = HttpUtility.UrlDecode(viewS);
            plushS = HttpUtility.UrlDecode(plushS);
            string pid = HttpUtility.UrlDecode(Request["pid"]);
            string rid = HttpUtility.UrlDecode(Request["rid"]);
            string job = HttpUtility.UrlDecode(Request["job"]);

            Outsourcing.EF.PushInterViewTable model = null;
            if (id == "-1")
            {
                model    = new Outsourcing.EF.PushInterViewTable();
                model.ID = Guid.NewGuid().ToString();
                model.InterviewStatus = viewS;
                model.PlushStatute    = plushS;
                model.RequirementId   = int.Parse(rid);
                model.PersonalInfoId  = int.Parse(pid);
                pushviewDAL.Insert(model);
            }
            else
            {
                model = pushviewDAL.GetPushInterViewByWhere(id);
                model.InterviewStatus = viewS;
                model.PlushStatute    = plushS;

                pushviewDAL.Update(model);
            }
            PersonalInfo pModel = personalDAL.GetPersonalInfo(int.Parse(pid));

            if (pModel != null)
            {
                //如果当前人才被推送,则更新人员信息中的人员状态
                pModel.PeopleStatue = 2;
                personalDAL.Update(pModel);
            }

            return(RedirectToAction("ShowTalentRequirement", new { pid = pid, JobName = job, loginid = loginid }));
        }
Ejemplo n.º 5
0
        public ActionResult MuchEdit(string loginid, string rids, string job, int pid)
        {
            try
            {
                ValidateloginID(loginid);
                foreach (var reqid in HttpUtility.UrlDecode(rids).Split(','))
                {
                    if (reqid == "")
                    {
                        continue;
                    }
                    Outsourcing.EF.PushInterViewTable pushView = pushviewDAL.GetPushInterViewByWhere(int.Parse(reqid), pid);
                    //判断当前实例是否存在
                    if (pushView == null)
                    {
                        #region  实例不存在
                        pushView    = new Outsourcing.EF.PushInterViewTable();
                        pushView.ID = Guid.NewGuid().ToString();
                        pushView.InterviewStatus = "0";
                        pushView.PlushStatute    = "0";
                        pushView.RequirementId   = int.Parse(reqid);
                        pushView.PersonalInfoId  = pid;
                        pushviewDAL.Insert(pushView);
                        #endregion
                    }
                    else
                    {
                        #region 实例存在
                        pushView = pushviewDAL.GetPushInterViewByWhere(pushView.ID);
                        pushView.InterviewStatus = "0";
                        pushView.PlushStatute    = "0";

                        pushviewDAL.Update(pushView);
                        #endregion
                    }
                }
            }
            catch { }

            return(RedirectToAction("ShowTalentRequirement", new { pid = pid, JobName = job, loginid = loginid }));
        }
Ejemplo n.º 6
0
 public ActionResult Delete(string loginid, string rids, string job, int pid)
 {
     try
     {
         ValidateloginID(loginid);
         foreach (var reqid in HttpUtility.UrlDecode(rids).Split(','))
         {
             if (reqid == "")
             {
                 continue;
             }
             Outsourcing.EF.PushInterViewTable pushView = pushviewDAL.GetPushInterViewByWhere(int.Parse(reqid), pid);
             if (pushView != null)
             {
                 //结果存在,则重置(删除)
                 pushviewDAL.Delete(pushView);
             }
         }
     }
     catch { }
     return(RedirectToAction("ShowTalentRequirement", new { pid = pid, JobName = job, loginid = loginid }));
 }