Beispiel #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)));
        }
Beispiel #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));
        }
Beispiel #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));
        }