From a1b0a0e9ac707571a436272f41e3ee5aeef5aee2 Mon Sep 17 00:00:00 2001 From: nigel wei <nigelwei@192.168.5.223> Date: 星期六, 31 八月 2024 19:10:47 +0800 Subject: [PATCH] 金茂定制备份 --- HDL_ON/DAL/DriverLayer/Control.cs | 40 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs index 1773eb4..b8ea39d 100644 --- a/HDL_ON/DAL/DriverLayer/Control.cs +++ b/HDL_ON/DAL/DriverLayer/Control.cs @@ -1073,7 +1073,7 @@ } else { - MainPage.Log($"灞�鍩熺綉淇℃伅: 鏄庢枃锛�" + receiveObj.BodyDataString); + //MainPage.Log($"灞�鍩熺綉淇℃伅: 鏄庢枃锛�" + receiveObj.BodyDataString); } } @@ -1085,7 +1085,7 @@ { return null; } - MainPage.Log($"澶勭悊灞�鍩熺綉鏁版嵁id:{idMsg.id}"); + //MainPage.Log($"澶勭悊灞�鍩熺綉鏁版嵁id:{idMsg.id}"); } catch (Exception ex) @@ -1359,6 +1359,10 @@ AcstParentPage.UpdateAcstSubInfo(localFunction); AcstSubPage.UpdateStatus(localFunction); break; + case SPK.WaterHeaterJinmao: + AcstParentPage.UpdateAcstSubInfo(localFunction); + + break; case SPK.AirSwitch: AirSwitchPage.UpdataState(localFunction); if (localFunction.GetAttribute(FunctionAttributeKey.Power) != null)//濡傛灉鏄甫鐢甸噺鐨勭┖寮�涔熻鏇存柊鑳芥簮鐣岄潰 @@ -1492,11 +1496,13 @@ FloorHeatingPage.UpdataStates(localFunction); break; case SPK.SensorPm25: + case SPK.SensorPm10: case SPK.SensorCO2: case SPK.SensorTVOC: case SPK.SensorTemperature: case SPK.SensorHumidity: case SPK.SensorHcho: + case SPK.SensorLight: if (localFunction.spk == SPK.SensorTemperature) { HomePage.LoadEvent_RefreshEnvirIndoorTemp(); @@ -1537,7 +1543,6 @@ case SPK.ElectricTuyaWeepRobot2: case SPK.ElectricTuyaWaterValve: case SPK.ElectricTuyaWaterValve2: - case SPK.SensorPir: case SPK.SensorDoorWindow: case SPK.SensorSmoke: case SPK.SensorWater: @@ -1552,6 +1557,22 @@ //鐘舵�佹洿鏂� Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp.sid, updateTemp.status); break; + case SPK.SensorPir: + case SPK.SensorPirHold: + var tempPirStatus = localFunction.attributes.Find((sta) => sta.key == "people_status"); + if (tempPirStatus != null) + { + if(tempPirStatus.state == "true") + { + localFunction.lastState = Language.StringByID(StringId.Someone); + } + else + { + localFunction.lastState = Language.StringByID(StringId.wuren); + } + } + Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp.sid, updateTemp.status); + break; case SPK.SenesorMegahealth: case SPK.SenesorMegahealth2: case SPK.SensorMmvPose: @@ -1563,7 +1584,7 @@ switch (tempStatus.state) {//0绌猴紝1璧帮紝2璺戯紝3鍧愶紝4璺屽�掞紝5绔� case "0": - localFunction.lastState = Language.StringByID(StringId.SensorNormalState); + localFunction.lastState = Language.StringByID(StringId.wuren); break; case "1": localFunction.lastState = Language.StringByID(StringId.SomeoneIn); @@ -1600,6 +1621,17 @@ case SPK.MusicStandard: //UI.Music.MusicMain.mMusicMain.RefreshView(updateTemp); Console.WriteLine("闊充箰鎾斁鍣ㄦ樉绀虹姸鎬�=======" + revString); + foreach (var music in UI.Music.A31MusicModel.A31MusicModelList)//姣忔鏀跺埌鏁版嵁閮借鏇存柊涓�涓嬫椂闂� + { + if (music.functionMusic.sid == localFunction.sid) + { + music.LastDateTime = DateTime.Now; + } + } + if (UI.Music.A31MusicModel.Current != null) + { + UI.Music.A31MusicModel.Current.LastDateTime = DateTime.Now; + } //wjc break; case SPK.Inverter: -- Gitblit v1.8.0