From d89a8ccb3d48d39f920b294c1966a3522ee8adbc Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 23 二月 2021 17:17:37 +0800
Subject: [PATCH] 11

---
 HDL_ON/Entity/Function/Function.cs |   51 ++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 38 insertions(+), 13 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 639aa6e..59a077a 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -157,6 +157,19 @@
         /// 鍔熻兘鐘舵�佸垪琛�
         /// </summary>
         public List<AttributesStatus> status = new List<AttributesStatus>();
+        /// <summary>
+        /// 鑾峰彇鐘舵�佸��
+        /// </summary>
+        /// <returns></returns>
+        public string GetStatusValus(string key)
+        {
+            var d = status.Find((obj) => obj.key == key);
+            if(d==null)
+            {
+                return null;
+            }
+            return d.value;
+        }
 
         /// <summary>
         /// 鎴块棿ID鍒楄〃
@@ -653,25 +666,26 @@
         /// 褰撳墠鍊�
         /// </summary>
         public object curValue = new object();
-        /// <summary>
-        /// curValue鐨勭炕璇戝��,鏈�鍧忕殑缁撴灉涔熷彧浼氳繑鍥瀞tring.Empty
-        /// </summary>
-        public string realValue
-        {
-            get
-            {
-                var myValue = curValue.ToString();
-                //娌欓洉瀹氫箟鐨刼bject绫诲瀷
-                if (myValue.Contains("{") == true) { return string.Empty; }
-                return myValue;
-            }
-        }
+        ///// <summary>
+        ///// curValue鐨勭炕璇戝��,鏈�鍧忕殑缁撴灉涔熷彧浼氳繑鍥瀞tring.Empty
+        ///// </summary>
+        //public string realValue
+        //{
+        //    get
+        //    {
+        //        var myValue = curValue.ToString();
+        //        //娌欓洉瀹氫箟鐨刼bject绫诲瀷
+        //        if (myValue.Contains("{") == true) { return string.Empty; }
+        //        return myValue;
+        //    }
+        //}
     }
     /// <summary>
     /// 鍔熻兘灞炴�ч敭鍚嶅垪琛�
     /// </summary>
     public static class FunctionAttributeKey
     {
+        public const string _null = "";
         /// <summary>
         /// 寮�鍏�
         /// </summary>
@@ -720,6 +734,17 @@
         /// value
         /// </summary>
         public const string Value = "value";
+        /// <summary>
+        /// 鐘舵��,浼犳劅鍣�
+        /// </summary>
+        public const string Status = "status";
+
+        #region tuya
+        /// <summary>
+        /// 娑傞甫姘撮榾寮�鍚椂闂�
+        /// </summary>
+        public const string TuyaWaterTime = "countdown_1";
+        #endregion
     }
     /// <summary>
     /// 璁惧鍔熻兘oid

--
Gitblit v1.8.0