示例#1
0
        public static List <ProfileScoringClassifyEntryType> GetScoringClassify(this ProfileWayGradeEnum type)
        {
            if (_scoringClassify == null)
            {
                _scoringClassify = new List <ProfileScoringClassifyEntryType>();
            }
            else
            {
                _scoringClassify.Clear();
            }

            switch (type)
            {
            case ProfileWayGradeEnum.一级道路:
                _scoringClassify.Add(ProfileScoringClassifyEntryType.特级道路);
                _scoringClassify.Add(ProfileScoringClassifyEntryType.一级道路);
                break;

            case ProfileWayGradeEnum.二级道路:
                _scoringClassify.Add(ProfileScoringClassifyEntryType.二级道路);
                break;

            case ProfileWayGradeEnum.级及其它:
                _scoringClassify.Add(ProfileScoringClassifyEntryType.级道路);
                _scoringClassify.Add(ProfileScoringClassifyEntryType.背街小巷);
                break;

            default:
                break;
            }

            return(_scoringClassify);
        }
示例#2
0
        /// <summary>
        /// 获取道路等级关联的
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static List <ProfileScoringClassifyEntryType> GetWayGradeScoringClassify(ProfileWayGradeEnum type)
        {
            scoringClassify.Clear();

            switch (type)
            {
            case ProfileWayGradeEnum.一级道路:
                scoringClassify.Add(ProfileScoringClassifyEntryType.特级道路);
                scoringClassify.Add(ProfileScoringClassifyEntryType.一级道路);
                break;

            case ProfileWayGradeEnum.二级道路:
                _scoringClassify.Add(ProfileScoringClassifyEntryType.二级道路);
                break;

            case ProfileWayGradeEnum.级及其它:
                scoringClassify.Add(ProfileScoringClassifyEntryType.级道路);
                scoringClassify.Add(ProfileScoringClassifyEntryType.背街小巷);
                break;

            default:
                break;
            }

            return(_scoringClassify);
        }