init
This commit is contained in:
222
modules/EcmWorkCosts/EcmWorkCost.php
Normal file
222
modules/EcmWorkCosts/EcmWorkCost.php
Normal file
@@ -0,0 +1,222 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
/**
|
||||
* THIS CLASS IS FOR DEVELOPERS TO MAKE CUSTOMIZATIONS IN
|
||||
*/
|
||||
class EcmWorkCost extends SugarBean {
|
||||
|
||||
var $new_schema = true;
|
||||
var $module_dir = 'EcmWorkCosts';
|
||||
var $object_name = 'EcmWorkCost';
|
||||
var $table_name = 'ecmworkcosts';
|
||||
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 $salutation;
|
||||
var $department;
|
||||
var $first_name;
|
||||
var $last_name;
|
||||
var $phone_home;
|
||||
var $phone_mobile;
|
||||
var $phone_work;
|
||||
var $email1;
|
||||
var $email2;
|
||||
var $primary_address_street;
|
||||
var $primary_address_city;
|
||||
var $primary_address_state;
|
||||
var $primary_address_postalcode;
|
||||
var $primary_address_country;
|
||||
var $alt_address_street;
|
||||
var $alt_address_city;
|
||||
var $alt_address_state;
|
||||
var $alt_address_postalcode;
|
||||
var $alt_address_country;
|
||||
var $second_name;
|
||||
var $inland_revenue;
|
||||
var $health_insurance;
|
||||
var $pesel;
|
||||
var $birthday;
|
||||
var $birth_place;
|
||||
var $marital_status;
|
||||
var $family_name;
|
||||
var $gender;
|
||||
var $spouse_name;
|
||||
var $id_card_number;
|
||||
var $id_card_issued;
|
||||
var $id_card_date;
|
||||
var $citizenship;
|
||||
var $nationality;
|
||||
var $education;
|
||||
var $school_completed;
|
||||
var $account_ledger;
|
||||
var $position_office;
|
||||
var $cost;
|
||||
var $registration_number;
|
||||
var $form_employment;
|
||||
var $date_employment;
|
||||
var $date_internship;
|
||||
var $employment;
|
||||
var $zus_group;
|
||||
var $work_group;
|
||||
var $primary_address_community;
|
||||
var $primary_address_district;
|
||||
var $alt_address_community;
|
||||
var $alt_address_district;
|
||||
var $alt_mail;
|
||||
var $primary_mail;
|
||||
var $permanent_residence_card;
|
||||
var $mother_name;
|
||||
var $father_name;
|
||||
var $base_salary;
|
||||
var $category;
|
||||
var $temporary_residence_card;
|
||||
var $insurance_code;
|
||||
var $period_of_disability_from;
|
||||
var $period_of_disability_to;
|
||||
var $date_insurance;
|
||||
var $working_time;
|
||||
var $retirement;
|
||||
var $form_dismissal;
|
||||
var $sickness;
|
||||
var $disability;
|
||||
var $accidental;
|
||||
var $date_obligation;
|
||||
var $date_sickness;
|
||||
var $date_commencement;
|
||||
var $date_dismissal;
|
||||
var $date_graduation;
|
||||
var $phone_fax;
|
||||
var $date_retirement;
|
||||
var $employee_group;
|
||||
var $work_schedule;
|
||||
var $code_relationship;
|
||||
var $code_education;
|
||||
var $code_deregistration;
|
||||
var $code_profession;
|
||||
var $amount_contributions;
|
||||
var $name_bank;
|
||||
var $bank_account_number;
|
||||
var $bank_account;
|
||||
var $dismissal_reason;
|
||||
var $debtors_account;
|
||||
var $zus_date_disability;
|
||||
var $zus_annual_amount;
|
||||
var $zus_annual_base;
|
||||
var $person_id_series_number;
|
||||
var $person_relief;
|
||||
var $person_child_tax_credit;
|
||||
var $zus_common_household_employer;
|
||||
var $person_current_profession;
|
||||
var $person_learned_profession;
|
||||
var $zus_code_discrepancies;
|
||||
var $zus_date_discrepancies_from;
|
||||
var $zus_date_discrepancies_to;
|
||||
var $zus_code_mining_work;
|
||||
var $zus_date_mining_work_from;
|
||||
var $zus_date_mining_work_to;
|
||||
var $zus_code_charity_work;
|
||||
var $zus_date_charity_work_from;
|
||||
var $zus_date_charity_work_to;
|
||||
// var $worker_name;
|
||||
// var $worker_id;
|
||||
|
||||
function EcmWorkCost() {
|
||||
if (!self::checkAcces()) {ACLController::displayNoAccess(true); sugar_die();}
|
||||
parent::SugarBean();
|
||||
$worker_name = $this->first_name . " " . $this->last_name;
|
||||
}
|
||||
|
||||
function bean_implements($interface) {
|
||||
switch ($interface) {
|
||||
case 'ACL': return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function checkAcces() {
|
||||
global $current_user;
|
||||
if ($_REQUEST['action'] == 'Popup') return true;
|
||||
if ($current_user->is_admin ||
|
||||
$current_user->id=='49584975-a4a4-6c28-3b31-54bcb71a8f2b' ||
|
||||
$current_user->id=='e3a315cd-5752-4e83-aa73-5236e2a2d39c' ||
|
||||
$current_user->id=='54eb00ac-d71a-1749-1111-524ad6b2886a')
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
function get_list_view_data() {
|
||||
$array = parent::get_list_view_data();
|
||||
$this->retrieve($this->id);
|
||||
|
||||
$array['PRICE'] = $this->price;
|
||||
|
||||
return $array;
|
||||
}
|
||||
|
||||
function save($check_notify = FALSE) {
|
||||
$this->name = $this->first_name . " " . $this->last_name;
|
||||
$this->price=str_replace(",",".",str_replace(".","",$this->price));
|
||||
parent::save($check_notify);
|
||||
|
||||
}
|
||||
|
||||
function get_summary_text() {
|
||||
return $this->first_name . " " . $this->last_name;
|
||||
}
|
||||
|
||||
function fill_in_additional_detail_fields() {
|
||||
parent::fill_in_additional_detail_fields();
|
||||
// $worker_name = $this->first_name;
|
||||
// $worker_id = $this->id;
|
||||
}
|
||||
|
||||
}
|
||||
41
modules/EcmWorkCosts/Menu.php
Normal file
41
modules/EcmWorkCosts/Menu.php
Normal 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('EcmWorkCosts', 'edit', true))$module_menu[]=Array("index.php?module=EcmWorkCosts&action=EditView&return_module=EcmWorkCosts&return_action=DetailView", $mod_strings['LNK_NEW_RECORD'],"CreateEcmWorkCost", 'EcmWorkCost');
|
||||
if(ACLController::checkAccess('EcmWorkCosts', 'list', true))$module_menu[]=Array("index.php?module=EcmWorkCosts&action=index&return_module=EcmWorkCosts&return_action=DetailView", $mod_strings['LNK_LIST'],"EcmWorkCost", 'EcmWorkCost');
|
||||
60
modules/EcmWorkCosts/Print.php
Normal file
60
modules/EcmWorkCosts/Print.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
if (isset ( $_REQUEST ['submit'] )) {
|
||||
|
||||
$db = $GLOBALS ['db'];
|
||||
|
||||
$query = "select name,opis from ecmworkcosts where deleted= 0 and print = 1";
|
||||
|
||||
$res = $db->query ( $query );
|
||||
|
||||
$workers = [ ];
|
||||
|
||||
while ( $dane = $db->fetchByAssoc ( $res ) ) {
|
||||
$workers [] = $dane;
|
||||
}
|
||||
|
||||
$ss = new Sugar_Smarty ();
|
||||
$ss->assign ( "workers", $workers );
|
||||
$ss->assign ( "time", $_REQUEST['date_from'] );
|
||||
$date = new DateTime($_REQUEST['date_from']);
|
||||
$date->modify('+1 day');
|
||||
|
||||
$ss->assign ( "time2", $date->format("d.m.Y"));
|
||||
|
||||
$content = $ss->fetch ( "modules/EcmWorkCosts/tpl/WydrukKartyPracy.html" );
|
||||
|
||||
include_once ("include/MPDF57/mpdf.php");
|
||||
$p = new mPDF ( '', 'A4', null, 'helvetica', 10, 10, 0, 0, 5, 5 );
|
||||
$p->WriteHTML ( $content );
|
||||
|
||||
$p->Output ('karty_pracy.pdf', 'I');
|
||||
} else {
|
||||
?>
|
||||
<h2>Drukuj karty pracy</h2>
|
||||
Podaj datę:
|
||||
<form action="index.php">
|
||||
<input type="hidden" name="module" value="EcmWorkCosts" /> <input
|
||||
type="hidden" name="action" value="Print" />
|
||||
<input
|
||||
type="hidden" name="to_pdf" value="1" /> <input id="date_from"
|
||||
name="date_from" type="text" maxlength="10" size="11" tabindex=""
|
||||
title="Data od" value="<?php echo date("d.m.Y");?>" required
|
||||
autocomplete="off"> <img id="date_from_trigger" border="0"
|
||||
align="absmiddle" alt="Enter Date"
|
||||
src="themes/default/images/jscalendar.gif">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup({
|
||||
inputField: "date_from",
|
||||
daFormat: "%d.%m.%Y",
|
||||
button: "date_from_trigger",
|
||||
singleClick: true,
|
||||
dateStr: "",
|
||||
step: 1
|
||||
}
|
||||
);
|
||||
</script>
|
||||
<br> <input type="submit" name="submit" value="Generuj wydruk">
|
||||
</form>
|
||||
<?php }
|
||||
?>
|
||||
4
modules/EcmWorkCosts/js/detailView.js
Normal file
4
modules/EcmWorkCosts/js/detailView.js
Normal file
@@ -0,0 +1,4 @@
|
||||
$(document).ready(function () {
|
||||
console.log($("#first_name").html());
|
||||
//$("#ecmworkcost_name").val($("#first_name").val() + " " + $("#last_name").val());
|
||||
});
|
||||
62
modules/EcmWorkCosts/js/editView.js
Normal file
62
modules/EcmWorkCosts/js/editView.js
Normal file
@@ -0,0 +1,62 @@
|
||||
$(document).ready(function () {
|
||||
var tmp = $("#pesel");
|
||||
tmp.blur(function () {
|
||||
if (tmp.val().length != 0) {
|
||||
if (!validatepesel(tmp.val(),$("birthday").val())) {
|
||||
alert("Nie prawidłowy numer pesel!");
|
||||
// document.getElementById("pesel").focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
tmp = $("#bank_account_number");
|
||||
tmp.blur(function () {
|
||||
if (tmp.val().length != 0) {
|
||||
if (!NRBvalidatior(tmp.val())) {
|
||||
alert("Nie prawidłowy numer konta!");
|
||||
// document.getElementById("bank_account_number").focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
tmp = $("#email1");
|
||||
tmp.blur(function () {
|
||||
if (tmp.val().length != 0) {
|
||||
if (!validateEmail(tmp.val())) {
|
||||
alert("Nie prawidłowy adres email!");
|
||||
//document.getElementById("email1").focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function validatepesel(pesel, birthday) {
|
||||
var reg = /^[0-9]{11}$/;
|
||||
if (reg.test(pesel) == false) {
|
||||
//return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function NRBvalidatior(nrb) {
|
||||
nrb = nrb.replace(/[^0-9]+/g, '');
|
||||
var Wagi = new Array(1, 10, 3, 30, 9, 90, 27, 76, 81, 34, 49, 5, 50, 15, 53, 45, 62, 38, 89, 17, 73, 51, 25, 56, 75, 71, 31, 19, 93, 57);
|
||||
if (nrb.length == 26) {
|
||||
nrb = nrb + "2521";
|
||||
nrb = nrb.substr(2) + nrb.substr(0, 2);
|
||||
var Z = 0;
|
||||
for (var i = 0; i < 30; i++) {
|
||||
Z += nrb[29 - i] * Wagi[i];
|
||||
}
|
||||
if (Z % 97 == 1) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function validateEmail(email) {
|
||||
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
return re.test(email);
|
||||
}
|
||||
186
modules/EcmWorkCosts/language/en_us.lang.php
Normal file
186
modules/EcmWorkCosts/language/en_us.lang.php
Normal file
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
$mod_strings = array(
|
||||
'LBL_ACCIDENTAL' => 'Accidental',
|
||||
'LBL_ACCOUNT_LEDGER' => 'Konto księgowe',
|
||||
'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities',
|
||||
'LBL_ADDRESS_INFORMATION' => 'Address(es)',
|
||||
'LBL_ALT_ADDRESS_CITY' => 'Alternate City',
|
||||
'LBL_ALT_ADDRESS_COMMUNITY' => 'Primary community',
|
||||
'LBL_ALT_ADDRESS_COUNTRY' => 'Alternate Country',
|
||||
'LBL_ALT_ADDRESS_DISTRICT' => 'District',
|
||||
'LBL_ALT_ADDRESS_HOME' => 'Alternatywny numer domu',
|
||||
'LBL_ALT_ADDRESS_HOME_NUMBER' => 'Alternatywny numer mieszkania',
|
||||
'LBL_ALT_ADDRESS_POSTALCODE' => 'Alternate Postal Code',
|
||||
'LBL_ALT_ADDRESS_STATE' => 'Alternate State',
|
||||
'LBL_ALT_ADDRESS_STREET' => 'Alternate Address',
|
||||
'LBL_ALT_MAIL' => 'Mail',
|
||||
'LBL_AMOUNT_CONTRIBUTIONS' => 'Kwota i składki',
|
||||
'LBL_ASSIGNED_TO_ID' => 'Assigned User Id',
|
||||
'LBL_ASSIGNED_TO_NAME' => 'User',
|
||||
'LBL_BANK_ACCOUNT' => 'Rachunek bankowy',
|
||||
'LBL_BANK_ACCOUNT_NUMBER' => 'Numer rachunku',
|
||||
'LBL_BASE_SALARY' => 'Base salary',
|
||||
'LBL_BIRTHDAY' => 'Data urodzin',
|
||||
'LBL_BIRTH_PLACE' => 'Miejsce urodzenia',
|
||||
'LBL_CITIZENSHIP' => 'Obywatelstwo',
|
||||
'LBL_CITY' => 'City',
|
||||
'LBL_CODE_DEREGISTRATION' => 'Kod wyrejestrowania',
|
||||
'LBL_CODE_EDUCATION' => 'Education code',
|
||||
'LBL_CODE_PROFESSION' => 'Kod zawodu',
|
||||
'LBL_CODE_RELATIONSHIP' => 'Relationship code',
|
||||
'LBL_CONTACT_INFO' => 'Contact details',
|
||||
'LBL_CONTACT_INFORMATION' => 'Contact Information',
|
||||
'LBL_COST' => 'Koszt',
|
||||
'LBL_COUNTRY' => 'Country',
|
||||
'LBL_CREATED' => 'Created By',
|
||||
'LBL_CREATED_ID' => 'Created By Id',
|
||||
'LBL_CREATED_USER' => 'Created by User',
|
||||
'LBL_DATE_COMMENCEMENT' => 'Date commencement',
|
||||
'LBL_DATE_DISMISSAL' => 'Date dismissal',
|
||||
'LBL_DATE_EMPLOYMENT' => 'Date of Employment',
|
||||
'LBL_DATE_ENTERED' => 'Date Created',
|
||||
'LBL_DATE_GRADUATION' => 'Date of graduation',
|
||||
'LBL_DATE_INSURANCE' => 'Date of duty insurance',
|
||||
'LBL_DATE_INTERNSHIP' => 'Date internship',
|
||||
'LBL_DATE_MODIFIED' => 'Date Modified',
|
||||
'LBL_DATE_OBLIGATION' => 'Date obligation',
|
||||
'LBL_DATE_RETIREMENT' => 'Date of retirement',
|
||||
'LBL_DATE_SICKNESS' => 'Date_sickness',
|
||||
'LBL_DEBTORS_ACCOUNT' => 'Rachunku dłużnika',
|
||||
'LBL_DELETED' => 'Deleted',
|
||||
'LBL_DEPARTMENT' => 'Department',
|
||||
'LBL_DESCRIPTION' => 'Description',
|
||||
'LBL_DISABILITY' => 'Disability',
|
||||
'LBL_DISMISSAL' => 'Information dismissal',
|
||||
'LBL_DISMISSAL_REASON' => 'Przyczyna',
|
||||
'LBL_ECMWORKERS_SUBPANEL_TITLE' => 'Pracownicy',
|
||||
'LBL_EDUCATION' => 'Wykształcenie',
|
||||
'LBL_EMAIL_ADDRESS' => 'Email Address(es)',
|
||||
'LBL_EMAIL_ADDRESSES' => 'email',
|
||||
'LBL_EMPLOYEE_GROUP' => 'Employee group',
|
||||
'LBL_EMPLOYMENT' => 'Employment',
|
||||
'LBL_FAMILY_INFO' => 'Family information',
|
||||
'LBL_FAMILY_NAME' => 'Nazwisko rodowe',
|
||||
'LBL_FATHER_NAME' => 'Father name',
|
||||
'LBL_FAX_PHONE' => 'Fax',
|
||||
'LBL_FIRST_NAME' => 'First Name',
|
||||
'LBL_FORM_DISMISSAL' => 'Form dismissal',
|
||||
'LBL_FORM_EMPLOYMENT' => 'Form of Employment',
|
||||
'LBL_GENDER' => 'Płeć',
|
||||
'LBL_HEALTH_INSURANCE' => 'Kasa chorych',
|
||||
'LBL_HISTORY_SUBPANEL_TITLE' => 'View History',
|
||||
'LBL_HOMEPAGE_TITLE' => 'My Pracownicy',
|
||||
'LBL_HOME_PHONE' => 'Home Phone',
|
||||
'LBL_ID' => 'ID',
|
||||
'LBL_ID_CARD_DATE' => 'Data wydania',
|
||||
'LBL_ID_CARD_ISSUED' => 'Wydane przez',
|
||||
'LBL_ID_CARD_NUMBER' => 'Numer dowodu osobistego',
|
||||
'LBL_INLAND_REVENUE' => 'Urząd Skarbowy',
|
||||
'LBL_INSURANCE_CODE' => 'insurance code',
|
||||
'LBL_LAST_NAME' => 'Last Name',
|
||||
'LBL_LIST_FORM_TITLE' => 'Pracownicy List',
|
||||
'LBL_LIST_NAME' => 'Name',
|
||||
'LBL_MARITAL_STATUS' => 'Stan Cywilny',
|
||||
'LBL_MOBILE_PHONE' => 'Mobile Phone',
|
||||
'LBL_MODIFIED' => 'Modified By',
|
||||
'LBL_MODIFIED_ID' => 'Modified By Id',
|
||||
'LBL_MODIFIED_NAME' => 'Modified By Name',
|
||||
'LBL_MODIFIED_USER' => 'Modified by User',
|
||||
'LBL_MODULE_NAME' => 'Pracownicy',
|
||||
'LBL_MODULE_TITLE' => 'Pracownicy',
|
||||
'LBL_MOTHER_NAME' => 'Mother name',
|
||||
'LBL_NAME' => 'Name',
|
||||
'LBL_NAME_BANK' => 'Nazwa banku',
|
||||
'LBL_NATIONALITY' => 'Narodowość',
|
||||
'LBL_NEW_FORM_TITLE' => 'New Pracownicy',
|
||||
'LBL_OFFICE' => 'Information of employment',
|
||||
'LBL_OFFICE' => 'Office',
|
||||
'LBL_OFFICE_PHONE' => 'Office Phone',
|
||||
'LBL_OTHER_EMAIL_ADDRESS' => 'Other Email:',
|
||||
'LBL_OTHER_PHONE' => 'Other Phone',
|
||||
'LBL_PERIOD_OF_DISABILITY_FROM' => 'Period of disability from',
|
||||
'LBL_PERIOD_OF_DISABILITY_TO' => 'Period of disability to',
|
||||
'LBL_PERNAMENT_RESIDENCE_CARD' => 'Pernament residence card',
|
||||
'LBL_PERSONAL_INFO' => 'Personal info',
|
||||
'LBL_PERSON_CHILD_TAX_CREDIT' => 'Ulga na dzieci',
|
||||
'LBL_PERSON_CURRENT_PROFESSION' => 'Zawód wykonywany',
|
||||
'LBL_PERSON_ID_SERIES_NUMBER' => 'Seria i numer dokumentu',
|
||||
'LBL_PERSON_LEARNED_PROFESSION' => 'Zawód wyuczony',
|
||||
'LBL_PERSON_RELIEF' => 'Ulga',
|
||||
'LBL_PESEL' => 'Pesel',
|
||||
'LBL_PHONE_FAX' => 'Fax phone',
|
||||
'LBL_POSITION_OFFICE' => 'Stanowisko',
|
||||
'LBL_POSTALCODE' => 'Postal Code',
|
||||
'LBL_POSTAL_CODE' => 'Postal Code',
|
||||
'LBL_PRIMARY_ADDRESS' => 'Primary Address',
|
||||
'LBL_PRIMARY_ADDRESS_CITY' => 'Primary City',
|
||||
'LBL_PRIMARY_ADDRESS_COMMUNITY' => 'Primary community',
|
||||
'LBL_PRIMARY_ADDRESS_COUNTRY' => 'Primary Address Country:',
|
||||
'LBL_PRIMARY_ADDRESS_DISTRICT' => 'District',
|
||||
'LBL_PRIMARY_ADDRESS_HOME' => 'Numer domu',
|
||||
'LBL_PRIMARY_ADDRESS_HOME_NUMBER' => 'Numer mieszkania',
|
||||
'LBL_PRIMARY_ADDRESS_POSTALCODE' => 'Primary Postal Code',
|
||||
'LBL_PRIMARY_ADDRESS_STATE' => 'Primary State',
|
||||
'LBL_PRIMARY_ADDRESS_STREET' => 'Primary Address',
|
||||
'LBL_PRIMARY_MAIL' => 'Mail',
|
||||
'LBL_REGISTRATION_NUMBER' => 'Numer ewidencyjny',
|
||||
'LBL_RETIREMENT' => 'Retirement',
|
||||
'LBL_SALUTATION' => 'Salutation',
|
||||
'LBL_SCHOOL_COMPLETED' => 'Ukończona szkoła',
|
||||
'LBL_SEARCH_FORM_TITLE' => 'Search Pracownicy',
|
||||
'LBL_SECOND_NAME' => 'Drugie imię',
|
||||
'LBL_SICKNESS' => 'Sickness',
|
||||
'LBL_SPOUSE_NAME' => 'Imię współmałżonka',
|
||||
'LBL_STATE' => 'State',
|
||||
'LBL_STREET' => 'Other Address',
|
||||
'LBL_TEMPORARY_RESIDENCE_CARD' => 'Temporary residence card',
|
||||
'LBL_WORKING_TIME' => 'Working time',
|
||||
'LBL_WORK_PHONE' => 'Work Phone',
|
||||
'LBL_WORK_SCHEDULE' => 'work schedule',
|
||||
'LBL_ZUS_ANNUAL_AMOUNT' => 'Roczna kwota ZUS',
|
||||
'LBL_ZUS_ANNUAL_BASE' => 'Roczna podstawa ZUS',
|
||||
'LBL_ZUS_COMMON_HOUSEHOLD_EMPLOYER' => 'Wspólne gospodarstwo domowe z pracodawcą',
|
||||
'LBL_ZUS_DATE_DISABILITY' => 'Rentowe',
|
||||
'LBL_ZUS_GROUP' => 'Group ZUS',
|
||||
'LBL_ZUS_INFO' => 'ZUS information',
|
||||
'LNK_IMPORT_ECMWORKERS' => 'Import Pracownicy',
|
||||
'LNK_IMPORT_VCARD' => 'Create From vCard',
|
||||
'LNK_LIST' => 'View Pracownicy',
|
||||
'LNK_NEW_RECORD' => 'Create Pracownicy',
|
||||
);
|
||||
?>
|
||||
201
modules/EcmWorkCosts/language/pl_pl.lang.php
Normal file
201
modules/EcmWorkCosts/language/pl_pl.lang.php
Normal file
@@ -0,0 +1,201 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
$mod_strings = array(
|
||||
|
||||
'LBL_WORKER_NAME' => 'Pracownik',
|
||||
'LBL_DATE' => 'Miesiąc',
|
||||
'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Działania',
|
||||
'LBL_ADDRESS_INFORMATION' => 'Adresy',
|
||||
'LBL_ALT_ADDRESS_CITY' => 'Miasto',
|
||||
'LBL_ALT_ADDRESS_COMMUNITY' => 'Gmina',
|
||||
'LBL_ALT_ADDRESS_COUNTRY' => 'Państwo',
|
||||
'LBL_ALT_ADDRESS_DISTRICT' => 'Powiat',
|
||||
'LBL_ALT_ADDRESS_HOME' => 'Numer domu',
|
||||
'LBL_ALT_ADDRESS_HOME_NUMBER' => 'Numer mieszkania',
|
||||
'LBL_ALT_ADDRESS_POSTALCODE' => 'Kod pocztowy',
|
||||
'LBL_ALT_ADDRESS_STATE' => 'Województwo',
|
||||
'LBL_ALT_ADDRESS_STREET' => 'Adres',
|
||||
'LBL_ALT_MAIL' => 'Poczta',
|
||||
'LBL_AMOUNT_CONTRIBUTIONS' => 'Kwota i składki',
|
||||
'LBL_ASSIGNED_TO_ID' => 'ID przydzielonego użytkownika',
|
||||
'LBL_ASSIGNED_TO_NAME' => 'Przydzielone do',
|
||||
'LBL_BANK_ACCOUNT' => 'Rachunek bankowy',
|
||||
'LBL_BANK_ACCOUNT_NUMBER' => 'Numer rachunku',
|
||||
'LBL_BASE_SALARY' => 'Wynagrodzenie zasadnicze',
|
||||
'LBL_BIRTHDAY' => 'Data urodzin',
|
||||
'LBL_BIRTH_PLACE' => 'Miejsce urodzenia',
|
||||
'LBL_CITIZENSHIP' => 'Obywatelstwo',
|
||||
'LBL_CITY' => 'Miasto',
|
||||
'LBL_CODE_DEREGISTRATION' => 'Kod wyrejestrowania',
|
||||
'LBL_CODE_EDUCATION' => 'Kod wykształcenia',
|
||||
'LBL_CODE_PROFESSION' => 'Kod zawodu',
|
||||
'LBL_CODE_RELATIONSHIP' => 'Kod pokrewieństwa',
|
||||
'LBL_CONTACT_INFO' => 'Dane kontaktowe',
|
||||
'LBL_CONTACT_INFORMATION' => 'Informacje o kontakcie',
|
||||
'LBL_COST' => 'Koszt',
|
||||
'LBL_COUNTRY' => 'Kraj',
|
||||
'LBL_CREATED' => 'Utworzone przez',
|
||||
'LBL_CREATED_ID' => 'ID tworzącego',
|
||||
'LBL_CREATED_USER' => 'Stworzone przez użytkownika',
|
||||
'LBL_DATE_COMMENCEMENT' => 'Data rozpoczęcia',
|
||||
'LBL_DATE_DISMISSAL' => 'Data zwolnienia',
|
||||
'LBL_DATE_EMPLOYMENT' => 'Data zatrudnienia',
|
||||
'LBL_DATE_EMPLOYMENT_TO' => 'Data zatrudnienia do',
|
||||
'LBL_DATE_ENTERED' => 'Data utworzenia',
|
||||
'LBL_DATE_GRADUATION' => 'Data ukończenia nauki',
|
||||
'LBL_DATE_INSURANCE' => 'Data Obowiązku ubezpieczenia',
|
||||
'LBL_DATE_INTERNSHIP' => 'Data do stażu pracy',
|
||||
'LBL_DATE_MODIFIED' => 'Data modyfikacji',
|
||||
'LBL_DATE_OBLIGATION' => 'Data powstania obowiązku',
|
||||
'LBL_DATE_RETIREMENT' => 'Emerytalne',
|
||||
'LBL_DATE_SICKNESS' => 'Chorobowe',
|
||||
'LBL_DEBTORS_ACCOUNT' => 'Rachunku dłużnika',
|
||||
'LBL_DELETED' => 'Usunięto',
|
||||
'LBL_DEPARTMENT' => 'Oddział',
|
||||
'LBL_DESCRIPTION' => 'Opis',
|
||||
'LBL_DISABILITY' => 'Rentownym',
|
||||
'LBL_DISMISSAL' => 'Informacje o zwolnieniu',
|
||||
'LBL_DISMISSAL_REASON' => 'Przyczyna',
|
||||
'LBL_ECMWORKERS_SUBPANEL_TITLE' => 'Pracownicy',
|
||||
'LBL_EDUCATION' => 'Wykształcenie',
|
||||
'LBL_EMAIL_ADDRESS' => 'Adres email',
|
||||
'LBL_EMAIL_ADDRESSES' => 'email',
|
||||
'LBL_EMPLOYEE_GROUP' => 'Grupa pracownicza',
|
||||
'LBL_EMPLOYMENT' => 'Zatrudnienie',
|
||||
'LBL_FAMILY_INFO' => 'Informacje o rodzinie',
|
||||
'LBL_FAMILY_NAME' => 'Nazwisko rodowe',
|
||||
'LBL_FATHER_NAME' => 'Imię ojca',
|
||||
'LBL_FAX_PHONE' => 'Fax',
|
||||
'LBL_FIRST_NAME' => 'Imię',
|
||||
'LBL_FORM_DISMISSAL' => 'Forma zwolnienia',
|
||||
'LBL_FORM_EMPLOYMENT' => 'Forma zatrudnienia',
|
||||
'LBL_GENDER' => 'Płeć',
|
||||
'LBL_HEALTH_INSURANCE' => 'Kasa chorych',
|
||||
'LBL_HISTORY_SUBPANEL_TITLE' => 'Zobacz historię',
|
||||
'LBL_HOMEPAGE_TITLE' => 'Moja Pracownicy',
|
||||
'LBL_HOME_PHONE' => 'Telefon domowy',
|
||||
'LBL_ID' => 'ID',
|
||||
'LBL_ID_CARD_DATE' => 'Data wydania',
|
||||
'LBL_ID_CARD_ISSUED' => 'Wydany przez',
|
||||
'LBL_ID_CARD_NUMBER' => 'Rodzaj dowodu',
|
||||
'LBL_INLAND_REVENUE' => 'Urząd Skarbowy',
|
||||
'LBL_INSURANCE_CODE' => 'Kod ubezpieczenia',
|
||||
'LBL_LAST_NAME' => 'Nazwisko',
|
||||
'LBL_LIST_FORM_TITLE' => 'Pracownicy Lista',
|
||||
'LBL_LIST_NAME' => 'Nazwa',
|
||||
'LBL_MARITAL_STATUS' => 'Stan Cywilny',
|
||||
'LBL_MOBILE_PHONE' => 'Telefon komórkowy',
|
||||
'LBL_MODIFIED' => 'Zmodyfikowane przez',
|
||||
'LBL_MODIFIED_ID' => 'ID modyfikującego',
|
||||
'LBL_MODIFIED_NAME' => 'Nazwa modyfikującego',
|
||||
'LBL_MODIFIED_USER' => 'Zmodyfikowane przez użytkownika',
|
||||
'LBL_MODULE_NAME' => 'Pracownicy',
|
||||
'LBL_MODULE_TITLE' => 'Pracownicy',
|
||||
'LBL_MOTHER_NAME' => 'Imię matki',
|
||||
'LBL_NAME' => 'Nazwa',
|
||||
'LBL_NAME_BANK' => 'Nazwa banku',
|
||||
'LBL_NATIONALITY' => 'Narodowość',
|
||||
'LBL_NEW_FORM_TITLE' => 'Nowy Pracownicy',
|
||||
'LBL_OFFICE' => 'Informacje o zatrudnieniu',
|
||||
'LBL_OFFICE_PHONE' => 'Telefon służbowy',
|
||||
'LBL_OTHER_EMAIL_ADDRESS' => 'Inny email:',
|
||||
'LBL_OTHER_PHONE' => 'Inny tel.',
|
||||
'LBL_PERIOD' => 'Okres',
|
||||
'LBL_PERIOD_OF_DISABILITY_FROM' => 'Okres niepełnosprawności od',
|
||||
'LBL_PERIOD_OF_DISABILITY_TO' => 'Okres niepełnosprawności do',
|
||||
'LBL_PERNAMENT_RESIDENCE_CARD' => 'Karta stałego pobytu',
|
||||
'LBL_PERSONAL_INFO' => 'Dane personalne',
|
||||
'LBL_PERSON_CHILD_TAX_CREDIT' =>'Ulga na dzieci',
|
||||
'LBL_PERSON_CURRENT_PROFESSION' => 'Zawód wykonywany',
|
||||
'LBL_PERSON_ID_SERIES_NUMBER' => 'Seria i numer dokumentu',
|
||||
'LBL_PERSON_LEARNED_PROFESSION' => 'Zawód wyuczony',
|
||||
'LBL_PERSON_RELIEF' => 'Ulga',
|
||||
'LBL_PESEL' => 'Pesel',
|
||||
'LBL_PHONE_FAX' => 'Fax',
|
||||
'LBL_POSITION_OFFICE' => 'Stanowisko',
|
||||
'LBL_POSTALCODE' => 'Kod pocztowy',
|
||||
'LBL_POSTAL_CODE' => 'Kod pocztowy',
|
||||
'LBL_PRIMARY_ADDRESS' => 'Adres zamieszkania',
|
||||
'LBL_PRIMARY_ADDRESS_CITY' => 'Miasto',
|
||||
'LBL_PRIMARY_ADDRESS_COMMUNITY' => 'Gmina',
|
||||
'LBL_PRIMARY_ADDRESS_COUNTRY' => 'Państwo',
|
||||
'LBL_PRIMARY_ADDRESS_DISTRICT' => 'Powiat',
|
||||
'LBL_PRIMARY_ADDRESS_HOME' => 'Numer domu',
|
||||
'LBL_PRIMARY_ADDRESS_HOME_NUMBER' => 'Numer mieszkania',
|
||||
'LBL_PRIMARY_ADDRESS_POSTALCODE' => 'Kod pocztowy',
|
||||
'LBL_PRIMARY_ADDRESS_STATE' => 'Województwo',
|
||||
'LBL_PRIMARY_ADDRESS_STREET' => 'Ulica',
|
||||
'LBL_PRIMARY_MAIL' => 'Poczta',
|
||||
'LBL_REGISTRATION_NUMBER' => 'Numer ewidencyjny',
|
||||
'LBL_RETIREMENT' => 'Emerytalnemu',
|
||||
'LBL_SALUTATION' => 'Pozdrowienie',
|
||||
'LBL_SCHOOL_COMPLETED' => 'Ukończona szkoła',
|
||||
'LBL_SEARCH_FORM_TITLE' => 'Szukaj Pracownicy',
|
||||
'LBL_SECOND_NAME' => 'Drugie imię',
|
||||
'LBL_SICKNESS' => 'Chorobowemu',
|
||||
'LBL_SPOUSE_NAME' => 'Imię współmałżonka',
|
||||
'LBL_STATE' => 'Woj.',
|
||||
'LBL_STREET' => 'Ulica',
|
||||
'LBL_TEMPORARY_RESIDENCE_CARD' => 'Karta tymczasowego pobytu',
|
||||
'LBL_WORKING_TIME' => 'Wymiar czasu pracy',
|
||||
'LBL_WORK_PHONE' => 'Telefon do pracy',
|
||||
'LBL_WORK_SCHEDULE' => 'Harmonogram pracy',
|
||||
'LBL_ZUS_ANNUAL_AMOUNT' => 'Roczna kwota ZUS',
|
||||
'LBL_ZUS_ANNUAL_BASE' => 'Roczna podstawa ZUS',
|
||||
'LBL_ZUS_CODE_CHARITY_WORK' => 'Kod pracy charetatywnej',
|
||||
'LBL_ZUS_CODE_DISCREPANCIES' => 'Kod niezgodności',
|
||||
'LBL_ZUS_CODE_MINING_WORK' => 'Kod pracy górniczej',
|
||||
'LBL_ZUS_COMMON_HOUSEHOLD_EMPLOYER' => 'Wspólne gospodarstwo domowe z pracodawcą',
|
||||
'LBL_ZUS_DATE_CHARITY_WORK_FROM' => 'Okres pracy charytatywnej od',
|
||||
'LBL_ZUS_DATE_CHARITY_WORK_TO' => 'Okres pracy charytatywnej do',
|
||||
'LBL_ZUS_DATE_DISABILITY' => 'Rentowe',
|
||||
'LBL_ZUS_DATE_DISCREPANCIES_FROM' => 'Okres niezgodności od',
|
||||
'LBL_ZUS_DATE_DISCREPANCIES_TO' => 'Okres niezgodności do',
|
||||
'LBL_ZUS_DATE_MINING_WORK_FROM' => 'Okres pracy górniczej od',
|
||||
'LBL_ZUS_DATE_MINING_WORK_TO' => 'Okres pracy górniczej do',
|
||||
'LBL_ZUS_GROUP' => 'Grupa ZUS',
|
||||
'LBL_ZUS_LABEL1' => 'Dane do ZUS: Dane o obowiązkowych ubezpieczeniach społecznych',
|
||||
'LBL_ZUS_LABEL2' => 'Dane do ZUS: Osoba podlega ubezpieczeniom',
|
||||
'LBL_ZUS_LABEL3' => 'Dane do ZUS: Inne dane',
|
||||
'LBL_ZUS_LABEL4' => 'Dane do ZUS: Dane o dobrowolnych ubezpieczeniach społecznych',
|
||||
'LNK_IMPORT_ECMWORKERS' => 'Import Pracownicy',
|
||||
'LNK_IMPORT_VCARD' => 'Utwórz z vCard',
|
||||
'LNK_LIST' => ' Lista kosztów pracowników',
|
||||
'LNK_NEW_RECORD' => 'Nowy koszt pracownika',
|
||||
'LBL_ACTIVE' => 'Aktywny',
|
||||
);
|
||||
?>
|
||||
51
modules/EcmWorkCosts/metadata/SearchFields.php
Normal file
51
modules/EcmWorkCosts/metadata/SearchFields.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$searchFields[$module_name] =
|
||||
array (
|
||||
'first_name' => array( 'query_type'=>'default'),
|
||||
'last_name'=> array('query_type'=>'default'),
|
||||
'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
|
||||
'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work',)),
|
||||
'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
|
||||
'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
|
||||
'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
|
||||
'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
|
||||
'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
|
||||
'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
|
||||
);
|
||||
?>
|
||||
60
modules/EcmWorkCosts/metadata/dashletviewdefs.php
Normal file
60
modules/EcmWorkCosts/metadata/dashletviewdefs.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
|
||||
|
||||
global $current_user;
|
||||
$dashletData['EcmWorkCostsDashlet']['searchFields'] = array('date_entered' => array('default' => ''),
|
||||
'date_modified' => array('default' => ''),
|
||||
'assigned_user_id' => array('type' => 'assigned_user_name',
|
||||
'default' => $current_user->name));
|
||||
$dashletData['EcmWorkCostsDashlet']['columns'] = array('name' => array('width' => '40',
|
||||
'label' => 'LBL_LIST_NAME',
|
||||
'link' => true,
|
||||
'default' => true),
|
||||
'date_entered' => array('width' => '15',
|
||||
'label' => 'LBL_DATE_ENTERED',
|
||||
'default' => true),
|
||||
'date_modified' => array('width' => '15',
|
||||
'label' => 'LBL_DATE_MODIFIED'),
|
||||
'created_by' => array('width' => '8',
|
||||
'label' => 'LBL_CREATED'),
|
||||
'assigned_user_name' => array('width' => '8',
|
||||
'label' => 'LBL_LIST_ASSIGNED_USER'),
|
||||
);
|
||||
82
modules/EcmWorkCosts/metadata/detailviewdefs.php
Normal file
82
modules/EcmWorkCosts/metadata/detailviewdefs.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$viewdefs[$module_name]['DetailView'] = array(
|
||||
'templateMeta' => array(
|
||||
'form' => array(
|
||||
'buttons' => array(
|
||||
'EDIT',
|
||||
'DELETE',
|
||||
),
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30'),
|
||||
),
|
||||
'includes' => array(
|
||||
0 => array(
|
||||
'file' => 'modules/EcmWorkCosts/js/detailView.js'
|
||||
),
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'LBL_PERSONAL_INFO' => array(
|
||||
array (
|
||||
array (
|
||||
'name' => 'worker_name',
|
||||
'label' => 'LBL_WORKER_NAME',
|
||||
'displayParams' => array (
|
||||
'size' => 50
|
||||
)
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'price',
|
||||
'label' => 'Ilość',
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'date',
|
||||
'label' => 'LBL_DATE',
|
||||
'tabIndex' => '102'
|
||||
)
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
98
modules/EcmWorkCosts/metadata/editviewdefs.php
Normal file
98
modules/EcmWorkCosts/metadata/editviewdefs.php
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ******************************************************************************
|
||||
*/
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$viewdefs [$module_name] ['EditView'] = array (
|
||||
'templateMeta' => array (
|
||||
'maxColumns' => '2',
|
||||
'widths' => array (
|
||||
array (
|
||||
'label' => '20',
|
||||
'field' => '60'
|
||||
),
|
||||
array (
|
||||
'label' => '20',
|
||||
'field' => '60'
|
||||
)
|
||||
),
|
||||
'javascript' => '
|
||||
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/init.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/jsolait/lib/urllib.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
|
||||
<script type="text/javascript" src="include/JSON.js?s={$SUGAR_VERSION}"></script>
|
||||
',
|
||||
'includes' => array (
|
||||
0 => array (
|
||||
'file' => 'modules/EcmWorkCosts/js/editView.js'
|
||||
)
|
||||
)
|
||||
),
|
||||
'panels' => array (
|
||||
'LBL_PERSONAL_INFO' => array (
|
||||
array (
|
||||
array (
|
||||
'name' => 'worker_name',
|
||||
'label' => 'LBL_WORKER_NAME',
|
||||
'displayParams' => array (
|
||||
'size' => 50
|
||||
)
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'price',
|
||||
'label' => 'Koszt',
|
||||
'customCode' => '<input type="text" onchange="$(this).val(FormatNumber($(this).val()));" onclick="$(this).select();" tabindex="107" id="price" name="price" value="{$fields.price.value|number_format:2:",":"."}">'
|
||||
)
|
||||
),
|
||||
array (
|
||||
array (
|
||||
'name' => 'date',
|
||||
'label' => 'LBL_DATE',
|
||||
'tabIndex' => '102'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
/* array(
|
||||
'name' => 'debtors_account',
|
||||
'label' => 'LBL_DEBTORS_ACCOUNT',
|
||||
),*/
|
||||
28
modules/EcmWorkCosts/metadata/listviewdefs.php
Normal file
28
modules/EcmWorkCosts/metadata/listviewdefs.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$listViewDefs [$module_name] = array (
|
||||
'DATE' => array(
|
||||
'type' => 'varchar',
|
||||
'label' => 'Data',
|
||||
'link' => false,
|
||||
'width' => '2',
|
||||
'default' => true,
|
||||
),
|
||||
'WORKER_NAME' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'Pracownik',
|
||||
'link' => true,
|
||||
'width' => '5',
|
||||
'default' => true,
|
||||
),
|
||||
|
||||
'PRICE' => array (
|
||||
'type' => 'varchar',
|
||||
'label' => 'Koszt',
|
||||
'width' => '2',
|
||||
'align'=>'right',
|
||||
'default' => true,
|
||||
),
|
||||
|
||||
);
|
||||
?>
|
||||
51
modules/EcmWorkCosts/metadata/metafiles.php
Normal file
51
modules/EcmWorkCosts/metadata/metafiles.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
/*
|
||||
* Created on July 12, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$metafiles[$module_name] = array(
|
||||
'detailviewdefs' => 'modules/'.$module_name.'/metadata/detailviewdefs.php',
|
||||
'editviewdefs' => 'modules/'. $module_name. '/metadata/editviewdefs.php',
|
||||
'listviewdefs' => 'modules/'. $module_name. '/metadata/listviewdefs.php',
|
||||
'searchdefs' => 'modules/'. $module_name. '/metadata/searchdefs.php',
|
||||
'popupdefs' => 'modules/'. $module_name. '/metadata/popupdefs.php',
|
||||
'searchfields' => 'modules/'. $module_name. '/metadata/SearchFields.php',
|
||||
);
|
||||
?>
|
||||
59
modules/EcmWorkCosts/metadata/popupdefs.php
Normal file
59
modules/EcmWorkCosts/metadata/popupdefs.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$object_name = 'EcmWorkCost';
|
||||
$_module_name = 'ecmworkcosts';
|
||||
$popupMeta = array('moduleMain' => $module_name,
|
||||
'varName' => $object_name,
|
||||
'orderBy' => $_module_name . '.first_name, ' . $_module_name . '.last_name',
|
||||
'whereClauses' =>
|
||||
array('first_name' => $_module_name . '.first_name',
|
||||
'last_name' => $_module_name . '.last_name',
|
||||
),
|
||||
'searchInputs' =>
|
||||
array('first_name', 'last_name'),
|
||||
'listviewdefs' => array(
|
||||
'NAME' => array(
|
||||
'width' => '40',
|
||||
'label' => 'LBL_LIST_ACCOUNT_NAME',
|
||||
'link' => true,
|
||||
'default' => true,
|
||||
),),
|
||||
);
|
||||
?>
|
||||
70
modules/EcmWorkCosts/metadata/quickcreatedefs.php
Normal file
70
modules/EcmWorkCosts/metadata/quickcreatedefs.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$viewdefs[$module_name]['QuickCreate'] = array(
|
||||
'templateMeta' => array('maxColumns' => '2',
|
||||
'widths' => array(
|
||||
array('label' => '10', 'field' => '30'),
|
||||
array('label' => '10', 'field' => '30'),
|
||||
),
|
||||
),
|
||||
'panels' => array(
|
||||
'lbl_contact_information' =>
|
||||
array(
|
||||
array(
|
||||
array(
|
||||
'name' => 'first_name',
|
||||
'customCode' => '<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
|
||||
),
|
||||
'assigned_user_name',
|
||||
),
|
||||
array(
|
||||
array('name' => 'last_name', 'displayParams' => array('required' => true)),
|
||||
),
|
||||
array(
|
||||
'phone_work',
|
||||
),
|
||||
array(
|
||||
'department',
|
||||
'phone_mobile',
|
||||
),
|
||||
),
|
||||
'lbl_email_addresses' => array(
|
||||
array('email1')
|
||||
),
|
||||
)
|
||||
);
|
||||
68
modules/EcmWorkCosts/metadata/searchdefs.php
Normal file
68
modules/EcmWorkCosts/metadata/searchdefs.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
/*
|
||||
* Created on May 29, 2007
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
*/
|
||||
$module_name = 'EcmWorkCosts';
|
||||
$searchdefs[$module_name] = array(
|
||||
'templateMeta' => array('maxColumns' => '3',
|
||||
'widths' => array('label' => '10', 'field' => '30'),
|
||||
),
|
||||
'layout' => array(
|
||||
'basic_search' => array(
|
||||
array('name' => 'search_name', 'label' => 'LBL_NAME', 'type' => 'name'),
|
||||
array('name' => 'current_user_only', 'label' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
|
||||
),
|
||||
'advanced_search' => array(
|
||||
'first_name',
|
||||
'last_name',
|
||||
'primary_address_city',
|
||||
'gender',
|
||||
'form_employment',
|
||||
'position_office',
|
||||
'department',
|
||||
'cost',
|
||||
|
||||
'date_employment',
|
||||
'employment',
|
||||
// 'created_by_name',
|
||||
),
|
||||
),
|
||||
);
|
||||
38
modules/EcmWorkCosts/metadata/studio.php
Normal file
38
modules/EcmWorkCosts/metadata/studio.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
/**
|
||||
* This file adds support for studio
|
||||
*/
|
||||
46
modules/EcmWorkCosts/metadata/subpaneldefs.php
Normal file
46
modules/EcmWorkCosts/metadata/subpaneldefs.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM Community Edition is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
|
||||
|
||||
|
||||
$layout_defs['EcmWorkCosts']['subpanel_setup'] = array(
|
||||
// list of what Subpanels to show in the DetailView
|
||||
|
||||
);
|
||||
?>
|
||||
86
modules/EcmWorkCosts/metadata/subpanels/default.php
Normal file
86
modules/EcmWorkCosts/metadata/subpanels/default.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
$subpanel_layout = array(
|
||||
'top_buttons' => array(
|
||||
array('widget_class' => 'SubPanelTopCreateButton'),
|
||||
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'People'),
|
||||
),
|
||||
'where' => '',
|
||||
'list_fields' => array(
|
||||
'first_name' => array(
|
||||
'name' => 'first_name',
|
||||
'usage' => 'query_only',
|
||||
),
|
||||
'last_name'=> array(
|
||||
'name'=>'last_name',
|
||||
'usage' => 'query_only',
|
||||
),
|
||||
'name'=>array(
|
||||
'name'=>'name',
|
||||
'vname' => 'LBL_LIST_NAME',
|
||||
'sort_by' => 'last_name',
|
||||
'sort_order' => 'asc',
|
||||
'widget_class' => 'SubPanelDetailViewLink',
|
||||
'module' => 'Contacts',
|
||||
'width' => '40%',
|
||||
),
|
||||
'email1'=>array(
|
||||
'name'=>'email1',
|
||||
'vname' => 'LBL_LIST_EMAIL',
|
||||
'widget_class' => 'SubPanelEmailLink',
|
||||
'width' => '35%',
|
||||
),
|
||||
'phone_work'=>array (
|
||||
'name'=>'phone_work',
|
||||
'vname' => 'LBL_LIST_PHONE',
|
||||
'width' => '15%',
|
||||
),
|
||||
'edit_button'=>array(
|
||||
'widget_class' => 'SubPanelEditButton',
|
||||
'module' => 'Contacts',
|
||||
'width' => '5%',
|
||||
),
|
||||
'remove_button'=>array(
|
||||
'widget_class' => 'SubPanelRemoveButton',
|
||||
'module' => 'Contacts',
|
||||
'width' => '5%',
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
27
modules/EcmWorkCosts/tpl/EditViewZusDateCharityWork.tpl
Normal file
27
modules/EcmWorkCosts/tpl/EditViewZusDateCharityWork.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<input autocomplete="off" type="text" name="zus_date_charity_work_from" id="zus_date_charity_work_from" value="{$fields.zus_date_charity_work_from.value}" size="10" maxlength="10">
|
||||
<img id="date_trigger11" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
-
|
||||
<input autocomplete="off" type="text" name="zus_date_charity_work_to" id="zus_date_charity_work_to" value="{$fields.zus_date_charity_work_to.value}" size="10" maxlength="10">
|
||||
<img id="date_trigger22" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "zus_date_charity_work_from",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_trigger11",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "zus_date_charity_work_to",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_trigger22",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
27
modules/EcmWorkCosts/tpl/EditViewZusDateDiscrepancies.tpl
Normal file
27
modules/EcmWorkCosts/tpl/EditViewZusDateDiscrepancies.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<input autocomplete="off" type="text" name="zus_date_discrepancies_from" id="zus_date_discrepancies_from" value="{$fields.zus_date_discrepancies_from.value}" size="10" maxlength="10">
|
||||
<img id="date_from_trigger1" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
-
|
||||
<input autocomplete="off" type="text" name="zus_date_discrepancies_to" id="zus_date_discrepancies_to" value="{$fields.zus_date_discrepancies_to.value}" size="10" maxlength="10">
|
||||
<img id="date_from_trigger2" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "zus_date_discrepancies_from",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_from_trigger1",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "zus_date_discrepancies_to",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_from_trigger2",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
27
modules/EcmWorkCosts/tpl/EditViewZusDateEmployment.tpl
Normal file
27
modules/EcmWorkCosts/tpl/EditViewZusDateEmployment.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<input autocomplete="off" type="text" name="date_employment" id="date_employment" value="{$fields.date_employment.value}" size="10" maxlength="10">
|
||||
<img id="date_trigger111" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
-
|
||||
<input autocomplete="off" type="text" name="date_employment_to" id="date_employment_to" value="{$fields.date_employment_to.value}" size="10" maxlength="10">
|
||||
<img id="date_trigger222" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "date_employment",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_trigger111",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "date_employment_to",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_trigger222",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
27
modules/EcmWorkCosts/tpl/EditViewZusDateMiningWork.tpl
Normal file
27
modules/EcmWorkCosts/tpl/EditViewZusDateMiningWork.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<input autocomplete="off" type="text" name="zus_date_mining_work_from" id="zus_date_mining_work_from" value="{$fields.zus_date_mining_work_from.value}" size="10" maxlength="10">
|
||||
<img id="date_trigger1" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
-
|
||||
<input autocomplete="off" type="text" name="zus_date_mining_work_to" id="zus_date_mining_work_to" value="{$fields.zus_date_mining_work_to.value}" size="10" maxlength="10">
|
||||
<img id="date_trigger2" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "zus_date_mining_work_from",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_trigger1",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup ({ldelim}
|
||||
inputField : "zus_date_mining_work_to",
|
||||
daFormat : "%d.%m.%Y %H:%M",
|
||||
button : "date_trigger2",
|
||||
singleClick : true,
|
||||
dateStr : "",
|
||||
step : 1
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
248
modules/EcmWorkCosts/tpl/WydrukKartyPracy.html
Normal file
248
modules/EcmWorkCosts/tpl/WydrukKartyPracy.html
Normal file
@@ -0,0 +1,248 @@
|
||||
{foreach from=$workers item=item name=loop key="key"}
|
||||
<br><br><br>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td style="width:50%">{$item.name} - {$item.opis}</td>
|
||||
<td style="width:30%">{$time}</td>
|
||||
<td style="width:20%;text-align:right"><img src="https://crm.e5.pl/custom/themes/default/images/company_logo.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1&logo_md5=af23544561a9508848e80d2c5b325cc9"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table style="width:100%; border: 1px solid black; border-collapse: collapse" >
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">GODZINY</td>
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">PRODUKTY</td>
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">CZYNNOŚĆ</td>
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">ILOŚĆ SZTUK</td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br><br>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td style="width:50%">{$item.name} - {$item.opis}</td>
|
||||
<td style="width:30%">{$time2}</td>
|
||||
<td style="width:20%;text-align:right"><img src="https://crm.e5.pl/custom/themes/default/images/company_logo.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1&logo_md5=af23544561a9508848e80d2c5b325cc9"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<table style="width:100%; border: 1px solid black; border-collapse: collapse" >
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">GODZINY</td>
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">PRODUKTY</td>
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">CZYNNOŚĆ</td>
|
||||
<td style="border: 1px solid black;font-weight:bold;text-align:center;">ILOŚĆ SZTUK</td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr> <tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
<tr style="border: 1px solid black;">
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
<td style="border: 1px solid black;"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<pagebreak>
|
||||
|
||||
{/foreach}
|
||||
109
modules/EcmWorkCosts/vardefs.php
Normal file
109
modules/EcmWorkCosts/vardefs.php
Normal file
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
/* * *******************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
* ****************************************************************************** */
|
||||
$dictionary['EcmWorkCost'] = array(
|
||||
'table' => 'ecmworkcosts',
|
||||
'audited' => true,
|
||||
'fields' => array(
|
||||
|
||||
'date' => array(
|
||||
'name' => 'date',
|
||||
'vname' => 'Miesiąc',
|
||||
'type' => 'date',
|
||||
'reportable' => false,
|
||||
'showFormats' => true,
|
||||
'massupdate' => false,
|
||||
'required' => false,
|
||||
),
|
||||
'worker_id' => array(
|
||||
'name' => 'worker_id',
|
||||
'rname' => 'name',
|
||||
'type' => 'id',
|
||||
'module' => 'EcmWorkers',
|
||||
'vname' => 'LBL_WORKER_ID',
|
||||
'group' => 'worker_name',
|
||||
'massupdate' => false,
|
||||
'reportable' => false,
|
||||
'required' => true,
|
||||
),
|
||||
'worker_name' => array(
|
||||
'name' => 'worker_name',
|
||||
'rname' => 'name',
|
||||
'id_name' => 'worker_id',
|
||||
'vname' => 'LBL_WORKER_NAME',
|
||||
'type' => 'relate',
|
||||
'group' => 'worker_name',
|
||||
'dbtype' => 'varchar',
|
||||
'len' => '255',
|
||||
//'source'=>'non-db',
|
||||
'module' => 'EcmWorkers',
|
||||
'massupdate' => false,
|
||||
'required' => true,
|
||||
),
|
||||
'price' => array(
|
||||
'name' => 'price',
|
||||
'dbtype' => 'decimal',
|
||||
'label'=>'Ilość',
|
||||
'len' => '14,2',
|
||||
'required' => false,
|
||||
),
|
||||
'ecmprivatedocuments' => array(
|
||||
'name' => 'ecmprivatedocuments',
|
||||
'type' => 'link',
|
||||
'relationship' => 'ecmworkcosts_ecmprivatedocuments',
|
||||
'source' => 'non-db',
|
||||
'vname' => 'LBL_ECMPRIVATEDOCUMENTS',
|
||||
),
|
||||
),
|
||||
'relationships' => array(
|
||||
'ecmworkcosts_ecmprivatedocuments' => array(
|
||||
'lhs_module' => 'EcmWorkCosts',
|
||||
'lhs_table' => 'ecmworkcosts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmPrivateDocuments',
|
||||
'rhs_table' => 'ecmprivatedocuments',
|
||||
'rhs_key' => 'parent_id',
|
||||
'relationship_type' => 'one-to-many',
|
||||
//'relationship_role_column' => 'parent_type',
|
||||
//'relationship_role_column_value' => 'EcmPrivateDocuments',
|
||||
),
|
||||
),
|
||||
'optimistic_locking' => true,
|
||||
);
|
||||
if (!class_exists('VardefManager')) {
|
||||
require_once('include/SugarObjects/VardefManager.php');
|
||||
}
|
||||
VardefManager::createVardef('EcmWorkCosts', 'EcmWorkCost', array('default'));
|
||||
Reference in New Issue
Block a user