From f54a487bb42ac49bf81bd7b5eea311fc79231bc6 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期四, 06 六月 2024 17:37:22 +0800
Subject: [PATCH] 备份
---
HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
index 88447f3..7c6cfa8 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
@@ -231,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;
@@ -385,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
@@ -423,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