Exemplo n.º 1
0
        public ActionResult App(int AdvertID = 0, int AppID = 0, int PageIndex = 0, int Status = -1)
        {
            #region 保存请求参数
            ViewBag.AdvertID = AdvertID;
            ViewBag.AppID = AppID;
            ViewBag.Status = Status;
            ViewBag.AmIn = "apk";
            #endregion

            int count,pageSize=10;
            AppBLL bll = new AppBLL();
            AdvertBLL advertBLL = new AdvertBLL();
            
            ViewBag.AdvertList = advertBLL.GetAll();
            ViewBag.AppNameIDList = bll.GetAll();
            ViewBag.AppList = bll.GetList(AdvertID, AppID, PageIndex, pageSize,Status, out count);
            ViewBag.PageCount = count % pageSize == 0 ? count / pageSize : (count / pageSize) + 1;
            ViewBag.Record = count;
            ViewBag.CurrentPage = PageIndex;
            return View();
        }