FR [ 1762465 ] Add count number for each zoom accross item found

http://sourceforge.net/tracker/?func=detail&atid=879335&aid=1762465&group_id=176962
This commit is contained in:
teo_sarca 2007-07-29 11:04:55 +00:00
parent 333d73e8fd
commit f743aca69d
1 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,8 @@ import org.compiere.util.*;
*
* @author Jorg Janke
* @version $Id: AZoomAcross.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
*
* @author Teo Sarca, SC ARHIPAC SERVICE SRL - FR [ 1762465 ]
*/
public class AZoomAcross implements ActionListener
{
@ -84,7 +86,6 @@ public class AZoomAcross implements ActionListener
+ "(SELECT AD_Table_ID FROM AD_Column "
+ "WHERE ColumnName=? AND IsKey='N' AND IsParent='N') " // #x
+ "ORDER BY 2";
KeyNamePair pp = null;
try
{
PreparedStatement pstmt = DB.prepareStatement(sql, null);
@ -168,7 +169,7 @@ public class AZoomAcross implements ActionListener
if (count <= 0)
return false;
//
KeyNamePair pp = new KeyNamePair (AD_Window_ID, Name);
KeyNamePair pp = new KeyNamePair (AD_Window_ID, Name + " (#"+count+")");
m_list.add(pp);
m_popup.add(pp.toString()).addActionListener(this);
return true;