HDL_ON/DAL/Server/HttpUtil.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
HDL_ON/DAL/Server/HttpUtil.cs
@@ -17,6 +17,7 @@ /// 固定域名,正式环境 /// 公共域名就近解析 /// </summary> //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";//mmmm /// <summary> HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -213,7 +213,25 @@ //毫米波传感器(自研北邮) case SPK.SenesorMegahealth: { int intValue =0; if (edit) { Input inputs = Logic.currlogic.input[index]; var dicList = inputs.condition; foreach (var dic in dicList) { if (dic["key"] == "target_status") { intValue = 1; } else { intValue = 2; } break; } } LogicView.FunTypeView view1= new LogicView.FunTypeView(); view1.btnText.TextID = StringId.diedaobaojing; view1.btnState.Name = Language.StringByID(StringId.diedaobaojing); @@ -228,6 +246,16 @@ view2.btnText.TextID = StringId.yourenbaojing; view2.btnState.Name = Language.StringByID(StringId.yourenbaojing); fLayout.AddChidren(view2.FLayoutView()); if (intValue==1) { view2.frameLayout.Visible = false; } if (intValue == 2) { view2.frameLayout.Y = Application.GetRealHeight(0); } view2.btnClick.MouseUpEventHandler += (sender, e) => { DeviceView(device, view2.btnState, StringId.youren, StringId.wuren, 2); HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
@@ -258,6 +258,7 @@ /// <param name="deviceList"></param> private void LoadingDeviceListView(VerticalScrolViewLayout verticalScrolView, List<HDL_ON.Entity.Function> deviceList) { loading.Start(); System.Threading.Tasks.Task.Run(() => { HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -2036,11 +2036,11 @@ { if (value == "true") { button1.Text = Language.StringByID(StringId.zaixian); button2.Text = Language.StringByID(StringId.zaixian); } else { button1.Text = Language.StringByID(StringId.buzaixian); button2.Text = Language.StringByID(StringId.buzaixian); } } break; @@ -2057,26 +2057,28 @@ string value = dic["value"]; switch (dic["key"]) { case "people_status": { if (value == "true") { button1.Text = Language.StringByID(StringId.youren); } else { button1.Text = Language.StringByID(StringId.wuren); } } break; case "target_status": { if (value == "4") { button2.Text = Language.StringByID(StringId.shi); button1.Text = Language.StringByID(StringId.shi); } } break; case "people_status": { if (value == "true") { button2.Text = Language.StringByID(StringId.youren); } else { button2.Text = Language.StringByID(StringId.wuren); } } break; } } HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
@@ -148,6 +148,8 @@ public List<HDL_ON.Entity.Room> GetGatewayRoomList() { return HDL_ON.Entity.SpatialInfo.CurrentSpatial.RoomList; } /// <summary> /// 获取网关房间列表 @@ -180,7 +182,9 @@ /// <returns></returns> public List<HDL_ON.Entity.Function> GetGatewayDeviceList() { return Entity.FunctionList.List.GetDeviceFunctionList(); var list = Entity.FunctionList.List.GetDeviceFunctionList(); //return GetTestDevice(list, true); return list; } /// <summary> /// 获取场景列表 @@ -590,6 +594,7 @@ } else { //全部区域 functionTypeList.Add(SPK.LightSwitch); functionTypeList.Add(SPK.LightDimming); functionTypeList.Add(SPK.LightRGB); @@ -1013,6 +1018,27 @@ /// 推送列表<这里数据已经推送过> /// </summary> private static List<Push> pushList = new List<Push>(); /// <summary> /// 获取模拟的设备列表 /// </summary> /// <param name="isBool">是否开启</param> /// <returns></returns> private List<Entity.Function> GetTestDevice(List<HDL_ON.Entity.Function> list, bool isBool) { if (isBool) { Entity.Function function = new Entity.Function { sid = "0123456789", name = "超声波传感器", spk = Entity.SPK.SensorUtrasonic }; var device = list.Find((o) => { return o.sid == function.sid; }); if (device == null) { list.Add(function); } } return list; } } public class Push