Example #1
0
        public ActionResult GetDateByType(string name, int page = 1)
        {
            IndexShow model = new IndexShow();

            if (Session["types"] != null)
            {
                string type = Session["types"].ToString();
                if (type == "1")
                {
                    ViewBag.Name = name;
                    var list = imagedal.GetRequirementList(name).OrderByDescending(m => m.PublishTime).ToPagedList(page, 5);
                    return(View("GetRequireInfoPage", list));
                }
                else
                {
                    ViewBag.Name = name;
                    var list = imagedal.GetPersonalInfoList(name).OrderByDescending(m => m.CreateTime).ToPagedList(page, 5);

                    return(View("GetPersonalInfoPage", list));
                }
            }
            else
            {
                return(View());
            }
        }
Example #2
0
        public ActionResult Index(string loginid)
        {
            if (!string.IsNullOrEmpty(loginid))
            {
                ViewBag.LoginID = loginid;
            }
            else
            {
                ViewBag.LoginID = "";
            }
            ViewBag.Types = "";
            IndexShow model = new IndexShow();

            if (Session["types"] != null)
            {
                string type = Convert.ToString(Session["types"]);
                switch (type)
                {
                case "1":
                    model.requirementList = dal.GetRequirementList("");
                    //model.waitEmployerList = dal.GetWaitEmployerList(Convert.ToInt32(type));
                    break;

                case "2":
                    model.persionalInfoList = dal.GetPersonalInfoList("");
                    break;
                }

                model.ptrcinfoList = dal.GetPtrcInfoList(Convert.ToInt32(type));
                ViewBag.Types      = type;
            }


            return(View(model));
        }