示例#1
0
        public JsonResult PendingSettlementList(StatisticsPendingSettlementQuery query)
        {
            var result = BillingApplication.StatisticsPendingSettlementOrders(query);

            if (result.Models != null)
            {
                foreach (var item in result.Models)
                {
                    item.ShopName = ShopApplication.GetShop(item.ShopId) == null ? item.ShopName : ShopApplication.GetShop(item.ShopId).ShopName;
                }
            }
            return(Json(new { rows = result.Models, result.Total }, true));
        }
示例#2
0
        public JsonResult PendingSettlementList(string shopName, int page, int rows)
        {
            var query = new CommonModel.QueryModel.StatisticsPendingSettlementQuery();

            query.PageNo   = page;
            query.PageSize = rows;
            query.ShopName = shopName;
            var result    = BillingApplication.StatisticsPendingSettlementOrders(query);
            var shopNames = ShopApplication.GetShopNames(result.Models.Select(p => p.ShopId));

            return(Json(new
            {
                rows = result.Models.Select(p => new
                {
                    p.ShopId,
                    ShopName = shopNames[p.ShopId],
                    p.Amount
                }),
                result.Total
            }, true));
        }