Add php files
This commit is contained in:
52
modules/EcmActions/Dashlets/EcmActionsDashlet/EcmActionsDashlet.meta.php
Executable file
52
modules/EcmActions/Dashlets/EcmActionsDashlet/EcmActionsDashlet.meta.php
Executable file
@@ -0,0 +1,52 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
|
||||
/*********************************************************************************
|
||||
|
||||
* 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['EcmActionsDashlet'] = array('module' => 'EcmActions',
|
||||
'title' => translate('LBL_HOMEPAGE_TITLE', 'EcmActions'),
|
||||
'description' => 'A customizable view into EcmActions',
|
||||
'icon' => 'icon_EcmActions_32.gif',
|
||||
'category' => 'Module Views');
|
||||
63
modules/EcmActions/Dashlets/EcmActionsDashlet/EcmActionsDashlet.php
Executable file
63
modules/EcmActions/Dashlets/EcmActionsDashlet/EcmActionsDashlet.php
Executable file
@@ -0,0 +1,63 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
|
||||
/*********************************************************************************
|
||||
|
||||
* 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/EcmActions/EcmAction.php');
|
||||
|
||||
class EcmActionsDashlet extends DashletGeneric {
|
||||
function EcmActionsDashlet($id, $def = null) {
|
||||
global $current_user, $app_strings;
|
||||
require('modules/EcmActions/metadata/dashletviewdefs.php');
|
||||
|
||||
parent::DashletGeneric($id, $def);
|
||||
|
||||
if(empty($def['title'])) $this->title = translate('LBL_HOMEPAGE_TITLE', 'EcmActions');
|
||||
|
||||
$this->searchFields = $dashletData['EcmActionsDashlet']['searchFields'];
|
||||
$this->columns = $dashletData['EcmActionsDashlet']['columns'];
|
||||
|
||||
$this->seedBean = new EcmAction();
|
||||
}
|
||||
}
|
||||
104
modules/EcmActions/EcmAction.php
Executable file
104
modules/EcmActions/EcmAction.php
Executable file
@@ -0,0 +1,104 @@
|
||||
<?PHP
|
||||
|
||||
/**
|
||||
* *******************************************************************************
|
||||
* 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".
|
||||
* ******************************************************************************
|
||||
*/
|
||||
|
||||
/**
|
||||
* THIS CLASS IS GENERATED BY MODULE BUILDER
|
||||
* PLEASE DO NOT CHANGE THIS CLASS
|
||||
* PLACE ANY CUSTOMIZATIONS IN EcmAction
|
||||
*/
|
||||
class EcmAction extends Basic {
|
||||
var $new_schema = true;
|
||||
var $module_dir = 'EcmActions';
|
||||
var $object_name = 'EcmAction';
|
||||
var $table_name = 'ecmactions';
|
||||
var $importable = false;
|
||||
var $disable_row_level_security = true; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO
|
||||
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 $indeks;
|
||||
var $time;
|
||||
var $ecmactions_unit_dom;
|
||||
var $category;
|
||||
var $cost_action;
|
||||
var $cost_hour;
|
||||
var $cost_other;
|
||||
|
||||
function EcmAction() {
|
||||
parent::Basic ();
|
||||
}
|
||||
|
||||
function bean_implements($interface) {
|
||||
switch ($interface) {
|
||||
case 'ACL' :
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function get_list_view_data() {
|
||||
$return = parent::get_list_view_data();
|
||||
$minutes = floor($return['TIME'] / 60);
|
||||
$hours = floor($minutes / 60);
|
||||
$seconds = $return['TIME'] - ($minutes * 60);
|
||||
$minutes = $minutes - ($hours * 60);
|
||||
$minutes .= "";
|
||||
$seconds .= "";
|
||||
while(strlen($minutes) <2)
|
||||
$minutes = '0' . $minutes;
|
||||
while(strlen($seconds) <2)
|
||||
$seconds = '0' . $seconds;
|
||||
$return['TIME'] = "" . $hours . "." . $minutes . ":" . $seconds;
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
41
modules/EcmActions/Menu.php
Executable file
41
modules/EcmActions/Menu.php
Executable 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('EcmActions', 'edit', true))$module_menu[]=Array("index.php?module=EcmActions&action=EditView&return_module=EcmActions&return_action=DetailView", $mod_strings['LNK_NEW_RECORD'],"CreateEcmAction", 'EcmAction');
|
||||
if(ACLController::checkAccess('EcmActions', 'list', true))$module_menu[]=Array("index.php?module=EcmActions&action=index&return_module=EcmActions&return_action=DetailView", $mod_strings['LNK_LIST'],"EcmAction", 'EcmAction');
|
||||
69
modules/EcmActions/indeksIncrement.php
Executable file
69
modules/EcmActions/indeksIncrement.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
if (! defined ( 'sugarEntry' ) || ! sugarEntry)
|
||||
die ( '-1' );
|
||||
if (! $_POST ['job'] || $_POST ['job'] == '')
|
||||
die ( '-1' );
|
||||
switch ($_POST ['job']) {
|
||||
case 'getIndeks' :
|
||||
getIndeks ( $_POST ['category'] );
|
||||
break;
|
||||
case 'checkIndeks' :
|
||||
checkIndeks ( $_POST ['indeks'], $_POST['category'] );
|
||||
break;
|
||||
}
|
||||
|
||||
function getIndeks($category) {
|
||||
$db = $GLOBALS ['db'];
|
||||
$condition = true;
|
||||
|
||||
$query = "SELECT count(id) as c FROM ecmactions WHERE category = '" . $category . "'";
|
||||
$r = $db->fetchByAssoc ( $db->query ( $query ) );
|
||||
|
||||
if (! $r || ! $r ['c'] || $r ['c'] == '')
|
||||
$count = 0;
|
||||
else
|
||||
$count = intval ( $r ['c'] );
|
||||
|
||||
do {
|
||||
$count ++;
|
||||
|
||||
$tmp = strval ( $count );
|
||||
while ( strlen ( $tmp ) < 5 )
|
||||
$tmp = '0' . $tmp;
|
||||
|
||||
$query2 = "SELECT SUM((SUBSTRING(indeks, 6,5)='" . $tmp . "'))as s FROM ecmactions WHERE category = '" . $category . "'";
|
||||
$rs = $db->fetchByAssoc ( $db->query ( $query2 ) );
|
||||
if (! $rs || ! $rs ['s'] || $rs ['s'] == '')
|
||||
$sum = 0;
|
||||
else
|
||||
$sum = intval ( $rs ['s'] );
|
||||
|
||||
if ($sum == 0) {
|
||||
$condition = true;
|
||||
} else {
|
||||
$condition = false;
|
||||
}
|
||||
} while ( ! $condition );
|
||||
$json = json_encode ( $tmp );
|
||||
print $json;
|
||||
}
|
||||
|
||||
function checkIndeks($indeks, $category) {
|
||||
$db = $GLOBALS ['db'];
|
||||
$query = "SELECT count(id) as c FROM ecmactions WHERE category = '" . $category . "' AND indeks='" . $indeks."'";
|
||||
$r = $db->fetchByAssoc ( $db->query ( $query ) );
|
||||
|
||||
if (! $r || ! $r ['c'] || $r ['c'] == '')
|
||||
$count = 0;
|
||||
else
|
||||
$count = intval ( $r ['c'] );
|
||||
|
||||
if($count > 0 ){
|
||||
$json = json_encode (true);
|
||||
}else{
|
||||
$json = json_encode (false);
|
||||
}
|
||||
//$json = json_encode ($count);
|
||||
print $json;
|
||||
}
|
||||
?>
|
||||
75
modules/EcmActions/language/en_us.lang.php
Executable file
75
modules/EcmActions/language/en_us.lang.php
Executable file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
|
||||
$mod_strings = array (
|
||||
'LBL_ASSIGNED_TO_ID' => 'Assigned User Id',
|
||||
'LBL_ASSIGNED_TO_NAME' => 'Assigned to',
|
||||
'LBL_ID' => 'ID',
|
||||
'LBL_DATE_ENTERED' => 'Date Created',
|
||||
'LBL_DATE_MODIFIED' => 'Date Modified',
|
||||
'LBL_MODIFIED' => 'Modified By',
|
||||
'LBL_MODIFIED_ID' => 'Modified By Id',
|
||||
'LBL_MODIFIED_NAME' => 'Modified By Name',
|
||||
'LBL_CREATED' => 'Created By',
|
||||
'LBL_CREATED_ID' => 'Created By Id',
|
||||
'LBL_DESCRIPTION' => 'Description',
|
||||
'LBL_DELETED' => 'Deleted',
|
||||
'LBL_NAME' => 'Nazwa',
|
||||
'LBL_CREATED_USER' => 'Created by User',
|
||||
'LBL_MODIFIED_USER' => 'Modified by User',
|
||||
'LBL_LIST_NAME' => 'Name',
|
||||
'LBL_EDIT_BUTTON' => 'Edit',
|
||||
'LBL_REMOVE' => 'Remove',
|
||||
'LBL_LIST_FORM_TITLE' => 'EcmActions List',
|
||||
'LBL_MODULE_NAME' => 'EcmActions',
|
||||
'LBL_MODULE_TITLE' => 'EcmActions',
|
||||
'LBL_HOMEPAGE_TITLE' => 'My EcmActions',
|
||||
'LNK_NEW_RECORD' => 'Create EcmActions',
|
||||
'LNK_LIST' => 'View EcmActions',
|
||||
'LNK_IMPORT_TMP_ACTIONS' => 'Import EcmActions',
|
||||
'LBL_SEARCH_FORM_TITLE' => 'Search EcmActions',
|
||||
'LBL_HISTORY_SUBPANEL_TITLE' => 'View History',
|
||||
'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities',
|
||||
'LBL_TMP_ACTIONS_SUBPANEL_TITLE' => 'EcmActions',
|
||||
'LBL_NEW_FORM_TITLE' => 'New EcmActions',
|
||||
'LBL_INDEKS' => 'Indeks',
|
||||
'LBL_TIME' => 'Norma',
|
||||
'LBL_UNIT_MEASURE' => 'Jednostka miary',
|
||||
'LBL_COST_ACTION' => 'Cena1',
|
||||
'LBL_COST_HOUR' => 'Cena 2',
|
||||
'LBL_COST_OTHER' => 'Cena3',
|
||||
'LBL_EDITVIEW_PANEL1' => 'Inne',
|
||||
);
|
||||
75
modules/EcmActions/language/pl_pl.lang.php
Executable file
75
modules/EcmActions/language/pl_pl.lang.php
Executable file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
$mod_strings = array (
|
||||
'LBL_ASSIGNED_TO_ID' => 'Przypisano do Id',
|
||||
'LBL_ASSIGNED_TO_NAME' => 'Przypisano do',
|
||||
'LBL_ID' => 'ID',
|
||||
'LBL_DATE_ENTERED' => 'Data utworzenia',
|
||||
'LBL_DATE_MODIFIED' => 'Data modyfikacji',
|
||||
'LBL_MODIFIED' => 'Modyfikowano przez',
|
||||
'LBL_MODIFIED_ID' => 'Modyfikowano przez Id',
|
||||
'LBL_MODIFIED_NAME' => 'Modyfikowano przez',
|
||||
'LBL_CREATED' => 'Utworzone przez',
|
||||
'LBL_CREATED_ID' => 'Utworzone przez Id',
|
||||
'LBL_DESCRIPTION' => 'Opis',
|
||||
'LBL_DELETED' => 'Usunięte',
|
||||
'LBL_NAME' => 'Nazwa',
|
||||
'LBL_CREATED_USER' => 'Utworzone przez',
|
||||
'LBL_MODIFIED_USER' => 'Modyfikowane przez',
|
||||
'LBL_LIST_NAME' => 'Nazwa',
|
||||
'LBL_EDIT_BUTTON' => 'Edytuj',
|
||||
'LBL_REMOVE' => 'Usuń',
|
||||
'LBL_LIST_FORM_TITLE' => 'Lista Czynności ',
|
||||
'LBL_MODULE_NAME' => 'Czynności',
|
||||
'LBL_MODULE_TITLE' => 'Czynności',
|
||||
'LBL_HOMEPAGE_TITLE' => 'Moje Czynności',
|
||||
'LNK_NEW_RECORD' => 'Utwórz czynność',
|
||||
'LNK_LIST' => 'Lista czynności',
|
||||
'LNK_IMPORT_TMP_ACTIONS' => 'Importuj czynności',
|
||||
'LBL_SEARCH_FORM_TITLE' => 'Szukaj czynności',
|
||||
'LBL_HISTORY_SUBPANEL_TITLE' => 'Zobacz historie',
|
||||
'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities',
|
||||
'LBL_TMP_ACTIONS_SUBPANEL_TITLE' => 'Czynności',
|
||||
'LBL_NEW_FORM_TITLE' => 'Nowe czynności',
|
||||
'LBL_INDEKS' => 'Indeks',
|
||||
'LBL_TIME' => 'Czas czynności',
|
||||
'LBL_UNIT_MEASURE' => 'Jednostka miary',
|
||||
'LBL_COST_ACTION' => 'Koszt czynności',
|
||||
'LBL_COST_HOUR' => 'Koszt za godzinę',
|
||||
'LBL_COST_OTHER' => 'Koszt inny',
|
||||
'LBL_EDITVIEW_PANEL1' => 'Inne',
|
||||
'LBL_CATEGORY' => 'Kategoria'
|
||||
);
|
||||
54
modules/EcmActions/metadata/SearchFields.php
Executable file
54
modules/EcmActions/metadata/SearchFields.php
Executable file
@@ -0,0 +1,54 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
|
||||
$module_name = 'EcmActions';
|
||||
$searchFields[$module_name] =
|
||||
array (
|
||||
'name' => array( 'query_type'=>'default'),
|
||||
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
|
||||
'assigned_user_id'=> array('query_type'=>'default'),
|
||||
|
||||
//Range Search Support
|
||||
'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
|
||||
//Range Search Support
|
||||
);
|
||||
?>
|
||||
115
modules/EcmActions/metadata/detailviewdefs.php
Executable file
115
modules/EcmActions/metadata/detailviewdefs.php
Executable file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
$module_name = 'EcmActions';
|
||||
$viewdefs [$module_name] = array (
|
||||
'DetailView' => array (
|
||||
'templateMeta' => array (
|
||||
'form' => array (
|
||||
'buttons' => array (
|
||||
0 => 'EDIT',
|
||||
//1 => 'DUPLICATE',
|
||||
1 => 'DELETE',
|
||||
// 3 => 'FIND_DUPLICATES'
|
||||
)
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array (
|
||||
0 => array (
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
),
|
||||
1 => array (
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
),
|
||||
'useTabs' => false,
|
||||
'tabDefs' => array (
|
||||
'DEFAULT' => array (
|
||||
'newTab' => false,
|
||||
'panelDefault' => 'expanded'
|
||||
),
|
||||
'LBL_EDITVIEW_PANEL1' => array (
|
||||
'newTab' => false,
|
||||
'panelDefault' => 'expanded'
|
||||
)
|
||||
),
|
||||
'includes' => array (
|
||||
0 => array (
|
||||
'file' => 'modules/EcmActions/js/DetailViewDocumentReady.js'
|
||||
)
|
||||
)
|
||||
),
|
||||
'panels' => array (
|
||||
'default' => array (
|
||||
0 => array (
|
||||
0 => array (
|
||||
'name' => 'name',
|
||||
'label' => 'LBL_NAME',
|
||||
'displayParams' => array (
|
||||
'size' => 40
|
||||
)
|
||||
),
|
||||
1 => array (
|
||||
'name' => 'indeks',
|
||||
'label' => 'LBL_INDEKS'
|
||||
)
|
||||
),
|
||||
1 => array (
|
||||
0 => array (
|
||||
'name' => 'category',
|
||||
'label' => 'LBL_CATEGORY'
|
||||
)
|
||||
),
|
||||
2 => array (
|
||||
0 => array (
|
||||
'name' => 'time',
|
||||
'customCode' => '<span id="mojtime">{$fields.time.value}</span>',
|
||||
'label' => 'LBL_TIME'
|
||||
)
|
||||
),
|
||||
3 => array (
|
||||
0 => array (
|
||||
'name' => 'cost_action',
|
||||
'label' => 'LBL_COST_ACTION'
|
||||
)
|
||||
),
|
||||
4 => array (
|
||||
0 => array (
|
||||
'name' => 'cost_hour',
|
||||
'label' => 'LBL_COST_HOUR'
|
||||
)
|
||||
),
|
||||
5 => array (
|
||||
0 => array (
|
||||
'name' => 'cost_other',
|
||||
'label' => 'LBL_COST_OTHER'
|
||||
)
|
||||
),
|
||||
6 => array (
|
||||
0 => 'description'
|
||||
)
|
||||
),
|
||||
/*'lbl_editview_panel1' => array (
|
||||
0 => array (
|
||||
0 => 'assigned_user_name',
|
||||
1 => array (
|
||||
'name' => 'created_by_name',
|
||||
'label' => 'LBL_CREATED'
|
||||
)
|
||||
),
|
||||
1 => array (
|
||||
0 => 'date_entered',
|
||||
1 => 'date_modified'
|
||||
),
|
||||
2 => array (
|
||||
0 => array (
|
||||
'name' => 'modified_by_name',
|
||||
'label' => 'LBL_MODIFIED_NAME'
|
||||
),
|
||||
1 => ''
|
||||
)
|
||||
) */
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
102
modules/EcmActions/metadata/editviewdefs.php
Executable file
102
modules/EcmActions/metadata/editviewdefs.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
$module_name = 'EcmActions';
|
||||
$viewdefs [$module_name] = array (
|
||||
'EditView' => array (
|
||||
'templateMeta' => array (
|
||||
'maxColumns' => '2',
|
||||
'widths' => array (
|
||||
0 => array (
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
),
|
||||
1 => array (
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
),
|
||||
'useTabs' => false,
|
||||
'tabDefs' => array (
|
||||
'DEFAULT' => array (
|
||||
'newTab' => false,
|
||||
'panelDefault' => 'expanded'
|
||||
),
|
||||
'LBL_EDITVIEW_PANEL1' => array (
|
||||
'newTab' => false,
|
||||
'panelDefault' => 'expanded'
|
||||
)
|
||||
),
|
||||
'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/EcmActions/js/EditViewDocumentReady.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>',
|
||||
'includes' => array (
|
||||
0 => array (
|
||||
'file' => 'include/JSON.js'
|
||||
)
|
||||
)
|
||||
),
|
||||
'panels' => array (
|
||||
'default' => array (
|
||||
0 => array (
|
||||
0 => array (
|
||||
'name' => 'name',
|
||||
'label' => 'LBL_NAME',
|
||||
'tabIndex' => '100',
|
||||
'displayParams' => array (
|
||||
'size' => 40
|
||||
)
|
||||
),
|
||||
1 => array (
|
||||
'name' => 'indeks',
|
||||
'label' => 'LBL_INDEKS',
|
||||
'tabindex' => '120',
|
||||
)
|
||||
),
|
||||
1 => array (
|
||||
0 => array (
|
||||
'name' => 'category',
|
||||
'label' => 'LBL_CATEGORY',
|
||||
'tabIndex' => '101',
|
||||
)
|
||||
),
|
||||
2 => array (
|
||||
0 => array (
|
||||
'name' => 'time',
|
||||
'customCode' => "{include file='modules/EcmActions/tpl/EditViewTime.tpl'}",
|
||||
'label' => 'LBL_TIME',
|
||||
'tabIndex' => '105',
|
||||
)
|
||||
),
|
||||
3 => array (
|
||||
0 => array (
|
||||
'name' => 'cost_action',
|
||||
'label' => 'LBL_COST_ACTION',
|
||||
'tabIndex' => '106',
|
||||
)
|
||||
),
|
||||
4 => array (
|
||||
0 => array (
|
||||
'name' => 'cost_hour',
|
||||
'label' => 'LBL_COST_HOUR',
|
||||
'tabIndex' => '107',
|
||||
)
|
||||
),
|
||||
5 => array (
|
||||
0 => array (
|
||||
'name' => 'cost_other',
|
||||
'label' => 'LBL_COST_OTHER',
|
||||
'tabIndex' => '108',
|
||||
)
|
||||
),
|
||||
6 => array (
|
||||
0 => 'description'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
56
modules/EcmActions/metadata/listviewdefs.php
Executable file
56
modules/EcmActions/metadata/listviewdefs.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
echo '<script type="text/javascript" src="modules/EcmActions/ListViewDocumentReady.js"></script>';
|
||||
$module_name = 'EcmActions';
|
||||
$listViewDefs [$module_name] = array (
|
||||
'INDEKS' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_INDEKS',
|
||||
'link' => 'true',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'align' => 'left',
|
||||
),
|
||||
'NAME' => array (
|
||||
'width' => '35%',
|
||||
'label' => 'LBL_NAME',
|
||||
'default' => true,
|
||||
'link' => true,
|
||||
'align' => 'left',
|
||||
),
|
||||
'CATEGORY' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_CATEGORY',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'align' => 'left',
|
||||
),
|
||||
'TIME' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_TIME',
|
||||
'width' => '15%',
|
||||
'default' => true,
|
||||
'align' => 'right',
|
||||
),
|
||||
'COST_ACTION' => array (
|
||||
'type' => 'float',
|
||||
'label' => 'LBL_COST_ACTION',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'align' => 'right',
|
||||
),
|
||||
'COST_HOUR' => array (
|
||||
'type' => 'float',
|
||||
'label' => 'LBL_COST_HOUR',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'align' => 'right',
|
||||
),
|
||||
'COST_OTHER' => array (
|
||||
'type' => 'float',
|
||||
'label' => 'LBL_COST_OTHER',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'align' => 'right',
|
||||
)
|
||||
);
|
||||
?>
|
||||
60
modules/EcmActions/metadata/quickcreatedefs.php
Executable file
60
modules/EcmActions/metadata/quickcreatedefs.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
|
||||
$module_name = 'EcmActions';
|
||||
$viewdefs[$module_name]['QuickCreate'] = array(
|
||||
'templateMeta' => array('maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30')
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
'panels' =>array (
|
||||
'default' =>
|
||||
array (
|
||||
|
||||
array (
|
||||
'name',
|
||||
'assigned_user_name',
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
|
||||
);
|
||||
?>
|
||||
67
modules/EcmActions/metadata/searchdefs.php
Executable file
67
modules/EcmActions/metadata/searchdefs.php
Executable file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
$searchdefs ['EcmActions'] = array (
|
||||
'layout' => array (
|
||||
'basic_search' => array (
|
||||
'name' => array (
|
||||
'name' => 'name',
|
||||
'default' => true,
|
||||
'width' => '10%'
|
||||
),
|
||||
'indeks' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_INDEKS',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'name' => 'indeks'
|
||||
),
|
||||
'category' => array(
|
||||
'type' => 'enum',
|
||||
'label' => 'LBL_CATEGORY',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'name' => 'category'
|
||||
),
|
||||
),
|
||||
'advanced_search' => array (
|
||||
'name' => array (
|
||||
'name' => 'name',
|
||||
'default' => true,
|
||||
'width' => '10%'
|
||||
),
|
||||
'indeks' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'LBL_INDEKS',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'name' => 'indeks'
|
||||
),
|
||||
'category' => array(
|
||||
'type' => 'enum',
|
||||
'label' => 'LBL_CATEGORY',
|
||||
'width' => '10%',
|
||||
'default' => true,
|
||||
'name' => 'category'
|
||||
),
|
||||
'assigned_user_id' => array (
|
||||
'name' => 'assigned_user_id',
|
||||
'label' => 'LBL_ASSIGNED_TO',
|
||||
'type' => 'enum',
|
||||
'function' => array (
|
||||
'name' => 'get_user_array',
|
||||
'params' => array (
|
||||
0 => false
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'templateMeta' => array (
|
||||
'maxColumns' => '3',
|
||||
'maxColumnsBasic' => '4',
|
||||
'widths' => array (
|
||||
'label' => '10',
|
||||
'field' => '30'
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
41
modules/EcmActions/metadata/studio.php
Executable file
41
modules/EcmActions/metadata/studio.php
Executable file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
|
||||
/**
|
||||
* This file adds support for studio
|
||||
*/
|
||||
|
||||
?>
|
||||
73
modules/EcmActions/metadata/subpanels/default.php
Executable file
73
modules/EcmActions/metadata/subpanels/default.php
Executable file
@@ -0,0 +1,73 @@
|
||||
<?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".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
$module_name='EcmActions';
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name),
|
||||
),
|
||||
|
||||
'where' => '',
|
||||
|
||||
'list_fields' => array(
|
||||
'name'=>array(
|
||||
'vname' => 'LBL_NAME',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'width' => '45%',
|
||||
),
|
||||
'date_modified'=>array(
|
||||
'vname' => 'LBL_DATE_MODIFIED',
|
||||
'width' => '45%',
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'vname' => 'LBL_EDIT_BUTTON',
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => $module_name,
|
||||
'width' => '4%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'vname' => 'LBL_REMOVE',
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => $module_name,
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
165
modules/EcmActions/vardefs.php
Executable file
165
modules/EcmActions/vardefs.php
Executable file
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* 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".
|
||||
********************************************************************************/
|
||||
$dictionary ['EcmAction'] = array (
|
||||
'table' => 'ecmactions',
|
||||
'audited' => true,
|
||||
'duplicate_merge' => true,
|
||||
'fields' => array (
|
||||
'indeks' => array (
|
||||
'required' => true,
|
||||
'name' => 'indeks',
|
||||
'vname' => 'LBL_INDEKS',
|
||||
'type' => 'varchar',
|
||||
'massupdate' => 0,
|
||||
'no_default' => false,
|
||||
'comments' => '',
|
||||
'help' => '',
|
||||
'importable' => 'true',
|
||||
'duplicate_merge' => 'disabled',
|
||||
'duplicate_merge_dom_value' => '0',
|
||||
'audited' => true,
|
||||
'reportable' => true,
|
||||
'unified_search' => false,
|
||||
'merge_filter' => 'disabled',
|
||||
'len' => '255',
|
||||
'size' => '20'
|
||||
),
|
||||
'time' => array (
|
||||
'required' => false,
|
||||
'name' => 'time',
|
||||
'vname' => 'LBL_TIME',
|
||||
'type' => 'Int',
|
||||
'massupdate' => 0,
|
||||
'no_default' => false,
|
||||
'comments' => '',
|
||||
'help' => '',
|
||||
'importable' => 'true',
|
||||
'duplicate_merge' => 'disabled',
|
||||
'duplicate_merge_dom_value' => '0',
|
||||
'audited' => true,
|
||||
'reportable' => true,
|
||||
'unified_search' => false,
|
||||
'merge_filter' => 'disabled',
|
||||
'len' => '18',
|
||||
'size' => '20',
|
||||
'enable_range_search' => false,
|
||||
'precision' => '2'
|
||||
),
|
||||
'category' => array (
|
||||
'required' => true,
|
||||
'name' => 'category',
|
||||
'vname' => 'LBL_CATEGORY',
|
||||
'options' => 'ecmactions_category_dom',
|
||||
'type' => 'enum',
|
||||
'len' => '255',
|
||||
'massupdate' => false,
|
||||
'audited' => true
|
||||
),
|
||||
'cost_action' => array (
|
||||
'required' => false,
|
||||
'name' => 'cost_action',
|
||||
'vname' => 'LBL_COST_ACTION',
|
||||
'type' => 'float',
|
||||
'massupdate' => 0,
|
||||
'no_default' => false,
|
||||
'comments' => '',
|
||||
'help' => '',
|
||||
'importable' => 'true',
|
||||
'duplicate_merge' => 'disabled',
|
||||
'duplicate_merge_dom_value' => '0',
|
||||
'audited' => true,
|
||||
'reportable' => true,
|
||||
'unified_search' => false,
|
||||
'merge_filter' => 'disabled',
|
||||
'len' => '18',
|
||||
'size' => '20',
|
||||
'enable_range_search' => false,
|
||||
'precision' => '2'
|
||||
),
|
||||
'cost_hour' => array (
|
||||
'required' => false,
|
||||
'name' => 'cost_hour',
|
||||
'vname' => 'LBL_COST_HOUR',
|
||||
'type' => 'float',
|
||||
'massupdate' => 0,
|
||||
'no_default' => false,
|
||||
'comments' => '',
|
||||
'help' => '',
|
||||
'importable' => 'true',
|
||||
'duplicate_merge' => 'disabled',
|
||||
'duplicate_merge_dom_value' => '0',
|
||||
'audited' => true,
|
||||
'reportable' => true,
|
||||
'unified_search' => false,
|
||||
'merge_filter' => 'disabled',
|
||||
'len' => '18',
|
||||
'size' => '20',
|
||||
'enable_range_search' => false,
|
||||
'precision' => '2'
|
||||
),
|
||||
'cost_other' => array (
|
||||
'required' => false,
|
||||
'name' => 'cost_other',
|
||||
'vname' => 'LBL_COST_OTHER',
|
||||
'type' => 'float',
|
||||
'massupdate' => 0,
|
||||
'no_default' => false,
|
||||
'comments' => '',
|
||||
'help' => '',
|
||||
'importable' => 'true',
|
||||
'duplicate_merge' => 'disabled',
|
||||
'duplicate_merge_dom_value' => '0',
|
||||
'audited' => true,
|
||||
'reportable' => true,
|
||||
'unified_search' => false,
|
||||
'merge_filter' => 'disabled',
|
||||
'len' => '18',
|
||||
'size' => '20',
|
||||
'enable_range_search' => false,
|
||||
'precision' => '2'
|
||||
)
|
||||
),
|
||||
'relationships' => array (),
|
||||
'optimistic_locking' => true,
|
||||
'unified_search' => true
|
||||
);
|
||||
if (! class_exists ( 'VardefManager' )) {
|
||||
require_once ('include/SugarObjects/VardefManager.php');
|
||||
}
|
||||
VardefManager::createVardef ( 'EcmActions', 'EcmAction', array (
|
||||
'basic',
|
||||
'assignable'
|
||||
) );
|
||||
Reference in New Issue
Block a user