/**
* Persistent Column Model
*
* @author Jorg Janke
* @version $Id: MColumn.java,v 1.6 2006/08/09 05:23:49 jjanke Exp $
*/
public class MColumn extends X_AD_Column
public static boolean isSuggestSelectionColumn(String columnName, boolean caseSensitive)
{
if (Util.isEmpty(columnName, true))
return false;
//
if (columnName.contains("名稱") || columnName.contains("單號")
|| columnName.contains("品號") || columnName.contains("品名")
|| columnName.contains("規格") || columnName.contains("單號"))
return true;
if (columnName.equals("Value") || (!caseSensitive && columnName.equalsIgnoreCase("Value")))
return true;
else if (columnName.equals("Name") || (!caseSensitive && columnName.equalsIgnoreCase("Name")))
return true;
else if (columnName.equals("DocumentNo") || (!caseSensitive && columnName.equalsIgnoreCase("DocumentNo")))
return true;
else if (columnName.equals("Description") || (!caseSensitive && columnName.equalsIgnoreCase("Description")))
return true;
else if (columnName.indexOf("Name") != -1
|| (!caseSensitive && columnName.toUpperCase().indexOf("Name".toUpperCase()) != -1) )
return true;
else
return false;
沒有留言:
張貼留言