Example #1
0
        /// <summary>
        /// 店铺运行信息
        /// </summary>
        public ActionResult StoreRunInfo()
        {
            StoreRunInfoModel model = new StoreRunInfoModel();

            model.WaitConfirmCount    = AdminOrders.GetOrderCountByCondition(WorkContext.StoreId, (int)OrderState.Confirming, "", "");
            model.WaitPreProductCount = AdminOrders.GetOrderCountByCondition(WorkContext.StoreId, (int)OrderState.Confirmed, "", "");
            model.WaitSendCount       = AdminOrders.GetOrderCountByCondition(WorkContext.StoreId, (int)OrderState.PreProducting, "", "");
            model.WaitPayCount        = AdminOrders.GetOrderCountByCondition(WorkContext.StoreId, (int)OrderState.WaitPaying, "", "");

            MallUtils.SetAdminRefererCookie(Url.Action("storeruninfo"));
            return(View(model));
        }
Example #2
0
        /// <summary>
        /// 商城运行信息
        /// </summary>
        public ActionResult MallRunInfo()
        {
            MallRunInfoModel model = new MallRunInfoModel();

            model.WaitConfirmCount    = AdminOrders.GetOrderCountByCondition(0, (int)OrderState.Confirming, "", "");
            model.WaitPreProductCount = AdminOrders.GetOrderCountByCondition(0, (int)OrderState.Confirmed, "", "");
            model.WaitSendCount       = AdminOrders.GetOrderCountByCondition(0, (int)OrderState.PreProducting, "", "");
            model.WaitPayCount        = AdminOrders.GetOrderCountByCondition(0, (int)OrderState.WaitPaying, "", "");

            model.OnlineUserCount   = OnlineUsers.GetOnlineUserCount();
            model.OnlineGuestCount  = OnlineUsers.GetOnlineGuestCount();
            model.OnlineMemberCount = model.OnlineUserCount - model.OnlineGuestCount;

            model.MallVersion    = BMAVersion.MALL_VERSION;
            model.NetVersion     = Environment.Version.ToString();
            model.OSVersion      = Environment.OSVersion.ToString();
            model.TickCount      = (Environment.TickCount / 1000 / 60).ToString();
            model.ProcessorCount = Environment.ProcessorCount.ToString();
            model.WorkingSet     = (Environment.WorkingSet / 1024 / 1024).ToString();

            MallUtils.SetAdminRefererCookie(Url.Action("mallruninfo"));
            return(View(model));
        }