BF [2746315] ZK client doesn't respect MRole.getMaxQueryRecords

This commit is contained in:
Heng Sin Low 2009-04-09 03:42:02 +00:00
parent 26d64fd988
commit 25f0f0fac8
1 changed files with 3 additions and 3 deletions

View File

@ -370,7 +370,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
if (tabIndex == 0) { if (tabIndex == 0) {
curTabpanel = sortTab; curTabpanel = sortTab;
curTabpanel.createUI(); curTabpanel.createUI();
curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, 0); curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, MRole.getDefault().getMaxQueryRecords());
curTabpanel.activate(true); curTabpanel.activate(true);
} }
gTab.addDataStatusListener(this); gTab.addDataStatusListener(this);
@ -401,7 +401,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
if (tabIndex == 0) { if (tabIndex == 0) {
fTabPanel.createUI(); fTabPanel.createUI();
curTabpanel = fTabPanel; curTabpanel = fTabPanel;
curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, 0); curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, MRole.getDefault().getMaxQueryRecords());
curTabpanel.activate(true); curTabpanel.activate(true);
} }
} }
@ -1147,7 +1147,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
{ {
m_onlyCurrentRows = false; // search history too m_onlyCurrentRows = false; // search history too
curTab.setQuery(query); curTab.setQuery(query);
curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, 0); // autoSize curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, MRole.getDefault().getMaxQueryRecords()); // autoSize
} }
curTab.dataRefresh(); // Elaine 2008/07/25 curTab.dataRefresh(); // Elaine 2008/07/25