protected void DateInit() { //初使化查询条件 PageIndex = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetQueryStringValue("page"), 1); //线路名称 RouteName = EyouSoft.Common.Utils.GetQueryStringValue("_RouteName"); //出团时间 Starttime = EyouSoft.Common.Utils.GetDateTimeNullable(EyouSoft.Common.Utils.GetQueryStringValue("_Stratime")); //出游天数 TourDays = EyouSoft.Common.Utils.GetIntNull(EyouSoft.Common.Utils.GetQueryStringValue("_Tourdays")); //地接安排查询实体 EyouSoft.Model.TourStructure.TourSearchInfo Search = new EyouSoft.Model.TourStructure.TourSearchInfo(); //判断线路名称是否是空 if (RouteName == null) { Search.RouteName = null; } else { Search.RouteName = RouteName; } //判断出团时间是否是空 if (Starttime == null) { Search.SDate = null; Search.EDate = null; } else { Search.SDate = Starttime; Search.EDate = Starttime; } //判断出游天数是否是空 if (TourDays == null) { Search.TourDays = null; } else { Search.TourDays = TourDays; } //地接安排列表实体 IList <EyouSoft.Model.TourStructure.LBDJAPTourInfo> list = null; list = Tourbll.GetToursDJAP(SiteUserInfo.CompanyID, SiteUserInfo.LocalAgencyCompanyInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search); if (list != null && list.Count > 0) { this.len = list.Count; //数据绑定 this.Replist.DataSource = list; this.Replist.DataBind(); //设置分页 BindPage(); } else { this.ExporPageInfoSelect1.Visible = false; } }