SVN-Revision: r572
This commit is contained in:
wyf
2025-05-09 10:05:08 +00:00
parent 21e25e300e
commit 2cae1e8112
+12
View File
@@ -882,6 +882,10 @@ namespace Lskj.Control
tabPage.Controls.AddRange(new PanelControl[] { plBottom, plMain }); tabPage.Controls.AddRange(new PanelControl[] { plBottom, plMain });
if (detailModel.AutoRefresh) if (detailModel.AutoRefresh)
{ {
if (tabPage == this.tcButtom.TabControlObj.TabPages[0] && string.IsNullOrEmpty(this.PrimaryValue))
{
return;
}
if (!string.IsNullOrWhiteSpace(this.ParentKey)) if (!string.IsNullOrWhiteSpace(this.ParentKey))
{ {
string codeSql = "select"; string codeSql = "select";
@@ -924,12 +928,20 @@ namespace Lskj.Control
tabPage.Tag = moduleGrid; tabPage.Tag = moduleGrid;
if (detailModel.AutoRefresh) if (detailModel.AutoRefresh)
{ {
if (tabPage == this.tcButtom.TabControlObj.TabPages[0] && string.IsNullOrEmpty(this.PrimaryValue))
{
return;
}
moduleGrid.SearchObj.OnDataSourceBindCallBack += new EventHandler(OnMainSearchDataSourceBindCallBack); moduleGrid.SearchObj.OnDataSourceBindCallBack += new EventHandler(OnMainSearchDataSourceBindCallBack);
} }
} }
} }
else else
{ {
if (tabPage == this.tcButtom.TabControlObj.TabPages[0] && string.IsNullOrEmpty(this.PrimaryValue))
{
return;
}
if (tabPage.Tag != null && tabPage.Tag is GridControlEx gridControlEx) if (tabPage.Tag != null && tabPage.Tag is GridControlEx gridControlEx)
{ {
GridDetailModel detailModel = gridControlEx.Tag as GridDetailModel; GridDetailModel detailModel = gridControlEx.Tag as GridDetailModel;