Ejemplo n.º 1
0
        /// <summary>
        /// 根据ID,查询所有子区域
        /// </summary>
        /// <param name="Ba_AreaID"></param>
        /// <returns></returns>
        public static List <SoftProjectAreaEntity> Ba_Area_GetSubBa_AreaIDss(int?Ba_AreaID)
        {
            var item = Ba_Areas.Where(p => p.Ba_AreaID == Ba_AreaID).First();

            var lists = _Ba_Areas.Where(p => p.AreaParentCode == item.AreaCode);

            return(lists.ToList());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 根据ID查询
        /// </summary>
        /// <param name="Ba_AreaID"></param>
        /// <returns></returns>
        public static SoftProjectAreaEntity Ba_Area_GetByAreaID(int?Ba_AreaID)
        {
            var item = Ba_Areas.Where(p => p.Ba_AreaID == Ba_AreaID).First();

            return(item);
        }