fix small bug

This commit is contained in:
vpj-cd 2008-11-04 15:30:08 +00:00
parent a9ec807b68
commit 48f77c0b7b
2 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,7 @@ public class MCommission extends X_C_Commission
String whereClause = "IsActive='Y' AND C_Commission_ID=?"; String whereClause = "IsActive='Y' AND C_Commission_ID=?";
List<MCommissionLine> list = new Query(getCtx(), MCommissionLine.Table_Name, whereClause, get_TrxName()) List<MCommissionLine> list = new Query(getCtx(), MCommissionLine.Table_Name, whereClause, get_TrxName())
.setParameters(new Object[]{getC_Commission_ID()}) .setParameters(new Object[]{getC_Commission_ID()})
.setOrderBy("Line")
.list(); .list();
// Convert // Convert
MCommissionLine[] retValue = new MCommissionLine[list.size()]; MCommissionLine[] retValue = new MCommissionLine[list.size()];

View File

@ -131,6 +131,7 @@ public class MContainer extends X_CM_Container
String whereClause = "CM_WebProject_ID=?"; String whereClause = "CM_WebProject_ID=?";
List<MContainer> list = new Query(project.getCtx(), MContainer.Table_Name, whereClause, project.get_TrxName()) List<MContainer> list = new Query(project.getCtx(), MContainer.Table_Name, whereClause, project.get_TrxName())
.setParameters(new Object[]{project.getCM_WebProject_ID ()}) .setParameters(new Object[]{project.getCM_WebProject_ID ()})
.setOrderBy("CM_Container_ID")
.list(); .list();
// //
MContainer[] retValue = new MContainer[list.size ()]; MContainer[] retValue = new MContainer[list.size ()];