1 line
9.9 KiB
JavaScript
1 line
9.9 KiB
JavaScript
|
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["reports-affordable_care-AffordableCareReportViewController"],{1466:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"AffordableCareReportViewController\": () => (/* binding */ AffordableCareReportViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass AffordableCareReportViewController extends ReportBaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\teligible_time_contributing_pay_code_array: null\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinitReport( options ) {\n\t\tthis.script_name = 'AffordableCareReport';\n\t\tthis.viewId = 'AffordableCareReport';\n\t\tthis.context_menu_name = $.i18n._( 'Affordable Care' );\n\t\tthis.navigation_label = $.i18n._( 'Saved Report' );\n\t\tthis.view_file = 'AffordableCareReportView.html';\n\t\tthis.api = TTAPI.APIAffordableCareReport;\n\t\tthis.include_form_setup = true;\n\t}\n\n\tinitOptions( callBack ) {\n\t\tvar $this = this;\n\t\tvar options = [\n\t\t\t{ option_name: 'page_orientation' },\n\t\t\t{ option_name: 'font_size' },\n\t\t\t{ option_name: 'chart_display_mode' },\n\t\t\t{ option_name: 'chart_type' },\n\t\t\t{ option_name: 'templates' },\n\t\t\t{ option_name: 'setup_fields' },\n\t\t\t{ option_name: 'eligible_time_contributing_pay_code' },\n\t\t\t{ option_name: 'auto_refresh' }\n\t\t];\n\n\t\tthis.initDropDownOptions( options, function( result ) {\n\n\t\t\tcallBack( result ); // First to initialize drop down options, and then to initialize edit view UI.\n\n\t\t} );\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\tgroups: {\n\t\t\t\tform: {\n\t\t\t\t\tlabel: $.i18n._( 'Form' ),\n\t\t\t\t\tid: this.viewId + 'Form'\n\t\t\t\t}\n\t\t\t},\n\t\t\texclude: [],\n\t\t\tinclude: [\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Form' ),\n\t\t\t\t\tid: 'view_print',\n\t\t\t\t\taction_group_header: true,\n\t\t\t\t\taction_group: 'view_form',\n\t\t\t\t\tgroup: 'form',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\ticon: 'view-35x35.png',\n\t\t\t\t\ttype: 2\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\taction_group: 'view_form',\n\t\t\t\t\tgroup: 'form',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\t}\n\t\t\t]\n\t\t};\n\n\t\treturn context_menu_model;\n\t}\n\n\tbuildFormSetupUI() {\n\n\t\tvar $this = this;\n\n\t\tvar tab3 = this.edit_view_tab.find( '#tab_form_setup' );\n\n\t\tvar tab3_column1 = tab3.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[3] = [];\n\n\t\tthis.edit_view_tabs[3].push( tab3_column1 );\n\n\t\t//Eligible Time Contributing Pay Code\n\t\tvar form_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\tform_item_input = form_item_input.AComboBox( {\n\t\t\tfield: 'eligible_time_contributing_pay_code',\n\t\t\tset_empty: true,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_option_column',\n\t\t\tkey: 'value'\n\t\t} );\n\n\t\tform_item_input.setSourceData( $this.eligible_time_contributing_pay_code_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Eligible Time Contributing Pay Code Policy' ), form_item_input, tab3_column1, 'first_last' );\n\t}\n\n\tgetFormSetupData() {\n\t\tvar other = {};\n\t\tother.eligible_time_contributing_pay_code = this.current_edit_record.eligible_time_contributing_pay_code;\n\n\t\treturn other;\n\t}\n\n\tsetFormSetupData( res_Data ) {\n\n\t\tif ( !res_Data ) {\n\t\t\tthis.show_empty_message = true;\n\t\t}\n\n\t\tif ( res_Data ) {\n\n\t\t\tif ( res_Data.eligible_time_contributing_pay_code ) {\n\t\t\t\tthis.edit_view_ui_dic.eligible_time_contributing_pay_code.setValue( res_Data.eligible_time_contributing_pay_code );\n\n\t\t\t\tthis.current_edit_record.eligible_time_contributing_pay_code = res_Data.eligible_time_contributing_pay_code;\n\t\t\t}\n\n\t\t}
|