当前位置: 首页>>代码示例>>PHP>>正文


PHP CustomField::DisplayInputs方法代码示例

本文整理汇总了PHP中CustomField::DisplayInputs方法的典型用法代码示例。如果您正苦于以下问题:PHP CustomField::DisplayInputs方法的具体用法?PHP CustomField::DisplayInputs怎么用?PHP CustomField::DisplayInputs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CustomField的用法示例。


在下文中一共展示了CustomField::DisplayInputs方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: DisplayInputs

 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;
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:34,代码来源:address_edit.php

示例2: DisplayInputs

 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('&nbsp;', '<?= $_FORM->RemoveAssetColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false)));
         $this->dtgInventoryTransact->AddColumn(new QDataGridColumn('&nbsp;', '<?= $_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);
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:71,代码来源:receipt_edit.php

示例3: DisplayInputs

 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);
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:34,代码来源:company_edit.php

示例4: displayInputs

 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);
     }
 }
开发者ID:brustj,项目名称:tracmor,代码行数:53,代码来源:QAssetEditComposite.class.php

示例5: displayInputs

 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);
     }
 }
开发者ID:brustj,项目名称:tracmor,代码行数:34,代码来源:asset_model_edit.php

示例6: DisplayInputs

 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);
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:77,代码来源:shipment_edit.php

示例7: DisplayInputs

 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;
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:44,代码来源:contact_edit.php

示例8: displayInputs

 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);
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:44,代码来源:QInventoryEditComposite.class.php

示例9: DisplayInputs

 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;
//.........这里部分代码省略.........
开发者ID:brustj,项目名称:tracmor,代码行数:101,代码来源:shipment_edit.php


注:本文中的CustomField::DisplayInputs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。