protected function DisplayInputs() { // Do not display labels $this->lblShortDescription->Display = false; $this->lblAddress1->Display = false; $this->lblAddress2->Display = false; $this->lblCity->Display = false; $this->lblStateProvince->Display = false; $this->lblCountry->Display = false; $this->lblPostalCode->Display = false; // Do not display Edit and Delete buttons $this->btnEdit->Display = false; $this->btnDelete->Display = false; $this->atcAttach->btnUpload->Display = false; // Display inputs $this->txtShortDescription->Display = true; $this->txtAddress1->Display = true; $this->txtAddress2->Display = true; $this->txtCity->Display = true; $this->lstStateProvince->Display = true; $this->lstCountry->Display = true; $this->txtPostalCode->Display = true; //If the user is not authorized to edit built-in fields, the fields are render as labels. if (!$this->blnEditBuiltInFields) { $this->DisplayLabels(); } // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } // Display Cancel and Save buttons $this->btnCancel->Display = true; $this->btnSave->Display = true; }
protected function DisplayInputs() { // Hide labels $this->lblFromCompany->Display = false; $this->lblFromContact->Display = false; $this->lblToContact->Display = false; $this->lblToAddress->Display = false; if (QApplication::$TracmorSettings->CustomReceiptNumbers) { $this->lblReceiptNumber->Display = false; } $this->pnlNote->Display = false; $this->lblDueDate->Display = false; $this->btnEdit->Display = false; $this->btnDelete->Display = false; $this->atcAttach->btnUpload->Display = false; if ($this->blnEditMode) { $this->dtgAssetTransact->RemoveColumnByName(' '); $this->dtgInventoryTransact->RemoveColumnByName(' '); } // Display inputs $this->lstFromCompany->Display = true; $this->lstFromContact->Display = true; $this->lstToContact->Display = true; $this->lstToAddress->Display = true; if (QApplication::$TracmorSettings->CustomReceiptNumbers) { $this->txtReceiptNumber->Display = true; } $this->txtNote->Display = true; $this->calDueDate->Display = true; if (!$this->objReceipt->ReceivedFlag) { $this->rblAssetType->SelectedIndex = 0; $this->rblAssetType->Display = true; $this->txtNewAssetCode->Text = ''; $this->txtNewAssetCode->Enabled = true; $this->txtNewAssetCode->Display = true; $this->lstAssetModel->SelectedIndex = 0; $this->lstAssetModel->Display = false; $this->chkAutoGenerateAssetCode->Checked = false; $this->chkAutoGenerateAssetCode->Display = false; $this->btnAddAsset->Display = true; $this->lblAddAsset->Display = true; if ($this->blnShowInventory) { $this->txtNewInventoryModelCode->Display = true; $this->txtQuantity->Display = true; $this->lblLookup->Display = true; $this->btnAddInventory->Display = true; } $this->dtgAssetTransact->AddColumn(new QDataGridColumn(' ', '<?= $_FORM->RemoveAssetColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); $this->dtgInventoryTransact->AddColumn(new QDataGridColumn(' ', '<?= $_FORM->RemoveInventoryColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); } else { if ($this->blnEditMode) { $this->calDateReceived->DateTime = $this->objReceipt->ReceiptDate; $this->calDateReceived->Display = true; $this->lblReceiptDate->Display = false; } } $this->lblNewFromCompany->Display = true; $this->lblNewFromContact->Display = true; $this->lblNewToContact->Display = true; $this->lblNewToAddress->Display = true; //If the user is not authorized to edit built-in fields, the fields are render as labels. if (!$this->blnEditBuiltInFields) { $this->DisplayLabels(); } $this->btnSave->Display = true; $this->btnCancel->Display = true; // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } }
protected function DisplayInputs() { // Do not display labels $this->lblShortDescription->Display = false; $this->lblWebsite->Display = false; $this->lblEmail->Display = false; $this->pnlLongDescription->Display = false; $this->lblAddress->Display = false; $this->lblTelephone->Display = false; $this->lblFax->Display = false; // Do not display the Edit or Delete button $this->btnEdit->Display = false; $this->btnDelete->Display = false; $this->atcAttach->btnUpload->Display = false; // Display the inputs for edit mode $this->txtShortDescription->Display = true; $this->txtWebsite->Display = true; $this->txtEmail->Display = true; $this->txtLongDescription->Display = true; $this->lstAddress->Display = true; $this->txtTelephone->Display = true; $this->txtFax->Display = true; //If the user is not authorized to edit built-in fields, the fields are render as labels. if (!$this->blnEditBuiltInFields) { $this->DisplayLabels(); } // Display the Save and Cancel buttons $this->btnSave->Display = true; $this->btnCancel->Display = true; // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } }
public function displayInputs() { // Do not display labels $this->lblAssetCode->Display = false; $this->lblLockedToParent->Visible = false; // Only display location list if creating a new asset if (!$this->blnEditMode) { $this->lblAssetModel->Display = false; $this->lblNewAssetModel->Display = true; $this->lblLocation->Display = false; $this->lstLocation->Display = true; if (QApplication::$TracmorSettings->MinAssetCode) { $this->chkAutoGenerateAssetCode->Display = true; } } else { $this->lblAssetModelCode->Display = true; $this->lblAssetModel->Display = true; $this->lblLocation->Display = true; $this->lblParentAssetCode->Display = true; $this->lblAssetModel->Display = false; $this->chkAutoGenerateAssetCode->Display = false; } // Always display the label, never input, because it is associated with the AssetModelId $this->lblAssetModelCode->Display = true; // Do not display Edit and Delete buttons $this->btnEdit->Display = false; $this->btnDelete->Display = false; $this->btnClone->Display = false; $this->atcAttach->btnUpload->Display = false; $this->btnPrintAssetTag->Display = false; // Display Asset Code and Asset Model input for edit mode // new: if the user is authorized to edit the built-in fields. if ($this->blnEditBuiltInFields) { $this->txtAssetCode->Display = true; $this->lstAssetModel->Display = true; $this->txtParentAssetCode->Display = true; $this->chkLockToParent->Display = true; $this->lblIconParentAssetCode->Display = true; $this->lblParentAssetCode->Display = false; } else { //in edit mode, if the user is not authorized to edit built-in fields, the fields are render as labels. $this->lblAssetCode->Display = true; $this->lblAssetModel->Display = true; $this->lblParentAssetCode->Display = true; } // Display Cancel and Save butons $this->btnCancel->Display = true; $this->btnSave->Display = true; // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } }
protected function displayInputs() { // Do not display labels/panels $this->lblShortDescription->Display = false; $this->lblAssetModelCode->Display = false; $this->lblCategory->Display = false; $this->lblManufacturer->Display = false; $this->lblImage->Display = false; $this->pnlLongDescription->Display = false; // Display inputs $this->txtShortDescription->Display = true; $this->txtAssetModelCode->Display = true; $this->lstCategory->Display = true; $this->lstManufacturer->Display = true; $this->txtLongDescription->Display = true; $this->ifcImage->Display = true; // Display Asset Code and Asset Model input for edit mode // new: if the user is authorized to edit the built-in fields. //If the user is not authorized to edit built-in fields, the fields are render as labels. if (!$this->blnEditBuiltInFields) { $this->displayLabels(); } // Do not display Edit and Delete buttons $this->btnEdit->Display = false; $this->btnDelete->Display = false; $this->atcAttach->btnUpload->Display = false; // Display Cancel and Save butons $this->btnCancel->Display = true; $this->btnSave->Display = true; // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } }
protected function DisplayInputs() { // Hide Labels $this->lblShipDate->Display = false; $this->lblFromCompany->Display = false; $this->lblFromContact->Display = false; $this->lblFromAddress->Display = false; $this->lblToCompany->Display = false; $this->lblToContact->Display = false; $this->lblToAddress->Display = false; if (QApplication::$TracmorSettings->CustomShipmentNumbers) { $this->lblShipmentNumber->Display = false; } $this->lblCourier->Display = false; $this->pnlNote->Display = false; $this->lblTrackingNumber->Display = false; if (!$this->objShipment->ShippedFlag) { $this->calShipDate->Display = true; $this->lstFromCompany->Display = true; $this->lstFromContact->Display = true; $this->lstFromAddress->Display = true; $this->lstToCompany->Display = true; $this->lstToContact->Display = true; $this->lstToAddress->Display = true; if (QApplication::$TracmorSettings->CustomShipmentNumbers) { $this->txtShipmentNumber->Display = true; } $this->lstCourier->Display = true; $this->txtTrackingNumber->Display = true; $this->txtNewAssetCode->Display = true; //$this->lblAdvanced->Display = true; $this->btnAddAsset->Display = true; $this->lblAddAsset->Display = true; if ($this->blnShowInventory) { $this->txtNewInventoryModelCode->Display = true; $this->btnLookup->Display = true; $this->lblLookup->Display = true; $this->lstSourceLocation->Display = true; $this->txtQuantity->Display = true; $this->btnAddInventory->Display = true; } $this->lblNewFromCompany->Display = true; $this->lblNewFromContact->Display = true; $this->lblNewFromAddress->Display = true; $this->lblNewToCompany->Display = true; $this->lblNewToContact->Display = true; $this->lblNewToAddress->Display = true; } if ($this->blnEditMode) { $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Action', '<?= $_FORM->RemoveAssetColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); $this->dtgInventoryTransact->AddColumn(new QDataGridColumn('Action', '<?= $_FORM->RemoveInventoryColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); if ($this->lstFromCompany->SelectedValue != $this->lstToCompany->SelectedValue) { $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Advanced', '<?= $_FORM->AdvancedColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Due Date', '<?= $_FORM->DueDateColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); } } // If the user is not authorized to edit built-in fields, the fields are render as labels. // Also used if editing a completed shipment if (!$this->blnEditBuiltInFields || $this->objShipment->ShippedFlag) { $this->DisplayLabels(); } $this->calShipDate->Display = true; $this->lblShipDate->Display = false; $this->pnlNote->Display = false; $this->txtNote->Display = true; $this->btnEdit->Display = false; $this->atcAttach->btnUpload->Display = false; $this->btnSave->Display = true; $this->btnCancel->Display = true; if ($this->blnEditMode) { $this->btnCompleteShipment->Enabled = false; } // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } }
protected function DisplayInputs() { // Do Not Display Labels for Viewing mode $this->lblCompany->Display = false; $this->lblFirstName->Display = false; $this->lblLastName->Display = false; $this->lblTitle->Display = false; $this->lblEmail->Display = false; $this->pnlDescription->Display = false; $this->lblAddress->Display = false; $this->lblPhoneOffice->Display = false; $this->lblPhoneMobile->Display = false; $this->lblPhoneHome->Display = false; $this->lblFax->Display = false; // Do Not Display Edit and Delete buttons $this->btnEdit->Display = false; $this->btnDelete->Display = false; $this->atcAttach->btnUpload->Display = false; // Display inputs $this->lstCompany->Display = true; $this->txtFirstName->Display = true; $this->txtLastName->Display = true; $this->txtTitle->Display = true; $this->txtEmail->Display = true; $this->lstAddress->Display = true; $this->txtDescription->Display = true; $this->txtPhoneOffice->Display = true; $this->txtPhoneMobile->Display = true; $this->txtPhoneHome->Display = true; $this->txtFax->Display = true; $this->lblNewCompany->Display = true; $this->lblNewAddress->Display = true; //If the user is not authorized to edit built-in fields, the fields are render as labels. if (!$this->blnEditBuiltInFields) { $this->DisplayLabels(); } // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } // Display Cancel and Save buttons $this->btnCancel->Display = true; $this->btnSave->Display = true; }
public function displayInputs() { // Do not display labels $this->lblShortDescription->Display = false; $this->lblCategory->Display = false; $this->lblManufacturer->Display = false; $this->lblInventoryModelCode->Display = false; $this->pnlLongDescription->Display = false; // Do not display Edit and Delete buttons $this->btnEdit->Display = false; $this->btnDelete->Display = false; $this->atcAttach->Display = false; // Display inputs $this->txtShortDescription->Display = true; $this->lstCategory->Display = true; $this->lstManufacturer->Display = true; $this->txtLongDescription->Display = true; //$this->txtInventoryModelCode->Display = true; if (empty($_GET['intInventoryModelId'])) { $this->txtInventoryModelCode->Display = true; } else { $this->lblInventoryModelCode->Display = true; } /* if(!empty($_GET['intInventoryModelId']) && in_array($_GET['intInventoryModelId'], array(5,6,7,8))){ $this->lblInventoryModelCode->Display = true; $this->txtInventoryModelCode->Display = false; }else{ $this->txtInventoryModelCode->Display = true; } */ // Display Cancel and Save butons $this->btnCancel->Display = true; $this->btnSave->Display = true; // new: if the user is authorized to edit the built-in fields. //if the user is not authorized to edit built-in fields, the fields are render as labels. if (!$this->blnEditBuiltInFields) { $this->displayLabels(); } // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } }
protected function DisplayInputs() { // Hide Labels $this->lblShipDate->Display = false; $this->lblFromCompany->Display = false; $this->lblFromContact->Display = false; $this->lblFromAddress->Display = false; $this->lblToCompany->Display = false; $this->lblToContact->Display = false; $this->lblToAddress->Display = false; if (QApplication::$TracmorSettings->CustomShipmentNumbers) { $this->lblShipmentNumber->Display = false; } $this->lblCourier->Display = false; $this->pnlNote->Display = false; $this->lblTrackingNumber->Display = false; $this->lblToPhone->Display = false; $this->lblBillTransportationTo->Display = false; $this->lblPayerAccount->Display = false; $this->lblReference->Display = false; $this->lblFedexNotifySenderEmail->Display = false; $this->lblFedexNotifyRecipientEmail->Display = false; $this->lblFedexNotifyOtherEmail->Display = false; $this->lblFxServiceType->Display = false; $this->lblPackageType->Display = false; $this->lblPackageWeight->Display = false; $this->lblPackageLength->Display = false; $this->lblPackageWidth->Display = false; $this->lblPackageHeight->Display = false; $this->lblValue->Display = false; $this->lblWeightUnit->Display = false; $this->lblLengthUnit->Display = false; $this->lblCurrencyUnit->Display = false; $this->lblHoldAtLocationAddress->Display = false; $this->lblHoldAtLocationCity->Display = false; $this->lblHoldAtLocationState->Display = false; $this->lblHoldAtLocationPostalCode->Display = false; $this->lblFedexLabelPrinterType->Display = false; $this->lblFedexLabelFormatType->Display = false; $this->lblFedexThermalPrinterPort->Display = false; // Show Inputs if (!$this->objShipment->ShippedFlag) { $this->calShipDate->Display = true; $this->lstFromCompany->Display = true; $this->lstFromContact->Display = true; $this->lstFromAddress->Display = true; $this->lstToCompany->Display = true; $this->lstToContact->Display = true; $this->lstToAddress->Display = true; if (QApplication::$TracmorSettings->CustomShipmentNumbers) { $this->txtShipmentNumber->Display = true; } $this->lstCourier->Display = true; $this->txtTrackingNumber->Display = true; $this->txtNewAssetCode->Display = true; //$this->lblAdvanced->Display = true; $this->btnAddAsset->Display = true; $this->lblAddAsset->Display = true; $this->txtNewInventoryModelCode->Display = true; $this->btnLookup->Display = true; $this->lblLookup->Display = true; $this->lstSourceLocation->Display = true; $this->txtQuantity->Display = true; $this->btnAddInventory->Display = true; $this->txtToPhone->Display = true; if ($this->lstBillTransportationTo->SelectedValue === 1) { $this->lstShippingAccount->Display = true; } else { if ($this->blnEditMode) { $this->txtRecipientThirdPartyAccount->Display = true; } } $this->lstBillTransportationTo->Display = true; $this->txtReference->Display = true; $this->txtFedexNotifySenderEmail->Display = true; $this->txtFedexNotifyRecipientEmail->Display = true; $this->txtFedexNotifyOtherEmail->Display = true; $this->lstFxServiceType->Display = true; $this->lstPackageType->Display = true; $this->txtPackageWeight->Display = true; $this->lstWeightUnit->Display = true; $this->txtPackageLength->Display = true; $this->txtPackageWidth->Display = true; $this->txtPackageHeight->Display = true; $this->lstLengthUnit->Display = true; $this->txtValue->Display = true; $this->lstCurrencyUnit->Display = true; $this->lblNewFromCompany->Display = true; $this->lblNewFromContact->Display = true; $this->lblNewFromAddress->Display = true; $this->lblNewToCompany->Display = true; $this->lblNewToContact->Display = true; $this->lblNewToAddress->Display = true; $this->txtHoldAtLocationAddress->Display = true; $this->txtHoldAtLocationCity->Display = true; $this->lstHoldAtLocationState->Display = true; $this->txtHoldAtLocationPostalCode->Display = true; $this->lstFedexLabelPrinterType->Display = true; $this->lstFedexLabelFormatType->Display = true; $this->txtFedexThermalPrinterPort->Display = true; // Enable Fedex Notification Checkboxes (because they're disabled, not hidden) $this->chkFedexNotifySenderShipFlag->Enabled = true; $this->chkFedexNotifySenderExceptionFlag->Enabled = true; $this->chkFedexNotifySenderDeliveryFlag->Enabled = true; $this->chkFedexNotifyRecipientShipFlag->Enabled = true; $this->chkFedexNotifyRecipientExceptionFlag->Enabled = true; $this->chkFedexNotifyRecipientDeliveryFlag->Enabled = true; $this->chkFedexNotifyOtherShipFlag->Enabled = true; $this->chkFedexNotifyOtherExceptionFlag->Enabled = true; $this->chkFedexNotifyOtherDeliveryFlag->Enabled = true; //Enable FedEx Special Services Checkboxes (because they're disabled, not hidden) $this->chkSaturdayDeliveryFlag->Enabled = true; $this->chkHoldAtLocationFlag->Enabled = true; } if ($this->blnEditMode) { $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Action', '<?= $_FORM->RemoveAssetColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); $this->dtgInventoryTransact->AddColumn(new QDataGridColumn('Action', '<?= $_FORM->RemoveInventoryColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Advanced', '<?= $_FORM->AdvancedColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Due Date', '<?= $_FORM->DueDateColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); } // If the user is not authorized to edit built-in fields, the fields are render as labels. // Also used if editing a completed shipment if (!$this->blnEditBuiltInFields || $this->objShipment->ShippedFlag) { $this->DisplayLabels(); } $this->calShipDate->Display = true; $this->lblShipDate->Display = false; $this->pnlNote->Display = false; $this->txtNote->Display = true; $this->btnEdit->Display = false; $this->atcAttach->btnUpload->Display = false; $this->btnSave->Display = true; $this->btnCancel->Display = true; if ($this->blnEditMode) { $this->btnCompleteShipment->Enabled = false; } // Display custom field inputs if ($this->arrCustomFields) { CustomField::DisplayInputs($this->arrCustomFields); } }