From 5f92474a32f3fc3e38f2f19274745720062baee6 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期六, 19 七月 2025 13:59:33 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs b/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs index 23beeb0..7fb44b1 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs @@ -23,7 +23,7 @@ /// <param name="_aboutGuid">鐖朵翰guid</param> /// <param name="_aboutType">绫诲埆锛堝悗鐩栫爜锛岃拷婧爜锛屽彈鎵樺叆搴撶瓑锛�</param> /// <param name="_qcGuid">qcGuid锛屽湪杩斿伐閲嶆潯鐨勬椂鍊�</param> - public SelectDeleteBar(string _aboutGuid, string _aboutType,string _qcGuid="") + public SelectDeleteBar(string _aboutGuid, string _aboutType, string _qcGuid = "") { InitializeComponent(); this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; @@ -37,17 +37,19 @@ this.Text = "鎵归噺鎿嶄綔銆�" + this.aboutType + "銆�,銆�" + this.aboutGuid + "銆�"; switch (aboutType) { - case "閲囪喘鍏ュ簱": + case "鎵樻澘鐮�": btnDelete.Visible = false; + break; + case "杩芥函鐮�": + btnDelete.Visible = false; + colT1.Caption = "绾夸綋缂栧彿"; + colT2.Caption = "绾夸綋鍚嶇О"; break; case "鍚庣洊鐮�": colT1.Caption = "缁戝畾鎵樻澘鐮�"; colT2.Caption = "缁戝畾杩芥函鐮�"; break; - case "杩芥函鐮�": - colT1.Caption = "绾夸綋缂栧彿"; - colT2.Caption = "绾夸綋鍚嶇О"; - break; + default: colT1.Caption = "鍏ュ簱浜�"; colT2.Caption = "鍏ュ簱鏃ユ湡"; @@ -108,7 +110,7 @@ MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); return; } - UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg, Data="delete" }); Close(); + UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg, Data = "delete" }); Close(); }; btnPrint.Click += (s, e) => { @@ -135,7 +137,7 @@ return; } - UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() ,Data = "print" }); Close(); + UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString(), Data = "print" }); Close(); }; } -- Gitblit v1.9.3