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