From d3189eaa6be7c70ed5ac783efe68f43211a90d27 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 20 七月 2023 08:58:56 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' of http://172.16.1.23:6688/r/~wxr/OnPro into Dev-Branch --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs index 173a736..812dfa5 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs @@ -187,7 +187,9 @@ var list2 = this.GetVideoDeviceList(); list.AddRange(list1); list.AddRange(list2); - //GetTestDevice(ref list, true); +#if DEBUG + GetTestDevice(ref list, true); +#endif return list; } /// <summary> @@ -356,7 +358,7 @@ { return "MusicIcon/localMusic.png"; } - else if (SPK.SensorPm10 == device.spk || SPK.sensorPirhold == device.spk) + else if (SPK.SensorPm10 == device.spk || SPK.SensorPirHold == device.spk) { return "LogicIcon/sensor.png"; } @@ -467,7 +469,7 @@ case SPK.SensorTVOC: case SPK.SensorHcho: case SPK.SensorHelp: - case SPK.sensorPirhold: + case SPK.SensorPirHold: { strPath = "LogicIcon/sensor.png"; @@ -564,7 +566,7 @@ || device.spk == SPK.SensorHcho || device.spk == SPK.SensorHelp || device.spk == SPK.SensorPm10 - || device.spk == SPK.sensorPirhold + || device.spk == SPK.SensorPirHold ); if (sensor != null) { @@ -608,7 +610,7 @@ } ///鎽勫儚澶寸被 var camera = deviceList.Find((device) => - device.spk == SPK.IpCam_Imou); + device.spk == SPK.IpCam_Imou || device.spk == SPK.Ev_Ipcam || device.spk == SPK.Peephole); if (camera != null) { deviceStrTypeList.Add(Language.StringByID(StringId.shexiangtou)); @@ -689,7 +691,7 @@ functionTypeList.Add(SPK.SensorHcho); functionTypeList.Add(SPK.SensorHelp); functionTypeList.Add(SPK.SensorPm10); - functionTypeList.Add(SPK.sensorPirhold); + functionTypeList.Add(SPK.SensorPirHold); } @@ -726,10 +728,14 @@ else if (deviceType == Language.StringByID(StringId.shexiangtou)) { functionTypeList.Add(SPK.IpCam_Imou); + functionTypeList.Add(SPK.Ev_Ipcam); + functionTypeList.Add(SPK.Peephole); } else { //鍏ㄩ儴鍖哄煙 + functionTypeList.Add(SPK.Peephole); + functionTypeList.Add(SPK.Ev_Ipcam); functionTypeList.Add(SPK.LightSwitch); functionTypeList.Add(SPK.LightDimming); functionTypeList.Add(SPK.LightRGB); @@ -785,7 +791,7 @@ functionTypeList.Add(SPK.SensorPm10); functionTypeList.Add(SPK.VideoDoorLock); functionTypeList.Add(SPK.AcIr); - functionTypeList.Add(SPK.sensorPirhold); + functionTypeList.Add(SPK.SensorPirHold); } @@ -804,6 +810,8 @@ { case condition_if: { + deviceTypeList.Add(SPK.Ev_Ipcam); + deviceTypeList.Add(SPK.Peephole); deviceTypeList.Add(SPK.LightSwitch); deviceTypeList.Add(SPK.LightRGB); deviceTypeList.Add(SPK.LightRGBW); @@ -847,7 +855,7 @@ deviceTypeList.Add(SPK.SensorPm10); deviceTypeList.Add(SPK.VideoDoorLock); deviceTypeList.Add(SPK.AcIr); - deviceTypeList.Add(SPK.sensorPirhold); + deviceTypeList.Add(SPK.SensorPirHold); } break; @@ -1192,12 +1200,16 @@ // new Entity.Function { sid = "1234567892", name = "婀垮害浼犳劅鍣�", spk = Entity.SPK.SensorHumidity }, //new Entity.Function { sid = "12345678933456", name = "闂ㄩ攣", spk = Entity.SPK.DoorLock }, // new Entity.Function { sid = "1234567895444", name = "瑙嗛闂ㄩ攣", spk = Entity.SPK.VideoDoorLock }, - new Entity.Function { sid = "12345678968888", name = "浜轰綋瀛樺湪浼犳劅鍣�", spk = Entity.SPK.sensorPirhold }, + //new Entity.Function { sid = "12345678968888", name = "浜轰綋瀛樺湪浼犳劅鍣�", spk = Entity.SPK.SensorPirHold }, + new Entity.Function { sid = "12345678968888", name = "娴嬭瘯鐚溂", spk = Entity.SPK.Peephole }, + new Entity.Function { sid = "12345678968889", name = "娴嬭瘯钀ょ煶鎽勫儚澶�", spk = Entity.SPK.Ev_Ipcam }, // new Entity.Function { sid = "1234567897", name = "姣背娉紶鎰熷櫒1", spk = Entity.SPK.SenesorMegahealth2 }, // new Entity.Function { sid = "1234567899", name = "闂ㄧ浼犳劅鍣�", spk = Entity.SPK.SensorDoorWindow }, // new Entity.Function { sid = "12345678991234", name = "HDL鏈烘鎵�", spk = Entity.SPK.MechanicalArm }, // new Entity.Function { sid = "123456789912345", name = "娴锋浖鏈烘鎵�", spk = Entity.SPK.MechanicalArm }, - // new Entity.Function { sid = "12345678991234566", name = "娴锋浖鏈烘鎵�", spk = Entity.SPK.MechanicalArm }, + new Entity.Function { sid = "123456789912345668", name = "AC", spk = Entity.SPK.AcIr }, + new Entity.Function { sid = "12345678991234567", name = "RGB", spk = Entity.SPK.LightRGB }, + new Entity.Function { sid = "123456789912345678", name = "RGBW", spk = Entity.SPK.LightRGBW }, }; foreach (var function in functions) { -- Gitblit v1.8.0