Пример #1
0
        /// <summary>
        /// 获取加盟旅行社列表
        /// </summary>
        private void GetJoinTravelList()
        {
            EyouSoft.Model.CompanyStructure.QueryNewCompany modelsearch = new EyouSoft.Model.CompanyStructure.QueryNewCompany();
            modelsearch.CompanyTypes = new CompanyType?[] { CompanyType.组团 };
            modelsearch.B2BDisplay   = CompanyB2BDisplay.侧边推荐;
            modelsearch.OrderIndex   = 3;
            IList <CompanyDetailInfo> list = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetAllCompany(10, modelsearch);

            if (list != null && list.Count > 0)
            {
                this.rptJoinTraveList.DataSource = list;
                this.rptJoinTraveList.DataBind();
            }
            else
            {
                this.lbjoinTrave.Visible = true;
                this.lbjoinTrave.Text    = "暂无加盟旅行社!";
            }
        }
Пример #2
0
        /// <summary>
        /// 获取旅游企业
        /// </summary>
        protected void GetNewsOrdeyBy()
        {
            //获取旅游企业[10条]
            EyouSoft.Model.CompanyStructure.QueryNewCompany company = new EyouSoft.Model.CompanyStructure.QueryNewCompany();
            company.IsShowNoCheck = true;
            company.B2BDisplay    = EyouSoft.Model.CompanyStructure.CompanyB2BDisplay.侧边推荐;
            company.CompanyTypes  = new CompanyType?[] { CompanyType.地接, CompanyType.专线 };
            company.OrderIndex    = 3;
            IList <EyouSoft.Model.CompanyStructure.CompanyDetailInfo> HotList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetAllCompany(10, company);
            StringBuilder strHotList = new StringBuilder();

            if (HotList != null && HotList.Count > 0)
            {
                for (int i = 0; i < HotList.Count; i++)
                {
                    strHotList.AppendFormat("<li><a href='{0}' title='{2}' target=\"_blank\">{1}</a></li>", EyouSoft.Common.Utils.GetDomainByCompanyId(HotList[i].ID, CityId), EyouSoft.Common.Utils.GetText(HotList[i].CompanyName, 16), HotList[i].CompanyName);
                }
            }
            else
            {
                strHotList.Append("<ul><li>暂无旅游企业信息</li></ul>");
            }
            HotLists = strHotList.ToString();
        }