gxc
2019-12-25 944b87b6bcccb095cd73f13f4410fb20faf48f74
ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs
@@ -123,10 +123,11 @@
            btnRoom.Text = Common.Room.CurrentRoom.GetRoomNameByDevice(device);
            frameTable.AddChidren(btnRoom, ChidrenBindMode.BindEventOnly);
            //摄氏度
            var btnValue = new NormalViewControl(150, 60, true);
            var btnValue = new NormalViewControl(300, 60, true);
            btnValue.Y = Application.GetRealHeight(58);
            btnValue.X = frameTable.Width - Application.GetRealWidth(150 + 58);
            btnValue.X = frameTable.Width - Application.GetRealWidth(300 + 58);
            btnValue.TextAlignment = TextAlignment.CenterRight;
            btnValue.TextID = R.MyInternationalizationString.uGetting;
            frameTable.AddChidren(btnValue, ChidrenBindMode.BindEventOnly);
            rowInfo.btnValue = btnValue;
            //警告图标
@@ -205,7 +206,7 @@
                    if (i != 0 && i % 5 == 0)
                    {
                        //读取5个后,间隔一段时间
                        System.Threading.Thread.Sleep(500);
                        System.Threading.Thread.Sleep(200);
                        if (this.Parent == null)
                        {
                            return;
@@ -215,6 +216,8 @@
                    ((AC)listDevice[i]).ReadLocalTemperature();
                    //获取开关状态(处于某种工作状态,即为打开状态)
                    ((AC)listDevice[i]).ReadSystemMode();
                    //清洗滤网
                    listDevice[i].ReadAttri(Cluster_ID.Thermostat, AttriButeId.FilterCleaningStatus);
                }
            });
        }
@@ -228,7 +231,7 @@
        /// </summary>
        private void StartReceiveDataEvent()
        {
            HdlDeviceAttributeLogic.Current.AddAttributeEvent("IndoorUnitListFormEvent", "DeviceStatusReport", (device) =>
            HdlGatewayReceiveLogic.Current.AddAttributeEvent("IndoorUnitListFormEvent", ReceiveComandDiv.A设备属性上报, (device) =>
            {
                string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(device);
                if (dicControl.ContainsKey(mainkeys) == false || device.DeviceStatusReport.CluterID != 513)
@@ -275,6 +278,16 @@
                            rowInfo.btnIconBack.BackgroundColor = 0xfffef1ed;
                        }
                    }
                    else if (data.AttributeId == 4097)
                    {
                        //42:需要清洗滤网
                        if (data.AttriButeData == 42)
                        {
                            rowInfo.btnWarningIcon.Visible = true;
                            //请注意清洗滤网哦
                            rowInfo.btnWarningMsg.TextID = R.MyInternationalizationString.uPleaseClreanACfilter;
                        }
                    }
                }
            });
        }
@@ -286,11 +299,11 @@
        /// <summary>
        /// 界面关闭
        /// </summary>
        public override void CloseForm()
        public override void CloseFormBefore()
        {
            HdlDeviceAttributeLogic.Current.RemoveEvent("IndoorUnitListFormEvent");
            HdlGatewayReceiveLogic.Current.RemoveEvent("IndoorUnitListFormEvent");
            base.CloseForm();
            base.CloseFormBefore();
        }
        #endregion