2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
43 global $sugar_demodata;
44 $sugar_demodata['users'][0] = array(
45 'id' => 'seed_jim_id',
52 'reports_to_name' => null,
53 'email' => 'jim@example.com'
57 $sugar_demodata['users'][] = array(
58 'id' => 'seed_sarah_id',
61 'user_name' => 'sarah',
64 'reports_to' => 'seed_jim_id',
65 'reports_to_name' => '金, 丽',
66 'email' => 'sarah@example.com'
69 $sugar_demodata['users'][] = array(
70 'id' => 'seed_sally_id',
73 'user_name' => 'sally',
76 'reports_to' => 'seed_sarah_id',
77 'reports_to_name' => '韩, 云',
78 'email' => 'sally@example.com'
81 $sugar_demodata['users'][] = array(
82 'id' => 'seed_max_id',
88 'reports_to' => 'seed_sarah_id',
89 'reports_to_name' => '韩, 云',
90 'email' => 'tom@example.com'
94 $sugar_demodata['users'][] = array(
95 'id' => 'seed_will_id',
98 'user_name' => 'will',
101 'reports_to' => 'seed_jim_id',
102 'reports_to_name' => '金, 丽',
103 'email' => 'will@example.com'
106 $sugar_demodata['users'][] = array(
107 'id' => 'seed_chris_id',
110 'user_name' => 'chris',
113 'reports_to' => 'seed_will_id',
114 'reports_to_name' => '王, 伟',
115 'email' => 'chris@example.com'
120 $sugar_demodata['teams'][] = array(
122 'description' => '东区团队',
126 $sugar_demodata['teams'][] = array(
128 'description' => '西区团队',
133 $sugar_demodata['first_name_array'] = array(
436 $sugar_demodata['last_name_array'] = array(
538 $sugar_demodata['company_name_array'] = array(
557 $sugar_demodata['street_address_array'] = array(
579 $sugar_demodata['city_array'] = array (
601 $sugar_demodata['case_seed_names'] = array(
608 $sugar_demodata['note_seed_names_and_Descriptions'] = array(
609 array('更多客户信息','300多个潜在客户'),
610 array('电话信息','我们有个电话,看上去不错'),
611 array('生日信息','出生于10月'),
612 array('节日礼物','节日礼物非常棒,放在列表中以备以后选择')
614 $sugar_demodata['call_seed_data_names'] = array(
622 $sugar_demodata['titles'] = array(
633 $sugar_demodata['task_seed_data_names'] = array(
656 $sugar_demodata['meeting_seed_data_names'] = array(
664 $sugar_demodata['meeting_seed_data_descriptions'] = '讨论项目的计划以及罗列实施的细节';
668 $sugar_demodata['email_seed_data_subjects'] = array(
676 $sugar_demodata['email_seed_data_descriptions'] = '讨论项目的计划以及罗列实施的细节';
679 $sugar_demodata['primary_address_state'] = '上海';
680 $sugar_demodata['billing_address_state']['east'] = '上海';
681 $sugar_demodata['billing_address_state']['west'] = '昆明';
682 $sugar_demodata['primary_address_country'] = '中国';
685 $sugar_demodata['manufacturer_seed_data_names'] = array(
691 $sugar_demodata['shipper_seed_data_names'] = array(
696 $sugar_demodata['category_ext_name'] = '氏系列产品';
697 $sugar_demodata['product_ext_name'] = '氏小配件';
699 $sugar_demodata['productcategory_seed_data_names'] = array(
707 $sugar_demodata['producttype_seed_data_names']= array(
713 $sugar_demodata['taxrate_seed_data'][] = array(
718 $sugar_demodata['currency_seed_data'][] = array(
720 'conversion_rate' => 0.146,
726 $sugar_demodata['producttemplate_seed_data'][] = array(
727 'name' => 'TK 1000 台式机',
728 'tax_class' => 'Taxable',
729 'cost_price' => 500.00,
730 'cost_usdollar' => 500.00,
731 'list_price' => 800.00,
732 'list_usdollar' => 800.00,
733 'discount_price' => 800.00,
734 'discount_usdollar' => 800.00,
735 'pricing_formula' => 'IsList',
736 'mft_part_num' => 'XYZ7890122222',
737 'pricing_factor' => '1',
738 'status' => 'Available',
740 'date_available' => '2004-10-15',
741 'qty_in_stock' => '72',
744 $sugar_demodata['producttemplate_seed_data'][] = array(
745 'name' => 'TK 1000 台式机',
746 'tax_class' => 'Taxable',
747 'cost_price' => 600.00,
748 'cost_usdollar' => 600.00,
749 'list_price' => 900.00,
750 'list_usdollar' => 900.00,
751 'discount_price' => 900.00,
752 'discount_usdollar' => 900.00,
753 'pricing_formula' => 'IsList',
754 'mft_part_num' => 'XYZ7890123456',
755 'pricing_factor' => '1',
756 'status' => 'Available',
758 'date_available' => '2004-10-15',
759 'qty_in_stock' => '65',
762 $sugar_demodata['producttemplate_seed_data'][] = array(
763 'name' => 'TK m30 台式机',
764 'tax_class' => 'Taxable',
765 'cost_price' => 1300.00,
766 'cost_usdollar' => 1300.00,
767 'list_price' => 1700.00,
768 'list_usdollar' => 1700.00,
769 'discount_price' => 1625.00,
770 'discount_usdollar' => 1625.00,
771 'pricing_formula' => 'ProfitMargin',
772 'mft_part_num' => 'ABCD123456890',
773 'pricing_factor' => '20',
774 'status' => 'Available',
776 'date_available' => '2004-10-15',
777 'qty_in_stock' => '12',
780 $sugar_demodata['producttemplate_seed_data'][] = array(
782 'tax_class' => 'Taxable',
783 'cost_price' => 200.00,
784 'cost_usdollar' => 200.00,
785 'list_price' => 325.00,
786 'list_usdollar' => 325.00,
787 'discount_price' => 266.50,
788 'discount_usdollar' => 266.50,
789 'pricing_formula' => 'PercentageDiscount',
790 'mft_part_num' => '2.0',
791 'pricing_factor' => '20',
792 'status' => 'Available',
794 'date_available' => '2004-10-15',
795 'qty_in_stock' => '65',
798 $sugar_demodata['contract_seed_data'][] = array(
799 'name' => '给月球基地的IT技术支持',
800 'reference_code' => 'EMP-9802',
801 'total_contract_value' => '500600.01',
802 'start_date' => '2010-05-15',
803 'end_date' => '2020-05-15',
804 'company_signed_date' => '2010-03-15',
805 'customer_signed_date' => '2010-03-16',
806 'description' => '在月球基地上进行的秘密项目',
809 $sugar_demodata['contract_seed_data'][] = array(
811 'reference_code' => 'EMP-7277',
812 'total_contract_value' => '333444.34',
813 'start_date' => '2010-05-15',
814 'end_date' => '2020-05-15',
815 'company_signed_date' => '2010-03-15',
816 'customer_signed_date' => '2010-03-16',
817 'description' => '应用于深空973号探测器',
820 $sugar_demodata['project_seed_data']['audit'] = array(
821 'name' => '为审计所创建的项目',
822 'description' => '六月份的年审',
823 'estimated_start_date' => '2007-11-01',
824 'estimated_end_date' => '2007-12-31',
826 'priority' => 'medium',
829 $sugar_demodata['project_seed_data']['audit']['project_tasks'][] = array(
831 'date_start' => '2007/11/1',
832 'date_finish' => '2007/11/8',
833 'description' => '与马东和刘伟单独会面',
835 'duration_unit' => 'Days',
836 'percent_complete' => 100,
839 $sugar_demodata['project_seed_data']['audit']['project_tasks'][] = array(
841 'date_start' => '2007/11/5',
842 'date_finish' => '2007/11/20',
843 'description' => '与马东和刘伟单独会面',
845 'duration_unit' => 'Days',
846 'percent_complete' => 38,
849 $sugar_demodata['project_seed_data']['audit']['project_tasks'][] = array(
850 'name' => '外勤工作收集数据',
851 'date_start' => '2007/11/5',
852 'date_finish' => '2007/11/13',
853 'description' => '我们需要获得股东的支持',
855 'duration_unit' => 'Days',
856 'percent_complete' => 75,
859 $sugar_demodata['project_seed_data']['audit']['project_tasks'][] = array(
861 'date_start' => '2007/11/12',
862 'date_finish' => '2007/11/19',
863 'description' => 'Schedule the meeting with the head of business units to solicit help.',
865 'duration_unit' => 'Days',
866 'percent_complete' => 0,
869 $sugar_demodata['project_seed_data']['audit']['project_tasks'][] = array(
871 'date_start' => '2007/11/20',
872 'date_finish' => '2007/11/20',
873 'description' => '收集组织会议资料并归档',
875 'duration_unit' => 'Days',
876 'percent_complete' => 0,