From 851629329b2829b133bcdc56b0a75803f9c48b65 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期六, 12 七月 2025 15:18:14 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/QC/DefectCode.cs | 44 +++++++++----------------------------------- 1 files changed, 9 insertions(+), 35 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/DefectCode.cs b/DevApp/Gs.DevApp/DevFrm/QC/DefectCode.cs index 8ae7cc6..e82a529 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/DefectCode.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/DefectCode.cs @@ -1,17 +1,12 @@ -锘縰sing DevExpress.XtraEditors; -using DevExpress.XtraTreeList.Nodes; +锘縰sing DevExpress.XtraTreeList.Nodes; using DevExpress.XtraTreeList; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; 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.DevFrm.QC @@ -26,9 +21,6 @@ { InitializeComponent(); strType = _strType; - toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; - this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; - tlMenu.IndicatorWidth = 50; tlMenu.CustomDrawNodeIndicator += (s, ee) => { @@ -93,11 +85,11 @@ tlMenu.DeleteNode(tlMenu.FocusedNode); } else - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); } catch (Exception ex) { - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } }; @@ -151,32 +143,10 @@ toolStripMenuItemAdd.Visible = false; toolStripMenuItemEdt.Visible = false; toolStripMenuItemDel.Visible = false; - toolStripMenuItemRoot.Visible = true; + toolStripMenuItemRoot.Visible = false;//2025/07//11鏀逛负涓嶅鍔犱富椤圭洰浜� cms1.Show(tlMenu, e.Location); } } - } - - - /// <summary> - /// 鏌ヨ浜嬩欢 - /// </summary> - /// <param name="sender"></param> - /// <param name="e"></param> - private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) - { - Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇ョ獥浣撲笉鏀寔鏌ヨ锛岃嫢鎯虫洿鏂伴〉闈紝璇风偣鍑� 鍒锋柊"); - } - - /// <summary> - /// 鍒锋柊浜嬩欢 - /// </summary> - /// <param name="sender"></param> - /// <param name="e"></param> - private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) - { - _filterList.Clear(); - getPageList(1); } /// <summary> /// @@ -199,12 +169,16 @@ tlMenu.KeyFieldName = "guid"; tlMenu.ParentFieldName = "pid"; tlMenu.EndUpdate(); - this.tlMenu.CollapseAll(); + //this.tlMenu.CollapseAll(); + // this.tlMenu.ExpandAll(); + this.tlMenu.ExpandToLevel(0); } catch (Exception ex) { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } + + } } -- Gitblit v1.9.3