From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期三, 25 十二月 2019 11:21:06 +0800 Subject: [PATCH] 2019.12.25 --- ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs | 27 ++++++++++++++++++++------- 1 files changed, 20 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs index 2c63cd3..b61a0b0 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs +++ b/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 -- Gitblit v1.8.0