public function dtgInventoryModel_Bind()
 {
     // If the search button has been pressed
     if ($this->blnSearch) {
         $this->assignSearchValues();
     }
     $strInventoryModelCode = $this->strInventoryModelCode;
     $intLocationId = $this->intLocationId;
     $intInventoryModelId = $this->intInventoryModelId;
     $intCategoryId = $this->intCategoryId;
     $intManufacturerId = $this->intManufacturerId;
     $strShortDescription = $this->strShortDescription;
     $strDateModifiedFirst = $this->strDateModifiedFirst;
     $strDateModifiedLast = $this->strDateModifiedLast;
     $strDateModified = $this->strDateModified;
     $blnAttachment = $this->blnAttachment;
     $arrCustomFields = $this->arrCustomFields;
     // Enable Profiling
     // QApplication::$Database[1]->EnableProfiling();
     // Expand the Asset object to include the AssetModel, Category, Manufacturer, and Location Objects
     $objExpansionMap[InventoryModel::ExpandCategory] = true;
     $objExpansionMap[InventoryModel::ExpandManufacturer] = true;
     // If the search form has been posted
     $this->dtgInventoryModel->TotalItemCount = InventoryModel::CountBySearchHelper($strInventoryModelCode, $intLocationId, $intInventoryModelId, $intCategoryId, $intManufacturerId, $strShortDescription, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $objExpansionMap);
     if ($this->dtgInventoryModel->TotalItemCount == 0) {
         $this->dtgInventoryModel->ShowHeader = false;
     } else {
         $this->dtgInventoryModel->ShowHeader = true;
         $this->dtgInventoryModel->DataSource = InventoryModel::LoadArrayBySearchHelper($strInventoryModelCode, $intLocationId, $intInventoryModelId, $intCategoryId, $intManufacturerId, $strShortDescription, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $this->dtgInventoryModel->SortInfo, $this->dtgInventoryModel->LimitInfo, $objExpansionMap);
     }
     $this->blnSearch = false;
 }