public List <ListSecondKillCommoditys> AjaxQuery(SecondKillCommoditysRequest request)
        {
            var data  = new List <ListSecondKillCommoditys>();
            var query = SecondKillCommoditysService.Query(request);

            if (query != null)
            {
                data = query.ModelList.Select(x => new ListSecondKillCommoditys(x)).ToList();
                var roles = _securityHelper.GetCurrentUser().CurrentUser.Roles.ToList();
                foreach (var item in data)
                {
                    if (roles[0].IsSuper || roles[0].Permissions.Contains("ManageSecondKillCommoditys"))
                    {
                        item.boor += "<a href='#' onclick=OperatorThis('Edit','/SecondKillCommoditys/Edit/" + item.Id + "') class='tablelink'>编辑 &nbsp;</a> ";
                    }
                    if (roles[0].IsSuper || roles[0].Permissions.Contains("ManageSecondKillCommoditys"))
                    {
                        item.boor += "<a href='#' onclick=OperatorThis('Delete','/SecondKillCommoditys/Delete/" + item.Id + "') class='tablelink'>删除 </a> ";
                    }
                }
                pageHtml = MvcPage.AjaxPager((int)request.PageIndex, (int)request.PageSize, query.TotalCount);
            }
            else
            {
                pageHtml = MvcPage.AjaxPager((int)request.PageIndex, (int)request.PageSize, 0);
            }
            return(data);
        }
        public void Query()
        {
            var request = new SecondKillCommoditysRequest();

            request.commodityNo = commodityNo;
            var query = SecondKillCommoditysService.Query(request);

            if (query != null)
            {
                List     = query.ModelList.Select(x => new ListSecondKillCommoditys(x)).ToList();
                pageHtml = MvcPage.AjaxPager((int)request.PageIndex, (int)request.PageSize, query.TotalCount);
            }
            else
            {
                List     = new List <ListSecondKillCommoditys>();
                pageHtml = MvcPage.AjaxPager((int)request.PageIndex, (int)request.PageSize, 0);
            }
        }