From bfb3d0d4879dca8c59ff287c92f5113162f3a33a Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 27 八月 2024 15:22:48 +0800
Subject: [PATCH] 代码备份
---
OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs | 37 +------------------------------------
1 files changed, 1 insertions(+), 36 deletions(-)
diff --git a/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs b/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
index 88447f3..bd11281 100644
--- a/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
+++ b/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs
@@ -23,11 +23,7 @@
try
{
ShowFunction vv = ShowFunction.Light;
- if (SPK.ElectricalSpkList().Contains(function.spk))
- {
- vv = ShowFunction.Electric;
- }
- else if (SPK.FhSpkList().Contains(function.spk))
+ if (SPK.FhSpkList().Contains(function.spk))
{
vv = ShowFunction.FloorHeating;
}
@@ -109,9 +105,6 @@
break;
case ShowFunction.Light:
btnText = FunctionList.List.GetLightList().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString();
- break;
- case ShowFunction.Electric:
- btnText = FunctionList.List.GetElectricals().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString();
break;
case ShowFunction.FreshAir:
btnText = FunctionList.List.GetAirFreshList().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString();
@@ -212,16 +205,6 @@
Control.Ins.SendWriteCommand(f, d);
}
- foreach (var m in Music.A31MusicModel.A31MusicModelList)
- {
- if (m.functionMusic.roomIds.Contains(room.roomId))
- {
- 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);
- }
- }
})
{ IsBackground = true }.Start();
@@ -365,16 +348,6 @@
System.Threading.Thread.Sleep(sleepTime);
}
break;
- case ShowFunction.Electric:
- foreach (var f in FunctionList.List.GetElectricals())
- {
- 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;
case ShowFunction.FreshAir:
foreach (var f in FunctionList.List.GetAirFreshList())
{
@@ -414,14 +387,6 @@
lightList.Add(f);
}
Control.Ins.SwtichFunctions(onoff == "on", lightList);
- break;
- case ShowFunction.Electric:
- List<Function> eleList = new List<Function>();
- foreach (var f in FunctionList.List.GetElectricals())
- {
- eleList.Add(f);
- }
- Control.Ins.SwtichFunctions(onoff == "on", eleList);
break;
}
--
Gitblit v1.8.0