Ejemplo n.º 1
0
        public ActionResult Goodtable(int Gid = 1)
        {
            ViewBag.id = Gid;
            Admin_Index ai = new Admin_Index(Gid);

            return(PartialView(ai));
        }
Ejemplo n.º 2
0
        public ActionResult Good_List(int Gid = 1)
        {
            Admin_Index ai = new Admin_Index(Gid);

            if (Request.IsAjaxRequest())
            {
                return(RedirectToAction("Goodtable", "admin", new { Gid = Gid }));
            }
            return(View(ai));
        }
Ejemplo n.º 3
0
        public ActionResult FindBystr(string shoushuo)
        {
            if (shoushuo == null || shoushuo.Trim() == "")
            {
                Admin_Index ai1 = new Admin_Index(1);
                return(PartialView("Goodtable", ai1));
            }
            GoodsManager gm = new GoodsManager();
            var          da = gm.FindBystr(shoushuo).OrderByDescending(o => o.Goods_id).ToPagedList(1, 10);
            Admin_Index  ai = new Admin_Index(1);

            ai.g = da;
            return(PartialView("Goodtable", ai));
        }