Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* 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".
********************************************************************************/
$module_name = 'EcmResourcess';
$searchFields[$module_name] =
array (
'first_name' => array( 'query_type'=>'default'),
'last_name'=> array('query_type'=>'default'),
'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work',)),
'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
);
?>

View File

@@ -0,0 +1,60 @@
<?php
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
/* * *******************************************************************************
* 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".
* ****************************************************************************** */
global $current_user;
$dashletData['EcmResourcessDashlet']['searchFields'] = array('date_entered' => array('default' => ''),
'date_modified' => array('default' => ''),
'assigned_user_id' => array('type' => 'assigned_user_name',
'default' => $current_user->name));
$dashletData['EcmResourcessDashlet']['columns'] = array('name' => array('width' => '40',
'label' => 'LBL_LIST_NAME',
'link' => true,
'default' => true),
'date_entered' => array('width' => '15',
'label' => 'LBL_DATE_ENTERED',
'default' => true),
'date_modified' => array('width' => '15',
'label' => 'LBL_DATE_MODIFIED'),
'created_by' => array('width' => '8',
'label' => 'LBL_CREATED'),
'assigned_user_name' => array('width' => '8',
'label' => 'LBL_LIST_ASSIGNED_USER'),
);

View File

@@ -0,0 +1,227 @@
<?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".
* ****************************************************************************** */
$module_name = 'EcmResourcess';
$viewdefs[$module_name]['DetailView'] = array(
'templateMeta' => array(
'form' => array(
'buttons' => array(
'EDIT',
'DELETE',
),
),
'maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30'),
),
'includes' => array(
0 => array(
'file' => 'modules/EcmResourcess/js/detailView.js'
),
),
),
'panels' => array(
array(
array(
'name' => 'name',
'label' => 'LBL_NAME',
'displayParams' => array(
'size' => 60
),
),
array(
'name' => 'assigned_worker',
'label' => 'LBL_ASSIGNED_WORKER',
),
),
array(
array(
'name' => 'year_production',
'label' => 'LBL_YEAR_PRODUCTION',
),
array(
'name' => 'amortization_method',
'label' => 'LBL_AMORTIZATION_METHOD',
),
),
array(
array(
'name' => 'serial_number',
'label' => 'LBL_SERIAL_NUMBER',
),
array(
'name' => 'date_purchase',
'label' => 'LBL_DATE_PURCHASE',
),
),
array(
array(
'name' => 'inventory_number',
'label' => 'LBL_INVENTORY_NUMBER',
),
array(
'name' => 'date_admission',
'label' => 'LBL_DATE_ADMISSION',
),
),
array(
array(
'name' => 'place_use',
'label' => 'LBL_PLACE_USE',
),
array(
'name' => 'date_mainbook_entry',
'label' => 'LBL_DATE_MAINBOOK_ENTRY',
),
),
array(
array(
'name' => 'gus_symbol',
'label' => 'LBL_GUS_SYMBOL',
),
array(
'name' => 'direction_revenue',
'label' => 'LBL_DIRECTION_REVENUE',
),
),
array(
array(
'name' => 'ecmresourcess_category',
'label' => 'LBL_ECMRESOURCESS_CATEGORY',
),
array(
'name' => 'direction_disposal',
'label' => 'LBL_DIRECTION_DISPOSAL',
),
),
array(
array(
'name' => 'id_mainbook_decision_continued_inactivity',
'label' => 'LBL_ID_MAINBOOK_DECISION_CONTINUED_INACTIVITY',
),
array(
'name' => 'date_last_revaluation',
'label' => 'LBL_DATE_LAST_REVALUATION',
),
),
array(
array(
'name' => 'value_initial',
'label' => 'LBL_VALUE_INITIAL',
),
array(
'name' => 'value_before_revaluation',
'label' => 'LBL_VALUE_BEFORE_REVALUATION',
),
),
array(
array(
'name' => 'accumulated_depreciation',
'label' => 'LBL_ACCUMULATED_DEPRECIATION',
),
array(
'name' => 'depreciation_year_beginning',
'label' => 'LBL_DEPRECIATION_YEAR_BEGINNING',
),
),
array(
array(
'name' => 'discriminant_calculation',
'label' => 'LBL_DISCRIMINANT_CALCULATION',
),
array(
'name' => 'amortization_accrued_current_year',
'label' => 'LBL_AMORTIZATION_ACCRUED_CURRENT_YEAR',
),
),
array(
array(
'name' => 'value_liquidation_partial',
'label' => 'LBL_VALUE_LIQUIDATION_PARTIAL',
),
array(
'name' => 'expense_account_4',
'label' => 'LBL_EXPENSE_ACCOUNT_4',
),
),
array(
array(
'name' => 'expense_account_5',
'label' => 'LBL_EXPENSE_ACCOUNT_5',
),
array(
'name' => 'typical_array_code_bookings',
'label' => 'LBL_TYPICAL_ARRAY_CODE_BOOKINGS',
),
),
array(
array(
'name' => 'revaluation_factor',
'label' => 'LBL_REVALUATION_FACTOR',
),
),
array(
array(
'name' => 'date_redemption_start',
'label' => 'LBL_DATE_REDEMPTION_START',
),
array(
'name' => 'date_redemption_end',
'label' => 'LBL_DATE_REDEMPTION_END',
),
),
// array(
// array(
// 'name' => 'date_liquidation',
// 'label' => 'LBL_DATE_LIQUIDATION',
// ),
// array(
// 'name' => 'date_liquidation_partial',
// 'label' => 'LBL_DATE_LIQUIDATION_PARTIAL',
// ),
// ),
// array(
// array(
// 'name' => 'date_continued_inactivity_start',
// 'label' => 'LBL_DATE_CONTINUED_INACTIVITY_START',
// ),
// array(
// 'name' => 'date_continued_inactivity_end',
// 'label' => 'LBL_DATE_CONTINUED_INACTIVITY_END',
// ),
// ),
),
);

View File

@@ -0,0 +1,259 @@
<?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".
* ****************************************************************************** */
$module_name = 'EcmResourcess';
$viewdefs[$module_name]['EditView'] = array(
'templateMeta' => array(
'maxColumns' => '2',
'widths' => array(
array('label' => '30', 'field' => '60'),
array('label' => '30', 'field' => '60'),
),
'javascript' => '
<script type="text/javascript" src="include/javascript/popup_parent_helper.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" src="include/javascript/jsclass_base.js"></script>
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
',
'includes' => array(
0 => array(
'file' => 'modules/EcmResourcess/js/editView.js'
),
),
),
'panels' => array(
array(
array(
'name' => 'name',
'label' => 'LBL_NAME',
'tabindex' => '100',
'displayParams' => array(
'size' => 60
),
),
array(
'name' => 'assigned_worker',
'label' => 'LBL_ASSIGNED_WORKER',
'tabindex' => '120',
),
),
array(
array(
'name' => 'year_production',
'label' => 'LBL_YEAR_PRODUCTION',
'tabindex' => '101',
),
array(
'name' => 'amortization_method',
'label' => 'LBL_AMORTIZATION_METHOD',
'tabindex' => '121',
),
),
array(
array(
'name' => 'serial_number',
'label' => 'LBL_SERIAL_NUMBER',
'tabindex' => '102',
),
array(
'name' => 'date_purchase',
'label' => 'LBL_DATE_PURCHASE',
'tabindex' => '122',
),
),
array(
array(
'name' => 'inventory_number',
'label' => 'LBL_INVENTORY_NUMBER',
'tabindex' => '103',
),
array(
'name' => 'date_admission',
'label' => 'LBL_DATE_ADMISSION',
'tabindex' => '123',
),
),
array(
array(
'name' => 'place_use',
'label' => 'LBL_PLACE_USE',
'tabindex' => '104',
),
array(
'name' => 'date_mainbook_entry',
'label' => 'LBL_DATE_MAINBOOK_ENTRY',
'tabindex' => '124',
),
),
array(
array(
'name' => 'gus_symbol',
'label' => 'LBL_GUS_SYMBOL',
'tabindex' => '105',
),
array(
'name' => 'direction_revenue',
'label' => 'LBL_DIRECTION_REVENUE',
'tabindex' => '125',
),
),
array(
array(
'name' => 'ecmresourcess_category',
'label' => 'LBL_ECMRESOURCESS_CATEGORY',
'tabindex' => '106',
),
array(
'name' => 'direction_disposal',
'label' => 'LBL_DIRECTION_DISPOSAL',
'tabindex' => '126',
),
),
array(
array(
'name' => 'id_mainbook_decision_continued_inactivity',
'label' => 'LBL_ID_MAINBOOK_DECISION_CONTINUED_INACTIVITY',
'tabindex' => '107',
),
array(
'name' => 'date_last_revaluation',
'label' => 'LBL_DATE_LAST_REVALUATION',
'tabindex' => '127',
),
),
array(
array(
'name' => 'value_initial',
'label' => 'LBL_VALUE_INITIAL',
'tabindex' => '108',
),
array(
'name' => 'value_before_revaluation',
'label' => 'LBL_VALUE_BEFORE_REVALUATION',
'tabindex' => '128',
),
),
array(
array(
'name' => 'accumulated_depreciation',
'label' => 'LBL_ACCUMULATED_DEPRECIATION',
'tabindex' => '109',
),
array(
'name' => 'depreciation_year_beginning',
'label' => 'LBL_DEPRECIATION_YEAR_BEGINNING',
'tabindex' => '129',
),
),
array(
array(
'name' => 'discriminant_calculation',
'label' => 'LBL_DISCRIMINANT_CALCULATION',
'tabindex' => '110',
),
array(
'name' => 'amortization_accrued_current_year',
'label' => 'LBL_AMORTIZATION_ACCRUED_CURRENT_YEAR',
'tabindex' => '130',
),
),
array(
array(
'name' => 'value_liquidation_partial',
'label' => 'LBL_VALUE_LIQUIDATION_PARTIAL',
'tabindex' => '111',
),
array(
'name' => 'expense_account_4',
'label' => 'LBL_EXPENSE_ACCOUNT_4',
'tabindex' => '132',
),
),
array(
array(
'name' => 'expense_account_5',
'label' => 'LBL_EXPENSE_ACCOUNT_5',
'tabindex' => '112',
),
array(
'name' => 'typical_array_code_bookings',
'label' => 'LBL_TYPICAL_ARRAY_CODE_BOOKINGS',
'tabindex' => '132',
),
),
array(
array(
'name' => 'revaluation_factor',
'label' => 'LBL_REVALUATION_FACTOR',
'tabindex' => '113',
),
),
array(
array(
'name' => 'date_redemption_start',
'label' => 'LBL_DATE_REDEMPTION_START',
'tabindex' => '114',
),
array(
'name' => 'date_redemption_end',
'label' => 'LBL_DATE_REDEMPTION_END',
'tabindex' => '132',
),
),
// array(
// array(
// 'name' => 'date_liquidation',
// 'label' => 'LBL_DATE_LIQUIDATION',
// ),
// array(
// 'name' => 'date_liquidation_partial',
// 'label' => 'LBL_DATE_LIQUIDATION_PARTIAL',
// ),
// ),
// array(
// array(
// 'name' => 'date_continued_inactivity_start',
// 'label' => 'LBL_DATE_CONTINUED_INACTIVITY_START',
// ),
// array(
// 'name' => 'date_continued_inactivity_end',
// 'label' => 'LBL_DATE_CONTINUED_INACTIVITY_END',
// ),
// ),
),
);

View File

@@ -0,0 +1,165 @@
<?php
$module_name = 'EcmResourcess';
$listViewDefs [$module_name] = array(
'NAME' => array(
'type' => 'varchar',
'label' => 'LBL_NAME',
'link' => true,
'width' => '10%',
'default' => true,
),
'SERIAL_NUMBER' => array(
'type' => 'varchar',
'label' => 'LBL_SERIAL_NUMBER',
'link' => true,
'width' => '10%',
'default' => true,
),
'INVENTORY_NUMBER' => array(
'type' => 'varchar',
'label' => 'LBL_INVENTORY_NUMBER',
'link' => true,
'width' => '10%',
'default' => true,
),
'YEAR_PRODUCTION' => array(
'type' => 'varchar',
'label' => 'LBL_YEAR_PRODUCTION',
'width' => '10%',
'default' => false,
),
'INVENTORY_NUMBER' => array(
'type' => 'varchar',
'label' => 'LBL_INVENTORY_NUMBER',
'width' => '10%',
'default' => false,
),
'GUS_SYMBOL' => array(
'type' => 'varchar',
'label' => 'LBL_GUS_SYMBOL',
'width' => '10%',
'default' => false,
),
'AMORTIZATION_METHOD' => array(
'type' => 'varchar',
'label' => 'LBL_AMORTIZATION_METHOD',
'width' => '10%',
'default' => false,
),
'PLACE_USE' => array(
'type' => 'varchar',
'label' => 'LBL_PLACE_USE',
'width' => '10%',
'default' => false,
),
'ASSIGNED_WORKER' => array(
'type' => 'varchar',
'label' => 'LBL_ASSIGNED_WORKER',
'width' => '10%',
'default' => false,
),
'DATE_MAINBOOK_ENTRY' => array(
'type' => 'varchar',
'label' => 'LBL_DATE_MAINBOOK_ENTRY',
'width' => '10%',
'default' => false,
),
'DIRECTION_REVENUE' => array(
'type' => 'varchar',
'label' => 'LBL_DIRECTION_REVENUE',
'width' => '10%',
'default' => false,
),
'DATE_ADMISSION' => array(
'type' => 'varchar',
'label' => 'LBL_DATE_ADMISSION',
'width' => '10%',
'default' => false,
),
'DIRECTION_DISPOSAL' => array(
'type' => 'varchar',
'label' => 'LBL_DIRECTION_DISPOSAL',
'width' => '10%',
'default' => false,
),
'ID_MAINBOOK_DECISION_CONTINUED_INACTIVITY' => array(
'type' => 'varchar',
'label' => 'LBL_ID_MAINBOOK_DECISION_CONTINUED_INACTIVITY',
'width' => '10%',
'default' => false,
),
'DATE_LAST_REVALUATION' => array(
'type' => 'varchar',
'label' => 'LBL_DATE_LAST_REVALUATION',
'width' => '10%',
'default' => false,
),
'VALUE_INITIAL' => array(
'type' => 'varchar',
'label' => 'LBL_VALUE_INITIAL',
'width' => '10%',
'default' => false,
),
'VALUE_BEFORE_REVALUATION' => array(
'type' => 'varchar',
'label' => 'LBL_VALUE_BEFORE_REVALUATION',
'width' => '10%',
'default' => false,
),
'ECMRESOURCESS_CATEGORY' => array(
'type' => 'varchar',
'label' => 'LBL_ECMRESOURCESS_CATEGORY',
'width' => '10%',
'default' => false,
),
'DATE_PURCHASE' => array(
'type' => 'varchar',
'label' => 'LBL_DATE_PURCHASE',
'width' => '10%',
'default' => false,
),
'ACCUMULATED_DEPRECIATION' => array(
'type' => 'varchar',
'label' => 'LBL_ACCUMULATED_DEPRECIATION',
'width' => '10%',
'default' => false,
),
'DEPRECIATION_YEAR_BEGINNING' => array(
'type' => 'varchar',
'label' => 'LBL_DEPRECIATION_YEAR_BEGINNING',
'width' => '10%',
'default' => false,
),
'DISCRIMINANT_CALCULATION' => array(
'type' => 'varchar',
'label' => 'LBL_DISCRIMINANT_CALCULATION',
'width' => '10%',
'default' => false,
),
'AMORTIZATION_ACCRUED_CURRENT_YEAR' => array(
'type' => 'varchar',
'label' => 'LBL_AMORTIZATION_ACCRUED_CURRENT_YEAR',
'width' => '10%',
'default' => false,
),
'VALUE_LIQUIDATION_PARTIAL' => array(
'type' => 'varchar',
'label' => 'LBL_VALUE_LIQUIDATION_PARTIAL',
'width' => '10%',
'default' => false,
),
'TYPICAL_ARRAY_CODE_BOOKINGS' => array(
'type' => 'varchar',
'label' => 'LBL_TYPICAL_ARRAY_CODE_BOOKINGS',
'width' => '10%',
'default' => false,
),
'REVALUATION_FACTOR' => array(
'type' => 'varchar',
'label' => 'LBL_REVALUATION_FACTOR',
'width' => '10%',
'default' => false,
),
);
?>

View File

@@ -0,0 +1,51 @@
<?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".
********************************************************************************/
/*
* Created on July 12, 2007
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$module_name = 'EcmResourcess';
$metafiles[$module_name] = array(
'detailviewdefs' => 'modules/'.$module_name.'/metadata/detailviewdefs.php',
'editviewdefs' => 'modules/'. $module_name. '/metadata/editviewdefs.php',
'listviewdefs' => 'modules/'. $module_name. '/metadata/listviewdefs.php',
'searchdefs' => 'modules/'. $module_name. '/metadata/searchdefs.php',
'popupdefs' => 'modules/'. $module_name. '/metadata/popupdefs.php',
'searchfields' => 'modules/'. $module_name. '/metadata/SearchFields.php',
);
?>

View File

@@ -0,0 +1,59 @@
<?php
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
/* * *******************************************************************************
* 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".
* ****************************************************************************** */
$module_name = 'EcmResourcess';
$object_name = 'EcmResources';
$_module_name = 'ecmresourcess';
$popupMeta = array('moduleMain' => $module_name,
'varName' => $object_name,
'orderBy' => $_module_name . '.first_name, ' . $_module_name . '.last_name',
'whereClauses' =>
array('first_name' => $_module_name . '.first_name',
'last_name' => $_module_name . '.last_name',
),
'searchInputs' =>
array('first_name', 'last_name'),
'listviewdefs' => array(
'NAME' => array(
'width' => '40',
'label' => 'LBL_LIST_ACCOUNT_NAME',
'link' => true,
'default' => true,
),),
);
?>

View File

@@ -0,0 +1,70 @@
<?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".
* ****************************************************************************** */
$module_name = 'EcmResourcess';
$viewdefs[$module_name]['QuickCreate'] = array(
'templateMeta' => array('maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30'),
),
),
'panels' => array(
'lbl_contact_information' =>
array(
array(
array(
'name' => 'first_name',
'customCode' => '<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
),
'assigned_user_name',
),
array(
array('name' => 'last_name', 'displayParams' => array('required' => true)),
),
array(
'phone_work',
),
array(
'department',
'phone_mobile',
),
),
'lbl_email_addresses' => array(
array('email1')
),
)
);

View File

@@ -0,0 +1,65 @@
<?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".
* ****************************************************************************** */
/*
* Created on May 29, 2007
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$module_name = 'EcmResourcess';
$searchdefs[$module_name] = array(
'templateMeta' => array('maxColumns' => '3',
'widths' => array('label' => '10', 'field' => '30'),
),
'layout' => array(
'basic_search' => array(
'name',
'serial_number',
'inventory_number',
'assigned_worker',
),
'advanced_search' => array(
'name',
'serial_number',
'inventory_number',
'assigned_worker',
'ecmresourcess_category',
'place_use',
'year_production',
),
),
);

View File

@@ -0,0 +1,38 @@
<?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".
********************************************************************************/
/**
* This file adds support for studio
*/

View File

@@ -0,0 +1,70 @@
<?php
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
/* * *******************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 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".
* ****************************************************************************** */
$layout_defs['EcmResourcess']['subpanel_setup'] = array(
// list of what Subpanels to show in the DetailView
'ecmprivatedocuments' => array(
'order' => 10,
'module' => 'EcmPrivateDocuments',
'sort_order' => 'asc',
'sort_by' => 'date_entered',
'subpanel_name' => 'default',
'get_subpanel_data' => 'ecmprivatedocuments',
'add_subpanel_data' => 'ecmprivatedocument_id',
'title_key' => 'LBL_ECMPRIVATEDOCUMENTS_SUBPANEL_TITLE',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
),
),
'tasks' => array(
'order' => 10,
'module' => 'Tasks',
'sort_order' => 'asc',
'sort_by' => 'date_entered',
'subpanel_name' => 'default',
'get_subpanel_data' => 'tasks',
'title_key' => 'Zadania',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
),
),
);
?>

View File

@@ -0,0 +1,86 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* 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".
********************************************************************************/
$subpanel_layout = array(
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'People'),
),
'where' => '',
'list_fields' => array(
'first_name' => array(
'name' => 'first_name',
'usage' => 'query_only',
),
'last_name'=> array(
'name'=>'last_name',
'usage' => 'query_only',
),
'name'=>array(
'name'=>'name',
'vname' => 'LBL_LIST_NAME',
'sort_by' => 'last_name',
'sort_order' => 'asc',
'widget_class' => 'SubPanelDetailViewLink',
'module' => 'Contacts',
'width' => '40%',
),
'email1'=>array(
'name'=>'email1',
'vname' => 'LBL_LIST_EMAIL',
'widget_class' => 'SubPanelEmailLink',
'width' => '35%',
),
'phone_work'=>array (
'name'=>'phone_work',
'vname' => 'LBL_LIST_PHONE',
'width' => '15%',
),
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => 'Contacts',
'width' => '5%',
),
'remove_button'=>array(
'widget_class' => 'SubPanelRemoveButton',
'module' => 'Contacts',
'width' => '5%',
),
),
);
?>