TimeTrex/interface/html5/dist/employees-roe-ROEViewController.bundle.js

1 line
91 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["employees-roe-ROEViewController"],{8967:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ROEViewController\": () => (/* binding */ ROEViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass ROEViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#roe_view_container', //Must set el here and can only set string, so events can work\n\t\t\tuser_api: null,\n\t\t\tcompany_api: null,\n\t\t\tpay_period_schedule_api: null,\n\t\t\tuser_status_array: null,\n\t\t\tstatus_array: null,\n\t\t\tcode_array: null,\n\t\t\ttype_array: null,\n\t\t\tuser_termination_status_array: null,\n\n\t\t\tuser_generic_data_api: null,\n\n\t\t\tform_setup_item: null,\n\n\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\n\t\t//this._super('initialize', options );\n\t\tthis.permission_id = 'roe';\n\t\tthis.viewId = 'ROE';\n\t\tthis.edit_view_tpl = 'ROEEditView.html';\n\t\tthis.script_name = 'ROEView';\n\t\tthis.table_name_key = 'roe';\n\t\tthis.context_menu_name = $.i18n._( 'Record Of Employment' );\n\t\tthis.navigation_label = $.i18n._( 'Record Of Employment' );\n\t\tthis.api = TTAPI.APIROE;\n\t\tthis.report_api = TTAPI.APIROEReport;\n\t\tthis.user_api = TTAPI.APIUser;\n\t\tthis.company_api = TTAPI.APICompany;\n\t\tthis.pay_period_schedule_api = TTAPI.APIPayPeriodSchedule;\n\t\tthis.user_generic_data_api = TTAPI.APIUserGenericData;\n\n\t\tthis.render();\n\t\tthis.buildContextMenu();\n\t\tthis.initData();\n\t}\n\n\tinitOptions() {\n\t\tvar $this = this;\n\t\tvar options = [\n\t\t\t{ option_name: 'status', api: this.api },\n\t\t\t{ option_name: 'user_status', api: this.api },\n\t\t\t{ option_name: 'user_termination_status', api: this.api },\n\t\t\t{ option_name: 'code', api: this.api },\n\t\t\t{ option_name: 'type', field_name: 'pay_period_type_id', api: this.pay_period_schedule_api },\n\t\t];\n\n\t\tthis.initDropDownOptions( options, () => {\n\t\t\tif ( $this.type_array ) {\n\t\t\t\t$this.type_array.shift();\n\t\t\t}\n\t\t} );\n\t}\n\n\tgetFilterColumnsFromDisplayColumns() {\n\t\tvar column_filter = {};\n\t\tcolumn_filter.user_id = true;\n\n\t\treturn this._getFilterColumnsFromDisplayColumns( column_filter, true );\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\texclude: ['view'],\n\t\t\tinclude: [\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Form' ),\n\t\t\t\t\tid: 'form_header',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\taction_group: 'form',\n\t\t\t\t\taction_group_header: true,\n\t\t\t\t\tpermission_result: false // to hide it in legacy context menu and avoid errors in legacy parsers.\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'View' ),\n\t\t\t\t\tid: 'view_roe', //Don't bother with constant here, as its only used once.\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\taction_group: 'form',\n\t\t\t\t\tshow_on_right_click: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'eFile' ),\n\t\t\t\t\tid: 'e_file',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\taction_group: 'form',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Save Setup' ),\n\t\t\t\t\tid: 'save_setup',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\taction_group: 'form',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Jump To' ),\n\t\t\t\t\tid: 'jump_to_header',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\taction_group: 'jump_to',\n\t\t\t\t\taction_group_header: true,\n\t\t\t\t\tpermission_result: false // to hide it in legacy context menu and avoid errors in legacy parsers.\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Pay Stubs' ),\n\t\t\t\t\tid: 'pay_stub',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\taction_group: 'jump_to',\n\t\t\t\t\tgroup: 'navigation',\n\t\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Edit Employee