wxr
2023-10-20 6de7f8a29b04737d80ad8cb17804fcc50d267bd9
HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -3,6 +3,7 @@
using System.Collections.Generic;
using HDL_ON.Entity;
using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock;
using Newtonsoft.Json;
namespace HDL_ON.UI.UI2.Intelligence.Automation
@@ -268,11 +269,11 @@
                case SPK.SensorHelp:
                    {
                        LogicView.FunTypeView view = new LogicView.FunTypeView();
                        view.btnText.TextID = StringId.qiujiuandzhengchang;
                        view.btnText.TextID = StringId.mubiaozhuangtai;
                        fLayout.AddChidren(view.FLayoutView());
                        view.btnClick.MouseUpEventHandler += (sender, e) =>
                        {
                            DeviceView(device, view.btnState, StringId.qiujiu, StringId.zhengchang );
                            DeviceView(device, view.btnState, StringId.qiujiu, StringId.zhengchang ,1);
                        };
                        if (edit)
                        {
@@ -997,11 +998,20 @@
                    case StringId.onLogic:
                        {
                            value = "on";
                            if (device.spk == SPK.SensorDryContact)
                            {
                                value = "open";
                            }
                        }
                        break;
                    case StringId.offLogic:
                        {
                            value = "off";
                            if (device.spk == SPK.SensorDryContact)
                            {
                                value = "close";
                            }
                        }
                        break;
                    case StringId.youren:
@@ -1115,7 +1125,7 @@
            if (device.spk == SPK.SensorLight)
            {
                //照明传感器
                max =int.MaxValue;
                max =1200;
            }
            new LogicView.TipPopView { }.InputBox(textInt, stateValue, (value) =>