wxr
2024-05-21 f30c3a80fc170109e15e75f1477263d38026436e
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);
                                }
                            }
                        })
@@ -382,6 +385,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 +433,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;
                            }