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