From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:25:59 +0800
Subject: [PATCH] 2024年07月25日17:24:45

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

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
index 0e8f778..7c6cfa8 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
@@ -214,9 +214,12 @@
 
                             foreach (var m in Music.A31MusicModel.A31MusicModelList)
                             {
-                                if (m.roomIds.Contains(room.roomId))
+                                if (m.functionMusic.roomIds.Contains(room.roomId))
                                 {
-                                    Music.SendMethod.Pause(m);
+                                    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);
                                 }
                             }
                         })
@@ -228,6 +231,10 @@
                 };
                 foreach (var f in room.GetRoomFunctions(false))
                 {
+                    //if(f.spk == SPK.OtherCommon)
+                    //{
+                    //    continue;
+                    //}
                     if (f.trait_on_off.curValue.ToString() == "on")
                     {
                         btn.Visible = true;
@@ -382,6 +389,16 @@
                                         System.Threading.Thread.Sleep(sleepTime);
                                     }
                                     break;
+                                case ShowFunction.MechanicalArm:
+                                    foreach (var f in FunctionList.List.GetMechanicalArmList())
+                                    {
+                                        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;
                             }
                         }
                         else
@@ -420,6 +437,14 @@
                                     }
                                     Control.Ins.SwtichFunctions(onoff == "on", eleList);
                                     break;
+                                case ShowFunction.MechanicalArm:
+                                    List<Function> meArmList = new List<Function>();
+                                    foreach (var f in FunctionList.List.GetMechanicalArmList())
+                                    {
+                                        meArmList.Add(f);
+                                    }
+                                    Control.Ins.SwtichFunctions(onoff == "on", meArmList);
+                                    break;
                             }
 
 

--
Gitblit v1.8.0