当前位置: 首页>>代码示例>>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;未经允许,请勿转载。