예제 #1
0
 protected function DisplayLabels()
 {
     // Do not display inputs
     $this->txtShortDescription->Display = false;
     $this->txtAddress1->Display = false;
     $this->txtAddress2->Display = false;
     $this->txtCity->Display = false;
     $this->lstStateProvince->Display = false;
     $this->lstCountry->Display = false;
     $this->txtPostalCode->Display = false;
     // Do not display Cancel and Save buttons
     $this->btnCancel->Display = false;
     $this->btnSave->Display = false;
     // Display Labels for Viewing mode
     $this->lblShortDescription->Display = true;
     $this->lblAddress1->Display = true;
     $this->lblAddress2->Display = true;
     $this->lblCity->Display = true;
     $this->lblStateProvince->Display = true;
     $this->lblCountry->Display = true;
     $this->lblPostalCode->Display = true;
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
     // Display Edit and Delete buttons
     $this->btnEdit->Display = true;
     $this->btnDelete->Display = true;
     $this->atcAttach->btnUpload->Display = true;
 }
예제 #2
0
 protected function DisplayLabels()
 {
     // Hide inputs
     $this->lstFromCompany->Display = false;
     $this->lstFromContact->Display = false;
     $this->lstToContact->Display = false;
     $this->lstToAddress->Display = false;
     if (QApplication::$TracmorSettings->CustomReceiptNumbers) {
         $this->txtReceiptNumber->Display = false;
     }
     $this->txtNote->Display = false;
     $this->calDueDate->Display = false;
     $this->calDateReceived->Display = false;
     if ($this->blnEditMode) {
         $this->dtgAssetTransact->RemoveColumnByName(' ');
         $this->dtgInventoryTransact->RemoveColumnByName(' ');
     }
     $this->btnSave->Display = false;
     $this->btnCancel->Display = false;
     $this->rblAssetType->Display = false;
     $this->txtNewAssetCode->Display = false;
     $this->lstAssetModel->Display = false;
     $this->chkAutoGenerateAssetCode->Display = false;
     $this->btnAddAsset->Display = false;
     $this->lblAddAsset->Display = false;
     if ($this->blnShowInventory) {
         $this->txtNewInventoryModelCode->Display = false;
         $this->lblLookup->Display = false;
         $this->txtQuantity->Display = false;
         $this->btnAddInventory->Display = false;
     }
     // Display labels
     $this->lblFromCompany->Display = true;
     $this->lblFromContact->Display = true;
     $this->lblToContact->Display = true;
     $this->lblToAddress->Display = true;
     if (QApplication::$TracmorSettings->CustomReceiptNumbers) {
         $this->lblReceiptNumber->Display = true;
     }
     $this->pnlNote->Display = true;
     $this->lblDueDate->Display = true;
     $this->lblReceiptDate->Display = true;
     $this->btnEdit->Display = true;
     $this->btnDelete->Display = true;
     $this->atcAttach->btnUpload->Display = true;
     if ($this->blnEditMode) {
         $this->dtgAssetTransact->AddColumn(new QDataGridColumn('&nbsp;', '<?= $_FORM->lstLocationAssetReceived_Render($_ITEM) ?> <?= $_FORM->btnReceiveAssetTransaction_Render($_ITEM) ?>', array('CssClass' => "dtgcolumn", 'HtmlEntities' => false)));
         $this->dtgInventoryTransact->AddColumn(new QDataGridColumn('&nbsp;', '<?= $_FORM->lstLocationInventoryReceived_Render($_ITEM) ?> <?= $_FORM->txtQuantityReceived_Render($_ITEM) ?> <?= $_FORM->btnReceiveInventoryTransaction_Render($_ITEM) ?>', array('CssClass' => "dtgcolumn", 'HtmlEntities' => false)));
     }
     $this->lblNewFromCompany->Display = false;
     $this->lblNewFromContact->Display = false;
     $this->lblNewToContact->Display = false;
     $this->lblNewToAddress->Display = false;
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
 }
예제 #3
0
 protected function DisplayLabels()
 {
     // Do not display inputs
     $this->txtShortDescription->Display = false;
     $this->txtWebsite->Display = false;
     $this->txtEmail->Display = false;
     $this->txtLongDescription->Display = false;
     $this->lstAddress->Display = false;
     $this->txtTelephone->Display = false;
     $this->txtFax->Display = false;
     // Do not display Cancel and Save buttons
     $this->btnCancel->Display = false;
     $this->btnSave->Display = false;
     // Display Labels for Viewing mode
     $this->lblShortDescription->Display = true;
     $this->lblWebsite->Display = true;
     $this->lblEmail->Display = true;
     $this->pnlLongDescription->Display = true;
     $this->lblAddress->Display = true;
     $this->lblTelephone->Display = true;
     $this->lblFax->Display = true;
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
     // Display Edit and Delete buttons
     $this->btnEdit->Display = true;
     $this->btnDelete->Display = true;
     $this->atcAttach->btnUpload->Display = true;
 }
예제 #4
0
 public function displayLabels()
 {
     // Do not display inputs
     $this->txtAssetCode->Display = false;
     $this->txtParentAssetCode->Display = false;
     $this->chkLockToParent->Display = false;
     $this->lstAssetModel->Display = false;
     $this->chkAutoGenerateAssetCode->Display = false;
     $this->lblNewAssetModel->Display = false;
     // Do not display Cancel and Save buttons
     $this->btnCancel->Display = false;
     $this->btnSave->Display = false;
     // Display Labels for Viewing mode
     $this->lblIconParentAssetCode->Display = false;
     $this->lblAssetModelCode->Display = true;
     $this->lblLocation->Display = true;
     $this->lblAssetCode->Display = true;
     $this->lblAssetModel->Display = true;
     $this->lblParentAssetCode->Display = true;
     if ($this->objAsset->LinkedFlag) {
         $this->lblLockedToParent->Visible = true;
     } else {
         $this->lblLockedToParent->Visible = false;
     }
     // Display Edit and Delete buttons
     $this->btnEdit->Display = true;
     $this->btnDelete->Display = true;
     $this->btnClone->Display = true;
     $this->atcAttach->btnUpload->Display = true;
     $this->btnPrintAssetTag->Display = true;
     if ($this->objAsset->ArchivedFlag) {
         $this->btnEdit->Enabled = false;
         $this->btnClone->Enabled = false;
         $this->atcAttach->Enabled = false;
         $this->btnPrintAssetTag->Enabled = false;
     } else {
         $this->btnEdit->Enabled = true;
         $this->btnClone->Enabled = true;
         $this->atcAttach->Enabled = true;
         $this->btnPrintAssetTag->Enabled = true;
     }
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
 }
예제 #5
0
 protected function displayLabels()
 {
     $this->lblImage->Display = true;
     $this->ifcImage->Display = false;
     // Do not display inputs
     $this->txtShortDescription->Display = false;
     $this->txtAssetModelCode->Display = false;
     $this->lstCategory->Display = false;
     $this->lstManufacturer->Display = false;
     $this->txtLongDescription->Display = false;
     // Do not display Cancel and Save buttons
     $this->btnCancel->Display = false;
     $this->btnSave->Display = false;
     // Display Labels/Panels for Viewing mode
     $this->lblShortDescription->Display = true;
     $this->lblAssetModelCode->Display = true;
     $this->lblCategory->Display = true;
     $this->lblManufacturer->Display = true;
     $this->pnlLongDescription->Display = true;
     // Display Edit and Delete buttons
     $this->btnEdit->Display = true;
     $this->btnDelete->Display = true;
     $this->atcAttach->btnUpload->Display = true;
     // $this->btnClone->Display = true;
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
 }
예제 #6
0
 protected function DisplayLabels()
 {
     // Hide Inputs
     $this->calShipDate->Display = false;
     $this->lstFromCompany->Display = false;
     $this->lstFromContact->Display = false;
     $this->lstFromAddress->Display = false;
     $this->lstToCompany->Display = false;
     $this->lstToContact->Display = false;
     $this->lstToAddress->Display = false;
     if (QApplication::$TracmorSettings->CustomShipmentNumbers) {
         $this->txtShipmentNumber->Display = false;
     }
     $this->lstCourier->Display = false;
     $this->txtNote->Display = false;
     $this->txtTrackingNumber->Display = false;
     $this->txtNewAssetCode->Display = false;
     $this->btnAddAsset->Display = false;
     $this->lblAddAsset->Display = false;
     if ($this->blnShowInventory) {
         $this->btnLookup->Display = false;
         $this->lblLookup->Display = false;
         $this->btnAddInventory->Display = false;
         $this->txtNewInventoryModelCode->Display = false;
         $this->lstSourceLocation->Display = false;
         $this->txtQuantity->Display = false;
     }
     $this->lblNewFromCompany->Display = false;
     $this->lblNewFromContact->Display = false;
     $this->lblNewFromAddress->Display = false;
     $this->lblNewToCompany->Display = false;
     $this->lblNewToContact->Display = false;
     $this->lblNewToAddress->Display = false;
     /*			if ($this->lblAdvanced->Text == 'Hide Advanced') {
     				$this->lblAdvanced_Click($this->FormId, $this->lblAdvanced->ControlId, null);
     			}*/
     if (!$this->objShipment->ShippedFlag) {
         //$this->lblAdvanced->Display = false;
         $this->btnCancelCompleteShipment->Display = false;
     } else {
         $this->btnCancelCompleteShipment->Display = true;
     }
     $this->btnSave->Display = false;
     $this->btnCancel->Display = false;
     if ($this->blnEditMode) {
         $this->dtgAssetTransact->RemoveColumnByName('Action');
         $this->dtgInventoryTransact->RemoveColumnByName('Action');
         $this->dtgAssetTransact->RemoveColumnByName('Advanced');
         $this->dtgAssetTransact->RemoveColumnByName('Due Date');
     }
     // Display Labels
     $this->lblShipDate->Display = true;
     $this->lblFromCompany->Display = true;
     $this->lblFromContact->Display = true;
     $this->lblFromAddress->Display = true;
     $this->lblFromAddressFull->Display = true;
     $this->lblToCompany->Display = true;
     $this->lblToContact->Display = true;
     $this->lblToAddress->Display = true;
     $this->lblToAddressFull->Display = true;
     if (QApplication::$TracmorSettings->CustomShipmentNumbers) {
         $this->lblShipmentNumber->Display = true;
     }
     $this->lblCourier->Display = true;
     $this->pnlNote->Display = true;
     $this->lblTrackingNumber->Display = true;
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
     //if (!$this->objShipment->ShippedFlag) {
     $this->btnEdit->Display = true;
     //}
     $this->atcAttach->btnUpload->Display = true;
     // This is not necessary, because this method is only being called in EditMode
     if ($this->blnEditMode) {
         $this->btnCompleteShipment->Enabled = true;
     }
 }
예제 #7
0
 protected function DisplayLabels()
 {
     // Do not display inputs
     $this->lstCompany->Display = false;
     $this->txtFirstName->Display = false;
     $this->txtLastName->Display = false;
     $this->txtTitle->Display = false;
     $this->txtEmail->Display = false;
     $this->lstAddress->Display = false;
     $this->txtDescription->Display = false;
     $this->txtPhoneOffice->Display = false;
     $this->txtPhoneMobile->Display = false;
     $this->txtPhoneHome->Display = false;
     $this->txtFax->Display = false;
     $this->lblNewCompany->Display = false;
     $this->lblNewAddress->Display = false;
     // Do not display Cancel and Save buttons
     $this->btnCancel->Display = false;
     $this->btnSave->Display = false;
     // Display Labels for Viewing mode
     $this->lblCompany->Display = true;
     $this->lblFirstName->Display = true;
     $this->lblLastName->Display = true;
     $this->lblTitle->Display = true;
     $this->lblEmail->Display = true;
     $this->pnlDescription->Display = true;
     $this->lblAddress->Display = true;
     $this->lblPhoneOffice->Display = true;
     $this->lblPhoneMobile->Display = true;
     $this->lblPhoneHome->Display = true;
     $this->lblFax->Display = true;
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
     // Display Edit and Delete buttons
     $this->btnEdit->Display = true;
     $this->btnDelete->Display = true;
     $this->atcAttach->btnUpload->Display = true;
 }
 public function displayLabels()
 {
     // Do not display inputs
     $this->txtShortDescription->Display = false;
     $this->lstCategory->Display = false;
     $this->lstManufacturer->Display = false;
     $this->txtLongDescription->Display = false;
     $this->txtInventoryModelCode->Display = false;
     // Do not display Cancel and Save buttons
     $this->btnCancel->Display = false;
     $this->btnSave->Display = false;
     // Display Labels for Viewing mode
     $this->lblShortDescription->Display = true;
     $this->lblCategory->Display = true;
     $this->lblManufacturer->Display = true;
     $this->lblInventoryModelCode->Display = true;
     $this->pnlLongDescription->Display = true;
     // Display Edit and Delete buttons
     $this->btnEdit->Display = true;
     if ($_GET['intInventoryModelId'] == 5 || $_GET['intInventoryModelId'] == 6 || $_GET['intInventoryModelId'] == 7 || $_GET['intInventoryModelId'] == 8) {
         $this->btnDelete->Display = false;
     } else {
         $this->btnDelete->Display = true;
     }
     $this->atcAttach->btnUpload->Display = true;
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
 }
예제 #9
0
 protected function DisplayLabels()
 {
     // Hide Inputs
     $this->calShipDate->Display = false;
     $this->lstFromCompany->Display = false;
     $this->lstFromContact->Display = false;
     $this->lstFromAddress->Display = false;
     $this->lstToCompany->Display = false;
     $this->lstToContact->Display = false;
     $this->lstToAddress->Display = false;
     if (QApplication::$TracmorSettings->CustomShipmentNumbers) {
         $this->txtShipmentNumber->Display = false;
     }
     $this->lstCourier->Display = false;
     $this->txtNote->Display = false;
     $this->txtTrackingNumber->Display = false;
     $this->txtNewAssetCode->Display = false;
     $this->btnAddAsset->Display = false;
     $this->lblAddAsset->Display = false;
     $this->btnLookup->Display = false;
     $this->lblLookup->Display = false;
     $this->btnAddInventory->Display = false;
     $this->txtNewInventoryModelCode->Display = false;
     $this->lstSourceLocation->Display = false;
     $this->txtQuantity->Display = false;
     $this->txtToPhone->Display = false;
     $this->lstBillTransportationTo->Display = false;
     $this->lstShippingAccount->Display = false;
     $this->txtRecipientThirdPartyAccount->Display = false;
     $this->txtReference->Display = false;
     $this->txtFedexNotifySenderEmail->Display = false;
     $this->txtFedexNotifyRecipientEmail->Display = false;
     $this->txtFedexNotifyOtherEmail->Display = false;
     $this->lstFxServiceType->Display = false;
     $this->lstPackageType->Display = false;
     $this->txtPackageWeight->Display = false;
     $this->lstWeightUnit->Display = false;
     $this->txtPackageLength->Display = false;
     $this->txtPackageWidth->Display = false;
     $this->txtPackageHeight->Display = false;
     $this->lstLengthUnit->Display = false;
     $this->txtValue->Display = false;
     $this->lstCurrencyUnit->Display = false;
     $this->lblNewFromCompany->Display = false;
     $this->lblNewFromContact->Display = false;
     $this->lblNewFromAddress->Display = false;
     $this->lblNewToCompany->Display = false;
     $this->lblNewToContact->Display = false;
     $this->lblNewToAddress->Display = false;
     $this->txtHoldAtLocationAddress->Display = false;
     $this->txtHoldAtLocationCity->Display = false;
     $this->lstHoldAtLocationState->Display = false;
     $this->txtHoldAtLocationPostalCode->Display = false;
     $this->lstFedexLabelPrinterType->Display = false;
     $this->lstFedexLabelFormatType->Display = false;
     $this->txtFedexThermalPrinterPort->Display = false;
     // Disable (instead of hiding) Fedex Notification checkboxes
     $this->chkFedexNotifySenderShipFlag->Enabled = false;
     $this->chkFedexNotifySenderExceptionFlag->Enabled = false;
     $this->chkFedexNotifySenderDeliveryFlag->Enabled = false;
     $this->chkFedexNotifyRecipientShipFlag->Enabled = false;
     $this->chkFedexNotifyRecipientExceptionFlag->Enabled = false;
     $this->chkFedexNotifyRecipientDeliveryFlag->Enabled = false;
     $this->chkFedexNotifyOtherShipFlag->Enabled = false;
     $this->chkFedexNotifyOtherExceptionFlag->Enabled = false;
     $this->chkFedexNotifyOtherDeliveryFlag->Enabled = false;
     // Disable (instead of hiding) FedEx Special Services checkboxes
     $this->chkSaturdayDeliveryFlag->Enabled = false;
     $this->chkHoldAtLocationFlag->Enabled = false;
     /*			if ($this->lblAdvanced->Text == 'Hide Advanced') {
     				$this->lblAdvanced_Click($this->FormId, $this->lblAdvanced->ControlId, null);
     			}*/
     if (!$this->objShipment->ShippedFlag) {
         //$this->lblAdvanced->Display = false;
         $this->btnCancelCompleteShipment->Display = false;
     } else {
         $this->btnCancelCompleteShipment->Display = true;
     }
     $this->btnSave->Display = false;
     $this->btnCancel->Display = false;
     if ($this->blnEditMode) {
         $this->dtgAssetTransact->RemoveColumnByName('Action');
         $this->dtgInventoryTransact->RemoveColumnByName('Action');
         $this->dtgAssetTransact->RemoveColumnByName('Advanced');
         $this->dtgAssetTransact->RemoveColumnByName('Due Date');
     }
     // Display Labels
     $this->lblShipDate->Display = true;
     $this->lblFromCompany->Display = true;
     $this->lblFromContact->Display = true;
     $this->lblFromAddress->Display = true;
     $this->lblFromAddressFull->Display = true;
     $this->lblToCompany->Display = true;
     $this->lblToContact->Display = true;
     $this->lblToAddress->Display = true;
     $this->lblToAddressFull->Display = true;
     if (QApplication::$TracmorSettings->CustomShipmentNumbers) {
         $this->lblShipmentNumber->Display = true;
     }
     $this->lblCourier->Display = true;
     $this->pnlNote->Display = true;
     $this->lblTrackingNumber->Display = true;
     $this->lblToPhone->Display = true;
     $this->lblBillTransportationTo->Display = true;
     $this->lblPayerAccount->Display = true;
     $this->lblReference->Display = true;
     $this->lblFedexNotifySenderEmail->Display = true;
     $this->lblFedexNotifyRecipientEmail->Display = true;
     $this->lblFedexNotifyOtherEmail->Display = true;
     $this->lblFxServiceType->Display = true;
     $this->lblPackageType->Display = true;
     $this->lblPackageWeight->Display = true;
     $this->lblPackageLength->Display = true;
     $this->lblPackageWidth->Display = true;
     $this->lblPackageHeight->Display = true;
     $this->lblValue->Display = true;
     $this->lblWeightUnit->Display = true;
     $this->lblLengthUnit->Display = true;
     $this->lblCurrencyUnit->Display = true;
     $this->lblHoldAtLocationAddress->Display = true;
     $this->lblHoldAtLocationCity->Display = true;
     $this->lblHoldAtLocationState->Display = true;
     $this->lblHoldAtLocationPostalCode->Display = true;
     $this->lblFedexLabelPrinterType->Display = true;
     $this->lblFedexLabelFormatType->Display = true;
     $this->lblFedexThermalPrinterPort->Display = true;
     // Display custom field labels
     if ($this->arrCustomFields) {
         CustomField::DisplayLabels($this->arrCustomFields);
     }
     //if (!$this->objShipment->ShippedFlag) {
     $this->btnEdit->Display = true;
     //}
     $this->atcAttach->btnUpload->Display = true;
     // This is not necessary, because this method is only being called in EditMode
     if ($this->blnEditMode) {
         $this->btnCompleteShipment->Enabled = true;
     }
 }