コード例 #1
0
        public JsonResult GetApplyList(int page, int rows)
        {
            BussinessCateApplyQuery query = new BussinessCateApplyQuery();

            query.PageNo   = page;
            query.PageSize = rows;
            query.shopId   = CurrentSellerManager.ShopId;
            var model = _iShopService.GetBusinessCateApplyList(query);
            var cate  = model.Models.ToList().Select(a => new { Id = a.Id, ShopName = a.ShopName, ApplyDate = a.ApplyDate.ToString("yyyy-MM-dd HH:mm"), AuditedStatus = a.AuditedStatus.ToDescription() });
            var p     = new { rows = cate.ToList(), total = model.Total };

            return(Json(p));
        }
コード例 #2
0
ファイル: ShopController.cs プロジェクト: sky63886/Himall3.3
        public JsonResult GetApplyList(int page, int rows, string shopName, Entities.BusinessCategoryApplyInfo.BusinessCateApplyStatus?status)
        {
            BussinessCateApplyQuery query = new BussinessCateApplyQuery();

            query.PageNo   = page;
            query.PageSize = rows;
            query.ShopName = shopName;
            query.Status   = status;
            var model = _iShopService.GetBusinessCateApplyList(query);
            var cate  = model.Models.ToList().Select(a => new { Id = a.Id, ShopName = a.ShopName, ApplyDate = a.ApplyDate.ToString("yyyy-MM-dd HH:mm"), AuditedStatus = a.AuditedStatus.ToDescription() });
            var p     = new { rows = cate.ToList(), total = model.Total };

            return(Json(p));
        }