SVN r915
SVN-Revision: r915
This commit is contained in:
@@ -48,7 +48,9 @@ namespace Lskj.Control
|
||||
/// </summary>
|
||||
public partial class BandedGridControlEx : GridControlEx
|
||||
{
|
||||
// 创建Dictionary存储行号为Key,有效日期格式列名数组为Value
|
||||
/// <summary>
|
||||
/// 创建Dictionary存储行号为Key,有效日期格式列名数组为Value
|
||||
/// </summary>
|
||||
public Dictionary<int, List<DateTime>> rowDateValues = new Dictionary<int, List<DateTime>>();
|
||||
/// <summary>
|
||||
/// 获取模块配置
|
||||
@@ -59,7 +61,9 @@ namespace Lskj.Control
|
||||
/// </summary>
|
||||
/// <value>The grid view.</value>
|
||||
public override GridView GridView { get { return this.bandedGridView; } }
|
||||
|
||||
/// <summary>
|
||||
/// 多表头
|
||||
/// </summary>
|
||||
public BandedGridView BandedView { get { return this.bandedGridView; } }
|
||||
/// <summary>
|
||||
/// 粘贴表格数据时调用
|
||||
@@ -81,12 +85,14 @@ namespace Lskj.Control
|
||||
/// 当前选中行数组
|
||||
/// </summary>
|
||||
private int[] SelectedRows = new int[0];
|
||||
|
||||
/// <summary>
|
||||
/// 冻结列
|
||||
/// </summary>
|
||||
private List<BandedGridColumn> FrozenColumns = new List<BandedGridColumn>();
|
||||
|
||||
/// <summary>
|
||||
/// 滚动条位置改变回调
|
||||
/// </summary>
|
||||
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;//排序后选中第一行
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:单元格合并</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
@@ -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
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user