Exemplo n.º 1
0
        /// <summary>
        /// 绑定线路列表
        /// </summary>
        protected void BindInitLineProducts(int?LineTypeID, string LineName, DateTime?StarTime, DateTime?EndTime)
        {
            EyouSoft.Model.TourStructure.TourSearchInfo ModelTourSearch = new EyouSoft.Model.TourStructure.TourSearchInfo();
            //出团结束时间
            ModelTourSearch.EDate = EndTime;
            //出团开始时间
            ModelTourSearch.SDate = StarTime;
            //线路名称
            ModelTourSearch.RouteName = LineName;
            //线路区域编号
            ModelTourSearch.AreaId = LineTypeID;

            ModelTourSearch.Areas = SiteUserInfo.Areas;

            //线路筛选
            if (Request.QueryString["xlid"] != "" && Request.QueryString["xlid"] != null)
            {
                ModelTourSearch.AreaId = Utils.GetInt(Utils.GetQueryStringValue("xlid"));
            }

            //获取首页团号
            if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("tourid")))
            {
                ModelTourSearch.TourId = Utils.GetQueryStringValue("tourid");
            }
            ModelTourSearch.TourCityId = Utils.GetIntNull(Utils.GetQueryStringValue("cityID"));

            if (ModelTourSearch.SDate.HasValue || ModelTourSearch.EDate.HasValue)
            {
                TourDisplayType = EyouSoft.Model.EnumType.CompanyStructure.TourDisplayType.明细团;
            }

            //组团端计划列表
            IList <EyouSoft.Model.TourStructure.LBZTTours> LBZTToursList = new List <EyouSoft.Model.TourStructure.LBZTTours>();

            //计划中心业务类
            EyouSoft.BLL.TourStructure.Tour BllTour = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo, false);
            //获取组团端计划列表
            LBZTToursList = BllTour.GetToursZTD(SiteUserInfo.CompanyID, PageSize, PageIndex, ref RecordCount, ModelTourSearch, TourDisplayType);
            if (LBZTToursList.Count > 0)
            {
                this.LineProductLists.DataSource = LBZTToursList;
                this.LineProductLists.DataBind();
                BinPage();
            }
            else
            {
                this.ExporPageInfoSelect1.Visible = false;
            }

            ModelTourSearch = null;
            LBZTToursList   = null;
            BllTour         = null;
        }