📄 showcountdata3.aspx.cs
字号:
namespace PowerEasy.WebSite.Admin.Survey
{
using PowerEasy.Controls;
using PowerEasy.Survey;
using PowerEasy.Web.UI;
using System;
using System.Web.UI.WebControls;
public class ShowCountData3 : AdminPage
{
protected Repeater DlstSurveyRecord;
protected int i;
protected int m_SurveyId;
protected AspNetPager Pager;
protected ExtendedSiteMapPath SmpNavigator;
private void BindData()
{
this.DlstSurveyRecord.DataSource = SurveyRecord.GetList((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, this.m_SurveyId, 0);
this.Pager.RecordCount = SurveyRecord.GetTotalOfSurveyRecord();
this.DlstSurveyRecord.DataBind();
}
protected void Page_Load(object sender, EventArgs e)
{
this.m_SurveyId = BasePage.RequestInt32("SurveyID");
if (this.m_SurveyId == 0)
{
AdminPage.WriteErrMsg("<li>请指定问卷ID</li>", "SurveyManage.aspx");
}
else if (!SurveyManager.SurveyIdOfPassedExists(this.m_SurveyId))
{
AdminPage.WriteErrMsg("<li>该问卷未启用,不能查看调查结果!</li>");
}
else
{
this.Pager.PageSize = 40;
this.BindData();
}
}
protected void Pager_PageChanged(object src, PageChangedEventArgs e)
{
this.Pager.CurrentPageIndex = e.NewPageIndex;
this.BindData();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -