Пример #1
0
        /// <summary>
        /// 绑定线路
        /// </summary>
        /// <param name="CompanyId"></param>
        private void BindCompanyPro(string CompanyId)
        {
            //总条数
            int recordCount = 0;

            EyouSoft.Model.NewTourStructure.MRouteSearch       Msearch   = new EyouSoft.Model.NewTourStructure.MRouteSearch();
            IList <EyouSoft.Model.NewTourStructure.MShopRoute> RouteList =
                new List <EyouSoft.Model.NewTourStructure.MShopRoute>();

            Msearch.Publishers  = CompanyId;
            Msearch.RouteStatus = (EyouSoft.Model.NewTourStructure.RouteStatus) 1;
            RouteList           = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetShopList(
                PageSize, PageIndex, ref recordCount, CompanyId, Msearch);

            if (RouteList.Count > 0 && RouteList != null)
            {
                this.PageInfoSelect1.intPageSize    = PageSize;
                this.PageInfoSelect1.intRecordCount = recordCount;
                this.PageInfoSelect1.CurrencyPage   = PageIndex;
                this.RptProductList.DataSource      = RouteList;
                this.RptProductList.DataBind();
            }
            else
            {
                this.PageInfoSelect1.Visible = false;
            }
        }
Пример #2
0
        /// <summary>
        /// 绑定团队列表
        /// </summary>
        protected void BindTourList()
        {
            int intRecordCount = 0;

            EyouSoft.Model.NewTourStructure.MRouteSearch Search = new EyouSoft.Model.NewTourStructure.MRouteSearch();
            if (Utils.GetQueryStringValue("CityId") != "" && Utils.GetQueryStringValue("CityId") != null)
            {
                this.dropLeaveCity.Items.FindByValue(Utils.GetQueryStringValue("CityId")).Selected = true;
            }
            Search.StartCity = Utils.GetInt(Utils.GetQueryStringValue("CityId"));
            if (Utils.GetQueryStringValue("RouteName") != "" && Utils.GetQueryStringValue("RouteName") != null)
            {
                this.txtRouteName.Value = Utils.GetQueryStringValue("RouteName");
            }
            Search.RouteKey = Utils.GetQueryStringValue("RouteName");
            if (Utils.GetQueryStringValue("Days") != "" && Utils.GetQueryStringValue("Days") != null)
            {
                this.txtDay.Value = Utils.GetQueryStringValue("Days");
            }
            Search.DayNum = Utils.GetInt(Utils.GetQueryStringValue("Days"));

            string StartDate = Utils.GetQueryStringValue("StartDate");

            if (StartDate != null && StartDate != "")
            {
                this.txtStartDate.Value = Utils.GetDateTime(Utils.GetQueryStringValue("StartDate")).ToString("yyyy-MM-dd");
            }
            Search.StartDate = Utils.GetDateTime(Utils.GetQueryStringValue("StartDate"));

            string EndDate = Utils.GetQueryStringValue("EndDate");

            if (EndDate != null && EndDate != "")
            {
                this.txtEndDate.Value = Utils.GetDateTime(Utils.GetQueryStringValue("EndDate")).ToString("yyyy-MM-dd");
            }
            Search.EndDate = Utils.GetDateTime(Utils.GetQueryStringValue("EndDate"));

            IList <EyouSoft.Model.NewTourStructure.MShopRoute> RouteList = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetShopList(PageSize, CurrencyPage, ref intRecordCount, this.Master.CompanyId, Search);

            if (RouteList != null && RouteList.Count > 0)
            {
                this.repTourList.DataSource = RouteList;
                this.repTourList.DataBind();
                this.ExportPageInfo1.intPageSize    = PageSize;
                this.ExportPageInfo1.intRecordCount = intRecordCount;
                this.ExportPageInfo1.CurrencyPage   = CurrencyPage;
                this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExportPageInfo1.UrlParams      = Request.QueryString;
            }
            else
            {
                this.repTourList.EmptyText = "<table  width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#C9DEEF\"><tr><td height=\"100px\" colspan=\"8\" align=\"center\">对不起,暂无旅游线路信息!</td></tr></table>";
            }
            RouteList = null;
        }
Пример #3
0
 /// <summary>
 /// 初始旅游线路  0最新旅游线路 1 推荐旅游线路
 /// </summary>
 private void InitTours(string companyId, int areaId, string tourSpreadState)
 {
     EyouSoft.Model.NewTourStructure.MRouteSearch Search = new EyouSoft.Model.NewTourStructure.MRouteSearch();
     Search.StartDate = Convert.ToDateTime(DateTime.Now.ToString("d"));
     if (tourSpreadState == "0")
     {
         IList <EyouSoft.Model.NewTourStructure.MShopRoute> RouteLList = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetShop4NearList(9, areaId, companyId, Search);
         if (RouteLList != null && RouteLList.Count > 0)
         {
             rptTours.DataSource = RouteLList;
             rptTours.DataBind();
         }
     }
     else
     {
         IList <EyouSoft.Model.NewTourStructure.MShopRoute> RouteRecommendList = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetShop4RecommendList(9, areaId, companyId, Search);
         if (RouteRecommendList != null && RouteRecommendList.Count > 0)
         {
             rptTours.DataSource = RouteRecommendList;
             rptTours.DataBind();
         }
     }
 }
Пример #4
0
        /// <summary>
        /// 绑定团队列表
        /// </summary>
        protected void BindTourList(string state)
        {
            int intRecordCount = 0;

            EyouSoft.Model.NewTourStructure.MRouteSearch Search = new EyouSoft.Model.NewTourStructure.MRouteSearch();
            if (Utils.GetQueryStringValue("CityId") != "" && Utils.GetQueryStringValue("CityId") != null)
            {
                this.dropLeaveCity.Items.FindByValue(Utils.GetQueryStringValue("CityId")).Selected = true;
            }
            Search.StartCity = Utils.GetInt(Utils.GetQueryStringValue("CityId"));
            if (Utils.GetQueryStringValue("RouteName") != "" && Utils.GetQueryStringValue("RouteName") != null)
            {
                this.txtRouteName.Value = Utils.GetQueryStringValue("RouteName");
            }
            Search.RouteKey = Utils.GetQueryStringValue("RouteName");
            if (Utils.GetQueryStringValue("Days") != "" && Utils.GetQueryStringValue("Days") != null)
            {
                this.txtDay.Value = Utils.GetQueryStringValue("Days");
            }
            Search.DayNum = Utils.GetInt(Utils.GetQueryStringValue("Days"));
            string StartDate = Utils.GetQueryStringValue("StartDate");

            if (StartDate != null && StartDate != "")
            {
                this.txtStartDate.Value = Utils.GetDateTime(Utils.GetQueryStringValue("StartDate")).ToString("yyyy-MM-dd");
                Search.StartDate        = Utils.GetDateTime(Utils.GetQueryStringValue("StartDate"));
            }
            else
            {
                Search.StartDate = Utils.GetDateTime(DateTime.Now.ToString("d"));
            }

            string EndDate = Utils.GetQueryStringValue("EndDate");

            if (EndDate != null && EndDate != "")
            {
                this.txtEndDate.Value = Utils.GetDateTime(Utils.GetQueryStringValue("EndDate")).ToString("yyyy-MM-dd");
            }
            Search.EndDate = Utils.GetDateTime(Utils.GetQueryStringValue("EndDate"));

            if (Utils.GetQueryStringValue("AreaId") != "" && Utils.GetQueryStringValue("AreaId") != null)
            {
                Search.AreaId = Utils.GetInt(Utils.GetQueryStringValue("AreaId"));
            }

            if (state == "2")
            {
                IList <EyouSoft.Model.NewTourStructure.MShopRoute> RouteRecommendList = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetShop4RecommendList(PageSize, CurrencyPage, ref intRecordCount, this.Master.CompanyId, Search);
                if (RouteRecommendList != null && RouteRecommendList.Count > 0)
                {
                    this.rptTourList.DataSource = RouteRecommendList;
                    this.rptTourList.DataBind();
                    this.ExporPageInfoSelect1.intPageSize          = PageSize;
                    this.ExporPageInfoSelect1.intRecordCount       = intRecordCount;
                    this.ExporPageInfoSelect1.CurrencyPage         = CurrencyPage;
                    this.ExporPageInfoSelect1.HrefType             = Adpost.Common.ExporPage.HrefTypeEnum.UrlHref;
                    this.ExporPageInfoSelect1.CurrencyPageCssClass = "RedFnt";
                    this.ExporPageInfoSelect1.LinkType             = 3;
                    this.ExporPageInfoSelect1.PageLinkURL          = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                    this.ExporPageInfoSelect1.UrlParams            = Request.QueryString;
                }
                else
                {
                    trNoData.Visible = true;
                }
                RouteRecommendList = null;
            }
            else
            {
                IList <EyouSoft.Model.NewTourStructure.MShopRoute> RouteNearList = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetShop4NearList(PageSize, CurrencyPage, ref intRecordCount, this.Master.CompanyId, Search);
                if (RouteNearList != null && RouteNearList.Count > 0)
                {
                    this.rptTourList.DataSource = RouteNearList;
                    this.rptTourList.DataBind();
                    this.ExporPageInfoSelect1.intPageSize          = PageSize;
                    this.ExporPageInfoSelect1.intRecordCount       = intRecordCount;
                    this.ExporPageInfoSelect1.CurrencyPage         = CurrencyPage;
                    this.ExporPageInfoSelect1.HrefType             = Adpost.Common.ExporPage.HrefTypeEnum.UrlHref;
                    this.ExporPageInfoSelect1.CurrencyPageCssClass = "RedFnt";
                    this.ExporPageInfoSelect1.LinkType             = 3;
                    this.ExporPageInfoSelect1.PageLinkURL          = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                    this.ExporPageInfoSelect1.UrlParams            = Request.QueryString;
                }
                else
                {
                    trNoData.Visible = true;
                }
                RouteNearList = null;
            }
        }