⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statinfolistreport.aspx.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Admin.Analytics
{
    using PowerEasy.Analytics;
    using PowerEasy.Controls;
    using PowerEasy.Enumerations;
    using PowerEasy.Model.Analytics;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class StatInfoListReport : AdminPage
    {
        protected Label LblStartDate;
        protected ExtendedSiteMapPath SmpNavigator;
        protected HtmlTableCell TblcStatDayNum;
        protected HtmlTableCell TdlcAveDayNum;
        protected HtmlTableCell TdlcBrowser;
        protected HtmlTableCell TdlcChinaNum;
        protected HtmlTableCell TdlcCountNum;
        protected HtmlTableCell TdlcDayMaxDate;
        protected HtmlTableCell TdlcDayMaxNum;
        protected HtmlTableCell TdlcDayNum;
        protected HtmlTableCell TdlcHourMaxNum;
        protected HtmlTableCell TdlcHourMaxTime;
        protected HtmlTableCell TdlcMaxAreNum;
        protected HtmlTableCell TdlcMaxColorNum;
        protected HtmlTableCell TdlcMaxScrNum;
        protected HtmlTableCell TdlcMaxWebNum;
        protected HtmlTableCell TdlcMonthMaxDate;
        protected HtmlTableCell TdlcMonthMaxNum;
        protected HtmlTableCell TdlcOtherNum;
        protected HtmlTableCell TdlcPreDayNum;
        protected HtmlTableCell TdlcSystem;
        protected HtmlTableCell TdlcTotalNum;
        protected HtmlTableCell TdlcTotalView;

        private void init()
        {
            StatInfoListInfo statInfoListInfo = OtherReport.GetStatInfoListInfo();
            this.LblStartDate.Text = statInfoListInfo.StartDate;
            int num = 0;
            if (!string.IsNullOrEmpty(statInfoListInfo.StartDate))
            {
                TimeSpan span = (TimeSpan) (DateTime.Today - Convert.ToDateTime(statInfoListInfo.StartDate));
                num = span.Days + 1;
            }
            int num2 = 0;
            if (num <= 0)
            {
                num2 = num;
            }
            else
            {
                num2 = statInfoListInfo.TotalNum / num;
                if ((statInfoListInfo.TotalNum % num) != 0)
                {
                    num2++;
                }
            }
            this.TblcStatDayNum.InnerText = num.ToString();
            this.TdlcMonthMaxNum.InnerText = statInfoListInfo.MonthMaxNum.ToString();
            this.TdlcTotalNum.InnerText = statInfoListInfo.TotalNum.ToString();
            this.TdlcMonthMaxDate.InnerText = statInfoListInfo.MonthMaxDate;
            this.TdlcTotalView.InnerText = statInfoListInfo.TotalView.ToString();
            this.TdlcDayMaxDate.InnerText = statInfoListInfo.DayMaxDate;
            this.TdlcDayMaxNum.InnerText = statInfoListInfo.DayMaxNum.ToString();
            this.TdlcAveDayNum.InnerText = num2.ToString();
            this.TdlcHourMaxNum.InnerText = statInfoListInfo.HourMaxNum.ToString();
            this.TdlcDayNum.InnerText = statInfoListInfo.DayNum.ToString();
            this.TdlcHourMaxTime.InnerText = statInfoListInfo.HourMaxTime;
            this.TdlcPreDayNum.InnerText = Convert.ToString((int) ((statInfoListInfo.DayNum * 0x5a0) / ((DateTime.Now.Hour * 60) + DateTime.Now.Minute)));
            this.TdlcChinaNum.InnerText = statInfoListInfo.ChinaNum.ToString();
            this.TdlcOtherNum.InnerText = statInfoListInfo.OtherNum.ToString();
            this.TdlcSystem.InnerText = UserDataReport.MaxValue(StatName.UserSystem);
            this.TdlcBrowser.InnerText = UserDataReport.MaxValue(StatName.UserBrowser);
            this.TdlcMaxAreNum.InnerText = UserDataReport.MaxValue(StatName.UserAddress);
            this.TdlcMaxWebNum.InnerText = UserDataReport.MaxValue(StatName.UserWeburl);
            this.TdlcMaxScrNum.InnerText = UserDataReport.MaxValue(StatName.UserScreen);
            this.TdlcMaxColorNum.InnerText = UserDataReport.MaxValue(StatName.UserColor);
            this.TdlcCountNum.InnerText = OtherReport.GetVisitorCount().ToString();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                this.init();
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -