SVN-Revision: r910
This commit is contained in:
tdx
2025-08-07 01:41:16 +00:00
parent 6e12d2ec6f
commit d5972f833e
+3 -1
View File
@@ -351,14 +351,16 @@ namespace Lskj.Control
DataTable table = MainImpl.GetDataTableResult(finalSql);
BindTableToPage(tabPage, table, finalSql);
tabPage.Text = $"{model.DetailName}({table.Rows.Count}条)";
tabPage.Appearance.Header.ForeColor = table.Rows.Count > 0 ? Color.Red : Color.FromArgb(0, 0, 0);
// 首次加载自动查询
if (model.SystemModel != null && model.SystemModel.isFirstLoad == 1
&& tabPage.Tag is GridControlEx gc)
{
gc.ParentControl.SearchGrid();
tabPage.Text = $"{model.DetailName}({gc.ParentControl.GridRowCount}条)";
tabPage.Appearance.Header.ForeColor = gc.ParentControl.GridRowCount > 0 ? Color.Red : Color.FromArgb(0, 0, 0);
}
// 行定位 / 按钮状态
if (tabPage.Controls.OfType<ModuleGridEx>().FirstOrDefault() is ModuleGridEx mod)
{