public ActionResult TaskCanApplyList(string AppName = "", string CPID = "", int PageIndex = 0) { ViewBag.AmIn = "taskapply"; ViewBag.AppName = AppName; ViewBag.CPID = CPID; int count; int pageSize = 10; AdminUserBLL userBll = new AdminUserBLL(); ViewBag.UserList = userBll.GetAdminUserNameIDsByRoleType(RoleType.渠道); AppBLL bll = new AppBLL(); ViewBag.AppList = bll.GetAppListByNameAndCPID(AppName, CPID, PageIndex, pageSize, out count); ; ViewBag.PageCount = count % pageSize == 0 ? count / pageSize : (count / pageSize) + 1; ViewBag.Record = count; ViewBag.CurrentPage = PageIndex; return View(); }