protected function dtgAssetModel_Bind() { if ($this->blnSearch) { $this->assignSearchValues(); } $intCategoryId = $this->intCategoryId; $intManufacturerId = $this->intManufacturerId; $strDescription = $this->strDescription; $strAssetModelCode = $this->strAssetModelCode; $arrCustomFields = $this->arrCustomFields; $strDateModifiedFirst = $this->strDateModifiedFirst; $strDateModifiedLast = $this->strDateModifiedLast; $strDateModified = $this->strDateModified; $blnAttachment = $this->blnAttachment; $objExpansionMap[AssetModel::ExpandCategory] = true; $objExpansionMap[AssetModel::ExpandManufacturer] = true; // If the search form has been posted // if ($intCategoryId || $intManufacturerId || $strDescription || $strAssetModelCode) { $this->dtgAssetModel->TotalItemCount = AssetModel::CountBySearch($intCategoryId, $intManufacturerId, $strDescription, $strAssetModelCode, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $objExpansionMap); $this->dtgAssetModel->DataSource = AssetModel::LoadArrayBySearch($intCategoryId, $intManufacturerId, $strDescription, $strAssetModelCode, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $this->dtgAssetModel->SortInfo, $this->dtgAssetModel->LimitInfo, $objExpansionMap); $this->blnSearch = false; }