HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-10-12 dc6493db59dcb0893eac50b72122f94c24056b3f
ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs
@@ -364,6 +364,7 @@
                            //删除当前楼层的话,需要去刷新主页左边的房间列表
                            HdlRoomLogic.Current.RefreshRoomListView();
                        }
                        var uploadRoom = false;
                        var listDeleteId = new List<string>();
                        var listAllRoom = HdlRoomLogic.Current.GetAllListRooms();
                        for (int i = 0; i < listAllRoom.Count; i++)
@@ -371,6 +372,11 @@
                            if (listAllRoom[i].FloorId == keys)
                            {
                                listDeleteId.Add(listAllRoom[i].Id);
                            }
                            if (listAllRoom[i].ListDevice.Count > 0)
                            {
                                //需要上传空间区域
                                uploadRoom = true;
                            }
                        }
                        //删除房间
@@ -405,6 +411,11 @@
                            frameRow.RemoveFromParent();
                            //调整桌布高度
                            this.AdjustContrlTableHeight();
                        }
                        if (uploadRoom == true)
                        {
                            //上传空间区域信息
                            HdlRoomLogic.Current.SetRoomInfoToGateway();
                        }
                        //删除楼层的话,主页需要重新刷新
                        UserView.UserPage.Instance.RefreshAllForm = true;
@@ -625,6 +636,11 @@
                        //调整桌布高度
                        this.AdjustContrlTableHeight();
                    }
                    if (room.ListDevice.Count > 0)
                    {
                        //上传空间区域信息
                        HdlRoomLogic.Current.SetRoomInfoToGateway();
                    }
                    //删除房间的话,主页需要重新刷新
                    UserView.UserPage.Instance.RefreshAllForm = true;
                });