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:
parent
333d73e8fd
commit
f743aca69d
|
|
@ -31,6 +31,8 @@ import org.compiere.util.*;
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: AZoomAcross.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
|
* @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
|
public class AZoomAcross implements ActionListener
|
||||||
{
|
{
|
||||||
|
|
@ -84,7 +86,6 @@ public class AZoomAcross implements ActionListener
|
||||||
+ "(SELECT AD_Table_ID FROM AD_Column "
|
+ "(SELECT AD_Table_ID FROM AD_Column "
|
||||||
+ "WHERE ColumnName=? AND IsKey='N' AND IsParent='N') " // #x
|
+ "WHERE ColumnName=? AND IsKey='N' AND IsParent='N') " // #x
|
||||||
+ "ORDER BY 2";
|
+ "ORDER BY 2";
|
||||||
KeyNamePair pp = null;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
||||||
|
|
@ -168,7 +169,7 @@ public class AZoomAcross implements ActionListener
|
||||||
if (count <= 0)
|
if (count <= 0)
|
||||||
return false;
|
return false;
|
||||||
//
|
//
|
||||||
KeyNamePair pp = new KeyNamePair (AD_Window_ID, Name);
|
KeyNamePair pp = new KeyNamePair (AD_Window_ID, Name + " (#"+count+")");
|
||||||
m_list.add(pp);
|
m_list.add(pp);
|
||||||
m_popup.add(pp.toString()).addActionListener(this);
|
m_popup.add(pp.toString()).addActionListener(this);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue