コード例 #1
0
        public ActionResult List(MissionSearchCriteria filter = null)
        {
            if (filter == null)
            {
                filter    = new MissionSearchCriteria();
                filter.pg = 1;
            }
            filter.PageSize = Define.PAGE_SIZE;
            Customer c = _customerService.GetEntityById(UserContext.Current.Id);

            filter.UserId       = UserContext.Current.Id;
            filter.Role         = (CommonEnum.GroupOfCustomer)c.GroupId;
            ViewBag.UserGroup   = (CommonEnum.GroupOfCustomer)c.GroupId;
            ViewBag.StatusList  = _missionService.GetMissionStatusList();
            ViewBag.MissionList = _missionService.GetEntitsList(filter);
            return(View(filter));
        }