Exemplo n.º 1
0
        public ActionResult ShowTalentRequirement(string loginid, string JobName, string pid, int page = 1)
        {
            ValidateloginID(loginid);
            const int pageSize = 8;

            ViewBag.JobName = JobName;
            ViewBag.Pid     = pid;

            PushInverviewViewModel viewModel = new PushInverviewViewModel();
            string s = Request["pid"].ToString();
            IEnumerable <Outsourcing.EF.Requirement> Requirements = null;
            int personid = int.Parse(HttpUtility.UrlDecode(pid));

            if (!string.IsNullOrWhiteSpace(JobName))
            {
                //
                string ee          = HttpUtility.UrlDecode(JobName);
                int    TecLanguage = Common.EnumHelper.GetEnumValueByDesc(JobName);
                Requirements          = requirementDAL.GetRequirementListByJobName(TecLanguage).AsQueryable();
                ViewBag.CurrentFilter = ee;
            }
            else
            {
                Requirements = requirementDAL.GetRequirementList(string.Empty).AsQueryable();
            }
            viewModel.Requirements        = Requirements.OrderBy(m => m.ArrivalTime).ToPagedList(page, pageSize);
            viewModel.CustomerCompnays    = customercompnayDAL.GetCustomerCompnayList(string.Empty);
            viewModel.PushInterViewTables = pushviewDAL.GetModelList(string.Empty);
            viewModel.Personal            = personalDAL.GetPersonalInfo(personid);
            return(View(viewModel));
        }
Exemplo n.º 2
0
        public ActionResult Index(string JobName, string pid, int page = 1)
        {
            const int pageSize = 8;

            PushInverviewViewModel viewModel = new PushInverviewViewModel();
            string s = Request["pid"].ToString();
            IEnumerable <EF.Requirement> Requirements = null;
            int personid = int.Parse(HttpUtility.UrlDecode(pid));

            if (!string.IsNullOrWhiteSpace(JobName))
            {
                //
                int ee = Convert.ToInt32(HttpUtility.UrlDecode(JobName));
                Requirements          = requirementDAL.GetRequirementListByJobName(ee).AsQueryable();
                ViewBag.CurrentFilter = ee;
            }
            else
            {
                Requirements = requirementDAL.GetRequirementList(string.Empty).AsQueryable();
            }
            viewModel.Requirements        = Requirements.OrderBy(m => m.ArrivalTime).ToPagedList(page, pageSize);
            viewModel.CustomerCompnays    = customercompnayDAL.GetCustomerCompnayList(string.Empty);
            viewModel.PushInterViewTables = pushviewDAL.GetModelList(string.Empty);
            viewModel.Personal            = personalDAL.GetPersonalInfo(personid);
            return(View(viewModel));
        }
Exemplo n.º 3
0
        // GET: TalentPush/TalentPush/Details/5
        public ActionResult Details(string rid, int pageIndex, int pid)
        {
            rid = HttpUtility.UrlDecode(rid);
            PushInverviewViewModel viewModel = new PushInverviewViewModel();

            if (!string.IsNullOrEmpty(rid))
            {
                viewModel.Requirement = requirementDAL.GetRequirement(int.Parse(rid));
                viewModel.Personal    = personalDAL.GetPersonalInfo(pid);
            }
            else
            {
                viewModel.Requirement = new Outsourcing.EF.Requirement();
                viewModel.Personal    = new Outsourcing.EF.PersonalInfo();
            }
            ViewBag.pageIndex = pageIndex;
            ViewBag.JobName   = HttpUtility.UrlEncode(viewModel.Personal.Publications);
            ViewBag.pid       = pid;
            return(View(viewModel));
        }