From 6b7f640c7952a3948b896d4c585d416f546788a1 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期四, 17 七月 2025 08:17:12 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs b/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs index 5feff55..23beeb0 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs @@ -16,11 +16,14 @@ private readonly string _webServiceName = "VArrivalBarcodeManager/"; private string aboutGuid = ""; private string aboutType = "";//鍚庣洊鐮� + /// <summary> - /// 鐖朵翰guid + /// /// </summary> - /// <param name="_aboutGuid"></param> - public SelectDeleteBar(string _aboutGuid, string _aboutType) + /// <param name="_aboutGuid">鐖朵翰guid</param> + /// <param name="_aboutType">绫诲埆锛堝悗鐩栫爜锛岃拷婧爜锛屽彈鎵樺叆搴撶瓑锛�</param> + /// <param name="_qcGuid">qcGuid锛屽湪杩斿伐閲嶆潯鐨勬椂鍊�</param> + public SelectDeleteBar(string _aboutGuid, string _aboutType,string _qcGuid="") { InitializeComponent(); this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; @@ -34,8 +37,10 @@ this.Text = "鎵归噺鎿嶄綔銆�" + this.aboutType + "銆�,銆�" + this.aboutGuid + "銆�"; switch (aboutType) { + case "閲囪喘鍏ュ簱": + btnDelete.Visible = false; + break; case "鍚庣洊鐮�": - btnDelete.Visible = true; colT1.Caption = "缁戝畾鎵樻澘鐮�"; colT2.Caption = "缁戝畾杩芥函鐮�"; break; @@ -72,7 +77,7 @@ } if (sb.Length <= 0) { - MsgHelper.Warning("璇峰嬀閫変綘瑕佸垹闄ょ殑鏉$爜锛�"); + MsgHelper.ShowError("璇峰嬀閫変綘瑕佸垹闄ょ殑鏉$爜锛�"); return; } var _obj = new @@ -103,7 +108,7 @@ MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); return; } - UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg }); Close(); + UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg, Data="delete" }); Close(); }; btnPrint.Click += (s, e) => { @@ -126,11 +131,11 @@ } if (sb.Length <= 0) { - MsgHelper.Warning("璇峰嬀閫変綘瑕佹墦鍗扮殑鏉$爜锛�"); + MsgHelper.ShowError("璇峰嬀閫変綘瑕佹墦鍗扮殑鏉$爜锛�"); return; } - UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() }); Close(); + UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() ,Data = "print" }); Close(); }; } -- Gitblit v1.9.3