SVN-Revision: r500
This commit is contained in:
cyf
2025-04-18 10:25:17 +00:00
parent 006deaa14c
commit 1cbed9fd73
10 changed files with 233 additions and 111 deletions
+11 -1
View File
@@ -142,6 +142,14 @@ namespace Lskj.Control.Model
/// </summary>
/// <value>The control models.</value>
public List<ControlModel> ControlModels { get { return this._models; } }
/// <summary>
/// 明细里复选框选中的数据(主表和明细都是复选模式才记录) <页签名, <主表选中行,明细选中行主键(,拼接)>>
/// 如果主表刷新后还要选中之前的明细,就要存主表主键值(目前没用传进来)
/// </summary>
public Dictionary<string, Dictionary<DataRow, string>> DetailSelection = new Dictionary<string, Dictionary<DataRow, string>>();
/// <summary>
/// 执行查询之前验证
/// </summary>
@@ -3089,7 +3097,7 @@ namespace Lskj.Control.Model
{
this._mainGridEx.RefreshDataSource(true);
}
this.DetailSelection.Clear();
if (string.IsNullOrWhiteSpace(this._mainGridEx.LastSearchSql))
{
this.SearchGrid();
@@ -3170,6 +3178,7 @@ namespace Lskj.Control.Model
{
if (this._mainGridEx != null)
{
this.DetailSelection.Clear();
if (this.SystemModel != null) RememberRow = (this.SystemModel.AccordingNameSelected == 0);
int oldRowHandle = GetFocusedRowHandle();//获取上一次选中行
sqlValue = ReplaceHelper.ReplaceUserInfo(sqlValue);
@@ -3243,6 +3252,7 @@ namespace Lskj.Control.Model
this.GridRowCount = sourceTable.Rows.Count;
if (this._mainGridEx != null)
{
this.DetailSelection.Clear();
int oldRowHandle = GetFocusedRowHandle();//获取上一次选中行
if (_mainGridEx.IsHandleCreated)
{