📄 statuserdatareport.aspx.cs
字号:
namespace PowerEasy.WebSite.Admin.Analytics
{
using PowerEasy.Analytics;
using PowerEasy.Controls;
using PowerEasy.Enumerations;
using PowerEasy.Web.UI;
using System;
using System.Web.UI.WebControls;
public class StatUserDataReport : AdminPage
{
protected const int BarWidth = 90;
protected ExtendedGridView ExtendedGridView1;
protected Label LblCount;
protected float m_ItemSum;
private StatName m_StatName;
protected ObjectDataSource OdsStat;
protected ExtendedSiteMapPath SmpNavigator;
protected void ExtendedGridView1_DataBinding(object sender, EventArgs e)
{
int num = UserDataReport.Sum(this.m_StatName);
this.m_ItemSum = Convert.ToSingle(num);
this.LblCount.Text = num.ToString();
}
protected void Page_Load(object sender, EventArgs e)
{
string str = BasePage.RequestString("Action");
if (Enum.IsDefined(typeof(StatName), str))
{
this.m_StatName = (StatName) Enum.Parse(typeof(StatName), BasePage.RequestString("Action"), true);
}
else
{
this.m_StatName = StatName.None;
}
string[] description = UserDataReport.GetDescription(this.m_StatName);
this.SmpNavigator.AdditionalNode = description[1];
this.ExtendedGridView1.Columns[0].HeaderText = description[0];
this.OdsStat.SelectParameters["sn"].DefaultValue = this.m_StatName.ToString("D");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -