From 3069c032027eeea7a14fa9f462440bb2d802d9a9 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 11 一月 2021 14:25:09 +0800
Subject: [PATCH] 20210111-合并代码

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs |   75 -------------------------------------
 1 files changed, 1 insertions(+), 74 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
index 6d5a498..140875b 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -85,7 +85,7 @@
                                 }
                                 //鏄剧ず鏂囨湰
                                 lightSwitchView.btnState.TextID = id;
-                                selectedState = device.functionType + "_" + strValue;
+                                selectedState = device.spk + "_" + strValue;
                                 //璁惧灞炴�у�硷紝浜戦泙涓婂畾涔夊ソ鐨�;
                                 string keyVlaue = "on_off";
                                 AddDictionary(keyVlaue, strValue);
@@ -149,46 +149,6 @@
 
         }
         /// <summary>
-        /// 寮�鍏冲姛鑳藉睍寮�鐣岄潰
-        /// </summary>
-        /// <param name="frame"></param>
-        /// <param name="device"></param>
-        /// <param name="button"></param>
-        /// <param name="len"></param>
-        public void SwitchViewMethod(FrameLayout frame, Entity.Function device, Button button, int len)
-        {
-
-            LogicView.SwitchView switchView = new LogicView.SwitchView();
-            switchView.FLayoutView(frame, len, button.Text, (Action<string>)((strValue) =>
-            {
-                int id = 0;
-                switch (strValue)
-                {
-                    case "on":
-                        {
-                            id = StringId.onLogic;
-                        }
-                        break;
-                    case "off":
-                        {
-                            id = StringId.offLogic;
-                        }
-                        break;
-                }
-                button.TextID = id;
-                keyVlaue = "on_off";
-                Dictionary<string, string> dic = new Dictionary<string, string>();
-                LogicMethod.dictionary(dic, "key", "on_off");
-                LogicMethod.dictionary(dic, "comparator", "=");
-                LogicMethod.dictionary(dic, "data_type", "string");
-                LogicMethod.dictionary(dic, "value", strValue);
-                AddDictionaryData(dicSateteList, keyVlaue, dic);
-                selectedState = device.spk + "_" + strValue;
-
-            }));
-
-        }
-        /// <summary>
         /// 鏄剧ず缂栬緫涔嬪墠鐨勮澶囩姸鎬�
         /// </summary>
         /// <param name="device">缂栬緫璁惧</param>
@@ -207,39 +167,6 @@
             {
                 //鏈夋暟鎹噸鏂拌祴鍊�
                 dicSateteList = dicList;
-            }
-            switch (device.spk)
-            {
-                //寮�鍏崇伅鍏� light.Switch
-                case SPK.LightDimming:
-                case SPK.LightRGB:
-                case SPK.LightRGBW:
-                case SPK.LightCCT:
-                case SPK.LightSwitch:
-                //绐楀笜
-                case SPK.CurtainSwitch:
-                case SPK.CurtainRoller:
-                case SPK.CurtainTrietex:
-                //绌鸿皟
-                case SPK.AcStandard:
-                //鍦扮儹
-                case SPK.FloorHeatStandard:
-                    {
-                        foreach (var dic in dicList)
-                        {
-                            string value = dic["value"];
-                            if (value == "on")
-                            {
-                                button1.Text = Language.StringByID(StringId.onLogic);
-                            }
-                            else
-                            {
-                                button1.Text = Language.StringByID(StringId.offLogic);
-                            }
-                        }
-                    }
-                    break;
-
             }
             InpOrOutLogicMethod.EditState(device, dicList, button1, button2, button3, button4);
         }

--
Gitblit v1.8.0