Пример #1
0
        public ActionResult Edit(int Id = 0, int page = 1)
        {
            JobsBll bll = new JobsBll();

            bll.DeleteJob(Id);
            return(View(bll.GetPagedList(page, 10, ViewBag.CompanyId)));
        }
Пример #2
0
        /// <summary>
        /// 职位管理
        /// </summary>
        /// <returns></returns>
        public ActionResult Edit(int page = 1)
        {
            int              pageSize = 10;
            JobsBll          bll      = new JobsBll();
            PagedList <Jobs> jobList  = bll.GetPagedList(page, pageSize, ViewBag.CompanyId);

            return(View(jobList));
        }
Пример #3
0
        //公司详情页
        public ActionResult CompanyInfo(int id = 0, int page = 1)
        {
            CompanyInfoBll bll     = new CompanyInfoBll();
            UserInfoBll    userbll = new UserInfoBll();
            CompanyInfo    model   = bll.GetModelById(id);

            bll.AddClickNum(id);

            ViewBag.UserJobList = userbll.GetUserJobIdList((int)ViewBag.Uid, 0);     //获取用户申请的工作id列表

            //获取公司岗位信息
            JobsBll          jobsbll = new JobsBll();
            PagedList <Jobs> jobList = jobsbll.GetPagedList(page, 10, id);

            ViewBag.JobList = jobList;
            if (Request.IsAjaxRequest())
            {
                return(PartialView("CompanyJobList", jobList));
            }
            return(View(model));
        }
Пример #4
0
        public ActionResult Release(Jobs model)
        {
            JobsBll bll = new JobsBll();

            ViewBag.JobTypeList = GetJobTypeList();
            if (bll.IsExistsJob(model.CompanyId, model.JobName))  //判断职位名称是否重复
            {
                ViewBag.Msg = "  已存在的职位名称,请重新发布";
                return(View());
            }
            if (bll.AddModel(model))
            {
                ViewBag.Msg = "  发布成功";
            }
            else
            {
                ViewBag.Msg = " 发布失败";
            }

            return(View());
        }