Пример #1
0
 /// <summary>
 /// 根据园区ID获取显示区域
 /// </summary>
 /// <param name="regionId"></param>
 /// <returns></returns>
 public List <EnumModel> GetShowAreaByRegionId(int regionId)
 {
     try
     {
         ServAreaInfoDAL          servAreaInfoDal = new ServAreaInfoDAL();
         List <EnumModel>         enumList        = new List <EnumModel>();
         EnumModel                enumModel       = null;
         List <ServAreaInfoModel> areaList        = servAreaInfoDal.GetAreaInfoTree(regionId);
         for (int i = 0; i < areaList.Count; i++)
         {
             enumModel       = new EnumModel();
             enumModel.key   = areaList[i].id;
             enumModel.value = areaList[i].area_name;
             enumList.Add(enumModel);
         }
         return(enumList);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }