gxc
2019-11-15 05ce435c3b58e53eeab04c672affdeeab75f3036
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);
                }
            });
        }
@@ -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;
                        }
                    }
                }
            });
        }