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; // set if depreciation in application $objExpansionMap[AssetModel::ExpandDepreciationClass] = true; // If the search form has been posted // if ($intCategoryId || $intManufacturerId || $strDescription || $strAssetModelCode) { $this->dtgAssetModel->TotalItemCount = AssetModel::CountBySearchHelper($intCategoryId, $intManufacturerId, $strDescription, $strAssetModelCode, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $objExpansionMap); $this->dtgAssetModel->DataSource = AssetModel::LoadArrayBySearchHelper($intCategoryId, $intManufacturerId, $strDescription, $strAssetModelCode, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $this->dtgAssetModel->SortInfo, $this->dtgAssetModel->LimitInfo, $objExpansionMap); $this->blnSearch = false; }
public 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) { if (!$this->objParentControl && $this->Display == true || $this->objParentControl->Display == true) { $this->dtgAssetModel->TotalItemCount = AssetModel::CountBySearchHelper($intCategoryId, $intManufacturerId, $strDescription, $strAssetModelCode, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $objExpansionMap); if ($this->dtgAssetModel->TotalItemCount == 0) { $this->dtgAssetModel->ShowHeader = false; } else { $this->dtgAssetModel->DataSource = AssetModel::LoadArrayBySearchHelper($intCategoryId, $intManufacturerId, $strDescription, $strAssetModelCode, $arrCustomFields, $strDateModified, $strDateModifiedFirst, $strDateModifiedLast, $blnAttachment, $this->dtgAssetModel->SortInfo, $this->dtgAssetModel->LimitInfo, $objExpansionMap); $this->dtgAssetModel->ShowHeader = true; } } $this->blnSearch = false; }