From 04eb05e6e14f48ad81261617aac167728119c3b3 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 18 十二月 2020 11:09:11 +0800
Subject: [PATCH] 2020-12-18-1

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs
index f8e11ad..62f95ea 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs
@@ -184,6 +184,19 @@
             ///淇濆瓨鐐瑰嚮浜嬩欢
             saveView.btnClick.MouseUpEventHandler += (sender, e) =>
             {
+
+                if (Logic.currlogic.input.Count == 0)
+                {
+                    new LogicView.TipPopView().FlashingBox("鏉′欢涓嶈兘涓虹┖");
+                    return;
+                }
+                if (Logic.currlogic.output.Count == 0)
+                {
+                    new LogicView.TipPopView().FlashingBox("鐩爣涓嶈兘涓虹┖");
+                    return;
+                }
+
+
                 Loading loading = new Loading();
                 this.AddChidren(loading);
                 HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null;
@@ -226,7 +239,7 @@
                                             //鏁版嵁杩斿簭鍒楀寲涓篖ogic瀵硅薄
                                             var str = Newtonsoft.Json.JsonConvert.SerializeObject(jay);
                                             var logic = Newtonsoft.Json.JsonConvert.DeserializeObject<Logic>(str);
-                                            if (logic.userLogicId!="")
+                                            if (logic.userLogicId != "")
                                             {
                                                 //鏇存柊浜戠鍞竴鑷姩鍖杋d;
                                                 Logic.currlogic.userLogicId = logic.userLogicId;

--
Gitblit v1.8.0