| | |
| | | } |
| | | } |
| | | //保存设备房间索引 |
| | | Common.LocalDevice.Current.SaveRealDeviceRoomId(this.listNewDevice, roomKeys); |
| | | HdlRoomLogic.Current.SaveRealDeviceRoomId(this.listNewDevice, roomKeys); |
| | | }; |
| | | |
| | | //添加全部菜单 |
| | |
| | | //只有回路数大于1才能有这个菜单 |
| | | if (Common.LocalDevice.Current.GetDevicesCountByMac(listNewDevice[0].DeviceAddr) == 1) |
| | | { |
| | | //新风小模块只有一个回路,但要求新风小模块的新风有功能设置 |
| | | //空气质量传感器和新风小模块只有一个回路,但要求新风小模块的新风有功能设置 |
| | | //晾衣架默认只存储第一回路,其他回路被过滤了 |
| | | bool isSpecial = false; |
| | | if (deviceEnumInfo.ConcreteType == DeviceConcreteType.Relay_FangyueFreshAirModul) |
| | | if (deviceEnumInfo.ConcreteType == DeviceConcreteType.Relay_FangyueFreshAirModul || |
| | | deviceEnumInfo.ConcreteType == DeviceConcreteType.AirQualitySensor) |
| | | { |
| | | isSpecial = true; |
| | | } |
| | |
| | | isSpecial = true; |
| | | var dev = listNewDevice[0]; |
| | | //晾衣架默认只存储第一回路,其他回路在功能界面需要读取时间,所以提前一个界面获取 |
| | | for (int i = 3; i < 6; i++) |
| | | { |
| | | //注意,衣架中的状态由不同端点获取 |
| | | //回路3:读取风干开关状态和时间值 |
| | | //回路4:读取烘干开关状态和时间值 |
| | | //回路5:读取消毒开关状态和时间值 |
| | | HdlDeviceAttributeLogic.Current.SendAirerComand(dev, i); |
| | | } |
| | | //第一版时间功能由于设备不支持,暂时去掉,后期才加上 |
| | | //for (int i = 3; i < 6; i++) |
| | | //{ |
| | | // //注意,衣架中的状态由不同端点获取 |
| | | // //回路3:读取风干开关状态和时间值 |
| | | // //回路4:读取烘干开关状态和时间值 |
| | | // //回路5:读取消毒开关状态和时间值 |
| | | // HdlDeviceAttributeLogic.Current.SendAirerComand(dev, i); |
| | | //} |
| | | } |
| | | if (!isSpecial) |
| | | { |
| | |
| | | btnFunction.AddRightArrow(); |
| | | //底线 |
| | | btnFunction.AddBottomLine(); |
| | | |
| | | btnFunction.ButtonClickEvent += (sender, e) => |
| | | { |
| | | var form = new DeviceFunctionSettionForm(); |