Exemplo n.º 1
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());
                    }
                }
            }
        }