TimeTrex/interface/html5/dist/policy-regular_time_policy-RegularTimePolicyViewController.bundle.js

1 line
67 KiB
JavaScript

"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["policy-regular_time_policy-RegularTimePolicyViewController"],{3247:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"RegularTimePolicyViewController\": () => (/* binding */ RegularTimePolicyViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass RegularTimePolicyViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#regular_time_policy_view_container',\n\n\t\t\ttype_array: null,\n\n\t\t\tbranch_selection_type_array: null,\n\t\t\tdepartment_selection_type_array: null,\n\n\t\t\tjob_group_selection_type_array: null,\n\t\t\tjob_selection_type_array: null,\n\n\t\t\tjob_group_array: null,\n\t\t\tjob_item_group_array: null,\n\t\t\tpunch_tag_group_array: null,\n\n\t\t\tjob_item_group_selection_type_array: null,\n\t\t\tjob_item_selection_type_array: null,\n\n\t\t\tpunch_tag_group_selection_type_array: null,\n\t\t\tpunch_tag_selection_type_array: null,\n\n\t\t\tjob_group_api: null,\n\t\t\tjob_item_group_api: null,\n\t\t\tpunch_tag_group_api: null,\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\t\t//this._super('initialize', options );\n\t\tthis.edit_view_tpl = 'RegularTimePolicyEditView.html';\n\t\tthis.permission_id = 'regular_time_policy';\n\t\tthis.viewId = 'RegularTimePolicy';\n\t\tthis.script_name = 'RegularTimePolicyView';\n\t\tthis.table_name_key = 'regular_time_policy';\n\t\tthis.context_menu_name = $.i18n._( 'Regular Time Policy' );\n\t\tthis.navigation_label = $.i18n._( 'Regular Time Policy' );\n\t\tthis.api = TTAPI.APIRegularTimePolicy;\n\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\t\t\tthis.job_group_api = TTAPI.APIJobGroup;\n\t\t\tthis.job_item_group_api = TTAPI.APIJobItemGroup;\n\t\t\tthis.punch_tag_group_api = TTAPI.APIPunchTagGroup;\n\t\t}\n\n\t\tthis.render();\n\t\tthis.buildContextMenu();\n\n\t\tthis.initData();\n\t}\n\n\tinitOptions() {\n\t\tvar $this = this;\n\n\t\tvar options = [\n\t\t\t{ option_name: 'type', api: this.api },\n\t\t\t{ option_name: 'branch_selection_type', api: this.api },\n\t\t\t{ option_name: 'department_selection_type', api: this.api },\n\t\t\t{ option_name: 'job_group_selection_type', api: this.api },\n\t\t\t{ option_name: 'job_selection_type', api: this.api },\n\t\t\t{ option_name: 'job_item_group_selection_type', api: this.api },\n\t\t\t{ option_name: 'job_item_selection_type', api: this.api },\n\t\t\t{ option_name: 'punch_tag_group_selection_type', api: this.api },\n\t\t\t{ option_name: 'punch_tag_selection_type', api: this.api },\n\t\t];\n\n\t\tthis.initDropDownOptions( options );\n\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\t\t\tthis.job_group_api.getJobGroup( '', false, false, {\n\t\t\t\tonResult: function( res ) {\n\t\t\t\t\tres = res.getResult();\n\t\t\t\t\tres = Global.buildTreeRecord( res );\n\t\t\t\t\t$this.job_group_array = res;\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\tthis.job_item_group_api.getJobItemGroup( '', false, false, {\n\t\t\t\tonResult: function( res ) {\n\t\t\t\t\tres = res.getResult();\n\t\t\t\t\tres = Global.buildTreeRecord( res );\n\t\t\t\t\t$this.job_item_group_array = res;\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\tthis.punch_tag_group_api.getPunchTagGroup( '', false, false, {\n\t\t\t\tonResult: function( res ) {\n\n\t\t\t\t\tres = res.getResult();\n\t\t\t\t\tres = Global.buildTreeRecord( res );\n\t\t\t\t\t$this.punch_tag_group_array = res;\n\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t}\n\n\tbuildEditViewUI() {\n\n\t\tsuper.buildEditViewUI();\n\n\t\tvar $this = this;\n\n\t\tvar tab_model = {\n\t\t\t'tab_regular_time_policy': { 'label': $.i18n._( 'Regular Time Policy' ) },\n\t\t\t'tab_differential_criteria': {\n\t\t\t\t'label': $.i18n._( 'Differential Criteria' ),\n\t\t\t\t'init_callback': 'initSubDifferentialCriteriaView',\n\t\t\t\t'html_template': this.getRegularTimeDifferentialTabHtml()\n\t\t\t},\n\t\t\t'tab_audit': true,\n\t\t};\n\t\tthis.setTabModel( tab_model );\n\n\t\tthis.navigation.AComboBox( {\n\t\t\tapi_class: TTAPI.APIRegularTimePolicy,\n\t\t\tid: this.script_name + '_navigation',\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_regular_time',\n\t\t\tnavigation_mode: true,\n\t\t\tshow_search_inputs: true\n\t\t} );\n\n\t\tthis.setNavigation();\n\n\t\t//Tab 0 start\n\n\t\tvar tab_regular_time_policy = this.edit_view_tab.find( '#tab_regular_time_policy' );\n\n\t\tvar tab_regular_time_policy_column1 = tab_regular_time_policy.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[0] = [];\n\n\t\tthis.edit_view_tabs[0].push( tab_regular_time_policy_column1 );\n\n\t\t//Name\n\t\tvar form_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'name', width: '100%' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Name' ), form_item_input, tab_regular_time_policy_column1, '' );\n\n\t\tform_item_input.parent().width( '45%' );\n\n\t\t// Description\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_AREA );\n\t\tform_item_input.TTextArea( { field: 'description', width: '100%' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Description' ), form_item_input, tab_regular_time_policy_column1, '', null, null, true );\n\n\t\tform_item_input.parent().width( '45%' );\n\n\t\t// Contributing Shift\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIContributingShiftPolicy,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_contributing_shift_policy',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'contributing_shift_policy_id'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Contributing Shift Policy' ), form_item_input, tab_regular_time_policy_column1 );\n\n\t\t//Pay Code\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIPayCode,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_pay_code',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'pay_code_id'\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Pay Code' ), form_item_input, tab_regular_time_policy_column1 );\n\n\t\t//Pay Formula Policy\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIPayFormulaPolicy,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_pay_formula_policy',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'pay_formula_policy_id',\n\t\t\tcustom_first_label: $.i18n._( '-- Defined By Pay Code --' ),\n\t\t\tadded_items: [\n\t\t\t\t{ value: TTUUID.zero_id, label: $.i18n._( '-- Defined By Pay Code --' ) }\n\t\t\t]\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Pay Formula Policy' ), form_item_input, tab_regular_time_policy_column1 );\n\n\t\t//Calculation Order\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'calculation_order', width: 50 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Calculation Order' ), form_item_input, tab_regular_time_policy_column1, '' );\n\n\t\t//\n\t\t// Tab2 start\n\t\t//\n\t\tvar tab_differential_criteria = this.edit_view_tab.find( '#tab_differential_criteria' );\n\n\t\tvar tab_differential_criteria_column1 = tab_differential_criteria.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[1] = [];\n\n\t\tthis.edit_view_tabs[1].push( tab_differential_criteria_column1 );\n\n\t\t// Branches\n\t\tvar v_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t//Selection Type\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'branch_selection_type_id', set_empty: false } );\n\t\tform_item_input.setSourceData( $this.branch_selection_type_array );\n\n\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\tv_box.append( form_item );\n\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t//Selection\n\t\tvar form_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\tform_item_input_1.AComboBox( {\n\t\t\tapi_class: TTAPI.APIBranch,\n\t\t\tallow_multiple_selection: true,\n\t\t\tlayout_name: 'global_branch',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'branch'\n\t\t} );\n\n\t\tvar form_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\n\t\tv_box.append( form_item );\n\n\t\t// Exclude Default\n\t\tvar form_item_input_2 = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\n\t\tform_item_input_2.TCheckbox( { field: 'exclude_default_branch' } );\n\n\t\tform_item = this.putInputToInsideFormItem( form_item_input_2, $.i18n._( 'Exclude Default' ) );\n\n\t\tv_box.append( form_item );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Branches' ), [form_item_input, form_item_input_1, form_item_input_2], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\t// Departments\n\t\tv_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t//Selection Type\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'department_selection_type_id', set_empty: false } );\n\t\tform_item_input.setSourceData( $this.department_selection_type_array );\n\n\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\tv_box.append( form_item );\n\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t//Selection\n\t\tform_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\tform_item_input_1.AComboBox( {\n\t\t\tapi_class: TTAPI.APIDepartment,\n\t\t\tallow_multiple_selection: true,\n\t\t\tlayout_name: 'global_department',\n\t\t\tshow_search_inputs: true,\n\t\t\tset_empty: true,\n\t\t\tfield: 'department'\n\t\t} );\n\n\t\tform_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\n\t\tv_box.append( form_item );\n\n\t\t// Exclude Default\n\t\tform_item_input_2 = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\n\t\tform_item_input_2.TCheckbox( { field: 'exclude_default_department' } );\n\n\t\tform_item = this.putInputToInsideFormItem( form_item_input_2, $.i18n._( 'Exclude Default' ) );\n\n\t\tv_box.append( form_item );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Departments' ), [form_item_input, form_item_input_1, form_item_input_2], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\n\t\t\t// Job Groups\n\t\t\tv_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t\t//Selection Type\n\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\tform_item_input.TComboBox( { field: 'job_group_selection_type_id', set_empty: false } );\n\t\t\tform_item_input.setSourceData( $this.job_group_selection_type_array );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\t\tv_box.append( form_item );\n\t\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t\t//Selection\n\t\t\tform_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\t\tform_item_input_1.AComboBox( {\n\t\t\t\ttree_mode: true,\n\t\t\t\tallow_multiple_selection: true,\n\t\t\t\tlayout_name: 'global_tree_column',\n\t\t\t\tset_empty: true,\n\t\t\t\tfield: 'job_group'\n\t\t\t} );\n\n\t\t\tform_item_input_1.setSourceData( $this.job_group_array );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\n\t\t\tv_box.append( form_item );\n\n\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Job Groups' ), [form_item_input, form_item_input_1], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\t\t// Jobs\n\t\t\tv_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t\t//Selection Type\n\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\tform_item_input.TComboBox( { field: 'job_selection_type_id', set_empty: false } );\n\t\t\tform_item_input.setSourceData( $this.job_selection_type_array );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\t\tv_box.append( form_item );\n\t\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t\t//Selection\n\t\t\tform_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\t\tform_item_input_1.AComboBox( {\n\t\t\t\tapi_class: TTAPI.APIJob,\n\t\t\t\tallow_multiple_selection: true,\n\t\t\t\tlayout_name: 'global_job',\n\t\t\t\tshow_search_inputs: true,\n\t\t\t\tset_empty: true,\n\t\t\t\tfield: 'job'\n\t\t\t} );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\n\t\t\tv_box.append( form_item );\n\n\t\t\t// Exclude Default\n\t\t\tform_item_input_2 = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\t\tform_item_input_2.TCheckbox( { field: 'exclude_default_job' } );\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_2, $.i18n._( 'Exclude Default' ) );\n\t\t\tv_box.append( form_item );\n\n\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Jobs' ), [form_item_input, form_item_input_1, form_item_input_2], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\t\t// Task Groups\n\t\t\tv_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t\t//Selection Type\n\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\tform_item_input.TComboBox( { field: 'job_item_group_selection_type_id', set_empty: false } );\n\t\t\tform_item_input.setSourceData( $this.job_item_group_selection_type_array );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\t\tv_box.append( form_item );\n\t\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t\t//Selection\n\t\t\tform_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\t\tform_item_input_1.AComboBox( {\n\t\t\t\ttree_mode: true,\n\t\t\t\tallow_multiple_selection: true,\n\t\t\t\tlayout_name: 'global_tree_column',\n\t\t\t\tset_empty: true,\n\t\t\t\tfield: 'job_item_group'\n\t\t\t} );\n\n\t\t\tform_item_input_1.setSourceData( $this.job_item_group_array );\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\t\t\tv_box.append( form_item );\n\n\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Task Groups' ), [form_item_input, form_item_input_1], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\t\t// Tasks\n\t\t\tv_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t\t//Selection Type\n\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\tform_item_input.TComboBox( { field: 'job_item_selection_type_id', set_empty: false } );\n\t\t\tform_item_input.setSourceData( $this.job_item_selection_type_array );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\t\tv_box.append( form_item );\n\t\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t\t//Selection\n\t\t\tform_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\t\tform_item_input_1.AComboBox( {\n\t\t\t\tapi_class: TTAPI.APIJobItem,\n\t\t\t\tallow_multiple_selection: true,\n\t\t\t\tlayout_name: 'global_job_item',\n\t\t\t\tshow_search_inputs: true,\n\t\t\t\tset_empty: true,\n\t\t\t\tfield: 'job_item'\n\t\t\t} );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\t\t\tv_box.append( form_item );\n\n\t\t\t// Exclude Default\n\t\t\tform_item_input_2 = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\t\tform_item_input_2.TCheckbox( { field: 'exclude_default_job_item' } );\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_2, $.i18n._( 'Exclude Default' ) );\n\t\t\tv_box.append( form_item );\n\n\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Tasks' ), [form_item_input, form_item_input_1, form_item_input_2], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\t\t// Punch Tag Groups\n\t\t\tv_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t\t//Selection Type\n\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\tform_item_input.TComboBox( { field: 'punch_tag_group_selection_type_id', set_empty: false } );\n\t\t\tform_item_input.setSourceData( $this.punch_tag_group_selection_type_array );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\t\tv_box.append( form_item );\n\t\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t\t//Selection\n\t\t\tform_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\t\tform_item_input_1.AComboBox( {\n\t\t\t\ttree_mode: true,\n\t\t\t\tallow_multiple_selection: true,\n\t\t\t\tlayout_name: 'global_tree_column',\n\t\t\t\tset_empty: true,\n\t\t\t\tfield: 'punch_tag_group'\n\t\t\t} );\n\n\t\t\tform_item_input_1.setSourceData( $this.punch_tag_group_array );\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\t\t\tv_box.append( form_item );\n\n\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Punch Tag Groups' ), [form_item_input, form_item_input_1], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\t\t// Punch Tags\n\t\t\tv_box = $( '<div class=\\'v-box\\'></div>' );\n\n\t\t\t//Selection Type\n\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\tform_item_input.TComboBox( { field: 'punch_tag_selection_type_id', set_empty: false } );\n\t\t\tform_item_input.setSourceData( $this.punch_tag_selection_type_array );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input, $.i18n._( 'Selection Type' ) );\n\n\t\t\tv_box.append( form_item );\n\t\t\tv_box.append( '<div class=\\'clear-both-div\\'></div>' );\n\n\t\t\t//Selection\n\t\t\tform_item_input_1 = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\n\t\t\tform_item_input_1.AComboBox( {\n\t\t\t\tapi_class: TTAPI.APIPunchTag,\n\t\t\t\tallow_multiple_selection: true,\n\t\t\t\tlayout_name: 'global_job_item',\n\t\t\t\tshow_search_inputs: true,\n\t\t\t\tset_empty: true,\n\t\t\t\tfield: 'punch_tag'\n\t\t\t} );\n\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_1, $.i18n._( 'Selection' ) );\n\t\t\tv_box.append( form_item );\n\n\t\t\t// Exclude Default\n\t\t\tform_item_input_2 = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\t\tform_item_input_2.TCheckbox( { field: 'exclude_default_punch_tag' } );\n\t\t\tform_item = this.putInputToInsideFormItem( form_item_input_2, $.i18n._( 'Exclude Default' ) );\n\t\t\tv_box.append( form_item );\n\n\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Punch Tags' ), [form_item_input, form_item_input_1, form_item_input_2], tab_differential_criteria_column1, '', v_box, false, true );\n\n\t\t}\n\t}\n\n\tonFormItemChange( target ) {\n\t\tthis.is_changed = true;\n\t\tthis.setMassEditingFieldsWhenFormChange( target );\n\n\t\tvar key = target.getField();\n\t\tvar c_value = target.getValue();\n\n\t\tthis.current_edit_record[key] = c_value;\n\t\tif ( key === 'branch_selection_type_id' ) {\n\t\t\tthis.onBranchSelectionTypeChange();\n\t\t}\n\t\tif ( key === 'department_selection_type_id' ) {\n\t\t\tthis.onDepartmentSelectionTypeChange();\n\t\t}\n\t\tif ( key === 'job_group_selection_type_id' ) {\n\t\t\tthis.onJobGroupSelectionTypeChange();\n\t\t}\n\t\tif ( key === 'job_selection_type_id' ) {\n\t\t\tthis.onJobSelectionTypeChange();\n\t\t}\n\t\tif ( key === 'job_item_group_selection_type_id' ) {\n\t\t\tthis.onJobItemGroupSelectionTypeChange();\n\t\t}\n\t\tif ( key === 'job_item_selection_type_id' ) {\n\t\t\tthis.onJobItemSelectionTypeChange();\n\t\t}\n\t\tif ( key === 'punch_tag_group_selection_type_id' ) {\n\t\t\tthis.onPunchTagGroupSelectionTypeChange();\n\t\t}\n\t\tif ( key === 'punch_tag_selection_type_id' ) {\n\t\t\tthis.onPunchTagSelectionTypeChange();\n\t\t}\n\t\tthis.validate();\n\t}\n\n\tsetCurrentEditRecordData() {\n\n\t\t// When mass editing, these fields may not be the common data, so their value will be undefined, so this will cause their change event cannot work properly.\n\t\tthis.setDefaultData( {\n\t\t\t'branch_selection_type_id': 10,\n\t\t\t'department_selection_type_id': 10,\n\t\t\t'job_group_selection_type_id': 10,\n\t\t\t'job_selection_type_id': 10,\n\t\t\t'job_item_group_selection_type_id': 10,\n\t\t\t'job_item_selection_type_id': 10,\n\t\t\t'punch_tag_group_selection_type_id': 10,\n\t\t\t'punch_tag_selection_type_id': 10\n\t\t} );\n\n\t\t//Set current edit record data to all widgets\n\t\tfor ( var key in this.current_edit_record ) {\n\t\t\tvar widget = this.edit_view_ui_dic[key];\n\t\t\tif ( Global.isSet( widget ) ) {\n\t\t\t\tswitch ( key ) {\n\t\t\t\t\tdefault:\n\t\t\t\t\t\twidget.setValue( this.current_edit_record[key] );\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tthis.onBranchSelectionTypeChange();\n\t\tthis.onDepartmentSelectionTypeChange();\n\t\tthis.onJobGroupSelectionTypeChange();\n\t\tthis.onJobSelectionTypeChange();\n\t\tthis.onJobItemGroupSelectionTypeChange();\n\t\tthis.onJobItemSelectionTypeChange();\n\t\tthis.collectUIDataToCurrentEditRecord();\n\t\tthis.onPunchTagGroupSelectionTypeChange();\n\t\tthis.onPunchTagSelectionTypeChange();\n\n\t\tthis.setEditViewDataDone();\n\t}\n\n\tonBranchSelectionTypeChange() {\n\t\tif ( this.current_edit_record['branch_selection_type_id'] == 10 ) {\n\t\t\tthis.edit_view_ui_dic['branch'].setEnabled( false );\n\t\t} else {\n\t\t\tthis.edit_view_ui_dic['branch'].setEnabled( true );\n\t\t}\n\t}\n\n\tonDepartmentSelectionTypeChange() {\n\t\tif ( this.current_edit_record['department_selection_type_id'] == 10 ) {\n\t\t\tthis.edit_view_ui_dic['department'].setEnabled( false );\n\t\t} else {\n\t\t\tthis.edit_view_ui_dic['department'].setEnabled( true );\n\t\t}\n\t}\n\n\tonJobGroupSelectionTypeChange() {\n\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\n\t\t\tif ( this.current_edit_record['job_group_selection_type_id'] == 10 || this.is_viewing ) {\n\t\t\t\tthis.edit_view_ui_dic['job_group'].setEnabled( false );\n\t\t\t} else {\n\t\t\t\tthis.edit_view_ui_dic['job_group'].setEnabled( true );\n\t\t\t}\n\t\t}\n\t}\n\n\tonJobSelectionTypeChange() {\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\t\t\tif ( this.current_edit_record['job_selection_type_id'] == 10 || this.is_viewing ) {\n\t\t\t\tthis.edit_view_ui_dic['job'].setEnabled( false );\n\t\t\t} else {\n\t\t\t\tthis.edit_view_ui_dic['job'].setEnabled( true );\n\t\t\t}\n\t\t}\n\t}\n\n\tonJobItemGroupSelectionTypeChange() {\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\t\t\tif ( this.current_edit_record['job_item_group_selection_type_id'] == 10 || this.is_viewing ) {\n\t\t\t\tthis.edit_view_ui_dic['job_item_group'].setEnabled( false );\n\t\t\t} else {\n\t\t\t\tthis.edit_view_ui_dic['job_item_group'].setEnabled( true );\n\t\t\t}\n\t\t}\n\t}\n\n\tonJobItemSelectionTypeChange() {\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\t\t\tif ( this.current_edit_record['job_item_selection_type_id'] == 10 || this.is_viewing ) {\n\t\t\t\tthis.edit_view_ui_dic['job_item'].setEnabled( false );\n\t\t\t} else {\n\t\t\t\tthis.edit_view_ui_dic['job_item'].setEnabled( true );\n\t\t\t}\n\t\t}\n\t}\n\n\tonPunchTagGroupSelectionTypeChange() {\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\t\t\tif ( this.current_edit_record['punch_tag_group_selection_type_id'] == 10 || this.is_viewing ) {\n\t\t\t\tthis.edit_view_ui_dic['punch_tag_group'].setEnabled( false );\n\t\t\t} else {\n\t\t\t\tthis.edit_view_ui_dic['punch_tag_group'].setEnabled( true );\n\t\t\t}\n\t\t}\n\t}\n\n\tonPunchTagSelectionTypeChange() {\n\t\tif ( ( Global.getProductEdition() >= 20 ) ) {\n\t\t\tif ( this.current_edit_record['punch_tag_selection_type_id'] == 10 || this.is_viewing ) {\n\t\t\t\tthis.edit_view_ui_dic['punch_tag'].setEnabled( false );\n\t\t\t} else {\n\t\t\t\tthis.edit_view_ui_dic['punch_tag'].setEnabled( true );\n\t\t\t}\n\t\t}\n\t}\n\n\tbuildSearchFields() {\n\n\t\tsuper.buildSearchFields();\n\t\tthis.search_fields = [\n\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Name' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'name',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tform_item_type: FormItemType.TEXT_INPUT\n\t\t\t} ),\n\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Pay Code' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'pay_code_id',\n\t\t\t\tlayout_name: 'global_pay_code',\n\t\t\t\tapi_class: TTAPI.APIPayCode,\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} ),\n\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Pay Formula Policy' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'pay_formula_policy_id',\n\t\t\t\tlayout_name: 'global_pay_formula_policy',\n\t\t\t\tapi_class: TTAPI.APIPayFormulaPolicy,\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} ),\n\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Created By' ),\n\t\t\t\tin_column: 2,\n\t\t\t\tfield: 'created_by',\n\t\t\t\tlayout_name: 'global_user',\n\t\t\t\tapi_class: TTAPI.APIUser,\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} ),\n\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Updated By' ),\n\t\t\t\tin_column: 2,\n\t\t\t\tfield: 'updated_by',\n\t\t\t\tlayout_name: 'global_user',\n\t\t\t\tapi_class: TTAPI.APIUser,\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: false,\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} )\n\t\t];\n\t}\n\n\tinitSubDifferentialCriteriaView() {\n\t\tif ( Global.getProductEdition() >= 15 ) {\n\t\t\tthis.edit_view_tab.find( '#tab_differential_criteria' ).find( '.first-column' ).css( 'display', 'block' );\n\t\t\tthis.edit_view.find( '.permission-defined-div' ).css( 'display', 'none' );\n\t\t\tthis.buildContextMenu( true );\n\t\t\tthis.setEditMenu();\n\t\t} else {\n\t\t\tthis.edit_view_tab.find( '#tab_differential_criteria' ).find( '.first-column' ).css( 'display', 'none' );\n\t\t\tthis.edit_view.find( '.permission-defined-div' ).css( 'display', 'block' );\n\t\t\tthis.edit_view.find( '.permission-message' ).html( Global.getUpgradeMessage() );\n\t\t}\n\t}\n\n\tgetRegularTimeDifferentialTabHtml() {\n\t\treturn `<div id=\"tab_differential_criteria\" class=\"edit-view-tab-outside\">\n\t\t\t\t\t<div class=\"edit-view-tab\" id=\"tab_differential_criteria_content_div\">\n\t\t\t\t\t\t<div class=\"first-column full-width-column\"></div>\n\t\t\t\t\t\t<div class=\"save-and-continue-div permission-defined-div\">\n\t\t\t\t\t\t\t<span class=\"message permission-message\"></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>`;\n\t}\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzI0Ny5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTztBQUNQLDJCQUEyQjtB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