private CustomerStatisticsModel GetCustomerStatistics()
        {
            decimal recharge = 0, takeOffMoney = 0, balance = 0;
            int     unconfirmOrder = 0, confirmOrder = 0, submitOrder = 0, haveOrder = 0, sendOrder = 0, holdOrder = 0, totalOrder = 0;
            int     submitingOrder = 0, submitFailOrder = 0;

            if (_workContext != null && _workContext.User != null)
            {
                try
                {
                    _customerService.GetCustomerStatisticsInfo(EngineContext.Current.Resolve <IWorkContext>().User.UserUame,
                                                               out recharge, out takeOffMoney, out balance,
                                                               out unconfirmOrder, out confirmOrder, out submitOrder,
                                                               out haveOrder, out sendOrder,
                                                               out holdOrder, out totalOrder, out submitingOrder, out submitFailOrder);
                }
                catch (Exception ex)
                {
                    Log.Exception(ex);
                }
            }
            // update huhaiyou 2014-07-03
            // var customerOrder = _customerOrderService.GetEubWayBillList(GetShippingMehtodIds());
            int eubWayBillCount = _customerOrderService.GetEubWayBillCount(GetShippingMehtodIds());

            //var eubWayBillCount = customerOrder != null ? customerOrder.Count : 0;
            return(new CustomerStatisticsModel
            {
                Recharge = recharge,
                TakeOffMoney = takeOffMoney,
                Balance = balance,
                UnconfirmOrder = unconfirmOrder,
                ConfirmOrder = confirmOrder,
                SubmitOrder = submitOrder,
                HaveOrder = haveOrder,
                SendOrder = sendOrder,
                HoldOrder = holdOrder,
                TotalOrder = totalOrder,
                EubWayBillCount = eubWayBillCount,
                SubmitingOrder = submitingOrder,
                SubmitFailOrder = submitFailOrder,
            });
        }