From 0c6057a603d1ce44ffe7ccbcecc2cf6cae5675f5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 01 七月 2021 14:19:58 +0800
Subject: [PATCH] 1

---
 HDL_ON/DAL/Server/HttpUtil.cs                                           |    4 
 HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs          |  148 +++++++++++++++++++++++++++--
 HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs       |   31 ++++-
 HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs                        |    4 
 HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs                         |    2 
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputView.cs |   43 +++++---
 HDL_ON/UI/UI2/3-Intelligence/Automation/OutdoorEnvironment.cs           |   16 ++-
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/BrandList.cs                   |    2 
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeView.cs           |   28 +++++
 9 files changed, 233 insertions(+), 45 deletions(-)

diff --git a/HDL_ON/DAL/Server/HttpUtil.cs b/HDL_ON/DAL/Server/HttpUtil.cs
index abe29fc..1673c11 100644
--- a/HDL_ON/DAL/Server/HttpUtil.cs
+++ b/HDL_ON/DAL/Server/HttpUtil.cs
@@ -18,8 +18,8 @@
         /// 鍏叡鍩熷悕灏辫繎瑙f瀽
         /// 
         /// </summary>
-        public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com";
-        //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";//mmmm
+        //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com";
+        public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";//mmmm
         /// <summary>
         /// RegionMark
         /// </summary>
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
index 5e24b64..3cbd448 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -69,6 +69,7 @@
                         }
                     }
                     break;
+                //姘存蹈浼犳劅鍣�
                 case SPK.SensorWater:
                     {
                         LogicView.FunTypeView view = new LogicView.FunTypeView();
@@ -85,7 +86,9 @@
 
                     }
                     break;
+                //鐑熼浘浼犳劅鍣�
                 case SPK.SensorSmoke:
+                //鐕冩皵浼犳劅鍣�
                 case SPK.SensorGas:
                     {
                         LogicView.FunTypeView view = new LogicView.FunTypeView();
@@ -102,6 +105,7 @@
 
                     }
                     break;
+                //骞叉帴鐐�
                 case SPK.SensorDryContact:
                     {
                         LogicView.FunTypeView view = new LogicView.FunTypeView();
@@ -118,8 +122,11 @@
 
                     }
                     break;
+                //绾㈠鐝婃爮浼犳劅鍣�
                 case SPK.SensorShanLan:
+                //绾㈠瀵瑰皠浼犳劅鍣�
                 case SPK.SensorDuiShe:
+                //绾㈠绉诲姩浼犳劅鍣�
                 case SPK.SensorPir:
                     {
                         LogicView.FunTypeView view = new LogicView.FunTypeView();
@@ -135,6 +142,7 @@
                         }
                     }
                     break;
+                //闂ㄧ獥浼犳劅鍣�
                 case SPK.SensorDoorWindow:
                     {
                         LogicView.FunTypeView view = new LogicView.FunTypeView();
@@ -150,6 +158,7 @@
                         }
                     }
                     break;
+                //瓒呭0娉紶鎰熷櫒
                 case SPK.SensoruUtrasonic:
                     {
 
@@ -175,6 +184,7 @@
                         }
                     }
                     break;
+                //姣背娉紶鎰熷櫒
                 case SPK.SenesorMegahealth:
                     {
                         LogicView.FunTypeView view = new LogicView.FunTypeView();
@@ -359,7 +369,7 @@
                 //鏄剧ず鏂囨湰
                 button.TextID = intValue;
                 selectedState = device.spk + "_" + value;
-                AddDictionary(keyVlaue, value);
+                AddDictionary(keyVlaue, value, "string");
 
             });
 
@@ -391,29 +401,34 @@
         /// </summary>
         /// <param name="KeyValue">璁惧灞炴�у�硷紝浜戦泙涓婂畾涔夊ソ鐨�</param>
         /// <param name="selectedValue">鐘舵�佸��</param>
-        private void AddDictionary(string KeyValue, string selectedValue)
+        /// <param name="data_type">绫诲瀷</param>
+        /// <param name="comparator">姣旇緝鍏崇郴</param>
+        private void AddDictionary(string KeyValue, string selectedValue,string data_type,string comparator="=")
         {
             //鏁版嵁灏佽
             Dictionary<string, string> dic = new Dictionary<string, string>();
             LogicMethod.dictionary(dic, "key", KeyValue);
-            LogicMethod.dictionary(dic, "comparator", "=");
-            LogicMethod.dictionary(dic, "data_type", "string");
+            LogicMethod.dictionary(dic, "comparator", comparator);
+            LogicMethod.dictionary(dic, "data_type", data_type);
             LogicMethod.dictionary(dic, "value", selectedValue);
-            AddDictionaryList(KeyValue, dic);
+            AddDictionaryList(KeyValue, comparator,dic);
         }
         /// <summary>
         /// 鏇存柊鏁版嵁鍒楄〃
         /// </summary>
-        /// <param name="keyValue">璁惧灞炴�у�硷紝浜戦泙涓婂畾涔夊ソ鐨�</param> 
+        /// <param name="keyValue">璁惧灞炴�у�硷紝浜戦泙涓婂畾涔夊ソ鐨�</param>
+        /// <param name="comparator">姣旇緝鍏崇郴</param>
         /// <param name="dictionary">娣诲姞閫変腑鏁版嵁</param>
         /// <returns></returns>
-        private void AddDictionaryList(string keyValue, Dictionary<string, string> dictionary) 
+        private void AddDictionaryList(string keyValue,string comparator, Dictionary<string, string> dictionary) 
         {
             int indexValue = -1;
             for (int i = 0; i < dicSateteList.Count; i++)
             {
                 var dic = dicSateteList[i];
-                if (dic.ContainsValue(keyValue))
+                string key = dic["key"];
+                string comparatorValue = dic["comparator"];
+                if (key == keyValue && comparatorValue == comparator)
                 {
                     //鍒ゆ柇鏄惁瀛樺湪
                     indexValue = i;
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index 8ccdfae..a2407f3 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -596,6 +596,8 @@
                 targetView.btnClick.Tag = outputTarget.sid;
                 ///鏉′欢鐘舵�佹暟缁�
                 List<Dictionary<string, string>> dicList = outputTarget.status as List<Dictionary<string, string>>;
+                //鏄剧ず鐘舵�佸��
+                string stateStr = "";
                 //鏄剧ず杈撳嚭鏉′欢鍚勭绫诲瀷鐘舵��
                 switch (outputTarget.target_type)
                 {
@@ -609,8 +611,7 @@
                             targetView.btnText.Text = device.name;
                             //鏀瑰彉璁惧鍚嶇О鏄剧ず鎺т欢瀹藉害
                             targetView.btnText.Width = Application.GetRealWidth(80);
-                            //绗竴涓彉閲忔樉绀虹姸鎬佸��
-                            string stateStr = "";
+                          
                             //鍖哄埆涓嶅悓璁惧锛屾樉绀轰笉鍚岃澶囩姸鎬�
                             switch (device.spk)
                             {
@@ -630,7 +631,6 @@
                                                 stateStr = Language.StringByID(StringId.offLogic);
                                             }
                                         }
-                                        targetView.btnState.Text = stateStr;
                                     }
                                     break;
                                 case SPK.LightRGB:
@@ -656,7 +656,7 @@
                                         {
                                             stateStr = brightness + "%";
                                         }
-                                        targetView.btnState.Text = stateStr;
+                                      
                                     }
                                     break;
                                 case SPK.CurtainSwitch:
@@ -685,7 +685,6 @@
                                                     break;
                                             }
                                         }
-                                        targetView.btnState.Text = stateStr;
                                     }
                                     break;
                                 case SPK.AcStandard:
@@ -777,11 +776,11 @@
                                         }
                                         if (on_off != "" && on_off == "off")
                                         {
-                                            targetView.btnState.Text = Language.StringByID(StringId.offLogic);
+                                            stateStr = Language.StringByID(StringId.offLogic);
                                         }
                                         else
                                         {
-                                            targetView.btnState.Text = stateStr.TrimEnd(',');
+                                            stateStr = stateStr.TrimEnd(',');
 
                                         }
 
@@ -875,11 +874,11 @@
                                         }
                                         if (on_off != "" && on_off == "off")
                                         {
-                                            targetView.btnState.Text = Language.StringByID(StringId.offLogic);
+                                            stateStr = Language.StringByID(StringId.offLogic);
                                         }
                                         else
                                         {
-                                            targetView.btnState.Text = stateStr.TrimEnd(',');
+                                            stateStr = stateStr.TrimEnd(',');
 
                                         }
                                     }
@@ -894,7 +893,7 @@
                             targetView.btnIcon.UnSelectedImagePath = "LogicIcon/scene.png";
                             targetView.btnNextIcon.Visible = false;
                             //鏄剧ず鍦烘櫙鍚嶇О
-                            targetView.btnText.Text = scene.name;
+                            stateStr = scene.name;
                         }
                         break;
                     case "3":
@@ -903,10 +902,19 @@
                             foreach (var dic in dicList)
                             {
                                 string value = dic["value"];
-                                targetView.btnText.Text = value;
+                                stateStr = value;
                             }
                         }
                         break;
+                }
+
+                if (outputTarget.target_type == "1")
+                {
+                    targetView.btnState.Text =new InpOrOutLogicMethod { }.GetTimeText(outputTarget.delay) + stateStr;
+                }
+                else
+                {
+                    targetView.btnText.Text = new InpOrOutLogicMethod { }.GetTimeText(outputTarget.delay)+ stateStr;
                 }
                 //鍐嶆缂栬緫鏉′欢鐘舵�佺偣鍑讳簨浠�
                 targetView.btnClick.MouseUpEventHandler += (sen, e) =>
@@ -954,6 +962,25 @@
                             }
                             break;
                     }
+                };
+                //寤舵椂鐐瑰嚮浜嬩欢
+                targetView.btnDelay.MouseUpEventHandler += (sen, e) =>
+                {
+
+                    InpOrOutLogicMethod inpOrOutLogicMethod = new InpOrOutLogicMethod();
+                    inpOrOutLogicMethod.Delayed(thisView, outputTarget, (value) =>
+                    {
+                        outputTarget.delay = value.ToString();
+                        if (outputTarget.target_type == "1")
+                        {
+                            targetView.btnState.Text = new InpOrOutLogicMethod { }.GetTimeText(outputTarget.delay) + stateStr;
+                        }
+                        else
+                        {
+                            targetView.btnText.Text = new InpOrOutLogicMethod { }.GetTimeText(outputTarget.delay) + stateStr;
+                        }
+                    });
+                 
                 };
                 ///鍒犻櫎鎺т欢
                 targetView.btnDel.MouseUpEventHandler += (sender, e) =>
@@ -1542,5 +1569,104 @@
             catch { }
             return name;
         }
+
+
+        /// <summary>
+        /// 寤舵椂鏃堕棿鏂规硶
+        /// </summary>
+        /// <param name="fLayout">鍦ㄥ摢涓晫闈㈡樉绀�</param>
+        /// <param name="edit">锛坱rue=缂栬緫锛沠alse=鏂板缓锛�</param>
+        /// <param name="index">缂栬緫鏉′欢鐨勭储寮�</param>
+        private void Delayed(FrameLayout thisFLayout, Output output,Action<int>action)
+        {
+            FrameLayout fLayout = new FrameLayout
+            {
+                BackgroundColor = CSS.CSS_Color.viewTrans60lucence,
+            };
+            thisFLayout.AddChidren(fLayout);
+            LogicView.TimeView timePointView = new LogicView.TimeView();
+            timePointView.FLayoutView(fLayout);
+            EventHandler<MouseEventArgs> RemovefLayout = (sender, e1) =>
+            {
+                //绉婚櫎fLayout鐣岄潰
+                fLayout.RemoveFromParent();
+            };
+            //鍙栨秷鐐瑰嚮浜嬩欢
+            timePointView.btnCancel.MouseUpEventHandler += RemovefLayout;
+
+            //鍔犺浇鏁版嵁鐣岄潰鐨勮缃柟娉�(鍒楄〃浜掍笉鑱斿姩)
+            timePointView.mUIPickerView.setNPicker(timePointView.GetmStringList(), timePointView.GetsStringList(), null);
+            //榛樿鍒濆閫変腑鐘舵��
+            timePointView.mUIPickerView.setCurrentItems(0, 5, 0);
+            //瀹氫箟涓�涓眬閮ㄥ彉閲忚褰曢�変腑鏃堕棿
+            int timepoint = 5;
+
+            if (output.delay != "0")
+            {
+                int intValue = int.Parse(output.delay);
+                var m = intValue / 60;
+                var s = intValue % 60;
+
+                string timeValue = m.ToString() + ":" + s.ToString();
+                int mIndex = timePointView.GetValueIndex(timeValue, 0, 1, timePointView.GetmIntList());
+                int sIndex = timePointView.GetValueIndex(timeValue, 1, 0, timePointView.GetmIntList());
+                //鏇存柊鍒濆鐘舵��
+                timePointView.mUIPickerView.setCurrentItems(mIndex, sIndex, 0);
+                timepoint = intValue;
+            }
+
+
+            //閫変腑鏃堕棿鍥炶皟鏂规硶,鏃堕棿鍙樺寲涓�娆″洖璋冧竴娆�
+            timePointView.mUIPickerView.OnSelectChangeEvent += (index1, index2, index3) =>
+            {
+                string minuet = timePointView.GethStringList0()[index1].Split(' ')[0];
+                string second = timePointView.GetmStringList()[index2].Split(' ')[0];
+                int minuetIntValue = int.Parse(minuet);
+                int secondIntValue = int.Parse(second);
+                timepoint = minuetIntValue*60+secondIntValue;
+            };
+            //纭畾鐐瑰嚮浜嬩欢
+            timePointView.btnConfirm.MouseUpEventHandler += (sender, e3) =>
+            {
+                if (timepoint==0)
+                {
+                    //鎻愮ず
+                    return;
+                }
+                fLayout.RemoveFromParent();
+                action(timepoint);
+            };
+        }
+        /// <summary>
+        /// 鑾峰彇鏃堕棿鏂囨湰鎻忚堪
+        /// </summary>
+        /// <param name="strTimeValue">鏃堕棿鍊硷紙鍗曚綅s绉掞級</param>
+        /// <returns></returns>
+        private string GetTimeText(string strTimeValue)
+        {
+            var timeValue = int.Parse(strTimeValue);
+            string state = "";
+            var minutes = timeValue / 60;
+            var seconds = timeValue % 60;
+            if (minutes != 0)
+            {
+                if (seconds == 0)
+                {
+                    state = minutes.ToString() + Language.StringByID(StringId.minute);
+                }
+                else
+                {
+                    state = minutes.ToString() + Language.StringByID(StringId.minute) + seconds.ToString() + Language.StringByID(StringId.s);
+                }
+            }
+            else
+            {
+                if (seconds != 0)
+                {
+                    state = seconds.ToString() + Language.StringByID(StringId.s);
+                }
+            }
+            return state;
+        }
     }
 }
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs
index e63e151..92d5437 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs
@@ -104,6 +104,10 @@
         /// </summary>
         public string sid = "";
         /// <summary>
+        /// 閫昏緫杈撳嚭鐩爣寤舵椂闂�(鍗曚綅鐢ㄧ)
+        /// </summary>
+        public string delay = "0";
+        /// <summary>
         /// 閫昏緫杈撳嚭鐩爣绫诲瀷
         /// 璁惧=1;
         /// 鍦烘櫙=2;
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputView.cs
index 37e2d2d..9f8dc40 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/AddOutputInputView.cs
@@ -7,11 +7,11 @@
         /// <summary>
         /// 涓绘帶浠禫iew
         /// </summary>
-        public FrameLayout frameLayout= new FrameLayout
+        public FrameLayout frameLayout = new FrameLayout
         {
             Height = Application.GetRealHeight(44),
             Width = Application.GetRealWidth(343),
-           BackgroundColor= CSS.CSS_Color.view,
+            BackgroundColor = CSS.CSS_Color.view,
             X = Application.GetRealWidth(LogicView.TextSize.left16),
         };
 
@@ -23,28 +23,28 @@
             Height = Application.GetRealHeight(43),
             Width = Application.GetRealWidth(343),
             LineColor = CSS.CSS_Color.viewTranslucence,
-            SubViewWidth=Application.GetRealWidth(68),
+            SubViewWidth = Application.GetRealWidth(68),
         };
         /// <summary>
         /// 锛堟潯浠舵垨鑰呯洰鏍囷級鍥炬爣
         /// </summary>
-        public Button btnIcon= new Button
+        public Button btnIcon = new Button
         {
-            Width= Application.GetRealWidth(28),
-            Height =Application.GetRealWidth(28),
+            Width = Application.GetRealWidth(28),
+            Height = Application.GetRealWidth(28),
             //Y = Application.GetRealHeight(8),
             X = Application.GetRealWidth(TextSize.left12),
-            
+
         };
         /// <summary>
         /// 锛堟潯浠舵垨鑰呯洰鏍囷級鏂囨湰鎻忚堪
         /// </summary>
-        public Button btnText= new Button
+        public Button btnText = new Button
         {
             TextSize = TextSize.text14,
             Width = Application.GetRealWidth(250),
             Height = Application.GetRealHeight(20),
-            TextColor= CSS.CSS_Color.textColor,
+            TextColor = CSS.CSS_Color.textColor,
             //Y=Application.GetRealHeight(12),
             X = Application.GetRealWidth(52),
         };
@@ -58,9 +58,9 @@
             Width = Application.GetRealWidth(130),
             Height = Application.GetRealHeight(17),
             TextColor = CSS.CSS_Color.textCancelColor,
-            Y=Application.GetRealHeight(14),
+            Y = Application.GetRealHeight(14),
             X = Application.GetRealWidth(165),
-            TextAlignment=TextAlignment.CenterRight,
+            TextAlignment = TextAlignment.CenterRight,
         };
 
         /// <summary>
@@ -81,13 +81,26 @@
         /// </summary>
         public Button btnLine = new Button
         {
-            Width=Application.GetRealWidth(279),
-            Y = Application.GetRealHeight(44-1),
+            Width = Application.GetRealWidth(279),
+            Y = Application.GetRealHeight(44 - 1),
             X = Application.GetRealWidth(52),
             Height = 1,
             BackgroundColor = CSS.CSS_Color.viewLine,
 
         };
+        /// <summary>
+        /// 寤舵椂
+        /// </summary>
+        public Button btnDelay = new Button
+        {
+            BackgroundColor = CSS.CSS_Color.AuxiliaryColor1,
+            TextID = StringId.delayLogic,
+            TextSize = LogicView.TextSize.text16,
+            TextColor = CSS.CSS_Color.view,
+        };
+        /// <summary>
+        /// 鍒犻櫎
+        /// </summary>
         public Button btnDel = new Button
         {
             BackgroundColor = CSS.CSS_Color.textRedColor,
@@ -95,7 +108,6 @@
             TextSize = LogicView.TextSize.text16,
             TextColor = CSS.CSS_Color.view,
         };
-       
         public Button btnClick = new Button
         {
             Height = Application.GetRealHeight(44),
@@ -117,12 +129,13 @@
             rowLayout.AddChidren(btnText);
             rowLayout.AddChidren(btnState);
             rowLayout.AddChidren(btnNextIcon);
+            rowLayout.AddRightView(btnDelay);
             rowLayout.AddRightView(btnDel);
             rowLayout.AddChidren(btnClick);
             btnLine.Y = frameLayout.Height - 1;
             frameLayout.AddChidren(btnLine);
 
         }
-      
+
     }
 }
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeView.cs
index a36dc65..a79324c 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeView.cs
@@ -72,7 +72,6 @@
         /// </summary>
         /// <returns></returns>
         public void FLayoutView(FrameLayout fLayout)
-        //public void FLayoutView(FrameLayout fLayout, string currState, Action<string> action)
         {
            
             fLayout.AddChidren(frameLayout);
@@ -80,7 +79,6 @@
             frameLayout.AddChidren(btnCancel);
             frameLayout.AddChidren(btnConfirm);
             frameLayout.AddChidren(btnLine);
-            //TimePoint(fLayout, action,currState);
         }
         /// <summary>
         /// 閫変腑鏃堕棿鐨勬柟娉�
@@ -248,6 +246,32 @@
 
             return mList;
         }
+        /// <summary> 
+        /// 鑾峰彇60绉掑垪琛�
+        /// </summary>
+        /// <returns></returns>
+        public List<string> GetsStringList()
+        {
+            //鍒濆鍖栧垪琛�
+            var mList = new List<string>();
+            for (int i = 0; i < 60; i++)
+            {
+                if (i < 10)
+                {
+                    var a = "0" + i.ToString();
+                    //娣诲姞鏁版嵁
+                    mList.Add(a + " " + Language.StringByID(StringId.s));
+                }
+                else
+                {
+                    //娣诲姞鏁版嵁
+                    mList.Add(i.ToString() + " " + Language.StringByID(StringId.s));
+                }
+
+            }
+
+            return mList;
+        }
 
         /// <summary>
         /// 鑾峰彇023灏忔椂鍒楄〃
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/OutdoorEnvironment.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/OutdoorEnvironment.cs
index 5781fc1..8d7f8e3 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/OutdoorEnvironment.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/OutdoorEnvironment.cs
@@ -75,7 +75,7 @@
             pmhigherView.btnLine.Width = Application.GetRealWidth(375 - 16 - 16);
             pmhigherView.btnText.TextID = StringId.PM25;
             viewLayout.AddChidren(pmhigherView.FLayoutView());
-          
+
 
             #endregion
 
@@ -110,7 +110,7 @@
                 PmAction(this);
 
             };
-          
+
 
             #endregion
         }
@@ -119,7 +119,7 @@
         /// </summary>
         /// <param name="textInt">鏂囨湰</param>
         /// <param name="stateValue">缂栬緫涔嬪墠鐨勭姸鎬佸��,榛樿涓�20</param>
-        public void InputBoxAction(int textInt,string stateValue="20")
+        public void InputBoxAction(int textInt, string stateValue = "20")
         {
             new LogicView.TipPopView { }.InputBox(textInt, stateValue, (value) =>
             {
@@ -217,7 +217,7 @@
         /// <param name="input"></param>
         /// <param name="keyValue"></param>
         /// <param name="comparator">姣旇緝鍏崇郴</param>
-        private void AddCondition(Input input, string keyValue,string comparator)
+        private void AddCondition(Input input, string keyValue, string comparator)
         {
             ///璁板綍绱㈠紩鍊�
             int index = -1;
@@ -261,7 +261,7 @@
         /// <param name="keyValue"></param>
         /// <param name="comparator">姣旇緝鍏崇郴</param>
         /// <returns></returns>
-        private bool ExistKey(List<Dictionary<string, string>> dicList, string keyValue, string comparator) 
+        private bool ExistKey(List<Dictionary<string, string>> dicList, string keyValue, string comparator)
         {
             for (int i = 0; i < dicList.Count; i++)
             {
@@ -277,7 +277,11 @@
             return false;
         }
 
-
+        /// <summary>
+        /// 鏁板�艰繑鍥炴枃鏈�
+        /// </summary>
+        /// <param name="strValue">鍊�</param>
+        /// <returns></returns>
         public string GetString(string strValue)
         {
             string text = "";
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs
index b234906..fbdbaf9 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Send.cs
@@ -92,6 +92,7 @@
                 {
                     var outputTypeJOb = new JObject { };
                     outputTypeJOb.Add("sid", dictionary.sid);
+                    outputTypeJOb.Add("delay", dictionary.delay);
                     outputTypeJOb.Add("target_type", dictionary.target_type);
                     var statusArray = new JArray { };
                     foreach (var dic in dictionary.status)
@@ -204,6 +205,7 @@
                 {
                     var outputTypeJOb = new JObject { };
                     outputTypeJOb.Add("sid", dictionary.sid);
+                    outputTypeJOb.Add("delay", dictionary.delay);
                     outputTypeJOb.Add("target_type", dictionary.target_type);
                     var statusArray = new JArray { };
                     foreach (var dic in dictionary.status)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/BrandList.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/BrandList.cs
index 1f4fb17..01056e8 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/BrandList.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/BrandList.cs
@@ -61,7 +61,7 @@
                         {
                             if (libraryList.Count < 60)
                             {
-                                //闄愬埗40涓簱锛�
+                                //闄愬埗60涓簱锛�
                                 libraryList.Add(library);
                             }
                         }

--
Gitblit v1.8.0