From 852764dc2873798d18bfa3fd5f43895720bd5437 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 22 十二月 2020 20:38:19 +0800
Subject: [PATCH] Merge branch 'NewFilePath' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into NewFilePath

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
index b5ba7b4..2497cbb 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
@@ -43,7 +43,7 @@
                 LogicView.SingleLogicView logicView = new LogicView.SingleLogicView();
                 vv.AddChidren(logicView.FLayoutView());
                 logicView.btnLogicName.Text = currLogic.name;
-                logicView.btnWeekText.Text = GetWeekText(currLogic);
+                logicView.btnWeekText.Text = GetCyclicText(currLogic);
                 logicView.btnclick.MouseUpEventHandler += (sen, e) =>
                 {
                     Logic.currlogic = currLogic;
@@ -135,7 +135,7 @@
         ///杩斿洖寰幆鎻忚堪鏂囨湰
         /// </summary>
         /// <param name="logic"></param>
-        public static string GetWeekText(Logic logic)
+        public static string GetCyclicText(Logic logic) 
         {
 
             string weekName = "";
@@ -168,7 +168,7 @@
             return weekName;
         }
         /// <summary>
-        /// 鑾峰彇鏄熸湡鐨勫瓧绗︿覆
+        /// 杩斿洖鏄熸湡鎻忚堪鏂囨湰
         /// </summary>
         /// <param name="weekList"></param>
         /// <returns></returns>
@@ -311,6 +311,12 @@
             //2-鍔熻兘鍥炬爣
             for (int i = 0; i < logic.input.Count; i++)
             {
+                if (logic.input[i] == null)
+                {
+                    //闃叉鏈夌殑绌哄璞★紱
+                    //姝e父鎯呭喌涓嬩笉浼氳鐜拌薄锛�
+                    continue;
+                }
 
                 var int1 = int.Parse(logic.input[i].condition_type);
                 int iconInt = 0;
@@ -347,6 +353,12 @@
             //14-寤舵椂鍥炬爣
             for (int i = 0; i < logic.output.Count; i++)
             {
+                if (logic.output[i] == null)
+                {
+                    //闃叉鏈夌殑绌哄璞★紱
+                    //姝e父鎯呭喌涓嬩笉浼氳鐜拌薄锛�
+                    continue;
+                }
                 var int1 = int.Parse(logic.output[i].target_type);
                 int iconInt = 0;
                 switch (int1)

--
Gitblit v1.8.0