SVN r910
SVN-Revision: r910
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user