protected void BindTourData() { int? cityId = Utils.GetIntNull(Utils.GetQueryStringValue("cityid")); //出港城市 string strAreaType = Utils.GetQueryStringValue("areatype"); //区域类型 switch (strAreaType) { case "0": longStyle = "style='color:red'"; break; case "1": exitStyle = "style='color:red'"; break; case "2": shortStyle = "style='color:red'"; break; case "3": allStyle = "style='color:red'"; break; } EyouSoft.Model.SystemStructure.AreaType?areaType = (strAreaType == "" || strAreaType == "3")?null: new System.Nullable <EyouSoft.Model.SystemStructure.AreaType>((EyouSoft.Model.SystemStructure.AreaType)Enum.Parse(typeof(EyouSoft.Model.SystemStructure.AreaType), strAreaType)); int? areaId = Utils.GetIntNull(Utils.InputText(Server.UrlDecode(Request.QueryString["routearea"] ?? ""))); //线路区域 string routeName = Utils.GetString(Utils.InputText(Server.UrlDecode(Request.QueryString["routename"] ?? "")), null); //线路名称 string companyId = Utils.GetString(Utils.InputText(Server.UrlDecode(Request.QueryString["companyid"] ?? "")), null); //专线商 DateTime?startTime = Utils.GetDateTimeNullable(Utils.InputText(Server.UrlDecode(Request.QueryString["starttime"] ?? "")), new System.Nullable <DateTime>()); //出团开始日期 DateTime?endTime = Utils.GetDateTimeNullable(Utils.InputText(Server.UrlDecode(Request.QueryString["endtime"] ?? "")), new System.Nullable <DateTime>()); //出团截止日期 IList <EyouSoft.Model.TourStructure.TourInfo> tourInfoList = tourBll.GetAttentionTours(pageSize, pageIndex, ref recordCount, SiteUserInfo.CompanyID, cityId, areaId, routeName, companyId, startTime, endTime, areaType); if (tourInfoList.Count > 0) { rs_rpt_tourList.DataSource = tourInfoList; rs_rpt_tourList.DataBind(); } else { rs_rpt_tourList.EmptyText = "<tr><td style='text-align:center;'>暂无团队信息</td></tr>"; this.rs_ExportPageInfo1.Visible = false; } tourInfoList = null; }