Example #1
0
 public function __toStringQuantity()
 {
     // return ($this->intInventoryModelQuantity);
     return InventoryModel::GetTotalQuantityByInventoryModelId($this->InventoryModelId);
 }
 public function UpdateInventoryLabels()
 {
     $this->lblHeaderInventoryModelCode->Text = $this->objInventoryModel->InventoryModelCode;
     $this->lblShortDescription->Text = $this->objInventoryModel->ShortDescription;
     if ($this->objInventoryModel->CategoryId) {
         $this->lblCategory->Text = $this->objInventoryModel->Category->__toString();
     }
     if ($this->objInventoryModel->ManufacturerId) {
         $this->lblManufacturer->Text = $this->objInventoryModel->Manufacturer->__toString();
     }
     $this->pnlLongDescription->Text = nl2br($this->objInventoryModel->LongDescription);
     $this->lblInventoryModelCode->Text = $this->objInventoryModel->InventoryModelCode;
     $this->lblTotalQuantity->Text = InventoryModel::GetTotalQuantityByInventoryModelId($this->objInventoryModel->InventoryModelId);
     if ($this->objInventoryModel->ModifiedDate) {
         $this->lblModifiedDate->Text = $this->objInventoryModel->ModifiedDate . ' by ' . $this->objInventoryModel->ModifiedByObject->__toStringFullName();
     }
     // Update custom labels
     if ($this->arrCustomFields) {
         CustomField::UpdateLabels($this->arrCustomFields);
     }
 }