• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getTTProductEdition函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getTTProductEdition函数的典型用法代码示例。如果您正苦于以下问题:PHP getTTProductEdition函数的具体用法?PHP getTTProductEdition怎么用?PHP getTTProductEdition使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getTTProductEdition函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: _getFactoryOptions

 function _getFactoryOptions($name, $parent = NULL)
 {
     $retval = NULL;
     switch ($name) {
         case 'columns':
             $retval = array('-1100-type' => TTi18n::gettext('Type'), '-1110-status' => TTi18n::gettext('Status'), '-1210-time_stamp' => TTi18n::gettext('Date/Time'), '-1220-date' => TTi18n::gettext('Date'), '-1230-time' => TTi18n::gettext('Time'), '-1239-in_type' => TTi18n::gettext('In Type'), '-1240-in_time_stamp' => TTi18n::gettext('In Date/Time'), '-1250-in_punch_date' => TTi18n::gettext('In Date'), '-1260-in_punch_time' => TTi18n::gettext('In Time'), '-1269-out_type' => TTi18n::gettext('Out Type'), '-1270-out_time_stamp' => TTi18n::gettext('Out Date/Time'), '-1280-out_punch_date' => TTi18n::gettext('Out Date'), '-1290-out_punch_time' => TTi18n::gettext('Out Time'), '-1310-branch' => TTi18n::gettext('Branch'), '-1320-department' => TTi18n::gettext('Department'), '-1410-station_id' => TTi18n::gettext('Station ID'), '-1420-longitude' => TTi18n::gettext('Longitude'), '-1430-latitude' => TTi18n::gettext('Latitude'), '-1500-note' => TTi18n::gettext('Note'));
             //Since getOptions() can be called without first setting a company, we don't always know the product edition for the currently
             //logged in employee.
             if (is_object($this->getCompanyObject()) and $this->getCompanyObject()->getProductEdition() >= TT_PRODUCT_CORPORATE or !is_object($this->getCompanyObject()) and getTTProductEdition() >= TT_PRODUCT_CORPORATE) {
                 $retval += array('-1330-job' => TTi18n::gettext('Job'), '-1340-job_item' => TTi18n::gettext('Task'), '-1350-quantity' => TTi18n::gettext('Quantity'), '-1360-bad_quantity' => TTi18n::gettext('Bad Quantity'));
             }
             $retval = Misc::addSortPrefix(Misc::prependArray($this->getUserIdentificationColumns(), Misc::trimSortPrefix($retval)));
             ksort($retval);
             break;
         case 'column_aliases':
             //Used for converting column names after they have been parsed.
             $retval = array('type' => 'type_id', 'status' => 'status_id', 'branch' => 'branch_id', 'department' => 'department_id', 'job' => 'job_id', 'job_item' => 'job_item_id');
             break;
         case 'import_options':
             $retval = array('-1010-fuzzy_match' => TTi18n::getText('Enable smart matching.'), '-1020-disable_rounding' => TTi18n::getText('Disable rounding.'));
             break;
         case 'parse_hint':
             $upf = TTnew('UserPreferenceFactory');
             $retval = array('branch' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'department' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'job' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'job_item' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'time_stamp' => $upf->getOptions('date_time_format'), 'in_time_stamp' => $upf->getOptions('date_time_format'), 'out_time_stamp' => $upf->getOptions('date_time_format'), 'date' => $upf->getOptions('date_format'), 'in_punch_date' => $upf->getOptions('date_format'), 'out_punch_date' => $upf->getOptions('date_format'), 'time' => $upf->getOptions('time_format'), 'in_punch_time' => $upf->getOptions('time_format'), 'out_punch_time' => $upf->getOptions('time_format'));
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:28,代码来源:ImportPunch.class.php


示例2: _getFactoryOptions

 function _getFactoryOptions($name, $parent = NULL)
 {
     $retval = NULL;
     switch ($name) {
         case 'columns':
             global $current_company;
             $uf = TTNew('UserFactory');
             $retval = Misc::trimSortPrefix($uf->getOptions('columns'));
             $retval['-1025-password'] = TTi18n::getText('Password');
             $retval['-1026-phone_password'] = TTi18n::getText('Quick Punch Password');
             $retval['-1099-group'] = isset($retval['-1099-user_group']) ? $retval['-1099-user_group'] : NULL;
             unset($retval['-1099-user_group']);
             ksort($retval);
             //Since getOptions() can be called without first setting a company, we don't always know the product edition for the currently
             //logged in employee.
             if (is_object($this->getCompanyObject()) and $this->getCompanyObject()->getProductEdition() < TT_PRODUCT_CORPORATE or !is_object($this->getCompanyObject()) and getTTProductEdition() < TT_PRODUCT_CORPORATE) {
                 unset($retval['-1104-default_job'], $retval['-1105-default_job_item']);
             }
             if (is_object($current_company)) {
                 //Get custom fields for import data.
                 $oflf = TTnew('OtherFieldListFactory');
                 $other_field_names = $oflf->getByCompanyIdAndTypeIdArray($current_company->getID(), array(10), array(10 => ''));
                 if (is_array($other_field_names)) {
                     $retval = array_merge((array) $retval, (array) $other_field_names);
                 }
             }
             Debug::Arr($retval, 'ImportUserColumns: ', __FILE__, __LINE__, __METHOD__, 10);
             break;
         case 'column_aliases':
             //Used for converting column names after they have been parsed.
             $retval = array('status' => 'status_id', 'default_branch' => 'default_branch_id', 'default_department' => 'default_department_id', 'default_job' => 'default_job_id', 'default_job_item' => 'default_job_item_id', 'title' => 'title_id', 'user_group' => 'group_id', 'group' => 'group_id', 'sex' => 'sex_id', 'permission_control' => 'permission_control_id', 'pay_period_schedule' => 'pay_period_schedule_id', 'policy_group' => 'policy_group_id', 'hierarchy_control_display' => 'hierarchy_control');
             break;
         case 'import_options':
             $retval = array('-1010-fuzzy_match' => TTi18n::getText('Enable smart matching.'), '-1015-update' => TTi18n::getText('Update existing records based on UserName, Employee Number, or SIN/SSN.'), '-1040-create_group' => TTi18n::getText('Create groups that don\'t already exist.'), '-1050-create_title' => TTi18n::getText('Create titles that don\'t already exist.'));
             break;
         case 'parse_hint':
             $upf = TTnew('UserPreferenceFactory');
             $retval = array('default_branch' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'default_department' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'default_job' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'default_job_item' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'first_name' => array('-1010-first_name' => TTi18n::gettext('First Name'), '-1020-first_last_name' => TTi18n::gettext('FirstName LastName'), '-1030-last_first_name' => TTi18n::gettext('LastName, FirstName'), '-1040-last_first_middle_name' => TTi18n::gettext('LastName, FirstName MiddleInitial')), 'last_name' => array('-1010-last_name' => TTi18n::gettext('Last Name'), '-1020-first_last_name' => TTi18n::gettext('FirstName LastName'), '-1030-last_first_name' => TTi18n::gettext('LastName, FirstName'), '-1040-last_first_middle_name' => TTi18n::gettext('LastName, FirstName MiddleInitial')), 'middle_name' => array('-1010-middle_name' => TTi18n::gettext('Middle Name'), '-1040-last_first_middle_name' => TTi18n::gettext('LastName, FirstName MiddleInitial')), 'hire_date' => $upf->getOptions('date_format'), 'termination_date' => $upf->getOptions('date_format'), 'birth_date' => $upf->getOptions('date_format'));
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:42,代码来源:ImportUser.class.php


示例3: _getOptions

 protected function _getOptions($name, $params = NULL)
 {
     $retval = NULL;
     switch ($name) {
         case 'output_format':
             $retval = parent::getOptions('default_output_format');
             break;
         case 'default_setup_fields':
             $retval = array('template', 'time_period', 'columns');
             break;
         case 'setup_fields':
             $retval = array('-1000-template' => TTi18n::gettext('Template'), '-1010-time_period' => TTi18n::gettext('Time Period'), '-2010-user_status_id' => TTi18n::gettext('Employee Status'), '-2020-user_group_id' => TTi18n::gettext('Employee Group'), '-2030-user_title_id' => TTi18n::gettext('Employee Title'), '-2035-user_tag' => TTi18n::gettext('Employee Tags'), '-2040-include_user_id' => TTi18n::gettext('Employee Include'), '-2050-exclude_user_id' => TTi18n::gettext('Employee Exclude'), '-2060-default_branch_id' => TTi18n::gettext('Default Branch'), '-2070-default_department_id' => TTi18n::gettext('Default Department'), '-2080-schedule_branch_id' => TTi18n::gettext('Schedule Branch'), '-2090-schedule_department_id' => TTi18n::gettext('Schedule Department'), '-2100-custom_filter' => TTi18n::gettext('Custom Filter'), '-3000-status_id' => TTi18n::gettext('Schedule Status'), '-5000-columns' => TTi18n::gettext('Display Columns'), '-5010-group' => TTi18n::gettext('Group By'), '-5020-sub_total' => TTi18n::gettext('SubTotal By'), '-5030-sort' => TTi18n::gettext('Sort By'));
             break;
         case 'time_period':
             $retval = TTDate::getTimePeriodOptions();
             break;
         case 'date_columns':
             $retval = TTDate::getReportDateOptions(NULL, TTi18n::getText('Date'), 15, TRUE);
             break;
         case 'custom_columns':
             //Get custom fields for report data.
             $oflf = TTnew('OtherFieldListFactory');
             //User and Punch fields conflict as they are merged together in a secondary process.
             $other_field_names = $oflf->getByCompanyIdAndTypeIdArray($this->getUserObject()->getCompany(), array(10), array(10 => ''));
             if (is_array($other_field_names)) {
                 $retval = Misc::addSortPrefix($other_field_names, 9000);
             }
             break;
         case 'report_custom_column':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 // Because the Filter type is just only a filter criteria and not need to be as an option of Display Columns, Group By, Sub Total, Sort By dropdowns.
                 // So just get custom columns with Selection and Formula.
                 $custom_column_labels = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('display_column_type_ids'), NULL, 'ScheduleSummaryReport', 'custom_column');
                 if (is_array($custom_column_labels)) {
                     $retval = Misc::addSortPrefix($custom_column_labels, 9500);
                 }
             }
             break;
         case 'report_custom_filters':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 $retval = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('filter_column_type_ids'), NULL, 'ScheduleSummaryReport', 'custom_column');
             }
             break;
         case 'report_dynamic_custom_column':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 $report_dynamic_custom_column_labels = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('display_column_type_ids'), $rcclf->getOptions('dynamic_format_ids'), 'ScheduleSummaryReport', 'custom_column');
                 if (is_array($report_dynamic_custom_column_labels)) {
                     $retval = Misc::addSortPrefix($report_dynamic_custom_column_labels, 9700);
                 }
             }
             break;
         case 'report_static_custom_column':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 $report_static_custom_column_labels = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('display_column_type_ids'), $rcclf->getOptions('static_format_ids'), 'ScheduleSummaryReport', 'custom_column');
                 if (is_array($report_static_custom_column_labels)) {
                     $retval = Misc::addSortPrefix($report_static_custom_column_labels, 9700);
                 }
             }
             break;
         case 'formula_columns':
             $retval = TTMath::formatFormulaColumns(array_merge(array_diff($this->getOptions('static_columns'), (array) $this->getOptions('report_static_custom_column')), $this->getOptions('dynamic_columns')));
             break;
         case 'filter_columns':
             $retval = TTMath::formatFormulaColumns(array_merge($this->getOptions('static_columns'), $this->getOptions('dynamic_columns'), (array) $this->getOptions('report_dynamic_custom_column')));
             break;
         case 'static_columns':
             $retval = array('-1000-first_name' => TTi18n::gettext('First Name'), '-1001-middle_name' => TTi18n::gettext('Middle Name'), '-1002-last_name' => TTi18n::gettext('Last Name'), '-1005-full_name' => TTi18n::gettext('Full Name'), '-1030-employee_number' => TTi18n::gettext('Employee #'), '-1040-status' => TTi18n::gettext('Status'), '-1050-title' => TTi18n::gettext('Title'), '-1055-city' => TTi18n::gettext('City'), '-1060-province' => TTi18n::gettext('Province/State'), '-1070-country' => TTi18n::gettext('Country'), '-1080-user_group' => TTi18n::gettext('Group'), '-1090-default_branch' => TTi18n::gettext('Default Branch'), '-1100-default_department' => TTi18n::gettext('Default Department'), '-1110-currency' => TTi18n::gettext('Currency'), '-1200-permission_control' => TTi18n::gettext('Permission Group'), '-1210-pay_period_schedule' => TTi18n::gettext('Pay Period Schedule'), '-1220-policy_group' => TTi18n::gettext('Policy Group'), '-1290-note' => TTi18n::gettext('Employee Note'), '-1295-tag' => TTi18n::gettext('Tags'), '-1600-branch' => TTi18n::gettext('Branch'), '-1610-department' => TTi18n::gettext('Department'), '-1620-schedule_policy' => TTi18n::gettext('Schedule Policy'), '-1640-schedule_status' => TTi18n::gettext('Schedule Status'), '-1650-absence_policy' => TTi18n::gettext('Absence Policy'), '-1670-start_time' => TTi18n::gettext('Start Time'), '-1680-end_time' => TTi18n::gettext('End Time'), '-5000-schedule_note' => TTi18n::gettext('Note'));
             $retval = array_merge($retval, (array) $this->getOptions('date_columns'), (array) $this->getOptions('custom_columns'), (array) $this->getOptions('report_static_custom_column'));
             ksort($retval);
             break;
         case 'dynamic_columns':
             $retval = array('-2010-hourly_rate' => TTi18n::gettext('Hourly Rate'), '-2100-total_time' => TTi18n::gettext('Total Time'), '-2110-total_time_wage' => TTi18n::gettext('Total Time Wage'), '-2112-total_time_wage_burden' => TTi18n::gettext('Total Time Wage Burden'), '-2114-total_time_wage_with_burden' => TTi18n::gettext('Total Time Wage w/Burden'), '-4000-total_shift' => TTi18n::gettext('Total Shifts'));
             break;
         case 'columns':
             $retval = array_merge($this->getOptions('static_columns'), $this->getOptions('dynamic_columns'), (array) $this->getOptions('report_dynamic_custom_column'));
             break;
         case 'column_format':
             //Define formatting function for each column.
             $columns = $this->getOptions('columns');
             if (is_array($columns)) {
                 foreach ($columns as $column => $name) {
                     if (strpos($column, 'absence_policy')) {
                         //Ignore
                     } elseif (strpos($column, 'start_time') !== FALSE or strpos($column, 'end_time') !== FALSE) {
                         $retval[$column] = 'time';
                     } elseif (strpos($column, '_wage') !== FALSE or strpos($column, '_hourly_rate') !== FALSE or strpos($column, 'hourly_rate') !== FALSE) {
                         $retval[$column] = 'currency';
                     } elseif (strpos($column, '_time') or strpos($column, '_policy')) {
                         $retval[$column] = 'time_unit';
                     }
                 }
             }
             break;
         case 'aggregates':
             $retval = array();
             $dynamic_columns = array_keys(Misc::trimSortPrefix(array_merge($this->getOptions('dynamic_columns'), (array) $this->getOptions('report_dynamic_custom_column'))));
//.........这里部分代码省略.........
开发者ID:alachaum,项目名称:timetrex,代码行数:101,代码来源:ScheduleSummaryReport.class.php


示例4: addLogDetail


//.........这里部分代码省略.........
                 break;
             case 'ScheduleFactory':
             case 'ScheduleListFactory':
                 unset($diff_arr['recurring_schedule_template_control_id'], $diff_arr['replaced_id']);
                 break;
             case 'PunchFactory':
             case 'PunchListFactory':
                 unset($diff_arr['actual_time_stamp'], $diff_arr['original_time_stamp'], $diff_arr['punch_control_id'], $diff_arr['station_id'], $diff_arr['latitude'], $diff_arr['longitude']);
                 break;
             case 'PunchControlFactory':
             case 'PunchControlListFactory':
                 unset($diff_arr['actual_total_time']);
                 break;
             case 'PunchControlFactory':
             case 'PunchControlListFactory':
                 unset($diff_arr['overlap']);
                 break;
             case 'AccrualFactory':
             case 'AccrualListFactory':
                 unset($diff_arr['user_date_total_id']);
                 break;
             case 'JobItemFactory':
             case 'JobItemListFactory':
                 unset($diff_arr['type_id'], $diff_arr['department_id']);
                 break;
             case 'ClientContactFactory':
             case 'ClientContactListFactory':
                 unset($diff_arr['password'], $diff_arr['password_reset_key'], $diff_arr['password_reset_date']);
                 break;
             case 'UserReviewFactory':
             case 'UserReviewListFactory':
                 unset($diff_arr['user_review_control_id']);
                 break;
             case 'ClientPaymentFactory':
             case 'ClientPaymentListFactory':
                 if (getTTProductEdition() >= TT_PRODUCT_CORPORATE) {
                     //Only log secure values.
                     if (isset($diff_arr['cc_number'])) {
                         $old_data['cc_number'] = isset($old_data['cc_number']) ? $object->getSecureCreditCardNumber(Misc::decrypt($old_data['cc_number'])) : '';
                         $new_data['cc_number'] = isset($new_data['cc_number']) ? $object->getSecureCreditCardNumber(Misc::decrypt($new_data['cc_number'])) : '';
                     }
                     if (isset($diff_arr['bank_account'])) {
                         $old_data['bank_account'] = isset($old_data['bank_account']) ? $object->getSecureAccount($old_data['bank_account']) : '';
                         $new_data['bank_account'] = isset($old_data['bank_account']) ? $object->getSecureAccount($new_data['bank_account']) : '';
                     }
                     if (isset($diff_arr['cc_check'])) {
                         $old_data['cc_check'] = isset($old_data['cc_check']) ? $object->getSecureCreditCardCheck($old_data['cc_check']) : '';
                         $new_data['cc_check'] = isset($old_data['cc_check']) ? $object->getSecureCreditCardCheck($new_data['cc_check']) : '';
                     }
                 }
                 break;
             case 'JobApplicantFactory':
             case 'JobApplicantListFactory':
                 unset($diff_arr['password'], $diff_arr['password_reset_key'], $diff_arr['password_reset_date'], $diff_arr['first_name_metaphone'], $diff_arr['last_name_metaphone']);
                 break;
         }
         //Ignore specific columns here, like updated_date, updated_by, etc...
         unset($diff_arr['id'], $diff_arr['company_id'], $diff_arr['user_date_id'], $diff_arr['name_metaphone'], $diff_arr['created_date'], $diff_arr['created_by'], $diff_arr['created_by_id'], $diff_arr['updated_date'], $diff_arr['updated_by'], $diff_arr['updated_by_id'], $diff_arr['deleted_date'], $diff_arr['deleted_by'], $diff_arr['deleted_by_id'], $diff_arr['deleted']);
         //Debug::Arr($diff_arr, 'Array Diff: ', __FILE__, __LINE__, __METHOD__, 10);
         if (is_array($diff_arr) and count($diff_arr) > 0) {
             foreach ($diff_arr as $field => $value) {
                 $old_value = NULL;
                 if (isset($old_data[$field])) {
                     $old_value = $old_data[$field];
                     if (is_bool($old_value) and $old_value === FALSE) {
                         $old_value = NULL;
                     } elseif (is_array($old_value)) {
                         //$old_value = serialize($old_value);
                         //If the old value is an array, replace it with NULL because it will always match the NEW value too.
                         $old_value = NULL;
                     }
                 }
                 $new_value = $new_data[$field];
                 if (is_bool($new_value) and $new_value === FALSE) {
                     $new_value = NULL;
                 } elseif (is_array($new_value)) {
                     $new_value = serialize($new_value);
                 }
                 //Debug::Text('Old Value: '. $old_value .' New Value: '. $new_value, __FILE__, __LINE__, __METHOD__, 10);
                 if (!($old_value == '' and $new_value == '')) {
                     $ph[] = (int) $system_log_id;
                     $ph[] = $field;
                     $ph[] = $new_value;
                     $ph[] = $old_value;
                     $data[] = '(?,?,?,?)';
                 }
             }
             if (isset($data)) {
                 //Save data in a single SQL query.
                 $query = 'INSERT INTO ' . $this->getTable() . '(SYSTEM_LOG_ID,FIELD,NEW_VALUE,OLD_VALUE) VALUES' . implode(',', $data);
                 //Debug::Text('Query: '. $query, __FILE__, __LINE__, __METHOD__, 10);
                 $this->db->Execute($query, $ph);
                 Debug::Text('Logged detail records in: ' . (microtime(TRUE) - $start_time), __FILE__, __LINE__, __METHOD__, 10);
                 return TRUE;
             }
         }
     }
     Debug::Text('Not logging detail records, likely no data changed in: ' . (microtime(TRUE) - $start_time) . 's', __FILE__, __LINE__, __METHOD__, 10);
     return FALSE;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:101,代码来源:LogDetailFactory.class.php


示例5: _getOptions

 protected function _getOptions($name, $params = NULL)
 {
     $retval = NULL;
     switch ($name) {
         case 'output_format':
             $retval = array_merge(parent::getOptions('default_output_format'), array('-1100-pdf_form' => TTi18n::gettext('Form'), '-1120-efile_xml' => TTi18n::gettext('eFile')));
             break;
         case 'default_setup_fields':
             $retval = array('template', 'time_period', 'columns');
             break;
         case 'setup_fields':
             $retval = array('-1000-template' => TTi18n::gettext('Template'), '-1010-time_period' => TTi18n::gettext('Time Period'), '-2010-user_status_id' => TTi18n::gettext('Employee Status'), '-2020-user_group_id' => TTi18n::gettext('Employee Group'), '-2030-user_title_id' => TTi18n::gettext('Employee Title'), '-2040-include_user_id' => TTi18n::gettext('Employee Include'), '-2050-exclude_user_id' => TTi18n::gettext('Employee Exclude'), '-2060-default_branch_id' => TTi18n::gettext('Default Branch'), '-2070-default_department_id' => TTi18n::gettext('Default Department'), '-2080-code_id' => TTi18n::gettext('Reason'), '-2090-pay_period_type_id' => TTi18n::gettext('Pay Period Type'), '-3000-custom_filter' => TTi18n::gettext('Custom Filter'), '-5000-columns' => TTi18n::gettext('Display Columns'), '-5010-group' => TTi18n::gettext('Group By'), '-5020-sub_total' => TTi18n::gettext('SubTotal By'), '-5030-sort' => TTi18n::gettext('Sort By'));
             break;
         case 'time_period':
             $retval = TTDate::getTimePeriodOptions();
             break;
         case 'date_columns':
             $retval = array_merge(TTDate::getReportDateOptions('first', TTi18n::gettext('First Day Worked(Or first day since last ROE)'), 16, FALSE), TTDate::getReportDateOptions('last', TTi18n::gettext('Last Day For Which Paid'), 16, FALSE), TTDate::getReportDateOptions('pay_period_end', TTi18n::gettext('Final Pay Period Ending Date'), 17, FALSE), TTDate::getReportDateOptions('recall', TTi18n::gettext('Expected Date of Recall'), 17, FALSE));
             $retval = array();
             break;
         case 'report_custom_column':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 // Because the Filter type is just only a filter criteria and not need to be as an option of Display Columns, Group By, Sub Total, Sort By dropdowns.
                 // So just get custom columns with Selection and Formula.
                 $custom_column_labels = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('display_column_type_ids'), NULL, 'ROEReport', 'custom_column');
                 if (is_array($custom_column_labels)) {
                     $retval = Misc::addSortPrefix($custom_column_labels, 9500);
                 }
             }
             break;
         case 'report_custom_filters':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 $retval = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('filter_column_type_ids'), NULL, 'ROEReport', 'custom_column');
             }
             break;
         case 'report_dynamic_custom_column':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 $report_dynamic_custom_column_labels = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('display_column_type_ids'), $rcclf->getOptions('dynamic_format_ids'), 'ROEReport', 'custom_column');
                 if (is_array($report_dynamic_custom_column_labels)) {
                     $retval = Misc::addSortPrefix($report_dynamic_custom_column_labels, 9700);
                 }
             }
             break;
         case 'report_static_custom_column':
             if (getTTProductEdition() >= TT_PRODUCT_PROFESSIONAL) {
                 $rcclf = TTnew('ReportCustomColumnListFactory');
                 $report_static_custom_column_labels = $rcclf->getByCompanyIdAndTypeIdAndFormatIdAndScriptArray($this->getUserObject()->getCompany(), $rcclf->getOptions('display_column_type_ids'), $rcclf->getOptions('static_format_ids'), 'ROEReport', 'custom_column');
                 if (is_array($report_static_custom_column_labels)) {
                     $retval = Misc::addSortPrefix($report_static_custom_column_labels, 9700);
                 }
             }
             break;
         case 'formula_columns':
             $retval = TTMath::formatFormulaColumns(array_merge(array_diff($this->getOptions('static_columns'), (array) $this->getOptions('report_static_custom_column')), $this->getOptions('dynamic_columns')));
             break;
         case 'filter_columns':
             $retval = TTMath::formatFormulaColumns(array_merge($this->getOptions('static_columns'), $this->getOptions('dynamic_columns'), (array) $this->getOptions('report_dynamic_custom_column')));
             break;
         case 'static_columns':
             $retval = array('-1000-first_name' => TTi18n::gettext('First Name'), '-1001-middle_name' => TTi18n::gettext('Middle Name'), '-1002-last_name' => TTi18n::gettext('Last Name'), '-1005-full_name' => TTi18n::gettext('Full Name'), '-1030-employee_number' => TTi18n::gettext('Employee #'), '-1035-sin' => TTi18n::gettext('SIN/SSN'), '-1040-status' => TTi18n::gettext('Status'), '-1050-title' => TTi18n::gettext('Title'), '-1060-province' => TTi18n::gettext('Province/State'), '-1070-country' => TTi18n::gettext('Country'), '-1080-group' => TTi18n::gettext('Group'), '-1090-default_branch' => TTi18n::gettext('Default Branch'), '-1100-default_department' => TTi18n::gettext('Default Department'), '-1110-currency' => TTi18n::gettext('Currency'), '-1120-code' => TTi18n::gettext('Reason'), '-1130-pay_period_type' => TTi18n::gettext('Pay Period Type'), '-1180-serial' => TTi18n::gettext('Serial No'), '-1190-comments' => TTi18n::gettext('Comments'), '-1400-permission_control' => TTi18n::gettext('Permission Group'), '-1410-pay_period_schedule' => TTi18n::gettext('Pay Period Schedule'), '-1420-policy_group' => TTi18n::gettext('Policy Group'));
             $retval = array_merge($retval, $this->getOptions('date_columns'), (array) $this->getOptions('report_static_custom_column'));
             ksort($retval);
             break;
         case 'dynamic_columns':
             $retval = array('-2100-insurable_earnings' => TTi18n::gettext('Insurable Earnings (Box 15B)'), '-2110-vacation_pay' => TTi18n::gettext('Vacation Pay (Box 17A)'));
             break;
         case 'columns':
             $retval = array_merge($this->getOptions('static_columns'), $this->getOptions('dynamic_columns'), (array) $this->getOptions('report_dynamic_custom_column'));
             break;
         case 'column_format':
             //Define formatting function for each column.
             $columns = array_merge($this->getOptions('dynamic_columns'), (array) $this->getOptions('report_custom_column'));
             if (is_array($columns)) {
                 foreach ($columns as $column => $name) {
                     $retval[$column] = 'numeric';
                 }
             }
             break;
         case 'aggregates':
             $retval = array();
             $dynamic_columns = array_keys(Misc::trimSortPrefix(array_merge($this->getOptions('dynamic_columns'), (array) $this->getOptions('report_dynamic_custom_column'))));
             if (is_array($dynamic_columns)) {
                 foreach ($dynamic_columns as $column) {
                     switch ($column) {
                         default:
                             $retval[$column] = 'sum';
                     }
                 }
             }
             break;
         case 'type':
             $retval = array('-1010-O' => TTi18n::getText('Original'), '-1020-A' => TTi18n::getText('Amended'), '-1030-C' => TTi18n::getText('Cancel'));
             break;
         case 'templates':
             $retval = array('-1020-by_employee' => TTi18n::gettext('by Employee'), '-1030-by_branch' => TTi18n::gettext('by Branch'), '-1040-by_department' => TTi18n::gettext('by Department'), '-1050-by_branch_by_department' => TTi18n::gettext('by Branch/Department'));
             break;
         case 'template_config':
//.........这里部分代码省略.........
开发者ID:alachaum,项目名称:timetrex,代码行数:101,代码来源:ROEReport.class.php


示例6: getTTProductEditionName

function getTTProductEditionName()
{
    switch (getTTProductEdition()) {
        case 15:
            $retval = 'Business';
            break;
        case 20:
            $retval = 'Professional';
            break;
        default:
            $retval = 'Standard';
            break;
    }
    return $retval;
}
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:15,代码来源:global.inc.php


示例7: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'preset':
             $retval = array(10 => TTi18n::gettext('Regular Employee (Punch In/Out)'), 12 => TTi18n::gettext('Regular Employee (Manual Entry)'), 18 => TTi18n::gettext('Supervisor (Subordinates Only)'), 20 => TTi18n::gettext('Supervisor (All Employees)'), 25 => TTi18n::gettext('HR Manager'), 30 => TTi18n::gettext('Payroll Administrator'), 40 => TTi18n::gettext('Administrator'));
             break;
         case 'common_permissions':
             $retval = array('add' => TTi18n::gettext('Add'), 'view' => TTi18n::gettext('View'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'delete' => TTi18n::gettext('Delete'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'other' => TTi18n::gettext('Other'));
             if (defined('TIMETREX_API') == TRUE and TIMETREX_API == TRUE) {
                 $retval = Misc::addSortPrefix($retval, 1000);
             }
             break;
         case 'preset_flags':
             if (getTTProductEdition() >= TT_PRODUCT_COMMUNITY) {
                 $retval[10] = TTi18n::gettext('Scheduling');
                 $retval[20] = TTi18n::gettext('Time & Attendance');
                 $retval[30] = TTi18n::gettext('Payroll');
                 $retval[70] = TTi18n::gettext('Human Resources');
             }
             if (getTTProductEdition() >= TT_PRODUCT_CORPORATE) {
                 $retval[40] = TTi18n::gettext('Job Costing');
                 $retval[50] = TTi18n::gettext('Document Management');
                 $retval[60] = TTi18n::gettext('Invoicing');
             }
             if (getTTProductEdition() >= TT_PRODUCT_ENTERPRISE) {
                 $retval[75] = TTi18n::gettext('Recruitment');
                 $retval[80] = TTi18n::gettext('Expense Tracking');
             }
             ksort($retval);
             break;
         case 'preset_level':
             $retval = array(10 => 1, 12 => 2, 18 => 10, 20 => 15, 25 => 18, 30 => 20, 40 => 25);
             break;
         case 'section_group':
             $retval = array(0 => TTi18n::gettext('-- Please Choose --'), 'all' => TTi18n::gettext('-- All --'), 'company' => TTi18n::gettext('Company'), 'user' => TTi18n::gettext('Employee'), 'schedule' => TTi18n::gettext('Schedule'), 'attendance' => TTi18n::gettext('Attendance'), 'job' => TTi18n::gettext('Job Tracking'), 'invoice' => TTi18n::gettext('Invoicing'), 'payroll' => TTi18n::gettext('Payroll'), 'policy' => TTi18n::gettext('Policies'), 'report' => TTi18n::gettext('Reports'), 'hr' => TTi18n::gettext('Human Resources (HR)'), 'recruitment' => TTi18n::gettext('Recruitment'));
             //Remove sections that don't apply to the current product edition.
             global $current_company;
             if (is_object($current_company)) {
                 $product_edition = $current_company->getProductEdition();
             } else {
                 $product_edition = getTTProductEdition();
             }
             if ($product_edition == TT_PRODUCT_ENTERPRISE) {
                 //Enterprise
             } elseif ($product_edition == TT_PRODUCT_CORPORATE) {
                 //Corporate
                 unset($retval['recruitment']);
             } elseif ($product_edition == TT_PRODUCT_COMMUNITY or $product_edition == TT_PRODUCT_PROFESSIONAL) {
                 //Community or Professional
                 unset($retval['job'], $retval['invoice'], $retval['recruitment']);
             }
             if (defined('TIMETREX_API') == TRUE and TIMETREX_API == TRUE) {
                 unset($retval[0]);
                 $retval = Misc::addSortPrefix($retval, 1000);
                 ksort($retval);
             }
             break;
         case 'section_group_map':
             $retval = array('company' => array('system', 'company', 'currency', 'branch', 'department', 'station', 'hierarchy', 'authorization', 'message', 'other_field', 'document', 'help', 'permission', 'pay_period_schedule'), 'user' => array('user', 'user_preference', 'user_tax_deduction', 'user_contact'), 'schedule' => array('schedule', 'recurring_schedule', 'recurring_schedule_template'), 'attendance' => array('punch', 'absence', 'accrual', 'request'), 'job' => array('job', 'job_item', 'job_report'), 'invoice' => array('invoice_config', 'client', 'client_payment', 'product', 'tax_policy', 'area_policy', 'shipping_policy', 'payment_gateway', 'transaction', 'invoice', 'invoice_report'), 'policy' => array('policy_group', 'schedule_policy', 'meal_policy', 'break_policy', 'over_time_policy', 'premium_policy', 'accrual_policy', 'absence_policy', 'round_policy', 'exception_policy', 'holiday_policy', 'expense_policy'), 'payroll' => array('pay_stub_account', 'pay_stub', 'pay_stub_amendment', 'wage', 'roe', 'company_tax_deduction', 'user_expense'), 'report' => array('report', 'report_custom_column'), 'hr' => array('qualification', 'user_education', 'user_license', 'user_skill', 'user_membership', 'user_language', 'kpi', 'user_review', 'job_vacancy', 'job_applicant', 'job_application', 'hr_report'), 'recruitment' => array('job_vacancy', 'job_applicant', 'job_application', 'recruitment_report'));
             //Remove sections that don't apply to the current product edition.
             global $current_company;
             if (is_object($current_company)) {
                 $product_edition = $current_company->getProductEdition();
             } else {
                 $product_edition = getTTProductEdition();
             }
             if ($product_edition == TT_PRODUCT_ENTERPRISE) {
                 //Enterprise
             } elseif ($product_edition == TT_PRODUCT_CORPORATE) {
                 //Corporate
                 unset($retval['recruitment']);
                 unset($retval['payroll'][array_search('user_expense', $retval['payroll'])], $retval['policy'][array_search('expense_policy', $retval['policy'])]);
             } elseif ($product_edition == TT_PRODUCT_COMMUNITY or $product_edition == TT_PRODUCT_PROFESSIONAL) {
                 //Community or Professional
                 unset($retval['recruitment'], $retval['invoice'], $retval['job']);
                 unset($retval['payroll'][array_search('user_expense', $retval['payroll'])], $retval['policy'][array_search('expense_policy', $retval['policy'])]);
             }
             break;
         case 'section':
             $retval = array('system' => TTi18n::gettext('System'), 'company' => TTi18n::gettext('Company'), 'currency' => TTi18n::gettext('Currency'), 'branch' => TTi18n::gettext('Branch'), 'department' => TTi18n::gettext('Department'), 'station' => TTi18n::gettext('Station'), 'hierarchy' => TTi18n::gettext('Hierarchy'), 'authorization' => TTi18n::gettext('Authorization'), 'other_field' => TTi18n::gettext('Other Fields'), 'document' => TTi18n::gettext('Documents'), 'message' => TTi18n::gettext('Message'), 'help' => TTi18n::gettext('Help'), 'permission' => TTi18n::gettext('Permissions'), 'user' => TTi18n::gettext('Employees'), 'user_preference' => TTi18n::gettext('Employee Preferences'), 'user_tax_deduction' => TTi18n::gettext('Employee Tax / Deductions'), 'user_contact' => TTi18n::gettext('Employee Contact'), 'schedule' => TTi18n::gettext('Schedule'), 'recurring_schedule' => TTi18n::gettext('Recurring Schedule'), 'recurring_schedule_template' => TTi18n::gettext('Recurring Schedule Template'), 'request' => TTi18n::gettext('Requests'), 'accrual' => TTi18n::gettext('Accruals'), 'punch' => TTi18n::gettext('Punch'), 'absence' => TTi18n::gettext('Absence'), 'job' => TTi18n::gettext('Jobs'), 'job_item' => TTi18n::gettext('Job Tasks'), 'job_report' => TTi18n::gettext('Job Reports'), 'invoice_config' => TTi18n::gettext('Invoice Settings'), 'client' => TTi18n::gettext('Invoice Clients'), 'client_payment' => TTi18n::gettext('Client Payment Methods'), 'product' => TTi18n::gettext('Products'), 'tax_policy' => TTi18n::gettext('Tax Policies'), 'shipping_policy' => TTi18n::gettext('Shipping Policies'), 'area_policy' => TTi18n::gettext('Area Policies'), 'payment_gateway' => TTi18n::gettext('Payment Gateway'), 'transaction' => TTi18n::gettext('Invoice Transactions'), 'invoice' => TTi18n::gettext('Invoices'), 'invoice_report' => TTi18n::gettext('Invoice Reports'), 'policy_group' => TTi18n::gettext('Policy Group'), 'schedule_policy' => TTi18n::gettext('Schedule Policies'), 'meal_policy' => TTi18n::gettext('Meal Policies'), 'break_policy' => TTi18n::gettext('Break Policies'), 'over_time_policy' => TTi18n::gettext('Overtime Policies'), 'premium_policy' => TTi18n::gettext('Premium Policies'), 'accrual_policy' => TTi18n::gettext('Accrual Policies'), 'absence_policy' => TTi18n::gettext('Absence Policies'), 'round_policy' => TTi18n::gettext('Rounding Policies'), 'exception_policy' => TTi18n::gettext('Exception Policies'), 'holiday_policy' => TTi18n::gettext('Holiday Policies'), 'expense_policy' => TTi18n::gettext('Expense Policies'), 'pay_stub_account' => TTi18n::gettext('Pay Stub Accounts'), 'pay_stub' => TTi18n::gettext('Employee Pay Stubs'), 'pay_stub_amendment' => TTi18n::gettext('Employee Pay Stub Amendments'), 'wage' => TTi18n::gettext('Wages'), 'pay_period_schedule' => TTi18n::gettext('Pay Period Schedule'), 'roe' => TTi18n::gettext('Record of Employment'), 'company_tax_deduction' => TTi18n::gettext('Company Tax / Deductions'), 'user_expense' => TTi18n::gettext('Employee Expenses'), 'report' => TTi18n::gettext('Reports'), 'report_custom_column' => TTi18n::gettext('Report Custom Column'), 'qualification' => TTi18n::gettext('Qualifications'), 'user_education' => TTi18n::gettext('Employee Education'), 'user_license' => TTi18n::gettext('Employee Licenses'), 'user_skill' => TTi18n::gettext('Employee Skills'), 'user_membership' => TTi18n::gettext('Employee Memberships'), 'user_language' => TTi18n::gettext('Employee Language'), 'kpi' => TTi18n::gettext('Key Performance Indicators'), 'user_review' => TTi18n::gettext('Employee Review'), 'job_vacancy' => TTi18n::gettext('Job Vacancy'), 'job_applicant' => TTi18n::gettext('Job Applicant'), 'job_application' => TTi18n::gettext('Job Application'), 'hr_report' => TTi18n::gettext('HR Reports'), 'recruitment_report' => TTi18n::gettext('Recruitment Reports'));
             break;
         case 'name':
             $retval = array('system' => array('login' => TTi18n::gettext('Login Enabled')), 'company' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete'), 'edit_own_bank' => TTi18n::gettext('Edit Own Banking Information'), 'login_other_user' => TTi18n::gettext('Login as Other Employee')), 'user' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'edit_advanced' => TTi18n::gettext('Edit Advanced'), 'edit_own_bank' => TTi18n::gettext('Edit Own Bank Info'), 'edit_child_bank' => TTi18n::gettext('Edit Subordinate Bank Info'), 'edit_bank' => TTi18n::gettext('Edit Bank Info'), 'edit_permission_group' => TTi18n::gettext('Edit Permission Group'), 'edit_pay_period_schedule' => TTi18n::gettext('Edit Pay Period Schedule'), 'edit_policy_group' => TTi18n::gettext('Edit Policy Group'), 'edit_hierarchy' => TTi18n::gettext('Edit Hierarchy'), 'edit_own_password' => TTi18n::gettext('Edit Own Password'), 'edit_own_phone_password' => TTi18n::gettext('Edit Own Quick Punch Password'), 'enroll' => TTi18n::gettext('Enroll Employees'), 'enroll_child' => TTi18n::gettext('Enroll Subordinate'), 'timeclock_admin' => TTi18n::gettext('TimeClock Administrator'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete'), 'view_sin' => TTi18n::gettext('View SIN/SSN')), 'user_contact' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete')), 'user_preference' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete')), 'user_tax_deduction' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete')), 'roe' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete')), 'company_tax_deduction' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete')), 'user_expense' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'authorize' => TTi18n::gettext('Authorize Expense')), 'pay_stub_account' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete')), 'pay_stub' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete')), 'pay_stub_amendment' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete')), 'wage' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete')), 'currency' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete')), 'branch' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete')), 'department' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete'), 'assign' => TTi18n::gettext('Assign Employees')), 'station' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete'), 'assign' => TTi18n::gettext('Assign Employees')), 'pay_period_schedule' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete'), 'assign' => TTi18n::gettext('Assign Employees')), 'schedule' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view_child' => TTi18n::gettext('View Subordinate'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit_child' => TTi18n::gettext('Edit Subordinate'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete_child' => TTi18n::gettext('Delete Subordinate'), 'delete' => TTi18n::gettext('Delete'), 'edit_branch' => TTi18n::gettext('Edit Branch Field'), 'edit_department' => TTi18n::gettext('Edit Department Field'), 'edit_job' => TTi18n::gettext('Edit Job Field'), 'edit_job_item' => TTi18n::gettext('Edit Task Field')), 'other_field' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n::gettext('View Own'), 'view' => TTi18n::gettext('View'), 'add' => TTi18n::gettext('Add'), 'edit_own' => TTi18n::gettext('Edit Own'), 'edit' => TTi18n::gettext('Edit'), 'delete_own' => TTi18n::gettext('Delete Own'), 'delete' => TTi18n::gettext('Delete')), 'document' => array('enabled' => TTi18n::gettext('Enabled'), 'view_own' => TTi18n 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getTVDisplayFormat函数代码示例发布时间:2022-05-15
下一篇:
PHP getSystemYearArr函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap