From 46cfc3decb9f162129e2dd6fad85aada638a9a3f Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 22 十二月 2020 20:38:08 +0800
Subject: [PATCH] 20201222-5
---
HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs | 39 ++++++++++++++++++++++++++++++++++-----
1 files changed, 34 insertions(+), 5 deletions(-)
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
index a7be412..efd0aab 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
@@ -475,16 +475,17 @@
{
foreach (var dictionary in dicSateteList)
{
- if (dictionary["key"] == "on_off")
+ string keyValue = dictionary["key"];
+ if (keyValue == "on_off")
{
if (dictionary["value"] == "off")
{
//绉婚櫎鍒楄〃鎵�鏈夋暟鎹�
dicSateteList.Clear();
- //閲嶆柊娣诲姞寮�鍏夊睘鎬ф暟鎹�
+ //閲嶆柊娣诲姞-鍏�-灞炴�ф暟鎹�
Dictionary<string, string> diction = new Dictionary<string, string>();
diction.Add("key", "on_off");
- diction.Add("value", "on_off");
+ diction.Add("value", "off");
dicSateteList.Add(diction);
break;
}
@@ -493,6 +494,34 @@
}
break;
}
+ case FunctionType.AC:
+ case FunctionType.FloorHeating:
+ {
+
+ //(绌鸿皟/鍦扮儹)鍋氫簡涓�涓壒娈婂鐞嗭紱
+ bool _bool = false;
+ for (int i = 0; i < dicSateteList.Count; i++)
+ {
+ var dic = dicSateteList[i];
+ if (dic.ContainsValue("on_off"))
+ {
+ //鍒ゆ柇鏄惁瀛樺湪
+ _bool = true;
+ break;
+ }
+ }
+ if (!_bool)
+ {
+ //娌℃湁寮�鍏冲氨榛樿娣诲姞-寮�-灞炴��
+ Dictionary<string, string> diction = new Dictionary<string, string>();
+ diction.Add("key", "on_off");
+ diction.Add("value", "on");
+ dicSateteList.Add(diction);
+ }
+
+
+ }
+ break;
}
outputDevice.status = dicSateteList;
@@ -739,7 +768,7 @@
LogicView.BrightnessView brightness = new LogicView.BrightnessView();
brightness.FLayoutView(frame, titleName, button.Text, (brightnesValue) =>
{
- button.Text = brightnesValue;
+ button.Text = brightnesValue+"%";
Dictionary<string, string> dic = new Dictionary<string, string>();
string keyVlaue = "";
switch (device.functionType)
@@ -841,7 +870,7 @@
case "brightness":
{
- button2.Text = value;
+ button2.Text = value+"%";
}
break;
}
--
Gitblit v1.8.0