Add php files
This commit is contained in:
98
custom/working/modules/Accounts/metadata/quickcreatedefs.php
Executable file
98
custom/working/modules/Accounts/metadata/quickcreatedefs.php
Executable file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
$viewdefs ['Accounts'] =
|
||||
array (
|
||||
'QuickCreate' =>
|
||||
array (
|
||||
'templateMeta' =>
|
||||
array (
|
||||
'form' =>
|
||||
array (
|
||||
'buttons' =>
|
||||
array (
|
||||
0 => 'SAVE',
|
||||
1 => 'CANCEL',
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'file' => 'modules/Accounts/Account.js',
|
||||
),
|
||||
),
|
||||
'useTabs' => false,
|
||||
),
|
||||
'panels' =>
|
||||
array (
|
||||
'default' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'required' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'website',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'phone_office',
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'email1',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'phone_fax',
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'industry',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'account_type',
|
||||
),
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'assigned_user_name',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
781
custom/working/modules/Accounts/relationships.php
Executable file
781
custom/working/modules/Accounts/relationships.php
Executable file
@@ -0,0 +1,781 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
$relationships = array (
|
||||
'campaign_accounts' =>
|
||||
array (
|
||||
'id' => '150890e7-cf38-a4cb-682c-52b2a62d464a',
|
||||
'relationship_name' => 'campaign_accounts',
|
||||
'lhs_module' => 'Campaigns',
|
||||
'lhs_table' => 'campaigns',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Accounts',
|
||||
'rhs_table' => 'accounts',
|
||||
'rhs_key' => 'campaign_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'member_accounts' =>
|
||||
array (
|
||||
'id' => '2d3e463a-7953-fdf5-ebf0-52b2a65b3371',
|
||||
'relationship_name' => 'member_accounts',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Accounts',
|
||||
'rhs_table' => 'accounts',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => 'default',
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'account_cases' =>
|
||||
array (
|
||||
'id' => '2d728e7f-5649-70d0-f4ae-52b2a6efeac8',
|
||||
'relationship_name' => 'account_cases',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Cases',
|
||||
'rhs_table' => 'cases',
|
||||
'rhs_key' => 'account_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'account_documents' =>
|
||||
array (
|
||||
'id' => '2daa2c94-713b-61e9-3ad0-52b2a6b80dd0',
|
||||
'relationship_name' => 'account_documents',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Documents',
|
||||
'rhs_table' => 'documents',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'account_tasks' =>
|
||||
array (
|
||||
'id' => '2ddf915c-840d-98b0-364e-52b2a6f35bb2',
|
||||
'relationship_name' => 'account_tasks',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Tasks',
|
||||
'rhs_table' => 'tasks',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => 'parent_type',
|
||||
'relationship_role_column_value' => 'Accounts',
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'account_notes' =>
|
||||
array (
|
||||
'id' => '2e161162-23a6-6830-1ad1-52b2a679da60',
|
||||
'relationship_name' => 'account_notes',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Notes',
|
||||
'rhs_table' => 'notes',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => 'parent_type',
|
||||
'relationship_role_column_value' => 'Accounts',
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'account_meetings' =>
|
||||
array (
|
||||
'id' => '2e4bacd9-553a-4871-31cb-52b2a685da14',
|
||||
'relationship_name' => 'account_meetings',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Meetings',
|
||||
'rhs_table' => 'meetings',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => 'parent_type',
|
||||
'relationship_role_column_value' => 'Accounts',
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'account_calls' =>
|
||||
array (
|
||||
'id' => '2e808316-d67e-8283-6544-52b2a6c2365b',
|
||||
'relationship_name' => 'account_calls',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Calls',
|
||||
'rhs_table' => 'calls',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => 'parent_type',
|
||||
'relationship_role_column_value' => 'Accounts',
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'account_leads' =>
|
||||
array (
|
||||
'id' => '2eed00df-3513-e2eb-5005-52b2a6b8912b',
|
||||
'relationship_name' => 'account_leads',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Leads',
|
||||
'rhs_table' => 'leads',
|
||||
'rhs_key' => 'account_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmquotes_account' =>
|
||||
array (
|
||||
'id' => '2f586e2c-0f65-4848-d29c-52b2a688ecf4',
|
||||
'relationship_name' => 'ecmquotes_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmQuotes',
|
||||
'rhs_table' => 'ecmquotes',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmsales_account' =>
|
||||
array (
|
||||
'id' => '2f925bf5-fa11-1904-a38b-52b2a6d466d0',
|
||||
'relationship_name' => 'ecmsales_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmSales',
|
||||
'rhs_table' => 'ecmsales',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecminvoiceouts_account' =>
|
||||
array (
|
||||
'id' => '2fcb1b88-ebd1-57a2-c1ea-52b2a61ccfae',
|
||||
'relationship_name' => 'ecminvoiceouts_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmInvoiceOuts',
|
||||
'rhs_table' => 'ecminvoiceouts',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmstockdocouts_account' =>
|
||||
array (
|
||||
'id' => '3001db79-ece5-7d90-b9c6-52b2a61ba29b',
|
||||
'relationship_name' => 'ecmstockdocouts_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmStockDocOuts',
|
||||
'rhs_table' => 'ecmstockdocouts',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmstockdocins_account' =>
|
||||
array (
|
||||
'id' => '30390435-3e38-2e8e-da19-52b2a6800d9a',
|
||||
'relationship_name' => 'ecmstockdocins_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmStockDocIns',
|
||||
'rhs_table' => 'ecmstockdocins',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'accounts_ecminvoiceouts2' =>
|
||||
array (
|
||||
'id' => '41c6a23f-629d-591a-79ef-52b2a64e9970',
|
||||
'relationship_name' => 'accounts_ecminvoiceouts2',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'ccounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmInvoiceOuts',
|
||||
'rhs_table' => 'ecminvoiceouts',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => 'parent_type',
|
||||
'relationship_role_column_value' => 'Accounts',
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmstockdoccorrects_account' =>
|
||||
array (
|
||||
'id' => '837d34c6-6d52-ac12-c89c-52b2a69e8652',
|
||||
'relationship_name' => 'ecmstockdoccorrects_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmStockDocCorrects',
|
||||
'rhs_table' => 'ecmstockdoccorrects',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmstockdocmoves_account' =>
|
||||
array (
|
||||
'id' => '8c4fab4d-a1a4-cee0-8f90-52b2a65660f7',
|
||||
'relationship_name' => 'ecmstockdocmoves_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmStockDocMoves',
|
||||
'rhs_table' => 'ecmstockdocmoves',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmstockdocinsideouts_account' =>
|
||||
array (
|
||||
'id' => '9141b786-94b9-980a-9625-52b2a6d1c099',
|
||||
'relationship_name' => 'ecmstockdocinsideouts_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmStockDocInsideOuts',
|
||||
'rhs_table' => 'ecmstockdocinsideouts',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmstockdocinsideins_account' =>
|
||||
array (
|
||||
'id' => '94794c65-3ea4-2a08-dfa5-52b2a6192180',
|
||||
'relationship_name' => 'ecmstockdocinsideins_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmStockDocInsideIns',
|
||||
'rhs_table' => 'ecmstockdocinsideins',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmreceipts_account' =>
|
||||
array (
|
||||
'id' => 'a37d5158-5db3-d6a9-ae2b-52b2a6c0d206',
|
||||
'relationship_name' => 'ecmreceipts_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmReceipts',
|
||||
'rhs_table' => 'ecmreceipts',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecmpurchaseorders_account' =>
|
||||
array (
|
||||
'id' => 'a5f6c197-51a9-4468-093d-52b2a6f9d823',
|
||||
'relationship_name' => 'ecmpurchaseorders_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmPurchaseOrders',
|
||||
'rhs_table' => 'ecmpurchaseorders',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'ecminsideorders_account' =>
|
||||
array (
|
||||
'id' => 'a8766c7f-d8f3-ed32-739e-52b2a60b1f6a',
|
||||
'relationship_name' => 'ecminsideorders_account',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmInsideOrders',
|
||||
'rhs_table' => 'ecminsideorders',
|
||||
'rhs_key' => 'parent_id',
|
||||
'join_table' => NULL,
|
||||
'join_key_lhs' => NULL,
|
||||
'join_key_rhs' => NULL,
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'accounts_bugs' =>
|
||||
array (
|
||||
'id' => 'ca241967-0b5b-c8af-4924-52b2a6828f6d',
|
||||
'relationship_name' => 'accounts_bugs',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Bugs',
|
||||
'rhs_table' => 'bugs',
|
||||
'rhs_key' => 'id',
|
||||
'join_table' => 'accounts_bugs',
|
||||
'join_key_lhs' => 'account_id',
|
||||
'join_key_rhs' => 'bug_id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => 'default',
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'accounts_contacts' =>
|
||||
array (
|
||||
'id' => 'ca898ed4-fc64-0eab-2a7c-52b2a6e23f6c',
|
||||
'relationship_name' => 'accounts_contacts',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Contacts',
|
||||
'rhs_table' => 'contacts',
|
||||
'rhs_key' => 'id',
|
||||
'join_table' => 'accounts_contacts',
|
||||
'join_key_lhs' => 'account_id',
|
||||
'join_key_rhs' => 'contact_id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'ForAccounts',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'accounts_opportunities' =>
|
||||
array (
|
||||
'id' => 'cac99d52-d93e-7658-f522-52b2a6b7af50',
|
||||
'relationship_name' => 'accounts_opportunities',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Opportunities',
|
||||
'rhs_table' => 'opportunities',
|
||||
'rhs_key' => 'id',
|
||||
'join_table' => 'accounts_opportunities',
|
||||
'join_key_lhs' => 'account_id',
|
||||
'join_key_rhs' => 'opportunity_id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => NULL,
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'projects_accounts' =>
|
||||
array (
|
||||
'id' => 'd707742e-3b54-e7a1-e3dc-52b2a6554bfe',
|
||||
'relationship_name' => 'projects_accounts',
|
||||
'lhs_module' => 'Project',
|
||||
'lhs_table' => 'project',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Accounts',
|
||||
'rhs_table' => 'accounts',
|
||||
'rhs_key' => 'id',
|
||||
'join_table' => 'projects_accounts',
|
||||
'join_key_lhs' => 'project_id',
|
||||
'join_key_rhs' => 'account_id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'accounts_ecminvoiceouts' =>
|
||||
array (
|
||||
'id' => 'd93cd801-9cdd-73da-4b1d-52b2a63c886a',
|
||||
'relationship_name' => 'accounts_ecminvoiceouts',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmInvoiceOuts',
|
||||
'rhs_table' => 'ecminvoiceouts',
|
||||
'rhs_key' => 'id',
|
||||
'join_table' => 'accounts_ecminvoiceouts',
|
||||
'join_key_lhs' => 'account_id',
|
||||
'join_key_rhs' => 'ecminvoiceout_id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'is_custom' => true,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'from_studio' => false,
|
||||
),
|
||||
'accounts_documents' =>
|
||||
array (
|
||||
'id' => 'da40fa6f-3e6d-4672-05e7-52b2a69abdd1',
|
||||
'relationship_name' => 'accounts_documents',
|
||||
'lhs_module' => 'Accounts',
|
||||
'lhs_table' => 'accounts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Documents',
|
||||
'rhs_table' => 'documents',
|
||||
'rhs_key' => 'id',
|
||||
'join_table' => 'accounts_documents_c',
|
||||
'join_key_lhs' => 'accounts_d13e2ccounts_ida',
|
||||
'join_key_rhs' => 'accounts_d009acuments_idb',
|
||||
'relationship_type' => 'one-to-many',
|
||||
'relationship_role_column' => NULL,
|
||||
'relationship_role_column_value' => NULL,
|
||||
'reverse' => '0',
|
||||
'deleted' => '0',
|
||||
'readonly' => true,
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_subpanel' => NULL,
|
||||
'from_studio' => true,
|
||||
'is_custom' => true,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
),
|
||||
'accounts_tasks' =>
|
||||
array (
|
||||
'rhs_label' => 'Zadania',
|
||||
'rhs_subpanel' => 'default',
|
||||
'lhs_module' => 'Accounts',
|
||||
'rhs_module' => 'Tasks',
|
||||
'relationship_type' => 'one-to-many',
|
||||
'readonly' => false,
|
||||
'deleted' => false,
|
||||
'relationship_only' => false,
|
||||
'for_activities' => false,
|
||||
'is_custom' => false,
|
||||
'from_studio' => false,
|
||||
'relationship_name' => 'accounts_tasks',
|
||||
),
|
||||
);
|
||||
?>
|
||||
150
custom/working/modules/Meetings/metadata/editviewdefs.php
Executable file
150
custom/working/modules/Meetings/metadata/editviewdefs.php
Executable file
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
$viewdefs ['Meetings'] =
|
||||
array (
|
||||
'EditView' =>
|
||||
array (
|
||||
'templateMeta' =>
|
||||
array (
|
||||
'maxColumns' => '2',
|
||||
'form' =>
|
||||
array (
|
||||
'hidden' =>
|
||||
array (
|
||||
0 => '<input type="hidden" name="isSaveAndNew" value="false">',
|
||||
),
|
||||
'buttons' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="fill_invitees();this.form.action.value=\'Save\'; this.form.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}this.form.return_id.value=\'\'; {/if}return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
|
||||
),
|
||||
1 => 'CANCEL',
|
||||
2 =>
|
||||
array (
|
||||
'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" class="button" onclick="this.form.send_invites.value=\'1\';fill_invitees();this.form.action.value=\'Save\';this.form.return_action.value=\'EditView\';this.form.return_module.value=\'{$smarty.request.return_module}\';return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="fill_invitees(); this.form.status.value=\'Held\'; this.form.action.value=\'Save\'; this.form.return_module.value=\'Meetings\'; this.form.isDuplicate.value=true; this.form.isSaveAndNew.value=true; this.form.return_action.value=\'EditView\'; this.form.return_id.value=\'{$fields.id.value}\'; return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
|
||||
),
|
||||
),
|
||||
'headerTpl' => 'modules/Meetings/tpls/header.tpl',
|
||||
'footerTpl' => 'modules/Meetings/tpls/footer.tpl',
|
||||
),
|
||||
'widths' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'javascript' => '<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/init.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/lib/urllib.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript">{$JSON_CONFIG_JAVASCRIPT}</script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_base.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_async.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="modules/Meetings/jsclass_scheduler.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script>toggle_portal_flag();function toggle_portal_flag() {literal} { {/literal} {$TOGGLE_JS} {literal} } {/literal} </script>',
|
||||
'useTabs' => false,
|
||||
),
|
||||
'panels' =>
|
||||
array (
|
||||
'lbl_meeting_information' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'description',
|
||||
'comment' => 'Full text of the note',
|
||||
'label' => 'LBL_DESCRIPTION',
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
0 => '',
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'fields' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'date_start',
|
||||
'type' => 'datetimecombo',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'updateCallback' => 'SugarWidgetScheduler.update_time();',
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'parent_name',
|
||||
'label' => 'LBL_LIST_RELATED_TO',
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'duration_hours',
|
||||
'label' => 'LBL_DURATION',
|
||||
'customCode' => '{literal}<script type="text/javascript">function isValidDuration() { form = document.getElementById(\'EditView\'); if ( form.duration_hours.value + form.duration_minutes.value <= 0 ) { alert(\'{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}\'); return false; } return true; }</script>{/literal}<input name="duration_hours" size="2" maxlength="2" type="text" value="{$fields.duration_hours.value}" onkeyup="SugarWidgetScheduler.update_time();"/>{$fields.duration_minutes.value} <span class="dateFormat">{$MOD.LBL_HOURS_MINS}</span>',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'location',
|
||||
'comment' => 'Meeting location',
|
||||
'label' => 'LBL_LOCATION',
|
||||
),
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'reminder_time',
|
||||
'customCode' => '{if $fields.reminder_checked.value == "1"}{assign var="REMINDER_TIME_DISPLAY" value="inline"}{assign var="REMINDER_CHECKED" value="checked"}{else}{assign var="REMINDER_TIME_DISPLAY" value="none"}{assign var="REMINDER_CHECKED" value=""}{/if}<input name="reminder_checked" type="hidden" value="0"><input name="reminder_checked" onclick=\'toggleDisplay("should_remind_list");\' type="checkbox" class="checkbox" value="1" {$REMINDER_CHECKED}><div id="should_remind_list" style="display:{$REMINDER_TIME_DISPLAY}">{$fields.reminder_time.value}</div>',
|
||||
'label' => 'LBL_REMINDER',
|
||||
),
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'duration_minutes',
|
||||
'comment' => 'Duration (minutes)',
|
||||
'label' => 'LBL_DURATION_MINUTES',
|
||||
),
|
||||
),
|
||||
),
|
||||
'LBL_PANEL_ASSIGNMENT' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'assigned_user_name',
|
||||
'label' => 'LBL_ASSIGNED_TO_NAME',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user