/// <summary> /// 初始化 /// </summary> private void InitPage() { int intRecordCount = 0; #region 初始化查询条件 if (Request.Form[dplArea.UniqueID] == null) { intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1); } CompanyID = this.SiteUserInfo.CompanyID; string StrBeginDate = Request.Form[txtBeginDate.UniqueID] == null ? Request.QueryString["BeginDate"] : Request.Form[txtBeginDate.UniqueID]; string StrEndDate = Request.Form[txtEndDate.UniqueID] == null ? Request.QueryString["EndDate"] : Request.Form[txtEndDate.UniqueID]; BeginDate = Utils.GetDateTimeNullable(StrBeginDate); EndDate = Utils.GetDateTimeNullable(StrEndDate); TourNumber = Utils.InputText(Request.Form[txtTourNumber.UniqueID] == null ? Request.QueryString["TourNumber"] : Request.Form[txtTourNumber.UniqueID]); RouteName = Utils.InputText(Request.Form[txtRouteName.UniqueID] == null ? Request.QueryString["RouteName"] : Request.Form[txtRouteName.UniqueID]); int?AreaId = Utils.GetIntNull(Request.Form[dplArea.UniqueID] == null ? Request.QueryString["AreaId"] : Request.Form[dplArea.UniqueID]); txtBeginDate.Value = StrBeginDate; txtEndDate.Value = StrEndDate; txtRouteName.Value = RouteName; this.txtTourNumber.Value = TourNumber; if (AreaId != null) { dplArea.Items.FindByValue(AreaId.ToString()).Selected = true; } #endregion IList <EyouSoft.Model.TourStructure.TourInfo> TourList = new List <EyouSoft.Model.TourStructure.TourInfo>(); EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance(); TourList = Ibll.GetTours(intPageSize, intPageIndex, ref intRecordCount, CompanyID, TourNumber, RouteName, AreaId, BeginDate, EndDate); rpt_SelectTour.DataSource = TourList; rpt_SelectTour.DataBind(); //是否有出发团队信息信息 if (TourList == null || TourList.Count == 0) { this.NoData.Visible = true; } Ibll = null; TourList = null; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.CurrencyPage = intPageIndex; this.ExportPageInfo1.UrlParams.Add("BeginDate", StrBeginDate); this.ExportPageInfo1.UrlParams.Add("EndDate", StrEndDate); this.ExportPageInfo1.UrlParams.Add("TourNumber", TourNumber); this.ExportPageInfo1.UrlParams.Add("RouteName", RouteName); this.ExportPageInfo1.UrlParams.Add("AreaId", AreaId.ToString()); this.ExportPageInfo1.UrlParams.Add("NeedId", Request.QueryString["NeedId"]); this.ExportPageInfo1.UrlParams.Add("iframeId", Request.QueryString["iframeId"]); this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; }