本文整理汇总了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;
}
示例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'];
}
}
}
示例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();
}
示例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'));
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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)"));
}
}
}
示例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();
}
}
示例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();
}