vpj-cd 2009-09-07 06:12:17 +00:00
parent f1547a093d
commit f9bf324d61
1 changed files with 4 additions and 21 deletions

View File

@ -123,7 +123,9 @@ import org.compiere.util.Util;
* <li>BF [ 1996056 ] Report error message is not displayed * <li>BF [ 1996056 ] Report error message is not displayed
* <li>BF [ 1998575 ] Document Print is discarding any error * <li>BF [ 1998575 ] Document Print is discarding any error
* @author victor.perez@e-evolution.com * @author victor.perez@e-evolution.com
* @see FR [ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335 * <li>FR [ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335
* <li>FR [ 2853359 ] Popup Menu for Lookup Record
* <li>http://sourceforge.net/tracker/?func=detail&aid=2853359&group_id=176962&atid=879335
* @autor tobi42, metas GmBH * @autor tobi42, metas GmBH
* <li>BF [ 2799362 ] You can press New button a lot of times * <li>BF [ 2799362 ] You can press New button a lot of times
* *
@ -2055,26 +2057,7 @@ public final class APanel extends CPanel
*/ */
private void cmd_find() private void cmd_find()
{ {
if (m_curTab == null) new ASearch(aFind.getButton(),Env.getFrame(this), m_curWindowNo,m_curGC, m_curTab);
return;
cmd_save(false);
// Gets Fields from AD_Field_v
GridField[] findFields = GridField.createFields(m_ctx, m_curWindowNo, 0, m_curTab.getAD_Tab_ID());
Find find = new Find (Env.getFrame(this), m_curWindowNo, m_curTab.getName(),
m_curTab.getAD_Tab_ID(), m_curTab.getAD_Table_ID(), m_curTab.getTableName(),
m_curTab.getWhereExtended(), findFields, 1);
MQuery query = find.getQuery();
find.dispose();
find = null;
// Confirmed query
if (query != null)
{
m_onlyCurrentRows = false; // search history too
m_curTab.setQuery(query);
m_curGC.query(m_onlyCurrentRows, m_onlyCurrentDays, 0); // autoSize
}
aFind.setPressed(m_curTab.isQueryActive());
} // cmd_find } // cmd_find
/** /**