SVN r948
SVN-Revision: r948
This commit is contained in:
@@ -80,8 +80,15 @@ namespace Lskj.Control
|
||||
/// <summary>
|
||||
/// 左侧表刷新右侧表
|
||||
/// </summary>
|
||||
public bool UnioDetail=false;
|
||||
|
||||
public bool UnioDetail = false;
|
||||
/// <summary>
|
||||
/// Occurs when [on Save Grid call back].
|
||||
/// </summary>
|
||||
public event EventHandler OnSaveGridCallBack;
|
||||
/// <summary>
|
||||
/// 下面明细表右键执行后回调
|
||||
/// </summary>
|
||||
public event EventHandler DetailRightGridCallBack;
|
||||
#endregion
|
||||
#region
|
||||
/// <summary>
|
||||
@@ -244,6 +251,10 @@ namespace Lskj.Control
|
||||
gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.SystemModel.ParmaryKey : model.UnionParentField;
|
||||
gridEx.DetailKeyField = model.UnionValue;
|
||||
gridEx.GridControlObj.ParentControl = gridEx.SearchObj;
|
||||
|
||||
gridEx.OnSaveGridCallBack += OnSaveGridCallBack;
|
||||
gridEx.DetailRightGridCallBack += DetailRightGridCallBack;
|
||||
|
||||
//左侧表设置后,添加事件。行改变时刷新右侧表
|
||||
if (model.IsUnioDetail)
|
||||
{
|
||||
@@ -723,9 +734,9 @@ namespace Lskj.Control
|
||||
gridEx2.GridControlObj.GridView.SelectRowHandler(oldRowHandle2);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -738,7 +749,7 @@ namespace Lskj.Control
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.gridEx1.SearchObj != null)
|
||||
if (this.gridEx1.SearchObj != null)
|
||||
{
|
||||
foreach (ControlModel item in this.gridEx1.SearchObj.ControlModels)
|
||||
{
|
||||
@@ -748,7 +759,7 @@ namespace Lskj.Control
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.gridEx2.SearchObj != null)
|
||||
if (this.gridEx2.SearchObj != null)
|
||||
{
|
||||
foreach (ControlModel item in this.gridEx2.SearchObj.ControlModels)
|
||||
{
|
||||
@@ -758,7 +769,7 @@ namespace Lskj.Control
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user