[ 1843859 ] Let use a Table type View to launch Document Print

http://sourceforge.net/tracker/index.php?func=detail&aid=1843859&group_id=176962&atid=879335
This commit is contained in:
vpj-cd 2007-12-04 06:56:15 +00:00
parent 053316b6b4
commit 9bc1406fc3
1 changed files with 13 additions and 0 deletions

View File

@ -932,6 +932,19 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
} }
} }
if(IsForm)
{
int AD_Column_ID = DB.getSQLValue(null, "SELECT AD_Column_ID WHERE M_Table_ID="+AD_Table_ID+" AND IsKey='Y'");
if(AD_Column_ID!= 0)
{
MColumn key = MColumn.get(ctx, AD_Column_ID);
TableName = key.getName().substring(0,key.getName().indexOf("_ID"));
AD_Table_ID = MTable.getTable_ID(TableName);
}
}
// Create Query from Parameters // Create Query from Parameters
MQuery query = null; MQuery query = null;
if (IsForm && pi.getRecord_ID() != 0) // Form = one record if (IsForm && pi.getRecord_ID() != 0) // Form = one record