From b084bd77d01a94c8f0a2d20c86a1f45ba7c8a23c Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 19 四月 2025 14:08:05 +0800
Subject: [PATCH] 页面跳转

---
 DevApp/Gs.DevApp/XtraForm1.cs |   87 ++++++++-----------------------------------
 1 files changed, 17 insertions(+), 70 deletions(-)

diff --git a/DevApp/Gs.DevApp/XtraForm1.cs b/DevApp/Gs.DevApp/XtraForm1.cs
index 49e5a3e..ad5953f 100644
--- a/DevApp/Gs.DevApp/XtraForm1.cs
+++ b/DevApp/Gs.DevApp/XtraForm1.cs
@@ -1,17 +1,5 @@
-锘縰sing DevExpress.XtraEditors;
-using DevExpress.XtraTreeList;
-using Gs.DevApp.Entity;
-using Gs.DevApp.ToolBox;
-using Newtonsoft.Json;
+锘縰sing DevExpress.Utils;
 using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
 
 namespace Gs.DevApp
 {
@@ -20,67 +8,26 @@
         public XtraForm1()
         {
             InitializeComponent();
-            tlMenu.ContextMenuStrip = contextMenuStrip1;
-            getTree();
+
         }
 
-        /// <summary>
-        ///     璇诲彇鍒楄〃
-        /// </summary>
-        private void getTree()
+        private void simpleButton1_Click(object sender, EventArgs e)
         {
-            var pgq = new PageQueryModel(1, 999999, "a.type_memo");
-            var json = JsonConvert.SerializeObject(pgq);
-            try
-            {
-                var strReturn =
-                    UtilityHelper.HttpPost("", "MesDefectTypeManager/GetListPage", json);
-                var dd = UtilityHelper.ReturnToTablePage(strReturn);
-                var dt = dd.rtnData.list;
-                tlMenu.DataSource = dt;
-                tlMenu.KeyFieldName = "guid";
-                tlMenu.ParentFieldName = "upGuid";
-                tlMenu.Tag = "typeMemo";
-                tlMenu.EndUpdate();
-                this.tlMenu.CollapseAll();
-                tlMenu.OptionsBehavior.Editable = true;
-                tlMenu.OptionsBehavior.AllowRecursiveNodeChecking = false;
-            }
-            catch (Exception ex)
-            {
-                MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
-            }
-        }
+            //toastNotificationsManager1 = new ToastNotificationsManager();
+            //VanishingMessage vm = new VanishingMessage(System.Drawing.Color.OrangeRed,  "鎿嶄綔鎴愭槬鏍戞毊浜戦《鎴存");
+            //vm.Show();
+            ToolTipControllerShowEventArgs aa = new ToolTipControllerShowEventArgs();
+            aa.AllowHtmlText = DefaultBoolean.True;
+            aa.Title = "璇︽儏"; //HTML, 绮椾綋 
+            aa.ToolTip = "浣犲ソ鐖变綘鐨勫厠鏍煎媰"; //鏂 
+            aa.ShowBeak = true;
+            aa.Rounded = true; ////鍦嗚 
+            aa.RoundRadius = 7; //鍦嗚鐜� 
+            aa.ToolTipType = ToolTipType.SuperTip; //瓒呯骇鏍峰紡锛屽彲澶氳鎴栨樉绀哄浘鏍� 
+            aa.ToolTipType = ToolTipType.Standard;//鏍囧噯鏍峰紡锛屽彲鏄剧ず楦熷槾銆� 
+            aa.IconType = ToolTipIconType.Information; //娑堟伅鍥炬爣 
+            aa.IconSize = ToolTipIconSize.Small; //澶у浘鏍� 
 
-        private void tlMenu_MouseDown(object sender, MouseEventArgs e)
-        {
-            if (e.Button == MouseButtons.Right)
-            {
-                var hitInfo = tlMenu.CalcHitInfo(new Point(e.X, e.Y));
-                if (hitInfo.HitInfoType == HitInfoType.Cell)
-                {
-                    tlMenu.FocusedNode = hitInfo.Node;
-                   contextMenuStrip1.Show(tlMenu, e.Location);
-                }
-            }
-        }
-
-        private void toolStripMenuItem1_Click(object sender, EventArgs e)
-        {
-            if (tlMenu.FocusedNode != null)
-            {
-                // 鍒犻櫎鑺傜偣鐨勯�昏緫
-                tlMenu.DeleteNode(tlMenu.FocusedNode);
-            }
-        }
-
-        private void toolStripMenuItem2_Click(object sender, EventArgs e)
-        {
-            if (tlMenu.FocusedNode != null)
-            {
-                // 淇敼鑺傜偣鐨勯�昏緫锛屼緥濡傛洿鏀硅妭鐐瑰��
-                tlMenu.FocusedNode.SetValue("鍒楀悕", "鏂板��"); // 鏇挎崲"鍒楀悕"鍜�"鏂板��"涓哄疄闄呭垪鍚嶅拰鍊�
-            }
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3