From 774baeb1f5d2d49bfd692b79faa240bd7949dc17 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 02 九月 2021 10:06:48 +0800
Subject: [PATCH] 2021-09-02 1.更新控件库,iOS裁剪支持指定大小或者不压缩。2.更新linphoneiOS和Android库,监视关闭麦克风。3.Android丰林和乐橙截图后增加广播推送系统相册刷新。
---
HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs | 77 +++++++++++++++++++++++++++++++++++---
1 files changed, 71 insertions(+), 6 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs
index 9d0a8c2..ded7468 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs
@@ -150,6 +150,11 @@
//鍒濆鍊�
functions = FunctionList.List.GetArmSensorList();
}
+
+#if DEBUG
+ functions.AddRange(FunctionList.List.GetLightList());
+#endif
+
foreach (var function in functions)
{
var input = securityAlarm.input.Find((obj) => obj.sid == function.sid);
@@ -157,6 +162,28 @@
{
input = new SecurityInput();
input.sid = function.sid;
+
+ input.condition = new List<SecurityInputCondition>()
+ {
+ new SecurityInputCondition()
+ {
+ key = "status",
+ value = "true",
+ }
+ };
+
+ if (function.spk == SPK.LightSwitch || function.spk == SPK.LightRGB || function.spk == SPK.LightDimming)
+ {
+ input.condition = new List<SecurityInputCondition>()
+ {
+ new SecurityInputCondition()
+ {
+ key = FunctionAttributeKey.OnOff,
+ value = "off",
+ }
+ };
+ }
+
}
else
{
@@ -222,10 +249,10 @@
if(btnChooseIcon.IsSelected)
{
input.addCondition = true;
- if (input.condition.Count==0)
- {
- ShowStateDialog(input, btnState,btnChooseIcon);
- }
+ //if (input.condition.Count==0)
+ //{
+ // ShowStateDialog(input, btnState,btnChooseIcon,function.spk);
+ //}
}
else
{
@@ -234,7 +261,16 @@
};
btnState.MouseUpEventHandler = (sender, e) =>
{
- ShowStateDialog(input, btnState, btnChooseIcon);
+ //ShowStateDialog(input, btnState, btnChooseIcon, function.spk);
+ btnChooseIcon.IsSelected = !btnChooseIcon.IsSelected;
+ if (btnChooseIcon.IsSelected)
+ {
+ input.addCondition = true;
+ }
+ else
+ {
+ input.addCondition = false;
+ }
};
@@ -258,7 +294,7 @@
}
- private void ShowStateDialog(SecurityInput input,Button btnState,Button btnChoose = null)
+ private void ShowStateDialog(SecurityInput input,Button btnState,Button btnChoose ,string spk)
{
Dialog dialog = new Dialog();
@@ -340,6 +376,21 @@
value = "true",
}
};
+
+ if (spk == SPK.LightSwitch || spk == SPK.LightRGB || spk == SPK.LightDimming)
+ {
+ input.condition = new List<SecurityInputCondition>()
+ {
+ new SecurityInputCondition()
+ {
+ key = FunctionAttributeKey.OnOff,
+ value = "on",
+ }
+ };
+ }
+
+
+
input.addCondition = true;
if (btnChoose != null)
{
@@ -359,6 +410,20 @@
value = "false",
}
};
+
+ if (spk == SPK.LightSwitch || spk == SPK.LightRGB || spk == SPK.LightDimming)
+ {
+ input.condition = new List<SecurityInputCondition>()
+ {
+ new SecurityInputCondition()
+ {
+ key = FunctionAttributeKey.OnOff,
+ value = "off",
+ }
+ };
+ }
+
+
input.addCondition = true;
if (btnChoose != null)
{
--
Gitblit v1.8.0