コード例 #1
0
        /// <summary>绑定数据源
        /// </summary>
        protected void RadGridMemberBalanceManage_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            var pageIndex = IsSerarch ? 1 : RadGridMemberBalanceManage.CurrentPageIndex + 1;
            var pageSize  = RadGridMemberBalanceManage.PageSize;
            int totalCount;
            IList <MemeberBalanceChangeInfo> list = MemberCenterSao.SearchUserBalanceChangeListByPage(SaleFilialeID, SalePlatformID, MemberId, ChangeState,
                                                                                                      ChangeType, TradeCode, StartTime, EndTime, TypeOfProblemId, bool.Parse(rbl_IsOfficial.SelectedValue),
                                                                                                      pageIndex, pageSize, out totalCount);

            RadGridMemberBalanceManage.DataSource       = list;
            RadGridMemberBalanceManage.VirtualItemCount = totalCount;

            #region 绑定导出Grid
            IList <MemeberBalanceChangeInfo> exportList = MemberCenterSao.SearchUserBalanceChangeListByPage(SaleFilialeID, SalePlatformID, MemberId, ChangeState,
                                                                                                            ChangeType, TradeCode, StartTime, EndTime, TypeOfProblemId, bool.Parse(rbl_IsOfficial.SelectedValue),
                                                                                                            1, 999999, out totalCount);
            ExportExcel.DataSource = exportList;
            ExportExcel.DataBind();
            #endregion
        }