mac
2023-09-25 f7913245f890462eacb8754bbb6de12c82c3a416
2023年09月25日19:49:23

海信开,自动化和功能,分类都已经实现,场景还没有实现;
4个文件已修改
93 ■■■■■ 已修改文件
HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTVFunctionalAttributeConstant.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -1509,22 +1509,21 @@
                                    break;
                                case SPK.ElectricalTvHisense:
                                    {
                                        string on_off = GetKeyValue("on_off", dicList);
                                        string on = GetKeyValue("wol", dicList);
                                        string off = GetKeyValue("on_off", dicList);
                                        string volumet = GetKeyValue("set_volume", dicList);
                                        string signal = GetKeyValue("signal", dicList);
                                        if (!string.IsNullOrEmpty(on_off))
                                        {
                                            if (on_off == "on")
                                            {
                                                stateStr = Language.StringByID(StringId.onLogic);
                                            }
                                            else
                                            {
                                                stateStr = Language.StringByID(StringId.offLogic);
                                                //如果关了,其它属性不显示
                                                break;
                                            }
                                        if (!string.IsNullOrEmpty(off))
                                        {
                                            stateStr = Language.StringByID(StringId.offLogic);
                                            //如果关了,其它属性不显示
                                            break;
                                        }
                                        if (!string.IsNullOrEmpty(on))
                                        {
                                            stateStr = Language.StringByID(StringId.onLogic);
                                        }
                                        if (!string.IsNullOrEmpty(stateStr))
                                        {
@@ -2525,19 +2524,22 @@
                            {
                                case "on_off":
                                    {
                                        switch (value)
                                        if (value == "off")
                                        {
                                            case "on":
                                                {
                                                    button1.Text = Language.StringByID(StringId.onLogic);
                                                }
                                                break;
                                            case "off":
                                                {
                                                    button1.Text = Language.StringByID(StringId.offLogic);
                                                }
                                                break;
                                            button1.Text = Language.StringByID(StringId.offLogic);
                                        }
                                    }
                                    break;
                                case "wol":
                                    {
                                        if (value == "on")
                                        {
                                            button1.Text = Language.StringByID(StringId.onLogic);
                                        }
                                    }
                                    break;
HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
@@ -22,6 +22,10 @@
        /// </summary>
        private Button btnDelay =null;
        /// <summary>
        /// 当前设备
        /// </summary>
        private Function device;
        /// <summary>
        /// 定义一个记录选中设备状态列表;
        /// </summary>
        private List<Dictionary<string, string>> dicSateteList = new List<Dictionary<string, string>>();
@@ -32,6 +36,7 @@
        public void Show(Entity.Function device, int index, bool edit)
        {
            #region 界面布局
            this.device = device;
            this.BackgroundColor = CSS.CSS_Color.viewMiddle;
            LogicView.TopView topView = new LogicView.TopView();
            this.AddChidren(topView.FLayoutView());
@@ -1091,6 +1096,7 @@
                        }
                        break;
                }
                //界面显示选中值
                button.TextID = id;
                selectedState = device.spk + "_" + value;
@@ -1111,6 +1117,15 @@
                            if (button.Name == "colorful")
                            {
                                key = "colorful";
                            }
                        }
                        break;
                    case SPK.ElectricalTvHisense:
                        {
                            if ("on" == value)
                            {
                                key = "wol";
                            }
                        }
@@ -1301,6 +1316,22 @@
        /// <returns></returns>
        private void AddDictionaryList(string key, Dictionary<string, string> dictionary)
        {
            if (this.device.spk == SPK.ElectricalTvHisense)
            {
                //特殊处理
                if (key == "on_off")
                {
                    key = "wol";
                }
                else if (key == "wol")
                {
                    key = "on_off";
                }
            }
            int indexValue = -1;
            for (int i = 0; i < dicSateteList.Count; i++)
            {
@@ -1326,7 +1357,8 @@
                dicSateteList.Add(dictionary);
            }
        }
        }
        /// <summary>
        /// 添加目标
        /// </summary>
HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTVFunctionalAttributeConstant.cs
@@ -7,7 +7,11 @@
    public class HisenseTVFunctionalAttributeConstant
    {
        /// <summary>
        /// 开关(value:0-关/1-开)
        /// 网络唤醒(value:on)
        /// </summary>
        public const string wol = "wol";
        /// <summary>
        /// 关(value:0-关/1-开)
        /// </summary>
        public const string on_off = "on_off";
        /// <summary>
HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs
@@ -168,8 +168,7 @@
            //开机
            kaijiFL.SetClickListener((fl, btnImage, btnText) =>
            {
                //Send.Current.Open("b7686438");
                ControlCommand(HisenseTVFunctionalAttributeConstant.on_off, "on");
                ControlCommand(HisenseTVFunctionalAttributeConstant.wol, "on");
            });
            //关机