From ed2d2c9b9e9bca8cd97136b738c2624193dd9d92 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期日, 09 十月 2022 11:48:34 +0800 Subject: [PATCH] 百叶帘,编辑场景数据显示异常,光伏功能安卓系统返回上一次 --- HDL_ON/DAL/DriverLayer/Control.cs | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs index 6eebe22..d8c7d1d 100644 --- a/HDL_ON/DAL/DriverLayer/Control.cs +++ b/HDL_ON/DAL/DriverLayer/Control.cs @@ -1247,6 +1247,13 @@ //鏇存柊鐣岄潰鐘舵�� switch (localFunction.spk) { + case SPK.AcstParent: + AcstParentPage.UpdateAcstParentInfo(localFunction); + break; + case SPK.AcstSub: + AcstParentPage.UpdateAcstSubInfo(localFunction); + AcstSubPage.UpdateStatus(localFunction); + break; case SPK.AirSwitch: AirSwitchPage.UpdataState(localFunction); if(localFunction.GetAttribute(FunctionAttributeKey.Power)!=null)//濡傛灉鏄甫鐢甸噺鐨勭┖寮�涔熻鏇存柊鑳芥簮鐣岄潰 @@ -1276,6 +1283,8 @@ RGBPage.UpdataStates(localFunction); break; case SPK.LightRGBW: + localFunction.lastState = Language.StringByID(StringId.Brightness) + " : " + localFunction.GetAttrState(FunctionAttributeKey.Brightness) + "%"; + RGBWPage.UpdataStates(localFunction); break; case SPK.LightCCT: localFunction.lastState = Language.StringByID(StringId.Brightness) + " : " + localFunction.GetAttrState(FunctionAttributeKey.Brightness) + "%"; @@ -1302,6 +1311,8 @@ RollingShutterPage.UpdataState(localFunction); break; case SPK.CurtainShades: + localFunction.lastState = Language.StringByID(StringId.Open) + localFunction.GetAttrState(FunctionAttributeKey.Percent) + "%"; + VenetianBlindsPage.UpdataState(localFunction); break; case SPK.AcStandard: case SPK.HvacAC: @@ -1481,8 +1492,14 @@ //wjc break; case SPK.Inverter: + MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�"); var status = new Dictionary<string, object> { ["method"] = "status", ["data"] = temp.objects }; - Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); + MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�1"); + Application.RunOnMainThread(() => + { + Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); + }); + MainPage.Log("閫嗗彉鍣ㄦ暟鎹洿鏂�2"); break; } -- Gitblit v1.8.0