Exemplo n.º 1
0
        public ActionResult Index(int? userId, int? branchId)
        {
            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);
            }

            var model = new SearchFeedbackModel()
            {
                UserId = userId
            };
            if (branchId.HasValue)
            {
                model.BranchId = branchId.Value;
            }
            ViewBag.FeedBackType = FeedbackBLL.GetFeedbackTypeList().Where(r => r.Status == ConvertEnum.StatusTypeForActive).ToList();
            return View(model);
        }
Exemplo n.º 2
0
        public ActionResult SearchCenterList(SearchFeedbackModel serSearchFeedbackModel, [DefaultValue(1)]int pageIndex)
        {
            Session["serSearchFeedbackModel"] = serSearchFeedbackModel;

            var model = EmeBLL.GetMessageCenterByUserIdByPage(serSearchFeedbackModel.UserId, serSearchFeedbackModel.BeginDate, serSearchFeedbackModel.EndDate, new Paging() { PageIndex = pageIndex, PageSize = 5 });
            return View("_MessageList", model);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 作者:Beta
        /// 时间:2014.03.20
        /// 描述:获取所有学员投诉(分页)
        /// </summary>
        /// <param name="search"></param>
        /// <param name="pageIndex"></param>
        /// <returns></returns>
        public ActionResult SearchStudentFeedback(SearchFeedbackModel search, [DefaultValue(1)]int pageIndex)
        {
            Session["StudentSearchFeedback"] = search;
            var model = FeedbackBLL.GetSutdentFeedbackList(search.UserId, search.BranchId, search.FeedbackType, search.FeedbackStatusType, search.BeginDate,
                search.EndDate, search.SearchKey,
                search.SearchKeyword, new Paging()
                {
                    PageIndex = pageIndex,
                    PageSize = 15
                });

            return PartialView("_List", model);
        }