📄 replystatistic.cs
字号:
namespace PowerEasy.WebSite.Admin.Crm
{
using PowerEasy.Common;
using PowerEasy.Controls;
using PowerEasy.Web.UI;
using System;
using System.Data;
using System.Web.UI.WebControls;
public class ReplyStatistic : AdminPage
{
protected ExtendedGridView EgvReplyStat;
private int m_QuestionCount;
private int m_ReplyCount;
protected ObjectDataSource OdsReplyStat;
protected ExtendedSiteMapPath SmpNavigator;
protected void EgvReplyStat_DataBound(object sender, EventArgs e)
{
if (this.EgvReplyStat.Rows.Count > 0)
{
GridViewRow footerRow = this.EgvReplyStat.FooterRow;
footerRow.CssClass = this.EgvReplyStat.RowStyle.CssClass;
footerRow.Cells[0].Text = "总 计";
footerRow.Cells[1].Text = this.m_QuestionCount.ToString();
footerRow.Cells[2].Text = this.m_ReplyCount.ToString();
}
}
protected void EgvReplyStat_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView dataItem = (DataRowView) e.Row.DataItem;
this.m_QuestionCount += DataConverter.CLng(dataItem["QuestionCount"]);
this.m_ReplyCount += DataConverter.CLng(dataItem["ReplyCount"]);
}
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -