From 96e9ff2e5a54f54cdbb6b8b2f049fdf6a837de3c Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 23 八月 2023 14:28:22 +0800
Subject: [PATCH] 备份1

---
 OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs |   37 +------------------------------------
 1 files changed, 1 insertions(+), 36 deletions(-)

diff --git a/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs b/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
index 88447f3..bd11281 100644
--- a/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
+++ b/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
@@ -23,11 +23,7 @@
                 try
                 {
                     ShowFunction vv = ShowFunction.Light;
-                    if (SPK.ElectricalSpkList().Contains(function.spk))
-                    {
-                        vv = ShowFunction.Electric;
-                    }
-                    else if (SPK.FhSpkList().Contains(function.spk))
+                    if (SPK.FhSpkList().Contains(function.spk))
                     {
                         vv = ShowFunction.FloorHeating;
                     }
@@ -109,9 +105,6 @@
                                                             break;
                                                         case ShowFunction.Light:
                                                             btnText = FunctionList.List.GetLightList().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString();
-                                                            break;
-                                                        case ShowFunction.Electric:
-                                                            btnText = FunctionList.List.GetElectricals().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString();
                                                             break;
                                                         case ShowFunction.FreshAir:
                                                             btnText = FunctionList.List.GetAirFreshList().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString();
@@ -212,16 +205,6 @@
                                 Control.Ins.SendWriteCommand(f, d);
                             }
 
-                            foreach (var m in Music.A31MusicModel.A31MusicModelList)
-                            {
-                                if (m.functionMusic.roomIds.Contains(room.roomId))
-                                {
-                                    m.functionMusic.SetAttrState("on_off", "off");
-                                    Dictionary<string, string> dic = new Dictionary<string, string>();
-                                    dic.Add("on_off", "off");
-                                    Music.SendMethod.Current.SendControlCommand(m.functionMusic, dic);
-                                }
-                            }
                         })
                         { IsBackground = true }.Start();
 
@@ -365,16 +348,6 @@
                                         System.Threading.Thread.Sleep(sleepTime);
                                     }
                                     break;
-                                case ShowFunction.Electric:
-                                    foreach (var f in FunctionList.List.GetElectricals())
-                                    {
-                                        f.trait_on_off.curValue = onoff;
-                                        Dictionary<string, string> d = new Dictionary<string, string>();
-                                        d.Add(FunctionAttributeKey.OnOff, f.trait_on_off.curValue.ToString());
-                                        Control.Ins.SendWriteCommand(f, d);
-                                        System.Threading.Thread.Sleep(sleepTime);
-                                    }
-                                    break;
                                 case ShowFunction.FreshAir:
                                     foreach (var f in FunctionList.List.GetAirFreshList())
                                     {
@@ -414,14 +387,6 @@
                                         lightList.Add(f);
                                     }
                                     Control.Ins.SwtichFunctions(onoff == "on", lightList);
-                                    break;
-                                case ShowFunction.Electric:
-                                    List<Function> eleList = new List<Function>();
-                                    foreach (var f in FunctionList.List.GetElectricals())
-                                    {
-                                        eleList.Add(f);
-                                    }
-                                    Control.Ins.SwtichFunctions(onoff == "on", eleList);
                                     break;
                             }
 

--
Gitblit v1.8.0