From 1410e38e50687272a162123552de122661d981ee Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 25 十一月 2020 17:53:04 +0800
Subject: [PATCH] 2020-11-25-2

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index 5648d36..c00a35e 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -59,7 +59,7 @@
                             inputView.btnIcon.UnSelectedImagePath = LogicMethod.GetIconPath(device.functionType);
                             //鏄剧ず璁惧鍚嶇О
                             inputView.btnText.Text = device.name;
-                            //鏀瑰彉璁惧鍚嶇О瀹藉害
+                            //鏀瑰彉璁惧鍚嶇О鏄剧ず鎺т欢瀹藉害
                             inputView.btnText.Width = Application.GetRealWidth(80);
                             //鍖哄埆涓嶅悓璁惧锛屾樉绀轰笉鍚岃澶囩姸鎬�
                             switch (device.functionType)
@@ -90,6 +90,10 @@
                 inputView.btnClick.MouseUpEventHandler += (sen, e) =>
                 {
                     Button button = (Button)sen;
+                    //鎵惧埌褰撳墠缂栬緫鐨勭储寮�
+                    int indexVulae = int.Parse(inputView.btnClick.Tag.ToString());
+                    //鏍囪缂栬緫鐘舵��
+                    bool edit = true;
                     switch (button.Name)
                     {
                         case "1":
@@ -100,7 +104,7 @@
                                 };
                                 thisView.AddChidren(fLayout);
                                 TimeTpye timeTpye = new TimeTpye();
-                                timeTpye.TimePoint(fLayout, true, int.Parse(inputView.btnClick.Tag.ToString()));
+                                timeTpye.TimePoint(fLayout, edit, indexVulae);
                             }
                             break;
                         case "2":
@@ -111,9 +115,22 @@
                                 };
                                 thisView.AddChidren(fLayout);
                                 TimeTpye timeTpye = new TimeTpye();
-                                timeTpye.TimeHorizon(fLayout, true, int.Parse(inputView.btnClick.Tag.ToString()));
+                                timeTpye.TimeHorizon(fLayout, edit, indexVulae);
                             }
                             break;
+
+                        case "3":
+                            {
+                                //鐢╯id鎵惧埌璁惧锛�
+                                var device = LogicMethod.GetDevice(inputCondition.sid);
+                                DeviceFunList deviceFunList = new DeviceFunList();
+                                MainPage.BasePageView.AddChidren(deviceFunList);
+                                deviceFunList.Show(device, indexVulae,edit);
+                                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                            }
+                            break;
+
+                        
                     }
                 };
             }

--
Gitblit v1.8.0