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,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".
* ****************************************************************************** */
$searchFields['EcmFkPackages'] = array(
// 'ecmfkpackage_name' => array(
// 'query_type' => 'default',
// ),
// 'category_id' => array(
// 'query_type' => 'default',
// 'options' => 'ecmfkpackage_category_dom',
// 'template_var' => 'CATEGORY_OPTIONS',
// ),
// 'subcategory_id' => array(
// 'query_type' => 'default',
// 'options' => 'ecmfkpackage_subcategory_dom',
// 'template_var' => 'SUBCATEGORY_OPTIONS',
// ),
// 'active_date' => array(
// 'query_type' => 'default',
// ),
// 'exp_date' => array(
// 'query_type' => 'default',
// ),
);

View File

@@ -0,0 +1,238 @@
<?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".
* ****************************************************************************** */
$listViewDefs['EcmFkPackages'] = array(
// 'ID' => array(
// 'label' => 'LBL_ID',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'DATE_ENTERED' => array(
// 'label' => 'LBL_DATE_ENTERED',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'DATE_MODIFIED' => array(
// 'label' => 'LBL_DATE_MODIFIED',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'DATE_BOOK' => array(
// 'label' => 'LBL_DATE_BOOK',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'DATE_DOCUMENT' => array(
// 'label' => 'LBL_DATE_DOCUMENT',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'MODIFIED_USER_ID' => array(
// 'label' => 'LBL_MODIFIED_USER_ID',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'CREATED_BY' => array(
// 'label' => 'LBL_CREATED_BY',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'DESCRIPTION' => array(
// 'label' => 'LBL_DESCRIPTION',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'DELETED' => array(
// 'label' => 'LBL_DELETED',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_DATE' => array(
// 'label' => 'LBL_BOOK_DATE',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_NAME' => array(
// 'label' => 'LBL_BOOK_NAME',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_NUMBER' => array(
// 'label' => 'LBL_BOOK_NUMBER',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_AMOUNT' => array(
// 'label' => 'LBL_BOOK_AMOUNT',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_ACC_MA' => array(
// 'label' => 'LBL_BOOK_ACC_MA',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_ACC_WN' => array(
// 'label' => 'LBL_BOOK_ACC_WN',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_POSITION' => array(
// 'label' => 'LBL_BOOK_POSITION',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_SYMBOL' => array(
// 'label' => 'LBL_BOOK_SYMBOL',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'BOOK_IDENTIFIER' => array(
// 'label' => 'LBL_BOOK_IDENTIFIER',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'FILE_URL' => array(
// 'width' => '2%',
// 'label' => '&nbsp;',
// 'link' => true,
// 'default' => true,
// 'related_fields' => array(
// 0 => 'ecmfkpackage_revision_id',
// ),
// 'sortable' => false,
// 'studio' => false,
// ),
// 'DOCUMENT_NAME' => array(
// 'width' => '40%',
// 'label' => 'LBL_NAME',
// 'link' => true,
// 'default' => true,
// 'bold' => true,
// ),
// 'CATEGORY_ID' => array(
// 'width' => '40%',
// 'label' => 'LBL_LIST_CATEGORY',
// 'default' => true,
// ),
// 'SUBCATEGORY_ID' => array(
// 'width' => '40%',
// 'label' => 'LBL_LIST_SUBCATEGORY',
// 'default' => true,
// ),
// 'LAST_REV_CREATE_DATE' => array(
// 'width' => '10%',
// 'label' => 'LBL_LIST_LAST_REV_DATE',
// 'default' => true,
// 'sortable' => false,
// 'related_fields' => array(
// 0 => 'ecmfkpackage_revision_id',
// ),
// ),
//
'BOOK_NUMBER' => array(
'label' => 'LBL_BOOK_NUMBER',
'link' => false,
'default' => false,
'bold' => false,
),
/*
'BOOK_NAME' => array(
'label' => 'LBL_BOOK_NAME',
'link' => true,
'default' => false,
'bold' => true,
),
'BOOK_AMOUNT' => array(
'label' => 'LBL_BOOK_AMOUNT',
'link' => false,
'default' => false,
'bold' => false,
),
'DATE_DOCUMENT' => array(
'label' => 'LBL_DATE_DOCUMENT',
'link' => false,
'default' => false,
'bold' => false,
),
'BOOK_DATE' => array(
'label' => 'LBL_BOOK_DATE',
'link' => false,
'default' => false,
'bold' => false,
),
*/
// 'CREATED_BY_NAME' => array(
// 'width' => '2%',
// 'label' => 'LBL_CREATED_BY',
// 'default' => true,
// 'sortable' => false,
// ),
// 'MODIFIED_BY_NAME' => array(
// 'width' => '10%',
// 'label' => 'LBL_MODIFIED_USER',
// 'module' => 'Users',
// 'id' => 'USERS_ID',
// 'default' => false,
// 'sortable' => false,
// 'related_fields' => array(
// 0 => 'modified_user_id',
// ),
// ),
);

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".
* ****************************************************************************** */
$viewdefs['EcmFkPackages']['DetailView'] = array(
'templateMeta' => array(
'maxColumns' => '2',
'form' => array(
'hidden' => array(
'<input type="hidden" name="old_id" value="{$fields.ecmfkpackage_revision_id.value}">',
),
),
'widths' => array(
array(
'label' => '10',
'field' => '30',
),
array(
'label' => '10',
'field' => '30',
),
),
),
'panels' => array(
'LBL_ECMFKPACKAGE_INFORMATION' => array(
array(
'date_entered',
'date_modified',
),
// array(
// 'modified_user_id',
// 'created_by',
// ),
// array(
// 'created_by_link',
// 'modified_user_link',
// ),
array(
'created_by_name',
'modified_by_name',
),
),
'LBL_ECMFKPACKAGE_DETAILS' => array(
array(
'date_package',
'date_document',
),
array(
'description',
//'deleted',
),
array(
'package_date',
'package_name',
),
array(
'package_number',
'package_amount',
),
array(
'package_acc_ma',
'package_acc_wn',
),
array(
'package_position',
'package_symbol',
),
array(
'package_identifier',
),
),
'LBL_PK_TAB' => array(
array(
array(
'name' => 'pk_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/MyTable.css" />
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/AjaxSearch/AjaxSearch.css" />
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="pkTableDIV">
<table class="positions" style="width:100%;" id="pkTable">
<thead id="head">
<tr id="tr">
<td width="20%">{$MOD.LBL_EDITABLE_POSITION}</td>
<td width="25%">{$MOD.LBL_EDITABLE_WN}</td>
<td width="25%">{$MOD.LBL_EDITABLE_AMOUNT}</td>
<td width="25%">{$MOD.LBL_EDITABLE_MA}</td>
<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
',
)
),
),
'LBL_REGISTRY_TAB' => array(
array(
array(
'name' => 'registry_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/MyTable.css" />
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/AjaxSearch/AjaxSearch.css" />
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="registryTableDIV">
<table class="positions" style="width:100%;" id="registryTable">
<thead id="head">
<tr id="tr">
<td width="20%">{$MOD.LBL_EDITABLE_POSITION}</td>
<td width="25%">{$MOD.LBL_EDITABLE_WN}</td>
<td width="25%">{$MOD.LBL_EDITABLE_AMOUNT}</td>
<td width="25%">{$MOD.LBL_EDITABLE_MA}</td>
<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
',
)
),
),
),
);
/*
id
date_entered
date_modified
date_package
date_document
modified_user_id
created_by
description
deleted
package_date
package_name
package_number
package_amount
package_acc_ma
package_acc_wn
package_position
package_symbol
package_identifier
*/

View File

@@ -0,0 +1,213 @@
<?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".
* ****************************************************************************** */
$viewdefs['EcmFkPackages']['EditView'] = array(
'templateMeta' => array(
'form' => array(
'enctype' => 'multipart/form-data',
'hidden' => array(
'<input type="hidden" name="old_id" value="{$fields.ecmfkpackage_revision_id.value}">',
'<input type="hidden" name="contract_id" value="{$smarty.request.contract_id}">',
'<input type="hidden" name="pk_list" id="pk_list" value=\'{$PK_LIST}\'>',
'<input type="hidden" name="registry_list" id="registry_list" value=\'{$REGISTRY_LIST}\'>',
),
),
'maxColumns' => '2',
'widths' => array(
array(
'label' => '10',
'field' => '30',
),
array(
'label' => '10',
'field' => '30',
),
),
/*
'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>
<script type="text/javascript" src="modules/EcmFkPackages/ecmfkpackages.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
',
*/
'includes' => array(
// array(
// 'file' => 'include/JSON.js',
// ),
// array(
// 'file' => 'include/javascript/quicksearch.js',
// ),
// array(
// 'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
// ),
// array(
// 'file' => 'modules/EcmFkPackages/AjaxSearch/AjaxSearch.js',
// ),
array(
'file' => 'modules/EcmFkPackages/formloader.js',
),
array(
'file' => 'modules/EcmFkPackages/MyTable.js',
),
array(
'file' => 'modules/EcmFkPackages/EcmFkPackages.js',
),
array(
'file' => 'modules/EcmFkPackages/EcmFkPackagesEditView.js',
),
array(
'file' => 'modules/EcmProducts/mintajax.js',
),
array(
'file' => 'modules/EcmProducts/helper.js',
),
),
),
'panels' => array(
'LBL_ECMFKPACKAGE_INFORMATION' => array(
// array(
// 'date_entered',
// 'date_modified',
// ),
// array(
// 'modified_user_id',
// 'created_by',
// ),
// array(
// 'created_by_link',
// 'modified_user_link',
// ),
array(
'created_by_name',
'modified_by_name',
),
),
'LBL_ECMFKPACKAGE_DETAILS' => array(
array(
'date_package',
'date_document',
),
array(
'description',
'deleted',
),
array(
'package_date',
'package_name',
),
array(
'package_number',
'package_amount',
),
array(
'package_acc_ma',
'package_acc_wn',
),
array(
'package_position',
'package_symbol',
),
array(
'package_identifier',
),
),
'LBL_PK_TAB' => array(
array(
array(
'name' => 'pk_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/MyTable.css" />
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/AjaxSearch/AjaxSearch.css" />
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="pkTableDIV">
<table class="positions" style="width:100%;" id="pkTable">
<thead id="head">
<tr id="tr">
<td width="20%">{$MOD.LBL_EDITABLE_POSITION}</td>
<td width="25%">{$MOD.LBL_EDITABLE_WN}</td>
<td width="25%">{$MOD.LBL_EDITABLE_AMOUNT}</td>
<td width="25%">{$MOD.LBL_EDITABLE_MA}</td>
<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
',
)
),
),
'LBL_REGISTRY_TAB' => array(
array(
array(
'name' => 'registry_panel',
'allCols' => true,
'hideLabel' => true,
'customCode' =>
'
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/MyTable.css" />
<link rel="stylesheet" type="text/css" href="modules/EcmFkPackages/AjaxSearch/AjaxSearch.css" />
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="registryTableDIV">
<table class="positions" style="width:100%;" id="registryTable">
<thead id="head">
<tr id="tr">
<td width="20%">{$MOD.LBL_EDITABLE_POSITION}</td>
<td width="25%">{$MOD.LBL_EDITABLE_WN}</td>
<td width="25%">{$MOD.LBL_EDITABLE_AMOUNT}</td>
<td width="25%">{$MOD.LBL_EDITABLE_MA}</td>
<td width="5%">{$MOD.LBL_EDITABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
',
)
),
),
)
);

View File

@@ -0,0 +1,176 @@
<?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".
* ****************************************************************************** */
$listViewDefs['EcmFkPackages'] = array(
// 'ID' => array(
// 'width' => '40%',
// 'label' => 'LBL_ID',
// 'link' => false,
// 'default' => false,
// 'bold' => false,
// ),
// 'DATE_ENTERED' => array(
// 'width' => '40%',
// 'label' => 'LBL_DATE_ENTERED',
// 'link' => false,
// 'default' => true,
// 'bold' => false,
// ),
// 'DATE_MODIFIED' => array(
// 'width' => '40%',
// 'label' => 'LBL_DATE_MODIFIED',
// 'link' => false,
// 'default' => false,
// 'bold' => false,
// ),
// 'DATE_PACKAGE' => array(
// 'width' => '40%',
// 'label' => 'LBL_DATE_PACKAGE',
// 'link' => false,
// 'default' => false,
// 'bold' => false,
// ),
// 'MODIFIED_USER_ID' => array(
// 'width' => '40%',
// 'label' => 'LBL_MODIFIED_USER_ID',
// 'link' => false,
// 'default' => false,
// 'bold' => false,
// ),
// 'CREATED_BY' => array(
// 'width' => '40%',
// 'label' => 'LBL_CREATED_BY',
// 'link' => false,
// 'default' => false,
// 'bold' => false,
// ),
// 'DELETED' => array(
// 'width' => '40%',
// 'label' => 'LBL_DELETED',
// 'link' => false,
// 'default' => false,
// 'bold' => false,
// ),
'PACKAGE_NUMBER' => array(
'width' => '40%',
'label' => 'LBL_PACKAGE_NUMBER',
'link' => false,
'default' => true,
'bold' => false,
),
'PACKAGE_SYMBOL' => array(
'width' => '40%',
'label' => 'LBL_PACKAGE_SYMBOL',
'link' => false,
'default' => true,
'bold' => false,
),
'PACKAGE_NAME' => array(
'width' => '40%',
'label' => 'LBL_PACKAGE_NAME',
'link' => true,
'default' => true,
'bold' => false,
),
'DATE_DOCUMENT' => array(
'width' => '40%',
'label' => 'LBL_DATE_DOCUMENT',
'link' => false,
'default' => true,
'bold' => false,
),
// 'PACKAGE_AMOUNT' => array(
// 'width' => '40%',
// 'label' => 'LBL_PACKAGE_AMOUNT',
// 'link' => false,
// 'default' => true,
// 'bold' => false,
// ),
'PACKAGE_AMOUNT_COLORED' => array(
'width' => '40%',
'label' => 'LBL_PACKAGE_AMOUNT_COLORED',
'link' => false,
'default' => true,
'bold' => false,
),
'PACKAGE_ACC_WN' => array(
'width' => '40%',
'label' => 'LBL_PACKAGE_ACC_WN',
'link' => false,
'default' => true,
'bold' => false,
),
'PACKAGE_ACC_MA' => array(
'width' => '40%',
'label' => 'LBL_PACKAGE_ACC_MA',
'link' => false,
'default' => true,
'bold' => false,
),
// 'PACKAGE_POSITION' => array(
// 'width' => '40%',
// 'label' => 'LBL_PACKAGE_POSITION',
// 'link' => false,
// 'default' => true,
// 'bold' => false,
// ),
'PACKAGE_IDENTIFIER' => array(
'width' => '40%',
'label' => 'LBL_PACKAGE_IDENTIFIER',
'link' => false,
'default' => true,
'bold' => false,
),
'DESCRIPTION' => array(
'width' => '40%',
'label' => 'LBL_DESCRIPTION',
'link' => false,
'default' => true,
'bold' => false,
),
// 'PACKAGE_DATE' => array(
// 'width' => '40%',
// 'label' => 'LBL_PACKAGE_DATE',
// 'link' => false,
// 'default' => true,
// 'bold' => false,
// ),
);

View File

@@ -0,0 +1,106 @@
<?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".
********************************************************************************/
$viewdefs['EcmFkPackages']['QuickCreate'] = array(
'templateMeta' => array('form' => array('enctype'=>'multipart/form-data',
'hidden'=>array('<input type="hidden" name="old_id" value="{$fields.ecmfkpackage_revision_id.value}">',
'<input type="hidden" name="parent_id" value="{$smarty.request.parent_id}">',
'<input type="hidden" name="parent_type" value="{$smarty.request.parent_type}">',)),
'maxColumns' => '2',
'widths' => array(
array('label' => '10', 'field' => '30'),
array('label' => '10', 'field' => '30')
),
'includes' =>
array (
array('file' => 'include/javascript/popup_parent_helper.js'),
array('file' => 'include/jsolait/init.js'),
array('file' => 'include/jsolait/lib/urllib.js'),
array('file' => 'include/javascript/jsclass_base.js'),
array('file' => 'include/javascript/jsclass_async.js'),
array('file' => 'modules/EcmFkPackages/ecmfkpackages.js'),
),
),
'panels' =>array (
'default' =>
array (
array (
array('name'=>'uploadfile',
'customCode' => '<input type="hidden" name="escaped_ecmfkpackage_name"><input name="uploadfile" type="file" size="30" maxlength="" onchange="setvalue(this);" value="{$fields.filename.value}">{$fields.filename.value}',
'displayParams'=>array('required'=>true),
),
'status_id',
),
array (
'ecmfkpackage_name',
array('name'=>'revision',
'customCode' => '<input name="revision" type="text" value="{$fields.revision.value}">'
),
),
array (
array (
'name' => 'template_type',
'label' => 'LBL_DET_TEMPLATE_TYPE',
),
array (
'name' => 'is_template',
'label' => 'LBL_DET_IS_TEMPLATE',
),
),
array (
array('name'=>'active_date','displayParams'=>array('required'=>true)),
'category_id',
),
array (
'exp_date',
'subcategory_id',
),
array (
array('name'=>'description', 'displayParams'=>array('rows'=>10, 'cols'=>120)),
),
),
)
);
?>

View File

@@ -0,0 +1,89 @@
<?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".
* ****************************************************************************** */
$searchdefs['EcmFkPackages'] = array(
'templateMeta' => array(
'maxColumns' => '2',
'widths' => array(
'label' => '10',
'field' => '30',
),
),
'layout' => array(
'basic_search' => array(
// 'id',
'date_entered',
'date_modified',
'date_package',
'date_document',
// 'modified_user_id',
// 'created_by',
// 'description',
'deleted',
// 'package_date',
// 'package_name',
// 'package_number',
// 'package_amount',
// 'package_acc_ma',
// 'package_acc_wn',
// 'package_position',
// 'package_symbol',
// 'package_identifier',
),
'advanced_search' => array(
// 'id',
'date_entered',
'date_modified',
'date_package',
'date_document',
// 'modified_user_id',
// 'created_by',
// 'description',
'deleted',
// 'package_date',
'package_name',
'package_number',
// 'package_amount',
// 'package_acc_ma',
// 'package_acc_wn',
// 'package_position',
'package_symbol',
'package_identifier',
),
),
);

View File

@@ -0,0 +1,66 @@
<?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".
* ****************************************************************************** */
$GLOBALS['studioDefs']['EcmFkPackages'] = array(
'LBL_DETAILVIEW' => array(
'template' => 'xtpl',
'template_file' => 'modules/EcmFkPackages/DetailView.html',
'php_file' => 'modules/EcmFkPackages/DetailView.php',
'type' => 'DetailView',
),
'LBL_EDITVIEW' => array(
'template' => 'xtpl',
'template_file' => 'modules/EcmFkPackages/EditView.html',
'php_file' => 'modules/EcmFkPackages/EditView.php',
'type' => 'EditView',
),
'LBL_LISTVIEW' => array(
'template' => 'listview',
'meta_file' => 'modules/EcmFkPackages/listviewdefs.php',
'type' => 'ListView',
),
'LBL_SEARCHFORM' => array(
'template' => 'xtpl',
'template_file' => 'modules/EcmFkPackages/SearchForm.html',
'php_file' => 'modules/EcmFkPackages/ListView.php',
'type' => 'SearchForm',
),
);

View File

@@ -0,0 +1,55 @@
<?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".
********************************************************************************/
$layout_defs['EcmFkPackages'] = array(
// list of what Subpanels to show in the DetailView
'subpanel_setup' => array(
'therevisions' => array(
'order' => 10,
'sort_order' => 'desc',
'sort_by' => 'revision',
'module' => 'EcmFkPackageRevisions',
'subpanel_name' => 'default',
'title_key' => 'LBL_DOC_REV_HEADER',
'get_subpanel_data' => 'revisions',
'fill_in_additional_fields'=>true,
),
),
);
?>

View File

@@ -0,0 +1,90 @@
<?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' => 'EcmFkPackages','field_to_name_array'=>array('ecmfkpackage_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
),
'where' => '',
'list_fields'=> array(
'ecmfkpackage_name'=> array(
'name' => 'ecmfkpackage_name',
'vname' => 'LBL_LIST_DOCUMENT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '30%',
),
'is_template'=>array(
'name' => 'is_template',
'vname' => 'LBL_LIST_IS_TEMPLATE',
'width' => '5%',
'widget_type'=>'checkbox',
),
'template_type'=>array(
'name' => 'template_types',
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
'width' => '15%',
),
'latest_revision'=>array(
'name' => 'latest_revision',
'vname' => 'LBL_LATEST_REVISION',
'width' => '10%',
'sortable' => false
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmFkPackages',
'width' => '5%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'EcmFkPackages',
'width' => '5%',
),
'ecmfkpackage_revision_id'=>array(
'usage'=>'query_only'
),
),
);
?>

View File

@@ -0,0 +1,110 @@
<?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' => 'EcmFkPackages','field_to_name_array'=>array('ecmfkpackage_revision_id'=>'REL_ATTRIBUTE_document_revision_id')),
),
'where' => '',
'list_fields'=> array(
'object_image'=>array(
'vname' => 'LBL_OBJECT_IMAGE',
'widget_class' => 'SubPanelIcon',
'width' => '2%',
'image2'=>'attachment',
'image2_url_field'=>array('id_field'=>'selected_revision_id','filename_field'=>'selected_revision_filename'),
'attachment_image_only'=>true,
),
'ecmfkpackage_name'=> array(
'name' => 'ecmfkpackage_name',
'vname' => 'LBL_LIST_DOCUMENT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
'width' => '30%',
),
'is_template'=>array(
'name' => 'is_template',
'vname' => 'LBL_LIST_IS_TEMPLATE',
'width' => '5%',
'widget_type'=>'checkbox',
),
'template_type'=>array(
'name' => 'template_types',
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
'width' => '15%',
),
'selected_revision_name'=>array(
'name' => 'selected_revision_name',
'vname' => 'LBL_LIST_SELECTED_REVISION',
'width' => '10%',
),
'latest_revision_name'=>array(
'name' => 'latest_revision_name',
'vname' => 'LBL_LIST_LATEST_REVISION',
'width' => '10%',
),
'get_latest'=>array(
'widget_class' => 'SubPanelGetLatestButton',
'module' => 'EcmFkPackages',
'width' => '5%',
),
'load_signed'=>array(
'widget_class' => 'SubPanelLoadSignedButton',
'module' => 'EcmFkPackages',
'width' => '5%',
),
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'EcmFkPackages',
'width' => '5%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'EcmFkPackages',
'width' => '5%',
),
),
);
?>