SVN r396
SVN-Revision: r396
This commit is contained in:
@@ -360,6 +360,10 @@ namespace Lskj.Control
|
||||
/// 禁显列不加载数据源
|
||||
/// </summary>
|
||||
public bool DisableFieldSources;
|
||||
/// <summary>
|
||||
/// 聚合多表头控件
|
||||
/// </summary>
|
||||
public BandedGridControlEx CustomGroupBandEx;
|
||||
|
||||
public GridControlEx()
|
||||
{
|
||||
|
||||
@@ -851,6 +851,17 @@ namespace Lskj.Control
|
||||
this.gcMain.Dock = DockStyle.Fill;
|
||||
this.panelControl1.Controls.Add(this.gcMain);
|
||||
}
|
||||
//如果配置了聚合模式则构建多表头覆盖当前表格
|
||||
if (SysModel.IsCustomGroup == 1)
|
||||
{
|
||||
BandedGridControlEx bandedGridControlEx = new BandedGridControlEx();
|
||||
bandedGridControlEx.moduleModel = this.SysModel;
|
||||
bandedGridControlEx.Model = this.Model;
|
||||
bandedGridControlEx.Dock = DockStyle.Fill;
|
||||
gcMain.CustomGroupBandEx = bandedGridControlEx;
|
||||
this.panelControl1.Controls.Add(bandedGridControlEx);
|
||||
bandedGridControlEx.BringToFront();
|
||||
}
|
||||
// 报表类型创建只读列
|
||||
if (this.Model is DynamicReportModel)
|
||||
{
|
||||
@@ -888,7 +899,6 @@ namespace Lskj.Control
|
||||
ButtonModeRightMenus = dt.Rows.Cast<DataRow>().Where(x => "1".Equals(x["ButtonMode"] + "")).ToList();
|
||||
}
|
||||
|
||||
|
||||
if (this.gcMain is BandedGridControlEx)
|
||||
{
|
||||
BandedGridControlEx banGridControlEx = (this.gcMain as BandedGridControlEx);
|
||||
@@ -5083,4 +5093,4 @@ namespace Lskj.Control
|
||||
int focusedRowHandle = this.gcMain.GridView.FocusedRowHandle;
|
||||
GridColumn[] Columns = this.gcMain.GridView.GetSelectedCells(focusedRowHandle);//当前选中的单元格
|
||||
//判断是否为最后一行,最后一列
|
||||
if (Columns.Length > 0 && Columns[0].VisibleIndex == this.gcMain.GridView.Columns.C
|
||||
if (Columns.Length > 0 && Columns[0].VisibleIndex == this.gcMain.GridView.Columns.Co
|
||||
Reference in New Issue
Block a user