Пример #1
0
 /// <summary>
 /// 初始化团队展示方式 默认按系统配置 当request params isdetails==1时,始终按明细团展示
 /// </summary>
 void InitTourDisplayType()
 {
     TourDisplayType = new EyouSoft.BLL.CompanyStructure.CompanySetting().GetSiteTourDisplayType(SiteUserInfo.CompanyID);
     if (Utils.GetQueryStringValue("isdetails") == "1")
     {
         TourDisplayType = EyouSoft.Model.EnumType.CompanyStructure.TourDisplayType.明细团;
     }
 }
Пример #2
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;
        }
Пример #3
0
        /// <summary>
        /// init tours
        /// </summary>
        void InitTours()
        {
            PageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            int recordCount = 0;

            TourDisplayType = new EyouSoft.BLL.CompanyStructure.CompanySetting().GetSiteTourDisplayType(Master.CompanyId);
            var searchInfo = new EyouSoft.Model.TourStructure.TourSearchInfo();

            searchInfo.RouteName  = Utils.GetQueryStringValue("routename");
            searchInfo.SDate      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("sldate"));
            searchInfo.EDate      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("eldate"));
            searchInfo.TourCityId = Utils.GetIntNull(Utils.GetQueryStringValue("cityid"));
            searchInfo.AreaId     = Utils.GetIntNull(Utils.GetQueryStringValue("areaid"));

            if (searchInfo.AreaId.HasValue && searchInfo.AreaId.Value == 0)
            {
                searchInfo.AreaId = null;
            }
            if (searchInfo.TourCityId.HasValue && searchInfo.TourCityId.Value == 0)
            {
                searchInfo.TourCityId = null;
            }
            if (searchInfo.SDate.HasValue || searchInfo.EDate.HasValue)
            {
                TourDisplayType = EyouSoft.Model.EnumType.CompanyStructure.TourDisplayType.明细团;
            }

            var items = new EyouSoft.BLL.TourStructure.Tour().GetToursSiteHot(Master.CompanyId, PageSize, PageIndex, ref recordCount, searchInfo, TourDisplayType);

            if (items != null && items.Count > 0)
            {
                rptTours.DataSource = items;
                rptTours.DataBind();

                divPaging.Visible = true;
                divEmpty.Visible  = false;

                paging.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                paging.UrlParams.Add(Request.QueryString);
                paging.intPageSize    = PageSize;
                paging.CurrencyPage   = PageIndex;
                paging.intRecordCount = recordCount;
            }
            else
            {
                divPaging.Visible = false;
                divEmpty.Visible  = true;
            }
        }
Пример #4
0
        /// <summary>
        /// 绑定线路专线
        /// </summary>
        protected void InitBindLine()
        {
            TourDisplayType = new EyouSoft.BLL.CompanyStructure.CompanySetting().GetSiteTourDisplayType(SiteUserInfo.CompanyID);
            tBll            = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo, true);
            aBll            = new EyouSoft.BLL.CompanyStructure.Area(SiteUserInfo);

            for (int i = 0; i < SiteUserInfo.Areas.Length; i++)
            {
                EyouSoft.Model.CompanyStructure.Area aModel = aBll.GetModel(SiteUserInfo.Areas[i]);
                if (aModel != null)
                {
                    IList <EyouSoft.Model.TourStructure.LBZTTours> li = tBll.GetToursZTDSY(SiteUserInfo.CompanyID, SiteUserInfo.Areas[i], 4, TourDisplayType);
                    if (li != null)
                    {
                        arealist.Add(li);
                        areaname.Add(aModel.AreaName);
                        areaIdList.Add(aModel.Id.ToString());
                    }
                }
            }
        }