From a40848272e33822f72a7fe0310f079717bf73f23 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 18 十月 2024 16:21:39 +0800
Subject: [PATCH] 修复金茂科技系统,金茂光伏问题
---
HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
index ede9b51..89f04ba 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.mMethod.SendControlCommand(m.functionMusic, dic);
+ Music.SendMethod.Current.SendControlCommand(m.functionMusic, dic);
}
}
})
@@ -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,12 +389,30 @@
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
{
switch (functionCategory)
{
+ case ShowFunction.FreshAir:
+ List<Function> faList = new List<Function>();
+ foreach (var f in FunctionList.List.GetAirFreshList())
+ {
+ faList.Add(f);
+ }
+ Control.Ins.SwtichFunctions(onoff == "on", faList);
+ break;
case ShowFunction.AC:
List<Function> acList = new List<Function>();
foreach(var f in FunctionList.List.GetAcList())
@@ -423,6 +445,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;
}
@@ -430,7 +460,7 @@
}
catch (Exception ex)
{
- MainPage.Log($"{functionCategory}鍏ㄥ紑鍏ㄥ叧澶辫触:{ex.Message}");
+ MainPage.Log("Error", $"{functionCategory}鍏ㄥ紑鍏ㄥ叧澶辫触:{ex.Message}");
}
finally
{
--
Gitblit v1.8.0