/**
  * Create and setup QListBox lstDepreciationClass
  * @param string $strControlId optional ControlId to use
  * @param QQCondition $objConditions override the default condition of QQ::All() to the query, itself
  * @param QQClause[] $objOptionalClauses additional optional QQClause object or array of QQClause objects for the query
  * @return QListBox
  */
 public function lstDepreciationClass_Create($strControlId = null, QQCondition $objCondition = null, $objOptionalClauses = null)
 {
     $this->lstDepreciationClass = new QListBox($this->objParentObject, $strControlId);
     $this->lstDepreciationClass->Name = QApplication::Translate('Depreciation Class');
     $this->lstDepreciationClass->AddItem(QApplication::Translate('- Select One -'), null);
     // Setup and perform the Query
     if (is_null($objCondition)) {
         $objCondition = QQ::All();
     }
     $objDepreciationClassCursor = DepreciationClass::QueryCursor($objCondition, $objOptionalClauses);
     // Iterate through the Cursor
     while ($objDepreciationClass = DepreciationClass::InstantiateCursor($objDepreciationClassCursor)) {
         $objListItem = new QListItem($objDepreciationClass->__toString(), $objDepreciationClass->DepreciationClassId);
         if ($this->objAssetModel->DepreciationClass && $this->objAssetModel->DepreciationClass->DepreciationClassId == $objDepreciationClass->DepreciationClassId) {
             $objListItem->Selected = true;
         }
         $this->lstDepreciationClass->AddItem($objListItem);
     }
     // Return the QListBox
     return $this->lstDepreciationClass;
 }