From e87985ec1dcb69beedaf9f95e8e7aba14b7c08d6 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 09 十二月 2020 18:50:14 +0800
Subject: [PATCH] 2020-12-09 1.信息中心,增加下划线和点击Alter提醒详情。

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
index 35d231b..ea91731 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
@@ -34,11 +34,12 @@
             };
             //鑾峰彇鑷姩鍖栧垪琛�
             GetLogicList();
+            // for (int i = Logic.LogicList.Count-1; i >= 0; i--)闄嶅簭鎺掑垪
             for (int i = 0; i < Logic.LogicList.Count; i++)
             {
                 var currLogic = Logic.LogicList[i];
                 ///涓婁笅闂撮殧12鍍忕礌
-                vv.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12)});
+                vv.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12) });
                 LogicView.SingleLogicView logicView = new LogicView.SingleLogicView();
                 vv.AddChidren(logicView.FLayoutView());
                 logicView.btnLogicName.Text = currLogic.name;
@@ -66,10 +67,12 @@
                         logicView.btnSwitchIcon.IsSelected = false;
                         currLogic.enable = "false";
                     }
-                   Send.switchLogic(currLogic);
+                    Send.switchLogic(currLogic);
 
                 };
-                if (Logic.LogicList.Count-1==i) {
+                //if (i==0)闄嶅簭鎺掑垪
+                if (Logic.LogicList.Count - 1 == i)
+                {
                     ///鏈�鍚庝竴涓窛绂绘渶搴曢儴12,鐣岄潰鏄剧ず鏁堟灉浣滅敤;
                     vv.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12) });
                 }
@@ -228,7 +231,7 @@
             List<string> logicIdList = new List<string>();
             //鑾峰彇閫昏緫ID鍒楄〃
             var idStr = Send.getLogicIdList();
-            if (idStr.Code == "0" && idStr.Data != null)
+            if (idStr.Code == "0" && idStr.Data != null&& idStr.Data.ToString()!="")
             {
                 var date = Newtonsoft.Json.JsonConvert.SerializeObject(idStr.Data);
                 var dateList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Date>>(date);
@@ -240,7 +243,7 @@
             }
             //鑾峰彇鑷姩鍖栧垪琛�
             var logicStr = Send.getLogic(logicIdList);
-            if (logicStr.Code == "0" && logicStr.Data != null)
+            if (logicStr.Code == "0" && logicStr.Data != null && logicStr.Data.ToString() != "")
             {
                 //鑾峰彇閫昏緫璇︾粏杩斿洖鏄竴涓暟缁�(object绫诲瀷杞崲涓烘暟缁�);
                 var jArray = JArray.Parse(logicStr.Data.ToString());

--
Gitblit v1.8.0