From daff1bbc999ef2a3e33361876dfac4a396960474 Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期三, 06 八月 2025 15:34:10 +0800 Subject: [PATCH] 退补料完成 --- DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs b/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs index 5feff55..0529809 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs @@ -1,13 +1,17 @@ 锘縰sing DevExpress.Utils.DirectXPaint; using DevExpress.Utils.VisualEffects; using DevExpress.XtraGrid.Views.Base.ViewInfo; +using DevExpress.XtraGrid.Views.Grid; +using DevExpress.XtraGrid.Views.Grid.ViewInfo; using Gs.DevApp.DevFrm.Rpt; using Gs.DevApp.ToolBox; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; +using System.Drawing; using System.Windows.Forms; +using System.Windows.Forms.VisualStyles; namespace Gs.DevApp.UserControl { @@ -16,13 +20,17 @@ 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); }; this.gridView1.MouseUp += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomMouseUp(s, e, gcMain, gridView1); }; this.colChkInt.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; @@ -110,6 +118,9 @@ gridView1.PostEditor(); gridView1.UpdateCurrentRow(); System.Text.StringBuilder sb = new System.Text.StringBuilder(); + + + DataTable dt = this.gcMain.DataSource as DataTable; { foreach (DataRow dr in dt.Rows) @@ -130,10 +141,13 @@ return; } + + UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() }); Close(); }; } + /// <summary> /// 閫夋嫨鍚庣殑鍥炶皟浜嬩欢 /// </summary> @@ -174,4 +188,5 @@ } + } \ No newline at end of file -- Gitblit v1.9.3