From d38343fca08360cf3e3d9cc5fb3993e2fa2dd436 Mon Sep 17 00:00:00 2001 From: wyf Date: Thu, 7 Aug 2025 02:35:30 +0000 Subject: [PATCH] SVN r915 SVN-Revision: r915 --- 插件库/Lskj.Control/BandedGridControlEx.cs | 34 +++++++++++++++------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/插件库/Lskj.Control/BandedGridControlEx.cs b/插件库/Lskj.Control/BandedGridControlEx.cs index 65d88a8..f4e840f 100644 --- a/插件库/Lskj.Control/BandedGridControlEx.cs +++ b/插件库/Lskj.Control/BandedGridControlEx.cs @@ -48,7 +48,9 @@ namespace Lskj.Control /// public partial class BandedGridControlEx : GridControlEx { - // 创建Dictionary存储行号为Key,有效日期格式列名数组为Value + /// + /// 创建Dictionary存储行号为Key,有效日期格式列名数组为Value + /// public Dictionary> rowDateValues = new Dictionary>(); /// /// 获取模块配置 @@ -59,7 +61,9 @@ namespace Lskj.Control /// /// The grid view. public override GridView GridView { get { return this.bandedGridView; } } - + /// + /// 多表头 + /// public BandedGridView BandedView { get { return this.bandedGridView; } } /// /// 粘贴表格数据时调用 @@ -81,12 +85,14 @@ namespace Lskj.Control /// 当前选中行数组 /// private int[] SelectedRows = new int[0]; - /// /// 冻结列 /// private List FrozenColumns = new List(); - + /// + /// 滚动条位置改变回调 + /// + public event EventHandler OnLeftCoordCallback; public BandedGridControlEx() { @@ -104,19 +110,15 @@ namespace Lskj.Control this.bandedGridView.Click += new EventHandler(OnBandedGridView_Click); this.bandedGridView.DoubleClick += new EventHandler(OnBandedGridViewDoubleClick); this.bandedGridView.CustomDrawGroupRow += new RowObjectCustomDrawEventHandler(OnGridCustomDrawGroupRow); + this.bandedGridView.LeftCoordChanged += OnBandedLeftCoordChanged; this.SetGridRowHeightAndFont(); if (SystemInfo.Instance.GroupRowFontSizeDelta > 0) { this.bandedGridView.Appearance.GroupRow.FontSizeDelta = SystemInfo.Instance.GroupRowFontSizeDelta; } this.bandedGridView.EndSorting += BandedGridView_EndSorting;//排序后选中第一行 - } - - - - /// /// 说明:单元格合并 /// 创建人:王一帆 @@ -1297,7 +1299,7 @@ namespace Lskj.Control if (visible) { isShowFooter = true; - string dataFormat = colparame.Length > 3? colparame[3]:""; + string dataFormat = colparame.Length > 3 ? colparame[3] : ""; col.Summary.AddRange(new GridSummaryItem[] { new GridColumnSummaryItem(SummaryItemType.Sum, col.FieldName, "{0:" + dataFormat + "}") }); if (SystemInfo.Instance.GroupSpecialMode) @@ -3177,4 +3179,14 @@ namespace Lskj.Control } } - string tempSql = string.Format(@"insert i \ No newline at end of file + string tempSql = string.Format(@"insert into {3}(GroupName,GroupAmount,OperAtorId) values('{0}','{1}','{2}');", editValue, groupText, ERPInfo.Instance.UserId, ResourceKeys.SettingGrouprptab); + SqlHelper.ExecuteNonQuery(tempSql); + } + } + } + } + + } + catch (Exception ex) + { + \ No newline at end of file