2010-11-18 51 views

回答

3

體內創建executeSection方法和來電super()如果希望部分進行打印:

public void executeSection() 
{ 
    if(value1!=0 || value2!=0 || value3!=0 || value4!=0) 
    { 
     super(); 
    } 
} 
1

在簡單的順序,你可以:

  1. 一個範圍添加到查詢(在你的情況可能是不可能的)
  2. 添加測試報告部分的executeSection方法
  3. 添加測試報告超馳報告的send方法的

實施例的方法send(在這種情況下選擇1會更好):

boolean send(Common cursor, int level=1, boolean triggerOffBody=TRUE) 
{ 
    boolean ret; 
    InventTable inventTable; 

    if (cursor.tableId == TableNum(InventTable)) 
    { 
     inventTable = cursor; 
     if (inventTable.InventType == InventType::BOM) 
      ret = super(cursor, level, triggerOffBody); 
    } 

    return ret; 
}