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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
global $app_strings;
$dashletMeta['EcmResourcesDashlet'] = array('module' => 'EcmResourcess',
'title' => translate('LBL_HOMEPAGE_TITLE', 'EcmResourcess'),
'description' => 'A customizable view into EcmResources',
'icon' => 'icon_EcmResources_32.gif',
'category' => 'Module Views');

View File

@@ -0,0 +1,62 @@
<?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".
********************************************************************************/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
require_once('include/Dashlets/DashletGeneric.php');
require_once('modules/EcmResourcess/EcmResources.php');
class EcmResourcesDashlet extends DashletGeneric {
function EcmResourcesDashlet($id, $def = null) {
global $current_user, $app_strings;
require('modules/EcmResources/metadata/dashletviewdefs.php');
parent::DashletGeneric($id, $def);
if(empty($def['title'])) $this->title = translate('LBL_HOMEPAGE_TITLE', 'EcmResources');
$this->searchFields = $dashletData['EcmResourcesDashlet']['searchFields'];
$this->columns = $dashletData['EcmResourcesDashlet']['columns'];
$this->seedBean = new EcmResources();
}
}

View File

@@ -0,0 +1,113 @@
<?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 CLASS IS FOR DEVELOPERS TO MAKE CUSTOMIZATIONS IN
*/
class EcmResources extends SugarBean {
var $new_schema = true;
var $module_dir = 'EcmResourcess';
var $object_name = 'EcmResources';
var $table_name = 'ecmresourcess';
var $importable = false;
var $disable_row_level_security = true;
var $id;
var $name;
var $date_entered;
var $date_modified;
var $modified_user_id;
var $modified_by_name;
var $created_by;
var $created_by_name;
var $description;
var $deleted;
var $created_by_link;
var $modified_user_link;
var $assigned_user_id;
var $assigned_user_name;
var $assigned_user_link;
var $serial_number;
var $year_production;
var $inventory_number;
var $gus_symbol;
var $amortization_method;
var $place_use;
var $assigned_worker;
var $date_mainbook_entry;
var $direction_revenue;
var $date_redemption_start;
var $date_redemption_end;
var $date_liquidation;
var $date_liquidation_partial;
var $date_admission;
var $direction_disposal;
var $date_continued_inactivity_start;
var $date_continued_inactivity_end;
var $id_mainbook_decision_continued_inactivity;
var $date_last_revaluation;
var $value_initial;
var $value_before_revaluation;
var $ecmresourcess_category;
var $date_purchase;
var $accumulated_depreciation;
var $depreciation_year_beginning;
var $discriminant_calculation;
var $amortization_accrued_current_year;
var $value_liquidation_partial;
var $expense_account_4;
var $expense_account_5;
var $typical_array_code_bookings;
var $revaluation_factor;
function EcmResources() {
parent::SugarBean();
}
function bean_implements($interface) {
switch ($interface) {
case 'ACL': return true;
}
return false;
}
function save($check_notify = FALSE) {
parent::save($check_notify);
}
}

41
modules/EcmResourcess/Menu.php Executable file
View File

@@ -0,0 +1,41 @@
<?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 $mod_strings, $app_strings, $sugar_config;
if(ACLController::checkAccess('EcmResourcess', 'edit', true))$module_menu[]=Array("index.php?module=EcmResourcess&action=EditView&return_module=EcmResourcess&return_action=DetailView", $mod_strings['LNK_NEW_RECORD'],"CreateEcmResources", 'EcmResources');
if(ACLController::checkAccess('EcmResourcess', 'list', true))$module_menu[]=Array("index.php?module=EcmResourcess&action=index&return_module=EcmResourcess&return_action=DetailView", $mod_strings['LNK_LIST'],"EcmResources", 'EcmResources');

View File

@@ -0,0 +1,186 @@
<?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".
* ****************************************************************************** */
$mod_strings = array(
'LBL_ACCIDENTAL' => 'Accidental',
'LBL_ACCOUNT_LEDGER' => 'Konto księgowe',
'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities',
'LBL_ADDRESS_INFORMATION' => 'Address(es)',
'LBL_ALT_ADDRESS_CITY' => 'Alternate City',
'LBL_ALT_ADDRESS_COMMUNITY' => 'Primary community',
'LBL_ALT_ADDRESS_COUNTRY' => 'Alternate Country',
'LBL_ALT_ADDRESS_DISTRICT' => 'District',
'LBL_ALT_ADDRESS_HOME' => 'Alternatywny numer domu',
'LBL_ALT_ADDRESS_HOME_NUMBER' => 'Alternatywny numer mieszkania',
'LBL_ALT_ADDRESS_POSTALCODE' => 'Alternate Postal Code',
'LBL_ALT_ADDRESS_STATE' => 'Alternate State',
'LBL_ALT_ADDRESS_STREET' => 'Alternate Address',
'LBL_ALT_MAIL' => 'Mail',
'LBL_AMOUNT_CONTRIBUTIONS' => 'Kwota i składki',
'LBL_ASSIGNED_TO_ID' => 'Assigned User Id',
'LBL_ASSIGNED_TO_NAME' => 'User',
'LBL_BANK_ACCOUNT' => 'Rachunek bankowy',
'LBL_BANK_ACCOUNT_NUMBER' => 'Numer rachunku',
'LBL_BASE_SALARY' => 'Base salary',
'LBL_BIRTHDAY' => 'Data urodzin',
'LBL_BIRTH_PLACE' => 'Miejsce urodzenia',
'LBL_CITIZENSHIP' => 'Obywatelstwo',
'LBL_CITY' => 'City',
'LBL_CODE_DEREGISTRATION' => 'Kod wyrejestrowania',
'LBL_CODE_EDUCATION' => 'Education code',
'LBL_CODE_PROFESSION' => 'Kod zawodu',
'LBL_CODE_RELATIONSHIP' => 'Relationship code',
'LBL_CONTACT_INFO' => 'Contact details',
'LBL_CONTACT_INFORMATION' => 'Contact Information',
'LBL_COST' => 'Koszt',
'LBL_COUNTRY' => 'Country',
'LBL_CREATED' => 'Created By',
'LBL_CREATED_ID' => 'Created By Id',
'LBL_CREATED_USER' => 'Created by User',
'LBL_DATE_COMMENCEMENT' => 'Date commencement',
'LBL_DATE_DISMISSAL' => 'Date dismissal',
'LBL_DATE_EMPLOYMENT' => 'Date of Employment',
'LBL_DATE_ENTERED' => 'Date Created',
'LBL_DATE_GRADUATION' => 'Date of graduation',
'LBL_DATE_INSURANCE' => 'Date of duty insurance',
'LBL_DATE_INTERNSHIP' => 'Date internship',
'LBL_DATE_MODIFIED' => 'Date Modified',
'LBL_DATE_OBLIGATION' => 'Date obligation',
'LBL_DATE_RETIREMENT' => 'Date of retirement',
'LBL_DATE_SICKNESS' => 'Date_sickness',
'LBL_DEBTORS_ACCOUNT' => 'Rachunku dłużnika',
'LBL_DELETED' => 'Deleted',
'LBL_DEPARTMENT' => 'Department',
'LBL_DESCRIPTION' => 'Description',
'LBL_DISABILITY' => 'Disability',
'LBL_DISMISSAL' => 'Information dismissal',
'LBL_DISMISSAL_REASON' => 'Przyczyna',
'LBL_ECMRESOURCESS_SUBPANEL_TITLE' => 'Pracownicy',
'LBL_EDUCATION' => 'Wykształcenie',
'LBL_EMAIL_ADDRESS' => 'Email Address(es)',
'LBL_EMAIL_ADDRESSES' => 'email',
'LBL_EMPLOYEE_GROUP' => 'Employee group',
'LBL_EMPLOYMENT' => 'Employment',
'LBL_FAMILY_INFO' => 'Family information',
'LBL_FAMILY_NAME' => 'Nazwisko rodowe',
'LBL_FATHER_NAME' => 'Father name',
'LBL_FAX_PHONE' => 'Fax',
'LBL_FIRST_NAME' => 'First Name',
'LBL_FORM_DISMISSAL' => 'Form dismissal',
'LBL_FORM_EMPLOYMENT' => 'Form of Employment',
'LBL_GENDER' => 'Płeć',
'LBL_HEALTH_INSURANCE' => 'Kasa chorych',
'LBL_HISTORY_SUBPANEL_TITLE' => 'View History',
'LBL_HOMEPAGE_TITLE' => 'My Pracownicy',
'LBL_HOME_PHONE' => 'Home Phone',
'LBL_ID' => 'ID',
'LBL_ID_CARD_DATE' => 'Data wydania',
'LBL_ID_CARD_ISSUED' => 'Wydane przez',
'LBL_ID_CARD_NUMBER' => 'Numer dowodu osobistego',
'LBL_INLAND_REVENUE' => 'Urząd Skarbowy',
'LBL_INSURANCE_CODE' => 'insurance code',
'LBL_LAST_NAME' => 'Last Name',
'LBL_LIST_FORM_TITLE' => 'Pracownicy List',
'LBL_LIST_NAME' => 'Name',
'LBL_MARITAL_STATUS' => 'Stan Cywilny',
'LBL_MOBILE_PHONE' => 'Mobile Phone',
'LBL_MODIFIED' => 'Modified By',
'LBL_MODIFIED_ID' => 'Modified By Id',
'LBL_MODIFIED_NAME' => 'Modified By Name',
'LBL_MODIFIED_USER' => 'Modified by User',
'LBL_MODULE_NAME' => 'Pracownicy',
'LBL_MODULE_TITLE' => 'Pracownicy',
'LBL_MOTHER_NAME' => 'Mother name',
'LBL_NAME' => 'Name',
'LBL_NAME_BANK' => 'Nazwa banku',
'LBL_NATIONALITY' => 'Narodowość',
'LBL_NEW_FORM_TITLE' => 'New Pracownicy',
'LBL_OFFICE' => 'Information of employment',
'LBL_OFFICE' => 'Office',
'LBL_OFFICE_PHONE' => 'Office Phone',
'LBL_OTHER_EMAIL_ADDRESS' => 'Other Email:',
'LBL_OTHER_PHONE' => 'Other Phone',
'LBL_PERIOD_OF_DISABILITY_FROM' => 'Period of disability from',
'LBL_PERIOD_OF_DISABILITY_TO' => 'Period of disability to',
'LBL_PERNAMENT_RESIDENCE_CARD' => 'Pernament residence card',
'LBL_PERSONAL_INFO' => 'Personal info',
'LBL_PERSON_CHILD_TAX_CREDIT' => 'Ulga na dzieci',
'LBL_PERSON_CURRENT_PROFESSION' => 'Zawód wykonywany',
'LBL_PERSON_ID_SERIES_NUMBER' => 'Seria i numer dokumentu',
'LBL_PERSON_LEARNED_PROFESSION' => 'Zawód wyuczony',
'LBL_PERSON_RELIEF' => 'Ulga',
'LBL_PESEL' => 'Pesel',
'LBL_PHONE_FAX' => 'Fax phone',
'LBL_POSITION_OFFICE' => 'Stanowisko',
'LBL_POSTALCODE' => 'Postal Code',
'LBL_POSTAL_CODE' => 'Postal Code',
'LBL_PRIMARY_ADDRESS' => 'Primary Address',
'LBL_PRIMARY_ADDRESS_CITY' => 'Primary City',
'LBL_PRIMARY_ADDRESS_COMMUNITY' => 'Primary community',
'LBL_PRIMARY_ADDRESS_COUNTRY' => 'Primary Address Country:',
'LBL_PRIMARY_ADDRESS_DISTRICT' => 'District',
'LBL_PRIMARY_ADDRESS_HOME' => 'Numer domu',
'LBL_PRIMARY_ADDRESS_HOME_NUMBER' => 'Numer mieszkania',
'LBL_PRIMARY_ADDRESS_POSTALCODE' => 'Primary Postal Code',
'LBL_PRIMARY_ADDRESS_STATE' => 'Primary State',
'LBL_PRIMARY_ADDRESS_STREET' => 'Primary Address',
'LBL_PRIMARY_MAIL' => 'Mail',
'LBL_REGISTRATION_NUMBER' => 'Numer ewidencyjny',
'LBL_RETIREMENT' => 'Retirement',
'LBL_SALUTATION' => 'Salutation',
'LBL_SCHOOL_COMPLETED' => 'Ukończona szkoła',
'LBL_SEARCH_FORM_TITLE' => 'Search Pracownicy',
'LBL_SECOND_NAME' => 'Drugie imię',
'LBL_SICKNESS' => 'Sickness',
'LBL_SPOUSE_NAME' => 'Imię współmałżonka',
'LBL_STATE' => 'State',
'LBL_STREET' => 'Other Address',
'LBL_TEMPORARY_RESIDENCE_CARD' => 'Temporary residence card',
'LBL_WORKING_TIME' => 'Working time',
'LBL_WORK_PHONE' => 'Work Phone',
'LBL_WORK_SCHEDULE' => 'work schedule',
'LBL_ZUS_ANNUAL_AMOUNT' => 'Roczna kwota ZUS',
'LBL_ZUS_ANNUAL_BASE' => 'Roczna podstawa ZUS',
'LBL_ZUS_COMMON_HOUSEHOLD_EMPLOYER' => 'Wspólne gospodarstwo domowe z pracodawcą',
'LBL_ZUS_DATE_DISABILITY' => 'Rentowe',
'LBL_ZUS_GROUP' => 'Group ZUS',
'LBL_ZUS_INFO' => 'ZUS information',
'LNK_IMPORT_ECMRESOURCESS' => 'Import Pracownicy',
'LNK_IMPORT_VCARD' => 'Create From vCard',
'LNK_LIST' => 'View Pracownicy',
'LNK_NEW_RECORD' => 'Create Pracownicy',
);
?>

View File

@@ -0,0 +1,99 @@
<?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".
* ****************************************************************************** */
$mod_strings = array(
'LBL_ASSIGNED_TO_ID' => 'ID przydzielonego użytkownika',
'LBL_ASSIGNED_TO_NAME' => 'Przydzielone do',
'LBL_CREATED' => 'Utworzone przez',
'LBL_CREATED_ID' => 'ID tworzącego',
'LBL_CREATED_USER' => 'Stworzone przez użytkownika',
'LBL_DATE_ENTERED' => 'Data utworzenia',
'LBL_DATE_MODIFIED' => 'Data modyfikacji',
'LBL_DELETED' => 'Usunięto',
'LBL_DESCRIPTION' => 'Opis',
'LBL_HISTORY_SUBPANEL_TITLE' => 'Zobacz historię',
'LBL_HOMEPAGE_TITLE' => 'Zasoby',
'LBL_ID' => 'ID',
'LBL_LIST_FORM_TITLE' => 'Lista zasobów',
'LBL_LIST_NAME' => 'Nazwa',
'LBL_MODIFIED' => 'Zmodyfikowane przez',
'LBL_MODIFIED_ID' => 'ID modyfikującego',
'LBL_MODIFIED_NAME' => 'Nazwa modyfikującego',
'LBL_MODIFIED_USER' => 'Zmodyfikowane przez użytkownika',
'LBL_MODULE_NAME' => 'Zasoby',
'LBL_MODULE_TITLE' => 'Zasoby',
'LBL_NAME' => 'Nazwa',
'LBL_NEW_FORM_TITLE' => 'Nowe zasoby',
'LBL_SEARCH_FORM_TITLE' => 'Szukaj zasobów',
'LNK_IMPORT_ECMRESOURCESS' => 'Importuj zasoby',
'LNK_LIST' => ' Lista zasobów',
'LNK_NEW_RECORD' => 'Nowy zasób',
'LBL_ACTIVE' => 'Aktywny',
'LBL_SERIAL_NUMBER' => 'Numer fabryczny',
'LBL_YEAR_PRODUCTION' => 'Data produkcji',
'LBL_INVENTORY_NUMBER' => 'Numer inwentarzowy',
'LBL_GUS_SYMBOL' => 'Symbol GUS',
'LBL_AMORTIZATION_METHOD' => 'Sposób amortyzacji',
'LBL_PLACE_USE' => 'Miejsce urzytkowania',
'LBL_ASSIGNED_WORKER' => 'Osoba odpowiedzialna',
'LBL_DATE_MAINBOOK_ENTRY' => 'Data wpisu do księgi',
'LBL_DIRECTION_REVENUE' => 'Kierunek przychodu',
'LBL_DATE_REDEMPTION_START' => 'Data ropoczęcia umarzania',
'LBL_DATE_REDEMPTION_END' => 'Data zakończenia umarzania',
'LBL_DATE_LIQUIDATION' => 'Data likwidacji',
'LBL_DATE_LIQUIDATION_PARTIAL' => 'Data likwidacji częściowej',
'LBL_DATE_ADMISSION' => 'Data przyjęcia',
'LBL_DIRECTION_DISPOSAL' => 'Kierunek rozchodu',
'LBL_DATE_CONTINUED_INACTIVITY_START' => 'Data rozpoczęcia trwałej nieczynności',
'LBL_DATE_CONTINUED_INACTIVITY_END' => 'Data zakończenia trwałej nieczynności',
'LBL_ID_MAINBOOK_DECISION_CONTINUED_INACTIVITY' => 'Identyfikator księgowy decyzji o trwałej nieczynności',
'LBL_DATE_LAST_REVALUATION' => 'Data ostatniego przeszacowania',
'LBL_VALUE_INITIAL' => 'Wartość początkowa',
'LBL_VALUE_BEFORE_REVALUATION' => 'Wartość przed ostatnim przeszacowaniem',
'LBL_ECMRESOURCESS_CATEGORY' => 'Kategoria',
'LBL_DATE_PURCHASE' => 'Data zakupu',
'LBL_ACCUMULATED_DEPRECIATION' => 'Dotychczasowe umorzenie',
'LBL_DEPRECIATION_YEAR_BEGINNING' => 'Umorzenie na początek roku',
'LBL_DISCRIMINANT_CALCULATION' => 'Wyróżnik naliczania',
'LBL_AMORTIZATION_ACCRUED_CURRENT_YEAR' => 'Umorzenie naliczone w bieżącym roku',
'LBL_VALUE_LIQUIDATION_PARTIAL' => 'Kwota likwidacji częściowej',
'LBL_EXPENSE_ACCOUNT_4' => 'Konto kosztów zespołu 4',
'LBL_EXPENSE_ACCOUNT_5' => 'Konto kosztów zespołu 5',
'LBL_TYPICAL_ARRAY_CODE_BOOKINGS' => 'Kod tablicy typowych księgowań',
'LBL_REVALUATION_FACTOR' => 'Współczynnik przeszacowania',
'LBL_WORKER_ID' => 'ID pracownika',
);
?>

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

552
modules/EcmResourcess/vardefs.php Executable file
View File

@@ -0,0 +1,552 @@
<?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".
* ****************************************************************************** */
$dictionary['EcmResources'] = array(
'table' => 'ecmresourcess',
'audited' => true,
'fields' => array(
'serial_number' => array(
'name' => 'serial_number',
'vname' => 'LBL_SERIAL_NUMBER',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'year_production' => array(
'required' => false,
'name' => 'year_production',
'vname' => 'LBL_YEAR_PRODUCTION',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'inventory_number' => array(
'name' => 'inventory_number',
'vname' => 'LBL_INVENTORY_NUMBER',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'gus_symbol' => array(
'name' => 'gus_symbol',
'vname' => 'LBL_GUS_SYMBOL',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'amortization_method' => array(
'required' => false,
'name' => 'amortization_method',
'vname' => 'LBL_AMORTIZATION_METHOD',
'type' => 'enum',
'len' => '255',
'options' => 'ecmresourcess_amortization_method',
'reportable' => false,
),
'place_use' => array(
'required' => false,
'name' => 'place_use',
'vname' => 'LBL_PLACE_USE',
'type' => 'enum',
'len' => '255',
'options' => 'ecmresourcess_place_use',
'reportable' => false,
),
'assigned_worker_id' => array(
'name' => 'assigned_worker_id',
'rname' => 'name',
'type' => 'id',
'module' => 'EcmWorkers',
'vname' => 'LBL_WORKER_ID',
'group' => 'assigned_worker',
'massupdate' => false,
'reportable' => false,
'required' => false,
),
'assigned_worker' => array(
'name' => 'assigned_worker',
'rname' => 'name',
'id_name' => 'assigned_worker_id',
'vname' => 'LBL_ASSIGNED_WORKER',
'type' => 'relate',
'group' => 'assigned_worker',
'dbtype' => 'varchar',
'len' => '255',
//'source'=>'non-db',
'module' => 'EcmWorkers',
'massupdate' => false,
'required' => false,
),
'date_mainbook_entry' => array(
'required' => false,
'name' => 'date_mainbook_entry',
'vname' => 'LBL_DATE_MAINBOOK_ENTRY',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'direction_revenue' => array(
'required' => false,
'name' => 'direction_revenue',
'vname' => 'LBL_DIRECTION_REVENUE',
'type' => 'enum',
'options' => 'ecmresourcess_direction_revenue',
'reportable' => false,
),
'date_redemption_start' => array(
'required' => false,
'name' => 'date_redemption_start',
'vname' => 'LBL_DATE_REDEMPTION_START',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'date_redemption_end' => array(
'required' => false,
'name' => 'date_redemption_end',
'vname' => 'LBL_DATE_REDEMPTION_END',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'date_liquidation' => array(
'required' => false,
'name' => 'date_liquidation',
'vname' => 'LBL_DATE_LIQUIDATION',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'date_liquidation_partial' => array(
'required' => false,
'name' => 'date_liquidation_partial',
'vname' => 'LBL_DATE_LIQUIDATION_PARTIAL',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'date_admission' => array(
'required' => false,
'name' => 'date_admission',
'vname' => 'LBL_DATE_ADMISSION',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'direction_disposal' => array(
'required' => false,
'name' => 'direction_disposal',
'vname' => 'LBL_DIRECTION_DISPOSAL',
'type' => 'enum',
'options' => 'ecmresourcess_direction_disposal',
'reportable' => false,
),
'date_continued_inactivity_start' => array(
'required' => false,
'name' => 'date_continued_inactivity_start',
'vname' => 'LBL_DATE_CONTINUED_INACTIVITY_START',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'date_continued_inactivity_end' => array(
'required' => false,
'name' => 'date_continued_inactivity_end',
'vname' => 'LBL_DATE_CONTINUED_INACTIVITY_END',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'id_mainbook_decision_continued_inactivity' => array(
'name' => 'id_mainbook_decision_continued_inactivity',
'vname' => 'LBL_ID_MAINBOOK_DECISION_CONTINUED_INACTIVITY',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'date_last_revaluation' => array(
'required' => false,
'name' => 'date_last_revaluation',
'vname' => 'LBL_DATE_LAST_REVALUATION',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'value_initial' => array(
'name' => 'value_initial',
'vname' => 'LBL_VALUE_INITIAL',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'value_before_revaluation' => array(
'name' => 'value_before_revaluation',
'vname' => 'LBL_VALUE_BEFORE_REVALUATION',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'ecmresourcess_category' => array(
'required' => false,
'name' => 'ecmresourcess_category',
'vname' => 'LBL_ECMRESOURCESS_CATEGORY',
'type' => 'enum',
'options' => 'ecmresourcess_category',
'reportable' => false,
),
'date_purchase' => array(
'required' => false,
'name' => 'date_purchase',
'vname' => 'LBL_DATE_PURCHASE',
'type' => 'date',
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
),
'accumulated_depreciation' => array(
'name' => 'accumulated_depreciation',
'vname' => 'LBL_ACCUMULATED_DEPRECIATION',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'depreciation_year_beginning' => array(
'name' => 'depreciation_year_beginning',
'vname' => 'LBL_DEPRECIATION_YEAR_BEGINNING',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'discriminant_calculation' => array(
'required' => false,
'name' => 'discriminant_calculation',
'vname' => 'LBL_DISCRIMINANT_CALCULATION',
'type' => 'enum',
'options' => 'ecmresourcess_discriminant_calculation',
'reportable' => false,
),
'amortization_accrued_current_year' => array(
'name' => 'amortization_accrued_current_year',
'vname' => 'LBL_AMORTIZATION_ACCRUED_CURRENT_YEAR',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'value_liquidation_partial' => array(
'name' => 'value_liquidation_partial',
'vname' => 'LBL_VALUE_LIQUIDATION_PARTIAL',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'expense_account_4' => array(
'name' => 'expense_account_4',
'vname' => 'LBL_EXPENSE_ACCOUNT_4',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'expense_account_5' => array(
'name' => 'expense_account_5',
'vname' => 'LBL_EXPENSE_ACCOUNT_5',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'typical_array_code_bookings' => array(
'name' => 'typical_array_code_bookings',
'vname' => 'LBL_TYPICAL_ARRAY_CODE_BOOKINGS',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'revaluation_factor' => array(
'name' => 'revaluation_factor',
'vname' => 'LBL_REVALUATION_FACTOR',
'type' => 'varchar',
'len' => '255',
'unified_search' => true,
'merge_filter' => 'selected',
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => true,
'reportable' => true,
'size' => '255',
),
'tasks' => array (
'name' => 'tasks',
'type' => 'link',
'relationship' => 'ecmresources_tasks',
'module' => 'Tasks',
'bean_name' => 'Task',
'source' => 'non-db',
'vname' => 'LBL_TASKS'
),
),
'relationships' => array(
'ecmresources_tasks' => array (
'lhs_module' => 'EcmResourcess',
'lhs_table' => 'ecmresourcess',
'lhs_key' => 'id',
'rhs_module' => 'Tasks',
'rhs_table' => 'tasks',
'rhs_key' => 'record_id',
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'record_type',
'relationship_role_column_value' => 'EcmResourcess',
),
),
'optimistic_locking' => true,
);
if (!class_exists('VardefManager')) {
require_once('include/SugarObjects/VardefManager.php');
}
VardefManager::createVardef('EcmResourcess', 'EcmResources', array('default'));