From c29cd36f584338731704b1eaf3d34ea47908e0e5 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 22 十二月 2020 13:38:39 +0800 Subject: [PATCH] 2020-12-22-3 --- HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs index 62f95ea..f6bb95b 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs @@ -184,19 +184,21 @@ ///淇濆瓨鐐瑰嚮浜嬩欢 saveView.btnClick.MouseUpEventHandler += (sender, e) => { - + if (Logic.currlogic.input.Count == 0&& Logic.currlogic.output.Count == 0) + { + new LogicView.TipPopView().TipBox(StringId.tip, StringId.conditioncNullOrtargetNull); + return; + } if (Logic.currlogic.input.Count == 0) { - new LogicView.TipPopView().FlashingBox("鏉′欢涓嶈兘涓虹┖"); + new LogicView.TipPopView().TipBox(StringId.tip, StringId.conditioncNull); return; } if (Logic.currlogic.output.Count == 0) { - new LogicView.TipPopView().FlashingBox("鐩爣涓嶈兘涓虹┖"); + new LogicView.TipPopView().TipBox(StringId.tip, StringId.targetNull); return; } - - Loading loading = new Loading(); this.AddChidren(loading); HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; @@ -256,6 +258,10 @@ LogicMethod.RemoveAllView(); MainView.MainShow(); } + else if (responsePackNew != null && responsePackNew.Code == "14005") + { + new LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.gatewayNotOnline)); + } else { new LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.saveFail)); @@ -292,7 +298,11 @@ LogicMethod.RemoveAllView(); MainView.MainShow(); } - else + else if (responsePackNew != null && responsePackNew.Code == "14005") + { + new LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.gatewayNotOnline)); + } + else { new LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.saveFail)); } -- Gitblit v1.8.0