Example #1
0
        public ActionResult TaskList(int AdvertID =0,int AppID =0,string CPID ="",int MeiJieID =0,int PageIndex =0)
        {
            #region 保存查询条件
            ViewBag.AdvertID = AdvertID;
            ViewBag.AppID = AppID;
            ViewBag.CPID = CPID;
            ViewBag.MeiJieID = MeiJieID;
            ViewBag.AmIn = "task";
            #endregion

            AppBLL appBll = new AppBLL();
            AdvertBLL advertBLL = new AdvertBLL();
            AdminUserBLL userBll = new AdminUserBLL();
            ViewBag.MeiJieList = userBll.GetAdminUserNameIDsByRoleType(NetworkLeagueModel.Enum.RoleType.媒介);
            ViewBag.AdvertList = advertBLL.GetAll();
            ViewBag.AppNameIDList = appBll.GetAll();

            TaskBLL taskBll = new TaskBLL();
            int count;
            int pageSize=10;
            AdminUser user = CheckLogin.Instance.GetUser();
            ViewBag.TaskList = taskBll.GetTaskListByUserID("",AdvertID, AppID, CPID, user.ID, (int)user.RoleType, 0, 0, PageIndex, pageSize, out count);
            ViewBag.PageCount = count % pageSize == 0 ? count / pageSize : (count / pageSize) + 1;
            ViewBag.Record = count;
            ViewBag.CurrentPage = PageIndex;
            return View();
        }