wei
2020-12-13 271015c6e90c195103cc7f34eda87966acd74dcc
HDL_ON/Entity/Room.cs
@@ -46,7 +46,7 @@
        public SpatialInfo(string spatialType)
        {
            roomType = "FLOOR";
            parentId = UserInfo.Current.CurReginID;
            parentId = DB_ResidenceData.Instance.CurrentRegion.RegionID;
        }
        public string roomId = "";
@@ -420,15 +420,19 @@
            rooms = null;
        }
        public void ClearRooms()
        public void Clear()
        {
            if (floors != null)
            if (_currentSpatial != null)
            {
                floors.Clear();
            }
            if (rooms != null)
            {
                rooms.Clear();
                if (_currentSpatial.floors != null)
                {
                    _currentSpatial.floors.Clear();
                }
                if (_currentSpatial.rooms != null)
                {
                    _currentSpatial.rooms.Clear();
                }
                _currentSpatial = null;
            }
        }