This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 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 = 'EcmWorkers';
$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['EcmWorkersDashlet']['searchFields'] = array('date_entered' => array('default' => ''),
'date_modified' => array('default' => ''),
'assigned_user_id' => array('type' => 'assigned_user_name',
'default' => $current_user->name));
$dashletData['EcmWorkersDashlet']['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,593 @@
<?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 = 'EcmWorkers';
$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/EcmWorkers/js/detailView.js'
),
),
),
'panels' => array(
'LBL_PERSONAL_INFO' => array(
array(
array(
'name' => 'first_name',
'label' => 'LBL_FIRST_NAME',
),
array(
'name' => 'gender',
'label' => 'LBL_GENDER',
),
),
array(
array(
'name' => 'second_name',
'label' => 'LBL_SECOND_NAME',
),
array(
'name' => 'id_card_number',
'label' => 'LBL_ID_CARD_NUMBER',
),
),
array(
array(
'name' => 'last_name',
'label' => 'LBL_LAST_NAME',
),
array(
'name' => 'id_card_date',
'label' => 'LBL_ID_CARD_DATE',
),
),
array(
array(
'name' => 'birthday',
'label' => 'LBL_BIRTHDAY',
),
array(
'name' => 'id_card_issued',
'label' => 'LBL_ID_CARD_ISSUED',
),
),
array(
array(
'name' => 'birth_place',
'label' => 'LBL_BIRTH_PLACE',
),
array(
'name' => 'person_id_series_number',
'label' => 'LBL_PERSON_ID_SERIES_NUMBER',
),
),
array(
array(
'name' => 'pesel',
'label' => 'LBL_PESEL',
),
array(
'name' => 'person_relief',
'label' => 'LBL_PERSON_RELIEF',
),
),
array(
array(
'name' => 'citizenship',
'label' => 'LBL_CITIZENSHIP',
),
array(
'name' => 'person_child_tax_credit',
'label' => 'LBL_PERSON_CHILD_TAX_CREDIT'
),
),
array(
array(
'name' => 'nationality',
'label' => 'LBL_NATIONALITY',
),
array(
'name' => 'account_ledger',
'label' => 'LBL_ACCOUNT_LEDGER',
),
),
array(
array(
'name' => 'debtors_account',
'label' => 'LBL_DEBTORS_ACCOUNT',
),
array(
'name' => 'school_completed',
'label' => 'LBL_SCHOOL_COMPLETED',
),
),
array(
array(
'name' => 'bank_account',
'label' => 'LBL_BANK_ACCOUNT',
),
array(
'name' => 'education',
'label' => 'LBL_EDUCATION',
),
),
array(
array(
'name' => 'name_bank',
'label' => 'LBL_NAME_BANK',
),
array(
'name' => 'date_graduation',
'label' => 'LBL_DATE_GRADUATION',
),
),
array(
array(
'name' => 'bank_account_number',
'label' => 'LBL_BANK_ACCOUNT_NUMBER',
),
array(
'name' => 'person_learned_profession',
'label' => 'LBL_PERSON_LEARNED_PROFESSION'
),
),
array(
'opis',
array(
'name' => 'person_current_profession',
'label' => 'LBL_PERSON_CURRENT_PROFESSION',
),
),
array(
'print',
'active2'
)
),
'LBL_ADDRESS_INFORMATION' => array(
array(
array(
'name' => 'primary_address_country',
'label' => 'LBL_PRIMARY_ADDRESS_COUNTRY',
),
array(
'name' => 'alt_address_country',
'label' => 'LBL_ALT_ADDRESS_COUNTRY',
),
),
array(
array(
'name' => 'primary_address_state',
'label' => 'LBL_PRIMARY_ADDRESS_STATE',
),
array(
'name' => 'alt_address_state',
'label' => 'LBL_ALT_ADDRESS_STATE',
),
),
array(
array(
'name' => 'primary_address_city',
'label' => 'LBL_PRIMARY_ADDRESS_CITY',
),
array(
'name' => 'alt_address_city',
'label' => 'LBL_ALT_ADDRESS_CITY',
),
),
array(
array(
'name' => 'primary_address_postalcode',
'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE',
),
array(
'name' => 'alt_address_postalcode',
'label' => 'LBL_ALT_ADDRESS_POSTALCODE',
),
),
array(
array(
'name' => 'primary_address_street',
'label' => 'LBL_PRIMARY_ADDRESS_STREET',
),
array(
'name' => 'alt_address_street',
'label' => 'LBL_ALT_ADDRESS_STREET',
),
),
array(
array(
'name' => 'primary_address_community',
'label' => 'LBL_PRIMARY_ADDRESS_COMMUNITY',
),
array(
'name' => 'alt_address_community',
'label' => 'LBL_ALT_ADDRESS_COMMUNITY',
),
),
array(
array(
'name' => 'primary_address_district',
'label' => 'LBL_PRIMARY_ADDRESS_DISTRICT',
),
array(
'name' => 'alt_address_district',
'label' => 'LBL_ALT_ADDRESS_DISTRICT',
),
),
array(
array(
'name' => 'primary_mail',
'label' => 'LBL_PRIMARY_MAIL',
),
array(
'name' => 'alt_mail',
'label' => 'LBL_ALT_MAIL',
),
),
array(
array(
'name' => 'email1',
'label' => 'LBL_EMAIL_ADDRESS',
),
array(
'name' => 'email2',
'label' => 'LBL_OTHER_EMAIL_ADDRESS',
),
),
array(
array(
'name' => 'phone_mobile',
'label' => 'LBL_MOBILE_PHONE',
),
array(
'name' => 'phone_work',
'label' => 'LBL_OFFICE_PHONE',
),
),
array(
array(
'name' => 'phone_home',
'label' => 'LBL_HOME_PHONE',
),
array(
'name' => 'phone_fax',
'label' => 'LBL_HOME_PHONE',
),
),
),
'LBL_OFFICE' => array(
array(
array(
'name' => 'registration_number',
'label' => 'LBL_REGISTRATION_NUMBER',
),
array(
'name' => 'department',
'label' => 'LBL_DEPARTMENT',
),
),
array(
array(
'name' => 'inland_revenue',
'label' => 'LBL_INLAND_REVENUE',
),
array(
'name' => 'cost',
'label' => 'LBL_COST',
),
),
array(
array(
'name' => 'health_insurance',
'label' => 'LBL_HEALTH_INSURANCE',
),
array(
'name' => 'position_office',
'label' => 'LBL_POSITION_OFFICE',
),
),
array(
array(
'name' => 'form_employment',
'label' => 'LBL_FORM_EMPLOYMENT',
),
array(
'name' => 'date_employment',
'customCode' => '{$fields.date_employment.value} - {$fields.date_employment_to.value}',
'label' => 'LBL_DATE_EMPLOYMENT',
),
),
array(
array(
'name' => 'date_internship',
'label' => 'LBL_DATE_INTERNSHIP',
),
array(
'name' => 'employment',
'label' => 'LBL_EMPLOYMENT',
),
),
array(
array(
'name' => 'zus_group',
'label' => 'LBL_ZUS_GROUP',
),
array(
'name' => 'employee_group',
'label' => 'LBL_EMPLOYEE_GROUP',
),
),
array(
array(
'name' => 'base_salary',
'label' => 'LBL_BASE_SALARY',
),
array(
'name' => 'work_schedule',
'label' => 'LBL_WORK_SCHEDULE',
),
),
array(
array(
'name' => 'active',
'label' => 'LBL_ACTIVE',
),
),
),
'LBL_FAMILY_INFO' => array(
array(
array(
'name' => 'father_name',
'label' => 'LBL_FATHER_NAME',
),
array(
'name' => 'family_name',
'label' => 'LBL_FAMILY_NAME',
),
),
array(
array(
'name' => 'mother_name',
'label' => 'LBL_MOTHER_NAME',
),
array(
'name' => 'marital_status',
'label' => 'LBL_MARITAL_STATUS',
),
),
array(
array(
'name' => 'spouse_name',
'label' => 'LBL_SPOUSE_NAME',
),
),
),
'LBL_ZUS_LABEL1' => array(
array(
array(
'name' => 'permanent_residence_card',
'label' => 'LBL_PERNAMENT_RESIDENCE_CARD',
),
array(
'name' => 'temporary_residence_card',
'label' => 'LBL_TEMPORARY_RESIDENCE_CARD',
),
),
array(
array(
'name' => 'insurance_code',
'label' => 'LBL_INSURANCE_CODE',
),
array(
'name' => 'period_of_disability_from',
'label' => 'LBL_PERIOD_OF_DISABILITY_FROM',
),
),
array(
array(
'name' => 'working_time',
'label' => 'LBL_WORKING_TIME'
),
array(
'name' => 'period_of_disability_to',
'label' => 'LBL_PERIOD_OF_DISABILITY_TO',
),
),
array(
array(
'name' => 'date_insurance',
'label' => 'LBL_DATE_INSURANCE',
),
array(
'name' => 'amount_contributions',
'label' => 'LBL_AMOUNT_CONTRIBUTIONS',
),
),
array(
array(
'name' => 'date_commencement',
'label' => 'LBL_DATE_COMMENCEMENT',
),
),
array(
array(
'name' => 'date_obligation',
'label' => 'LBL_DATE_OBLIGATION',
),
),
array(
array(
'name' => 'zus_annual_amount',
'label' => 'LBL_ZUS_ANNUAL_AMOUNT',
),
array(
'name' => 'zus_annual_base',
'label' => 'LBL_ZUS_ANNUAL_BASE',
),
),
),
'LBL_ZUS_LABEL2' => array(
array(
array(
'name' => 'disability',
'label' => 'LBL_DISABILITY',
),
array(
'name' => 'sickness',
'label' => 'LBL_SICKNESS',
),
),
array(
array(
'name' => 'retirement',
'label' => 'LBL_RETIREMENT',
),
array(
'name' => 'accidental',
'label' => 'LBL_ACCIDENTAL',
),
),
),
'LBL_ZUS_LABEL4' => array(
array(
array(
'name' => 'date_sickness',
'label' => 'LBL_DATE_SICKNESS',
),
),
array(
array(
'name' => 'date_retirement',
'label' => 'LBL_DATE_RETIREMENT',
),
),
array(
array(
'name' => 'zus_date_disability',
'label' => 'LBL_ZUS_DATE_DISABILITY',
),
),
),
'LBL_ZUS_LABEL3' => array(
array(
array(
'name' => 'code_relationship',
'label' => 'LBL_CODE_RELATIONSHIP',
),
array(
'name' => 'code_education',
'label' => 'LBL_CODE_EDUCATION',
),
),
array(
array(
'name' => 'zus_common_household_employer',
'label' => 'LBL_ZUS_COMMON_HOUSEHOLD_EMPLOYER',
),
array(
'name' => 'code_profession',
'label' => 'LBL_CODE_PROFESSION',
),
),
array(
array(
'name' => 'zus_code_discrepancies',
'label' => 'LBL_ZUS_CODE_DISCREPANCIES',
),
array(
'name' => 'zus_date_discrepancies_from',
'customCode' => '{$fields.zus_date_discrepancies_from.value} - {$fields.zus_date_discrepancies_to.value}',
'label' => 'LBL_PERIOD',
),
),
array(
array(
'name' => 'zus_code_mining_work',
'label' => 'LBL_ZUS_CODE_MINING_WORK',
),
array(
'name' => 'zus_date_mining_work_from',
'customCode' => '{$fields.zus_date_mining_work_from.value} - {$fields.zus_date_mining_work_to.value}',
'label' => 'LBL_PERIOD',
),
),
array(
array(
'name' => 'zus_code_charity_work',
'label' => 'LBL_ZUS_CODE_CHARITY_WORK',
),
array(
'name' => 'zus_date_charity_work_from',
'customCode' => '{$fields.zus_date_charity_work_from.value} - {$fields.zus_date_charity_work_to.value}',
'label' => 'LBL_PERIOD',
),
),
),
'LBL_DISMISSAL' => array(
array(
array(
'name' => 'form_dismissal',
'label' => 'LBL_FORM_DISMISSAL',
),
array(
'name' => 'date_dismissal',
'label' => 'LBL_DATE_DISMISSAL',
),
),
array(
array(
'name' => 'code_deregistration',
'label' => 'LBL_CODE_DEREGISTRATION',
),
array(
'name' => 'dismissal_reason',
'label' => 'LBL_DISMISSAL_REASON',
),
),
),
),
);

View File

@@ -0,0 +1,598 @@
<?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 = 'EcmWorkers';
$viewdefs[$module_name]['EditView'] = array(
'templateMeta' => array(
'maxColumns' => '2',
'widths' => array(
array('label' => '20', 'field' => '60'),
array('label' => '20', '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/EcmWorkers/js/editView.js'
),
),
),
'panels' => array(
'LBL_PERSONAL_INFO' => array(
array(
array(
'name' => 'first_name',
'label' => 'LBL_FIRST_NAME',
),
array(
'name' => 'gender',
'label' => 'LBL_GENDER',
),
),
array(
array(
'name' => 'second_name',
'label' => 'LBL_SECOND_NAME',
),
array(
'name' => 'id_card_number',
'label' => 'LBL_ID_CARD_NUMBER',
),
),
array(
array(
'name' => 'last_name',
'label' => 'LBL_LAST_NAME',
),
array(
'name' => 'id_card_date',
'label' => 'LBL_ID_CARD_DATE',
),
),
array(
array(
'name' => 'birthday',
'label' => 'LBL_BIRTHDAY',
),
array(
'name' => 'id_card_issued',
'label' => 'LBL_ID_CARD_ISSUED',
),
),
array(
array(
'name' => 'birth_place',
'label' => 'LBL_BIRTH_PLACE',
),
array(
'name' => 'person_id_series_number',
'label' => 'LBL_PERSON_ID_SERIES_NUMBER',
),
),
array(
array(
'name' => 'pesel',
'label' => 'LBL_PESEL',
),
array(
'name' => 'person_relief',
'label' => 'LBL_PERSON_RELIEF',
),
),
array(
array(
'name' => 'citizenship',
'label' => 'LBL_CITIZENSHIP',
),
array(
'name' => 'person_child_tax_credit',
'label' => 'LBL_PERSON_CHILD_TAX_CREDIT'
),
),
array(
array(
'name' => 'nationality',
'label' => 'LBL_NATIONALITY',
),
array(
'name' => 'account_ledger',
'label' => 'LBL_ACCOUNT_LEDGER',
),
),
array(
array(
'name' => 'bank_account',
'label' => 'LBL_BANK_ACCOUNT',
),
array(
'name' => 'school_completed',
'label' => 'LBL_SCHOOL_COMPLETED',
),
),
array(
array(
'name' => 'name_bank',
'label' => 'LBL_NAME_BANK',
),
array(
'name' => 'education',
'label' => 'LBL_EDUCATION',
),
),
array(
array(
'name' => 'bank_account_number',
'label' => 'LBL_BANK_ACCOUNT_NUMBER',
'displayParams' => array('size' => 40),
),
array(
'name' => 'date_graduation',
'label' => 'LBL_DATE_GRADUATION',
),
),
array(
'opis',
array(
'name' => 'person_learned_profession',
'label' => 'LBL_PERSON_LEARNED_PROFESSION'
),
),
array(
'print',
array(
'name' => 'person_current_profession',
'label' => 'LBL_PERSON_CURRENT_PROFESSION',
),
),
array(
'active2'
)
),
'LBL_ADDRESS_INFORMATION' => array(
array(
array(
'name' => 'primary_address_country',
'label' => 'LBL_PRIMARY_ADDRESS_COUNTRY',
),
array(
'name' => 'alt_address_country',
'label' => 'LBL_ALT_ADDRESS_COUNTRY',
),
),
array(
array(
'name' => 'primary_address_state',
'label' => 'LBL_PRIMARY_ADDRESS_STATE',
),
array(
'name' => 'alt_address_state',
'label' => 'LBL_ALT_ADDRESS_STATE',
),
),
array(
array(
'name' => 'primary_address_city',
'label' => 'LBL_PRIMARY_ADDRESS_CITY',
),
array(
'name' => 'alt_address_city',
'label' => 'LBL_ALT_ADDRESS_CITY',
),
),
array(
array(
'name' => 'primary_address_postalcode',
'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE',
),
array(
'name' => 'alt_address_postalcode',
'label' => 'LBL_ALT_ADDRESS_POSTALCODE',
),
),
array(
array(
'name' => 'primary_address_street',
'label' => 'LBL_PRIMARY_ADDRESS_STREET',
),
array(
'name' => 'alt_address_street',
'label' => 'LBL_ALT_ADDRESS_STREET',
),
),
array(
array(
'name' => 'primary_address_community',
'label' => 'LBL_PRIMARY_ADDRESS_COMMUNITY',
),
array(
'name' => 'alt_address_community',
'label' => 'LBL_ALT_ADDRESS_COMMUNITY',
),
),
array(
array(
'name' => 'primary_address_district',
'label' => 'LBL_PRIMARY_ADDRESS_DISTRICT',
),
array(
'name' => 'alt_address_district',
'label' => 'LBL_ALT_ADDRESS_DISTRICT',
),
),
array(
array(
'name' => 'primary_mail',
'label' => 'LBL_PRIMARY_MAIL',
),
array(
'name' => 'alt_mail',
'label' => 'LBL_ALT_MAIL',
),
),
array(
array(
'name' => 'email1',
'label' => 'LBL_EMAIL_ADDRESS',
),
array(
'name' => 'email2',
'label' => 'LBL_OTHER_EMAIL_ADDRESS',
),
),
array(
array(
'name' => 'phone_mobile',
'label' => 'LBL_MOBILE_PHONE',
),
array(
'name' => 'phone_work',
'label' => 'LBL_OFFICE_PHONE',
),
),
array(
array(
'name' => 'phone_home',
'label' => 'LBL_HOME_PHONE',
),
array(
'name' => 'phone_fax',
'label' => 'LBL_HOME_PHONE',
),
),
),
'LBL_OFFICE' => array(
array(
array(
'name' => 'registration_number',
'label' => 'LBL_REGISTRATION_NUMBER',
),
array(
'name' => 'department',
'label' => 'LBL_DEPARTMENT',
),
),
array(
array(
'name' => 'inland_revenue',
'label' => 'LBL_INLAND_REVENUE',
),
array(
'name' => 'cost',
'label' => 'LBL_COST',
),
),
array(
array(
'name' => 'health_insurance',
'label' => 'LBL_HEALTH_INSURANCE',
),
array(
'name' => 'position_office',
'label' => 'LBL_POSITION_OFFICE',
),
),
array(
array(
'name' => 'form_employment',
'label' => 'LBL_FORM_EMPLOYMENT',
),
array(
'name' => 'date_employment',
'label' => 'LBL_DATE_EMPLOYMENT',
'customCode' => "{include file='modules/EcmWorkers/tpl/EditViewZusDateEmployment.tpl'}",
),
),
array(
array(
'name' => 'date_internship',
'label' => 'LBL_DATE_INTERNSHIP',
),
array(
'name' => 'employment',
'label' => 'LBL_EMPLOYMENT',
),
),
array(
array(
'name' => 'zus_group',
'label' => 'LBL_ZUS_GROUP',
),
array(
'name' => 'employee_group',
'label' => 'LBL_EMPLOYEE_GROUP',
),
),
array(
array(
'name' => 'base_salary',
'label' => 'LBL_BASE_SALARY',
),
array(
'name' => 'work_schedule',
'label' => 'LBL_WORK_SCHEDULE',
),
),
array(
array(
'name' => 'active',
'label' => 'LBL_ACTIVE',
),
),
),
'LBL_FAMILY_INFO' => array(
array(
array(
'name' => 'father_name',
'label' => 'LBL_FATHER_NAME',
),
array(
'name' => 'family_name',
'label' => 'LBL_FAMILY_NAME',
),
),
array(
array(
'name' => 'mother_name',
'label' => 'LBL_MOTHER_NAME',
),
array(
'name' => 'marital_status',
'label' => 'LBL_MARITAL_STATUS',
),
),
array(
array(
'name' => 'spouse_name',
'label' => 'LBL_SPOUSE_NAME',
),
),
),
'LBL_ZUS_LABEL1' => array(
array(
array(
'name' => 'permanent_residence_card',
'label' => 'LBL_PERNAMENT_RESIDENCE_CARD',
),
array(
'name' => 'temporary_residence_card',
'label' => 'LBL_TEMPORARY_RESIDENCE_CARD',
),
),
array(
array(
'name' => 'insurance_code',
'label' => 'LBL_INSURANCE_CODE',
),
array(
'name' => 'period_of_disability_from',
'label' => 'LBL_PERIOD_OF_DISABILITY_FROM',
),
),
array(
array(
'name' => 'working_time',
'label' => 'LBL_WORKING_TIME'
),
array(
'name' => 'period_of_disability_to',
'label' => 'LBL_PERIOD_OF_DISABILITY_TO',
),
),
array(
array(
'name' => 'date_insurance',
'label' => 'LBL_DATE_INSURANCE',
),
array(
'name' => 'amount_contributions',
'label' => 'LBL_AMOUNT_CONTRIBUTIONS',
),
),
array(
array(
'name' => 'date_commencement',
'label' => 'LBL_DATE_COMMENCEMENT',
),
),
array(
array(
'name' => 'date_obligation',
'label' => 'LBL_DATE_OBLIGATION',
),
),
array(
array(
'name' => 'zus_annual_amount',
'label' => 'LBL_ZUS_ANNUAL_AMOUNT',
),
array(
'name' => 'zus_annual_base',
'label' => 'LBL_ZUS_ANNUAL_BASE',
),
),
),
'LBL_ZUS_LABEL2' => array(
array(
array(
'name' => 'disability',
'label' => 'LBL_DISABILITY',
),
array(
'name' => 'sickness',
'label' => 'LBL_SICKNESS',
),
),
array(
array(
'name' => 'retirement',
'label' => 'LBL_RETIREMENT',
),
array(
'name' => 'accidental',
'label' => 'LBL_ACCIDENTAL',
),
),
),
'LBL_ZUS_LABEL4' => array(
array(
array(
'name' => 'date_sickness',
'label' => 'LBL_DATE_SICKNESS',
),
),
array(
array(
'name' => 'date_retirement',
'label' => 'LBL_DATE_RETIREMENT',
),
),
array(
array(
'name' => 'zus_date_disability',
'label' => 'LBL_ZUS_DATE_DISABILITY',
),
),
),
'LBL_ZUS_LABEL3' => array(
array(
array(
'name' => 'code_relationship',
'label' => 'LBL_CODE_RELATIONSHIP',
),
array(
'name' => 'code_education',
'label' => 'LBL_CODE_EDUCATION',
),
),
array(
array(
'name' => 'zus_common_household_employer',
'label' => 'LBL_ZUS_COMMON_HOUSEHOLD_EMPLOYER',
),
array(
'name' => 'code_profession',
'label' => 'LBL_CODE_PROFESSION',
),
),
array(
array(
'name' => 'zus_code_discrepancies',
'label' => 'LBL_ZUS_CODE_DISCREPANCIES',
),
array(
'name' => 'zus_date_discrepancies_from',
'customCode' => "{include file='modules/EcmWorkers/tpl/EditViewZusDateDiscrepancies.tpl'}",
'label' => 'LBL_PERIOD',
),
),
array(
array(
'name' => 'zus_code_mining_work',
'label' => 'LBL_ZUS_CODE_MINING_WORK',
),
array(
'name' => 'zus_date_mining_work_from',
'customCode' => "{include file='modules/EcmWorkers/tpl/EditViewZusDateMiningWork.tpl'}",
'label' => 'LBL_PERIOD',
),
),
array(
array(
'name' => 'zus_code_charity_work',
'label' => 'LBL_ZUS_CODE_CHARITY_WORK',
),
array(
'name' => 'zus_date_charity_work_from',
'customCode' => "{include file='modules/EcmWorkers/tpl/EditViewZusDateCharityWork.tpl'}",
'label' => 'LBL_PERIOD',
),
),
),
'LBL_DISMISSAL' => array(
array(
array(
'name' => 'form_dismissal',
'label' => 'LBL_FORM_DISMISSAL',
),
array(
'name' => 'date_dismissal',
'label' => 'LBL_DATE_DISMISSAL',
),
),
array(
array(
'name' => 'code_deregistration',
'label' => 'LBL_CODE_DEREGISTRATION',
),
array(
'name' => 'dismissal_reason',
'label' => 'LBL_DISMISSAL_REASON',
),
),
),
),
);
/* array(
'name' => 'debtors_account',
'label' => 'LBL_DEBTORS_ACCOUNT',
),*/

View File

@@ -0,0 +1,96 @@
<?php
$module_name = 'EcmWorkers';
$listViewDefs [$module_name] = array (
'STAN' => array (
'width' => '1',
'default' => true,
'label' => 'Aktualny'
),
'FIRST_NAME' => array (
'type' => 'varchar',
'label' => 'LBL_FIRST_NAME',
'link' => true,
'width' => '10%',
'default' => true,
),
'SECOND_NAME' => array(
'type' => 'varchar',
'label' => 'LBL_SECOND_NAME',
'link' => false,
'width' => '10%',
'default' => false,
),
'LAST_NAME' => array (
'type' => 'varchar',
'label' => 'LBL_LAST_NAME',
'link' => true,
'width' => '10%',
'default' => true,
),
'PHONE_WORK' => array (
'width' => '5%',
'label' => 'LBL_OFFICE_PHONE',
'default' => true,
),
'OPIS' => array (
'width' => '25%',
'label' => 'Opis',
'default' => true,
),
'PHONE_HOME' => array (
'width' => '10%',
'label' => 'LBL_HOME_PHONE',
'default' => false,
),
'PHONE_MOBILE' => array (
'width' => '10%',
'label' => 'LBL_MOBILE_PHONE',
'default' => false,
),
'ADDRESS_STREET' => array (
'width' => '10%',
'label' => 'LBL_PRIMARY_ADDRESS_STREET',
'default' => false,
),
'ADDRESS_CITY' => array (
'width' => '10%',
'label' => 'LBL_PRIMARY_ADDRESS_CITY',
'default' => false,
),
'ADDRESS_STATE' => array (
'width' => '10%',
'label' => 'LBL_PRIMARY_ADDRESS_STATE',
'default' => false,
),
'ADDRESS_POSTALCODE' => array (
'width' => '10%',
'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE',
'default' => false,
),
'DATE_ENTERED' => array (
'width' => '10%',
'label' => 'LBL_DATE_ENTERED',
'default' => false,
),
'CREATED_BY_NAME' => array (
'width' => '10%',
'label' => 'LBL_CREATED',
'default' => false,
),
'position_office' => array (
'width' => '10%',
'label' => 'LBL_POSITION_OFFICE',
'default' => false,
),
'COST' => array (
'width' => '10%',
'label' => 'LBL_COST',
'default' => false,
),
'DEPARTMENT' => array (
'width' => '10%',
'label' => 'LBL_DEPARTMENT',
'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 = 'EcmWorkers';
$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 = 'EcmWorkers';
$object_name = 'EcmWorker';
$_module_name = 'ecmworkers';
$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 = 'EcmWorkers';
$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,69 @@
<?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 = 'EcmWorkers';
$searchdefs[$module_name] = array(
'templateMeta' => array('maxColumns' => '3',
'widths' => array('label' => '10', 'field' => '30'),
),
'layout' => array(
'basic_search' => array(
array('name' => 'search_name', 'label' => 'LBL_NAME', 'type' => 'name'),
array('name' => 'current_user_only', 'label' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
array('name' => 'active2', 'label' => 'Czy aktywny?', 'type' => 'bool'),
),
'advanced_search' => array(
'first_name',
'last_name',
'primary_address_city',
'gender',
'form_employment',
'position_office',
'department',
'cost',
'date_employment',
'employment',
// 'created_by_name',
),
),
);

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,58 @@
<?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['EcmWorkers']['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'),
),
),
);
?>

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%',
),
),
);
?>