From f30c3a80fc170109e15e75f1477263d38026436e Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 21 五月 2024 15:33:25 +0800 Subject: [PATCH] 机械臂本地控制,安防中心成员限制 --- HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs index ade6e01..c0e43e7 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs @@ -219,7 +219,7 @@ m.functionMusic.SetAttrState("on_off", "off"); Dictionary<string, string> dic = new Dictionary<string, string>(); dic.Add("on_off", "off"); - Music.SendMethod.sendMethod.SendControlCommand(m.functionMusic, dic); + Music.SendMethod.Current.SendControlCommand(m.functionMusic, dic); } } }) @@ -385,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 @@ -423,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; } -- Gitblit v1.8.0