/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; string TourID = string.Empty; if (Request.QueryString["TourID"] != null && !string.IsNullOrEmpty(Request.QueryString["TourID"])) { TourID = Utils.InputText(Request.QueryString["TourID"]); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); this.rptRecords.DataSource = Ibll.GetTourVisitedHistorys(intPageSize, intPageIndex, ref intRecordCount, TourID); this.rptRecords.DataBind(); Ibll = null; } this.ExportPageInfo1.LinkType = 4; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; if (rptRecords.Items.Count <= 0) { this.NoData.Visible = true; } }