The Tab Sort without parent column

http://sourceforge.net/tracker/?func=detail&atid=879335&aid=2826406&group_id=176962
This commit is contained in:
vpj-cd 2009-07-24 07:40:37 +00:00
parent 40163bcf52
commit eabb608534
2 changed files with 9 additions and 0 deletions

View File

@ -425,6 +425,11 @@ public class VSortTab extends CPanel implements APanelTab
{
sql.append(" WHERE t.").append(m_ParentColumnName).append("=?");
}
else
{
sql.append(" WHERE 1=1");
}
if (m_IdentifierTranslated)
sql.append(" AND t.").append(m_KeyColumnName).append("=tt.").append(m_KeyColumnName)
.append(" AND tt.AD_Language=?");

View File

@ -406,6 +406,10 @@ public class ADSortTab extends Panel implements IADTabpanel
{
sql.append(" WHERE t.").append(m_ParentColumnName).append("=?");
}
else
{
sql.append(" WHERE 1=1");
}
if (m_IdentifierTranslated)
sql.append(" AND t.").append(m_KeyColumnName).append("=tt.").append(m_KeyColumnName)
.append(" AND tt.AD_Language=?");