Пример #1
0
        protected void LoadAreaTypeStateInfo()
        {
            //绑定出港城市
            rs_selCity.DataTextField  = "CityName";
            rs_selCity.DataValueField = "CityId";
            rs_selCity.DataSource     = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetCityList(SiteUserInfo.ProvinceId, -1, null, true, null);
            rs_selCity.DataBind();
            ListItem cityItem = new ListItem("选择全部出港城市", "");

            rs_selCity.Items.Insert(0, cityItem);
            //绑定类型区域团队统计信息
            EyouSoft.Model.TourStructure.AreaTypeStatInfo atsi = tourBll.GetAttentionTourByAreaTypeStats(SiteUserInfo.CompanyID);
            if (atsi != null)
            {
                allRoute   = atsi.All;
                longRoute  = atsi.Long;
                shortRoute = atsi.Short;
                exitRoute  = atsi.Exit;
            }
            //绑定线路区域
            EyouSoft.IBLL.CompanyStructure.ICompanyFavor favorBll = EyouSoft.BLL.CompanyStructure.CompanyFavor.CreateInstance();
            rs_selRouteArea.DataTextField  = "AreaName";
            rs_selRouteArea.DataValueField = "AreaId";
            rs_selRouteArea.DataSource     = favorBll.GetAllFavorArea(SiteUserInfo.CompanyID);
            rs_selRouteArea.DataBind();
            ListItem areaItem = new ListItem("请选择", "");

            rs_selRouteArea.Items.Insert(0, areaItem);
            //绑定专线商
            rs_selRouteCompany.DataTextField  = "CompanyName";
            rs_selRouteCompany.DataValueField = "ID";
            rs_selRouteCompany.DataSource     = favorBll.GetListCompany(SiteUserInfo.CompanyID);
            rs_selRouteCompany.DataBind();
            ListItem areaItem1 = new ListItem("请选择", "");

            rs_selRouteCompany.Items.Insert(0, areaItem1);
        }