예제 #1
0
        public ActionResult SearchRecordList(SearchBookRecordModel search, [DefaultValue(1)]int pageIndex)
        {
            // 我的学员的订退订记录
            if (LoginUserManager.CurrLoginUser.RightsList.Any(p => p.SCode.Equals("TM001") && p.Status == CommonHelper.To<int>(StatusType.Active)))
            {
                search.SaCc = LoginUserManager.CurrLoginUser.UserId;
            }

            var model = StudyBLL.GetBookRecordList(
                search.BranchId,
                search.SaCc,
                search.UserId,
                search.IsOnline,
                search.IsUnbook,
                search.ProductId,
                search.ProductLevelId,
                search.BeginTime,
                search.EndTime,
                search.UnBookBeginTime,
                search.UnBookEndTime,
                search.PassStatusType,
                search.AttendStatusType,
                search.SearchKey,
                search.SearchKeyWord, new Paging()
                {
                    PageIndex = pageIndex,
                    PageSize = Global.ManagerSmallPageSize
                });

            Session["SearchBookRecordModel"] = search;

            return PartialView("_List", model);
        }
예제 #2
0
        public ActionResult Index(int? userId)
        {
            var model = new SearchBookRecordModel()
            {
                UserId = userId
            };
            if (userId.HasValue)
            {
                var user = WebCommon.Cache.UserInfoCache.GetCacheUserInfoByUserId(userId.Value);
                ViewBag.UserName = string.Format("{0} {1}", user.CName, user.CName == user.EName ? "" : user.EName);
            }

            return View(model);
        }