示例#1
0
 /// <summary>
 /// 查询会议纪要
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnSearch_TextChanged(object sender, EventArgs e)
 {
     gvMeetingSummary.DataSourceID = null;
     //根据会议名称,开始时间和结束时间查询会议纪要信息
     gvMeetingSummary.DataSource = MeetingSummaryManager.SearchMeetingSummary(txtRoomName.Value, txtBeginTime.Value, txtEndTime.Value);
     gvMeetingSummary.DataBind();
 }
示例#2
0
    private void Bind()
    {
        PagedDataSource pds = new PagedDataSource();

        pds.DataSource       = MeetingSummaryManager.SearchMeetingSummary(txtRoomName.Value, txtBeginTime.Value, txtEndTime.Value);
        pds.AllowPaging      = true;
        pds.PageSize         = 5;
        pds.CurrentPageIndex = Pager1.PageIndex;
        Pager1.PageCount     = pds.PageCount;
        Pager1.DataCount     = pds.Count;

        gvMeetingSummary.DataSourceID = null;
        //根据会议名称,开始时间和结束时间查询会议纪要信息
        gvMeetingSummary.DataSource = pds;
        gvMeetingSummary.DataBind();
    }