Exemplo n.º 1
0
        // GET: Admin/DashBoard
        public ActionResult Index()
        {
            var model = adManage.GetListAdvertisementDashboard();

            ViewBag.NumberAccountActive      = cddmanage.GetListCandidates((int)BU.Common.Enum.StatusCandidate.Active).Count;
            ViewBag.NumberAccountApprovaling = cddmanage.GetListCandidates((int)BU.Common.Enum.StatusCandidate.Approvaling).Count;
            ViewBag.NumberJobActive          = recruitJobManage.GetListRecruitJobsUserIdNoPaging(null, (int)BU.Common.Enum.EnumStatusJob.Active).Count;
            ViewBag.NumberJobApprovaling     = recruitJobManage.GetListRecruitJobsUserIdNoPaging(null, (int)BU.Common.Enum.EnumStatusJob.Approvaling).Count;

            ViewBag.ListTopFindJob = recruitJobManage.GetListFindJob();

            return(View(model));
        }
        public ActionResult Index(int?status = null)
        {
            //Lấy ra danh sách tất cả danh mục công việc
            ViewBag.ListProfesstions = new SelectList(ProfessionManage.GetAllProfessions(), "ProfessionId", "PFName");

            //Lấy danh sách tỉnh
            ViewBag.ListCities = new SelectList(cityManage.GetAllCities(), "CityId", "CName");

            //Lấy danh sách trình độ
            ViewBag.ListLevels = new SelectList(new LevelManage().GetAllLevels(), "LevelInfoId", "LIName");

            //Lấy danh sách kinh nghiệm
            ViewBag.ListExperiences = new SelectList(new ExperienceManage().GetAllExperiences(), "ExperienceId", "EShow");

            //Lấy danh sách kinh Lương
            ViewBag.ListSalaries = new SelectList(new SalaryMange().GetAllSalaries(), "SalaryId", "SShow");

            //Lấy danh sách hình thức làm việc
            ViewBag.ListWorkTypes = new SelectList(new WorkTypeManage().GetAllWorkTypes(), "WorkTypeId", "WTName");


            var model = cddmanage.GetListCandidates(status);

            return(View(model));
        }