當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CustomField::CustomFieldControlsCreate方法代碼示例

本文整理匯總了PHP中CustomField::CustomFieldControlsCreate方法的典型用法代碼示例。如果您正苦於以下問題:PHP CustomField::CustomFieldControlsCreate方法的具體用法?PHP CustomField::CustomFieldControlsCreate怎麽用?PHP CustomField::CustomFieldControlsCreate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CustomField的用法示例。


在下文中一共展示了CustomField::CustomFieldControlsCreate方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $arrayCompanyId)
 {
     try {
         parent::__construct($objParentObject, $strClosePanelMethod);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->arrCompaniesToEdit = $arrayCompanyId;
     $this->txtLongDescription_Create();
     $this->chkLongDescription_Create();
     $this->btnSave->AddAction(new QClickEvent(), new QConfirmAction('Are you sure you want to edit these items?'));
     $this->strOverflow = QOverflow::Auto;
     $objCustomFieldArray = CustomField::LoadObjCustomFieldArray(EntityQtype::Company, false);
     if (count($objCustomFieldArray) > 0) {
         $this->arrCustomFields = CustomField::CustomFieldControlsCreate($objCustomFieldArray, false, $this, true, true, false);
         foreach ($this->arrCustomFields as $field) {
             $field['input']->Enabled = false;
             $this->arrCheckboxes[$field['input']->strControlId] = new QCheckBox($this, 'chk' . $field['input']->strControlId);
             $this->arrCheckboxes[$field['input']->strControlId]->Checked = false;
             $this->arrCheckboxes[$field['input']->strControlId]->AddAction(new QClickEvent(), new QJavaScriptAction("enableInput(this)"));
         }
         $this->txtLongDescription->Enabled = false;
     }
     //$this->btnSave->CausesValidation = QCausesValidation::SiblingsOnly;
 }
開發者ID:proxymoron,項目名稱:tracmor,代碼行數:26,代碼來源:CompanyMassEditPanel.class.php

示例2: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $arrayInventoryId)
 {
     try {
         parent::__construct($objParentObject);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->arrInventoryToEdit = $arrayInventoryId;
     //Set Edit Display Logic of Built-In Fields
     $objRoleEntityQtypeBuiltInAuthorization = RoleEntityQtypeBuiltInAuthorization::LoadByRoleIdEntityQtypeIdAuthorizationId(QApplication::$objRoleModule->RoleId, EntityQtype::Inventory, 2);
     if ($objRoleEntityQtypeBuiltInAuthorization && $objRoleEntityQtypeBuiltInAuthorization->AuthorizedFlag) {
         $this->blnEditBuiltInFields = true;
     } else {
         $this->blnEditBuiltInFields = false;
     }
     $this->txtLongDescription_Create();
     $this->lstCategory_Create();
     $this->lstManufacturer_Create();
     $this->chkCategory_Create();
     $this->chkManufacturer_Create();
     $this->chkLongDescription_Create();
     $this->btnApply_Create();
     $this->btnCancel_Create();
     // Load Custom Fields
     $objCustomFieldArray = CustomField::LoadObjCustomFieldArray(2, false);
     if ($objCustomFieldArray) {
         $this->arrCustomFields = CustomField::CustomFieldControlsCreate($objCustomFieldArray, false, $this, true, true, false);
         foreach ($this->arrCustomFields as $field) {
             $field['input']->Enabled = false;
             $this->arrCheckboxes[$field['input']->strControlId] = new QCheckBox($this, 'chk' . $field['input']->strControlId);
             $this->arrCheckboxes[$field['input']->strControlId]->Checked = false;
             $this->arrCheckboxes[$field['input']->strControlId]->AddAction(new QClickEvent(), new QJavaScriptAction("enableInput(this)"));
             $this->arrCheckboxes[$field['input']->strControlId]->Enabled = $field['blnEdit'];
         }
     }
 }
開發者ID:proxymoron,項目名稱:tracmor,代碼行數:37,代碼來源:InventoryMassEditPanel.class.php

示例3: customFields_Create

 protected function customFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objReceipt->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(11, $this->blnEditMode, $this->objReceipt->ReceiptId);
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     if ($this->objReceipt->objCustomFieldArray) {
         $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objReceipt->objCustomFieldArray, $this->blnEditMode, $this, true, true);
     }
     $this->UpdateCustomFields();
 }
開發者ID:proxymoron,項目名稱:tracmor,代碼行數:10,代碼來源:receipt_edit.php

示例4: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $arrayModelId)
 {
     try {
         parent::__construct($objParentObject, $strClosePanelMethod);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->arrModelsToEdit = $arrayModelId;
     //Set Edit Display Logic of Built-In Fields
     $objRoleEntityQtypeBuiltInAuthorization = RoleEntityQtypeBuiltInAuthorization::LoadByRoleIdEntityQtypeIdAuthorizationId(QApplication::$objRoleModule->RoleId, 4, 2);
     if ($objRoleEntityQtypeBuiltInAuthorization && $objRoleEntityQtypeBuiltInAuthorization->AuthorizedFlag) {
         $this->blnEditBuiltInFields = true;
     } else {
         $this->blnEditBuiltInFields = false;
     }
     $this->txtLongDescription->Enabled = false;
     // Create Asset Custom Fields
     $this->UpdateCustomFields();
     // Create Checkboxes
     $this->chkCategory_Create();
     $this->chkManufacturer_Create();
     $this->chkLongDescription_Create();
     $this->btnApply_Create();
     // Load Custom Fields
     $objCustomFieldArray = CustomField::LoadObjCustomFieldArray(EntityQtype::AssetModel, false);
     if ($objCustomFieldArray) {
         $this->arrCustomFields = CustomField::CustomFieldControlsCreate($objCustomFieldArray, false, $this, true, true, false);
         foreach ($this->arrCustomFields as $field) {
             $field['input']->Enabled = false;
             $this->arrCheckboxes[$field['input']->strControlId] = new QCheckBox($this, 'chk' . $field['input']->strControlId);
             $this->arrCheckboxes[$field['input']->strControlId]->Checked = false;
             $this->arrCheckboxes[$field['input']->strControlId]->AddAction(new QClickEvent(), new QJavaScriptAction("enableInput(this)"));
             $this->arrCheckboxes[$field['input']->strControlId]->Enabled = $field['blnEdit'];
         }
     }
     $this->btnSave->CausesValidation = QCausesValidation::SiblingsOnly;
     $this->Overflow = QOverflow::Auto;
     // Modify Code Generated Controls
     // $this->btnSave->RemoveAllActions('onclick');
     //$this->btnSave->AddAction(new QClickEvent(), new QServerControlAction($this, 'btnSave_Click'));
 }
開發者ID:proxymoron,項目名稱:tracmor,代碼行數:42,代碼來源:ModelMassEditPanel.class.php

示例5: customFields_Create

 protected function customFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objContact->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(EntityQtype::Contact, $this->blnEditMode, $this->objContact->ContactId);
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objContact->objCustomFieldArray, $this->blnEditMode, $this, false, true, false);
     // Set Display logic of the Custom Fields
     $this->UpdateCustomFields();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:9,代碼來源:ContactEditPanel.class.php

示例6: customFields_Create

 protected function customFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objAsset->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(1, $this->blnEditMode, $this->objAsset->AssetId);
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objAsset->objCustomFieldArray, $this->blnEditMode, $this, true, true);
     // Add TabIndex for all txt custom fields
     foreach ($this->arrCustomFields as $arrCustomField) {
         if (array_key_exists('input', $arrCustomField)) {
             $arrCustomField['input']->TabIndex = $this->GetNextTabIndex();
         }
     }
     //Setup Custom Fields
     $this->UpdateCustomFields();
 }
開發者ID:brustj,項目名稱:tracmor,代碼行數:15,代碼來源:QAssetEditComposite.class.php

示例7: customFields_Create

 protected function customFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objAssetModel->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(4, $this->blnEditMode, $this->objAssetModel->AssetModelId);
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objAssetModel->objCustomFieldArray, $this->blnEditMode, $this, false, true, false);
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:7,代碼來源:AssetModelEditPanel.class.php

示例8: arrAddressCustomFields_Create

 protected function arrAddressCustomFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objAddress = new Address();
     $this->objAddress->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(9, $this->blnEditMode);
     if ($this->objAddress->objCustomFieldArray) {
         $this->arrAddressCustomFields = CustomField::CustomFieldControlsCreate($this->objAddress->objCustomFieldArray, $this->blnEditMode, $this, false, true);
         if ($this->arrAddressCustomFields) {
             foreach ($this->arrAddressCustomFields as $field) {
                 $field['input']->TabIndex = $this->intTabIndex++;
             }
         }
     }
     $this->UpdateAddressCustomFields();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:15,代碼來源:company_edit.php

示例9: customFields_Create

 protected function customFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objInventoryModel->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(2, $this->blnEditMode, $this->objInventoryModel->InventoryModelId);
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objInventoryModel->objCustomFieldArray, $this->blnEditMode, $this, true, true);
     /*if($this->arrCustomFields) {
     			foreach ($this->arrCustomFields as $objCustomField) {
     			//Set NextTabIndex only if the custom field is show
     				if($objCustomField['ViewAuth'] && $objCustomField['ViewAuth']->AuthorizedFlag){
     					$objCustomField['input']->TabIndex=$this->GetNextTabIndex();
     				}
     			}
     		}*/
     $this->UpdateCustomFields();
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:16,代碼來源:QInventoryEditComposite.class.php

示例10: customFields_Create

 protected function customFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objCustomFieldArray = CustomField::LoadObjCustomFieldArray($this->intEntityQtypeId, false, null);
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objCustomFieldArray, false, $this->objParentObject, false, true, true);
 }
開發者ID:brustj,項目名稱:tracmor,代碼行數:7,代碼來源:QAdvancedSearchComposite.class.php

示例11: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $arrayReceiptId)
 {
     try {
         parent::__construct($objParentObject);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->objCompanyArray = Company::LoadAll(QQ::Clause(QQ::OrderBy(QQN::Company()->ShortDescription)));
     $this->arrReceiptToEdit = $arrayReceiptId;
     $this->chkDateDue_Create();
     $this->chkDateReceived_Create();
     $this->chkToCompany_Create();
     $this->chkFromCompany_Create();
     $this->chkNote_Create();
     $this->calDateDue_Create();
     $this->calDateReceived_Create();
     $this->lstToCompany_Create();
     $this->lstToContact_Create();
     $this->lstToAddress_Create();
     $this->lstFromCompany_Create();
     $this->lstFromContact_Create();
     $this->lstFromAddress_Create();
     $this->txtNote_Create();
     $this->btnApply_Create();
     $this->btnCancel_Create();
     // Disable inputs
     $this->calDateDue->Enabled = false;
     $this->calDateReceived->Enabled = false;
     $this->lstToCompany->Enabled = false;
     $this->lstToContact->Enabled = false;
     $this->lstToAddress->Enabled = false;
     $this->lstFromCompany->Enabled = false;
     $this->lstFromAddress->Enabled = false;
     $this->lstFromContact->Enabled = false;
     $this->txtNote->Enabled = false;
     // Load Custom Fields
     $objCustomFieldArray = CustomField::LoadObjCustomFieldArray(EntityQtype::Receipt, false);
     if ($objCustomFieldArray) {
         $this->arrCustomFields = CustomField::CustomFieldControlsCreate($objCustomFieldArray, false, $this, true, true, false);
         foreach ($this->arrCustomFields as $field) {
             $field['input']->Enabled = false;
             $this->arrCheckboxes[$field['input']->strControlId] = new QCheckBox($this, 'chk' . $field['input']->strControlId);
             $this->arrCheckboxes[$field['input']->strControlId]->Checked = false;
             $this->arrCheckboxes[$field['input']->strControlId]->AddAction(new QClickEvent(), new QJavaScriptAction("enableInput(this)"));
         }
     }
 }
開發者ID:proxymoron,項目名稱:tracmor,代碼行數:48,代碼來源:ReceiptMassEditPanel.class.php

示例12: customFields_Create

 protected function customFields_Create()
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objManufacturer->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(5, $this->blnEditMode, $this->objManufacturer->ManufacturerId);
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objManufacturer->objCustomFieldArray, $this->blnEditMode, $this, true, true);
     foreach ($this->arrCustomFields as $objCustomField) {
         $objCustomField['input']->TabIndex = $this->GetNextTabIndex();
     }
 }
開發者ID:heshuai64,項目名稱:einv2,代碼行數:10,代碼來源:manufacturer_edit.php

示例13: reloadCustomFields

 public function reloadCustomFields($intAssetModelId)
 {
     // Load all custom fields and their values into an array objCustomFieldArray->CustomFieldSelection->CustomFieldValue
     $this->objAsset->objCustomFieldArray = CustomField::LoadObjCustomFieldArray(1, $this->blnEditMode, $this->objAsset->AssetId, false, $intAssetModelId);
     foreach ($this->arrCustomFields as $objCustomField) {
         $objCustomField['input']->Form->RemoveControl($objCustomField['input']->ControlId);
     }
     // Create the Custom Field Controls - labels and inputs (text or list) for each
     $this->arrCustomFields = CustomField::CustomFieldControlsCreate($this->objAsset->objCustomFieldArray, $this->blnEditMode, $this, true, true, false);
     // Add TabIndex for all txt custom fields
     $this->blnEditMode ? $this->intNextTabIndex = 2 : ($this->intNextTabIndex = 3);
     foreach ($this->arrCustomFields as $arrCustomField) {
         if (array_key_exists('input', $arrCustomField)) {
             $arrCustomField['input']->TabIndex = $this->GetNextTabIndex();
             $this->txtParentAssetCode->TabIndex = $arrCustomField['input']->TabIndex + 1;
             $this->chkLockToParent->TabIndex = $this->txtParentAssetCode->TabIndex + 1;
             $arrCustomField['lbl']->Display = false;
         }
     }
     //Setup Custom Fields
     $this->UpdateCustomFields();
 }
開發者ID:jdellinger,項目名稱:tracmor,代碼行數:22,代碼來源:QAssetEditComposite.class.php


注:本文中的CustomField::CustomFieldControlsCreate方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。