Beispiel #1
0
        /// <summary>
        /// 商城运行信息
        /// </summary>
        public ActionResult ShopRunInfo()
        {
            ShopRunInfoModel model = new ShopRunInfoModel();

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

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

            model.ShopVersion    = BSPVersion.SHOP_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();

            ShopUtils.SetAdminRefererCookie(Url.Action("shopruninfo"));
            return(View(model));
        }