Ejemplo n.º 1
0
        /// <summary>
        /// 获取预约单综合数据
        /// </summary>
        /// <returns></returns>
        public GiftsOrderAggregateDataModel GetOrderCount()
        {
            if (CurrentUser == null)
            {
                throw new HimallException("错误的用户信息");
            }
            GiftsOrderAggregateDataModel result = new GiftsOrderAggregateDataModel();
            long curid = CurrentUser.Id;

            result.AllCount           = _iGiftsOrderService.GetOrderCount(null, curid);
            result.WaitDeliveryCount  = _iGiftsOrderService.GetOrderCount(GiftOrderInfo.GiftOrderStatus.WaitDelivery, curid);
            result.WaitReceivingCount = _iGiftsOrderService.GetOrderCount(GiftOrderInfo.GiftOrderStatus.WaitReceiving, curid);
            result.FinishCount        = _iGiftsOrderService.GetOrderCount(GiftOrderInfo.GiftOrderStatus.Finish, curid);
            return(result);
        }
Ejemplo n.º 2
0
        public JsonResult GetOrderCount()
        {
            if (CurrentUser == null)
            {
                throw new HimallException("错误的用户信息");
            }
            GiftsOrderAggregateDataModel result = new GiftsOrderAggregateDataModel();
            long curid = CurrentUser.Id;

            result.AllCount           = _iGiftsOrderService.GetOrderCount(null, curid);
            result.WaitDeliveryCount  = _iGiftsOrderService.GetOrderCount(Himall.Entities.GiftOrderInfo.GiftOrderStatus.WaitDelivery, curid);
            result.WaitReceivingCount = _iGiftsOrderService.GetOrderCount(Himall.Entities.GiftOrderInfo.GiftOrderStatus.WaitReceiving, curid);
            result.FinishCount        = _iGiftsOrderService.GetOrderCount(Himall.Entities.GiftOrderInfo.GiftOrderStatus.Finish, curid);
            result.success            = true;
            return(Json(result, JsonRequestBehavior.AllowGet));
        }