DevApp/Gs.DevApp/UserControl/SelectCgMx.cs
@@ -31,7 +31,20 @@
            this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); };
            // 为GridView的鼠标抬起事件添加处理方法,实现自定义交互
            this.gridView1.MouseUp += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomMouseUp(s, e, gcMain, gridView1); };
            this.gridView1.MouseUp += (s, e) => {
                Gs.DevApp.ToolBox.UtilityHelper.CustomMouseUp(s, e, gcMain, gridView1);
                // 全选/取消全选后立即更新汇总,缩短延迟时间
                System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
                timer.Interval = 80; // 缩短延迟确保操作完成后立即刷新
                timer.Tick += (sender, args) =>
                {
                    timer.Stop();
                    timer.Dispose();
                    UtilityHelper.RefreshConditionalSummary(gridView1); // 使用新的刷新方法
                };
                timer.Start();
            };
            // 配置复选列的排序和筛选选项,禁用排序和筛选功能
            this.colChkInt.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
@@ -85,6 +98,15 @@
            {
                getPageList(1);
            };
            /// <summary>
            /// 条件汇总:只对选中(打勾)的行进行汇总
            /// chkInt字段为true时才计算purchaseQty和wssl的合计
            /// 使用一键式方法,包含条件汇总+实时刷新功能
            /// </summary>
            UtilityHelper.SetupCompleteConditionalSummary(gridView1, "chkInt", true, new string[] { "purchaseQty", "wssl" });
        }
        /// <summary>