"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["hr-recruitment-JobApplicantViewController"],{19:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"JobApplicantViewController\": () => (/* binding */ JobApplicantViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass JobApplicantViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#job_applicant_view_container',\n\n\t\t\t// _required_files: {\n\t\t\t// \t15: ['leaflet-timetrex']\n\t\t\t// },\n\n\t\t\tstatus_array: null,\n\t\t\tidentification_type_array: null,\n\t\t\tsex_array: null,\n\t\t\tavailable_days_of_week_array: null,\n\t\t\tavailable_hours_of_day_array: null,\n\t\t\tminimum_wage_type_array: null,\n\t\t\tboolean_array: null,\n\t\t\tdocument_object_type_id: null,\n\t\t\tcountry_array: null,\n\t\t\tprovince_array: null,\n\t\t\te_province_array: null,\n\t\t\ti_province_array: null,\n\t\t\tcompany_api: null,\n\t\t\tsub_application_view_controller: null,\n\t\t\tsub_job_applicant_employment_view_controller: null,\n\t\t\tsub_job_applicant_reference_view_controller: null,\n\t\t\tsub_job_applicant_location_view_controller: null,\n\t\t\tsub_job_applicant_skill_view_controller: null,\n\t\t\tsub_job_applicant_education_view_controller: null,\n\t\t\tsub_job_applicant_membership_view_controller: null,\n\t\t\tsub_job_applicant_license_view_controller: null,\n\t\t\tsub_job_applicant_language_view_controller: null,\n\t\t\tuser_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 = 'JobApplicantEditView.html';\n\t\tthis.permission_id = 'job_applicant';\n\t\tthis.viewId = 'JobApplicant';\n\t\tthis.script_name = 'JobApplicantView';\n\t\tthis.table_name_key = 'job_applicant';\n\t\tthis.context_menu_name = $.i18n._( 'Job Applicants' );\n\t\tthis.navigation_label = $.i18n._( 'Job Applicant' );\n\t\tthis.api = TTAPI.APIJobApplicant;\n\t\tthis.company_api = TTAPI.APICompany;\n\t\tthis.user_api = TTAPI.APIUser;\n\t\tthis.document_object_type_id = 160;\n\t\tthis.boolean_array = [$.i18n._( 'No' ), $.i18n._( 'Yes' )];\n\n\t\tthis.render();\n\t\tthis.buildContextMenu();\n\n\t\tthis.initData();\n\t}\n\n\tinitOptions( callBack ) {\n\t\tvar $this = this;\n\t\tvar options = [\n\t\t\t{ option_name: 'status', field_name: null, api: null },\n\t\t\t{ option_name: 'identification_type', field_name: null, api: null },\n\t\t\t{ option_name: 'sex', field_name: null, api: null },\n\t\t\t{ option_name: 'available_days_of_week', field_name: null, api: null },\n\t\t\t{ option_name: 'available_hours_of_day', field_name: null, api: null },\n\t\t\t{ option_name: 'minimum_wage_type', field_name: null, api: null },\n\t\t\t{ option_name: 'country', field_name: 'country', api: this.company_api }\n\t\t];\n\n\t\tthis.initDropDownOptions( options, function( result ) {\n\n\t\t\tif ( callBack ) {\n\t\t\t\tcallBack( result ); // First to initialize drop down options, and then to initialize edit view UI.\n\t\t\t}\n\n\t\t} );\n\n\t\tif ( !this.edit_only_mode ) {\n\t\t\t$this.basic_search_field_ui_dic['currently_employed'].setSourceData( Global.buildRecordArray( this.boolean_array ) );\n\t\t\t$this.adv_search_field_ui_dic['currently_employed'].setSourceData( Global.buildRecordArray( this.boolean_array ) );\n\n\t\t\t$this.basic_search_field_ui_dic['criminal_record'].setSourceData( Global.buildRecordArray( this.boolean_array ) );\n\t\t\t$this.adv_search_field_ui_dic['criminal_record'].setSourceData( Global.buildRecordArray( this.boolean_array ) );\n\n\t\t\t$this.basic_search_field_ui_dic['immediate_drug_test'].setSourceData( Global.buildRecordArray( this.boolean_array ) );\n\t\t\t$this.adv_search_field_ui_dic['immediate_drug_test'].setSourceData( Global.buildRecordArray( this.boolean_array ) );\n\t\t}\n\t}\n\n\tbuildEditViewUI() {\n\t\tsuper.buildEditViewUI();\n\n\t\tvar $this = this;\n\n\t\tvar tab_model = {\n\t\t\t'tab_job_applicant': { 'label': $.i18n._( 'Job Applicant' ), 'is_multi_column': true },\n\t\t\t'tab_background': { 'label': $.i18n._( 'Background' ), 'is_multi_column': true },\n\t\t\t'tab_availability': { 'label': $.i18n._( 'Availability' ), 'is_multi_column': true },\n\t\t\t'tab_history': {\n\t\t\t\t'label': $.i18n._( 'History' ),\n\t\t\t\t'init_callback': 'initSubHistoryView',\n\t\t\t\t'display_on_mass_edit': false,\n\t\t\t\t'html_template': this.getHistoryTabHtml()\n\t\t\t},\n\t\t\t'tab_qualifications': {\n\t\t\t\t'label': $.i18n._( 'Qualifications' ),\n\t\t\t\t'init_callback': 'initSubQualificationView',\n\t\t\t\t'display_on_mass_edit': false,\n\t\t\t\t'html_template': this.getQualificationsTabHtml()\n\t\t\t},\n\t\t\t'tab_portal': { 'label': $.i18n._( 'Portal' ) },\n\t\t\t'tab_applications': {\n\t\t\t\t'label': $.i18n._( 'Applications' ),\n\t\t\t\t'init_callback': 'initSubApplicationView',\n\t\t\t\t'display_on_mass_edit': false\n\t\t\t},\n\t\t\t'tab_attachment': true,\n\t\t\t'tab_audit': true,\n\t\t};\n\t\tthis.setTabModel( tab_model );\n\n\t\t//no navigation in edit only mode\n\t\tif ( !this.edit_only_mode ) {\n\t\t\tthis.navigation.AComboBox( {\n\t\t\t\tapi_class: TTAPI.APIJobApplicant,\n\t\t\t\tid: this.script_name + '_navigation',\n\t\t\t\tallow_multiple_selection: false,\n\t\t\t\tlayout_name: 'global_job_applicant',\n\t\t\t\tnavigation_mode: true,\n\t\t\t\tshow_search_inputs: true\n\t\t\t} );\n\n\t\t\tthis.setNavigation();\n\t\t}\n\t\t//Tab 0 start\n\n\t\tvar tab_job_applicant = this.edit_view_tab.find( '#tab_job_applicant' );\n\n\t\tvar tab_job_applicant_column1 = tab_job_applicant.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[0] = [];\n\n\t\tthis.edit_view_tabs[0].push( tab_job_applicant_column1 );\n\n\t\t// Status\n\t\tvar form_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'status_id' } );\n\t\tform_item_input.setSourceData( $this.status_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Status' ), form_item_input, tab_job_applicant_column1, '' );\n\n\t\t// First Name\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'first_name', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'First Name' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Middle Name\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'middle_name', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Middle Name' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Last Name\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'last_name', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Last Name' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Maiden Name\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'maiden_name', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Maiden Name' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Gender\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'sex_id' } );\n\t\tform_item_input.setSourceData( $this.sex_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Gender' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Ethnicity\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input.AComboBox( {\n\t\t\tapi_class: TTAPI.APIEthnicGroup,\n\t\t\tallow_multiple_selection: false,\n\t\t\tlayout_name: 'global_ethnic_group',\n\t\t\tfield: 'ethnic_group_id',\n\t\t\tset_empty: true,\n\t\t\tshow_search_inputs: true\n\t\t} );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Ethnicity' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Phone\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'home_phone', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Phone' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Mobile Phone\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'mobile_phone', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Mobile Phone' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Currently Employed\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\tform_item_input.TCheckbox( { field: 'currently_employed' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Currently Employed' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Expected Wage Type\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'minimum_wage_type_id' } );\n\t\tform_item_input.setSourceData( $this.minimum_wage_type_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Expected Wage Type' ), form_item_input, tab_job_applicant_column1 );\n\n\t\t// Expected Wage\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'minimum_wage', width: 100 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Expected Wage' ), form_item_input, tab_job_applicant_column1, '' );\n\n\t\tvar tab_job_applicant_column2 = tab_job_applicant.find( '.second-column' );\n\n\t\tthis.edit_view_tabs[0].push( tab_job_applicant_column2 );\n\n\t\t// Email\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'email', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Email' ), form_item_input, tab_job_applicant_column2, '' );\n\n\t\t// Address(Line 1)\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'address1', width: '100%' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Address(Line 1)' ), form_item_input, tab_job_applicant_column2 );\n\n\t\tform_item_input.parent().width( '45%' );\n\n\t\t// Address(Line 2)\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'address2', width: '100%' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Address(Line 2)' ), form_item_input, tab_job_applicant_column2 );\n\n\t\tform_item_input.parent().width( '45%' );\n\n\t\t// City\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'city', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'City' ), form_item_input, tab_job_applicant_column2 );\n\n\t\t// Country\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'country', set_empty: true } );\n\t\tform_item_input.setSourceData( $this.country_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Country' ), form_item_input, tab_job_applicant_column2 );\n\n\t\t// Province/State\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'province' } );\n\t\tform_item_input.setSourceData( [] );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Province/State' ), form_item_input, tab_job_applicant_column2 );\n\n\t\t// Postal / ZIP Code\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\tform_item_input.TTextInput( { field: 'postal_code', width: 90 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Postal/ZIP Code' ), form_item_input, tab_job_applicant_column2 );\n\n\t\t// Birth Date\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.DATE_PICKER );\n\t\tform_item_input.TDatePicker( { field: 'birth_date' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Birth Date' ), form_item_input, tab_job_applicant_column2 );\n\n\t\t// SIN/SSN\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'sin', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'SIN/SSN' ), form_item_input, tab_job_applicant_column2 );\n\n\t\t//Tags\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TAG_INPUT );\n\n\t\tform_item_input.TTagInput( { field: 'tag', object_type_id: 360 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Tags' ), form_item_input, tab_job_applicant_column2, '', null, null, true );\n\n\t\t//Tab 1 start\n\n\t\tvar tab_background = this.edit_view_tab.find( '#tab_background' );\n\n\t\tvar tab_background_column1 = tab_background.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[1] = [];\n\n\t\tthis.edit_view_tabs[1].push( tab_background_column1 );\n\n\t\t// Identification Type\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'identification_type_id' } );\n\t\tform_item_input.setSourceData( $this.identification_type_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Identification Type' ), form_item_input, tab_background_column1, '' );\n\n\t\t// Identification Number\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'identification_number', width: 300 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Identification Number' ), form_item_input, tab_background_column1 );\n\n\t\t// Identification Expires\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.DATE_PICKER );\n\n\t\tform_item_input.TDatePicker( { field: 'identification_expire_date' } );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Identification Expires' ), form_item_input, tab_background_column1, '', null );\n\n\t\t// Identification Country\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'identification_country' } );\n\t\tform_item_input.setSourceData( $this.country_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Identification Country' ), form_item_input, tab_background_column1 );\n\n\t\t// Identification Province/State\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\tform_item_input.TComboBox( { field: 'identification_province' } );\n\t\tform_item_input.setSourceData( [] );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Identification Province/State' ), form_item_input, tab_background_column1, '' );\n\n\t\tvar tab_background_column2 = tab_background.find( '.second-column' );\n\n\t\tthis.edit_view_tabs[1].push( tab_background_column2 );\n\n\t\t// Available for Immediate Drug Test\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\tform_item_input.TCheckbox( { field: 'immediate_drug_test' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Available for Immediate Drug Test' ), form_item_input, tab_background_column2, '' );\n\n\t\t// Criminal Record\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\tform_item_input.TCheckbox( { field: 'criminal_record' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Criminal Record' ), form_item_input, tab_background_column2 );\n\n\t\t// Describe criminal convictions\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_AREA );\n\t\tform_item_input.TTextArea( { field: 'criminal_record_description' } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Describe criminal convictions' ), form_item_input, tab_background_column2, '', null, null, true );\n\n\t\t//Tab 2 start\n\n\t\tvar tab_availability = this.edit_view_tab.find( '#tab_availability' );\n\n\t\tvar tab_availability_column1 = tab_availability.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[2] = [];\n\n\t\tthis.edit_view_tabs[2].push( tab_availability_column1 );\n\n\t\t// Available Date\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.DATE_PICKER );\n\n\t\tform_item_input.TDatePicker( { field: 'available_start_date' } );\n\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Available Date' ), form_item_input, tab_availability_column1, '', null );\n\n\t\t// Available Hours Per Week (Minimum)\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'available_minimum_hours_per_week', width: 30 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Available Hours Per Week (Minimum)' ), form_item_input, tab_availability_column1 );\n\n\t\t// Available Hours Per Week (Maximum)\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'available_maximum_hours_per_week', width: 30 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Available Hours Per Week (Maximum)' ), form_item_input, tab_availability_column1, '' );\n\n\t\tvar tab_availability_column2 = tab_availability.find( '.second-column' );\n\t\tthis.edit_view_tabs[2].push( tab_availability_column2 );\n\n\t\t// Available Days Of Week\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input = form_item_input.AComboBox( {\n\t\t\tfield: 'available_days_of_week',\n\t\t\tset_empty: true,\n\t\t\tallow_multiple_selection: true,\n\t\t\tlayout_name: 'global_option_column'\n\t\t} );\n\n\t\tform_item_input.setSourceData( $this.available_days_of_week_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Available Days Of Week' ), form_item_input, tab_availability_column2, '' );\n\n\t\t// Available Hours\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.AWESOME_BOX );\n\t\tform_item_input = form_item_input.AComboBox( {\n\t\t\tfield: 'available_hours_of_day',\n\t\t\tset_empty: true,\n\t\t\tallow_multiple_selection: true,\n\t\t\tlayout_name: 'global_option_column'\n\t\t} );\n\n\t\tform_item_input.setSourceData( $this.available_hours_of_day_array );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Available Hours' ), form_item_input, tab_availability_column2, '' );\n\n\t\t//Tab 5 start\n\n\t\tvar tab_portal = this.edit_view_tab.find( '#tab_portal' );\n\n\t\tvar tab_portal_column1 = tab_portal.find( '.first-column' );\n\n\t\tthis.edit_view_tabs[5] = [];\n\n\t\tthis.edit_view_tabs[5].push( tab_portal_column1 );\n\n\t\t// User Name\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\n\t\tform_item_input.TTextInput( { field: 'user_name', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'User Name' ), form_item_input, tab_portal_column1, '' );\n\n\t\t//Password\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.PASSWORD_INPUT );\n\n\t\tform_item_input.TPasswordInput( { field: 'password', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Password' ), form_item_input, tab_portal_column1 );\n\n\t\t//Password Confrim\n\n\t\tform_item_input = Global.loadWidgetByName( FormItemType.PASSWORD_INPUT );\n\n\t\tform_item_input.TPasswordInput( { field: 'password_confirm', width: 200 } );\n\t\tthis.addEditFieldToColumn( $.i18n._( 'Password (Confirm)' ), form_item_input, tab_portal_column1, '' );\n\t}\n\n\tgetHistoryTabHtml() {\n\t\tvar html_template = `\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
`;\n\n\t\treturn html_template;\n\t}\n\n\tgetQualificationsTabHtml() {\n\t\tvar html_template = `\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
`;\n\n\t\treturn html_template;\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._( 'Status' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'status_id',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tlayout_name: 'global_option_column',\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._( 'First Name' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'first_name',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\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._( 'Last Name' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'last_name',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\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._( 'Phone' ),\n\t\t\t\tfield: 'any_phone',\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tin_column: 2,\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._( 'Email' ),\n\t\t\t\tfield: 'email',\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tin_column: 2,\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._( 'Country' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'country',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: false,\n\t\t\t\tadv_search: true,\n\t\t\t\tlayout_name: 'global_option_column',\n\t\t\t\tform_item_type: FormItemType.COMBO_BOX\n\t\t\t} ),\n\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Province/State' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'province',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: false,\n\t\t\t\tadv_search: true,\n\t\t\t\tlayout_name: 'global_option_column',\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._( 'City' ),\n\t\t\t\tfield: 'city',\n\t\t\t\tbasic_search: false,\n\t\t\t\tadv_search: true,\n\t\t\t\tin_column: 1,\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._( 'Resume Keywords' ),\n\t\t\t\tin_column: 1,\n\t\t\t\tfield: 'resume_text',\n\t\t\t\tmultiple: false,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\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._( 'Criminal Record' ),\n\t\t\t\tin_column: 2,\n\t\t\t\tfield: 'criminal_record',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tlayout_name: 'global_option_column',\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._( 'Immediate Drug Test' ),\n\t\t\t\tin_column: 2,\n\t\t\t\tfield: 'immediate_drug_test',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tlayout_name: 'global_option_column',\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._( 'Hours/Week (Min)' ),\n\t\t\t\tfield: 'available_minimum_hours_per_week',\n\t\t\t\tbasic_search: false,\n\t\t\t\tadv_search: true,\n\t\t\t\tin_column: 2,\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._( 'Hours/Week (Max)' ),\n\t\t\t\tfield: 'available_maximum_hours_per_week',\n\t\t\t\tbasic_search: false,\n\t\t\t\tadv_search: true,\n\t\t\t\tin_column: 2,\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._( 'Currently Employed' ),\n\t\t\t\tin_column: 3,\n\t\t\t\tfield: 'currently_employed',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tlayout_name: 'global_option_column',\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._( 'Gender' ),\n\t\t\t\tin_column: 3,\n\t\t\t\tfield: 'sex_id',\n\t\t\t\tmultiple: true,\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tlayout_name: 'global_option_column',\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._( 'Tags' ),\n\t\t\t\tfield: 'tag',\n\t\t\t\tbasic_search: true,\n\t\t\t\tadv_search: true,\n\t\t\t\tin_column: 3,\n\t\t\t\tobject_type_id: 360,\n\t\t\t\tform_item_type: FormItemType.TAG_INPUT\n\t\t\t} ),\n\n\t\t\tnew SearchField( {\n\t\t\t\tlabel: $.i18n._( 'Created By' ),\n\t\t\t\tin_column: 3,\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: false,\n\t\t\t\tadv_search: true,\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: 3,\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: false,\n\t\t\t\tadv_search: true,\n\t\t\t\tform_item_type: FormItemType.AWESOME_BOX\n\t\t\t} )\n\t\t];\n\t}\n\n\tonFormItemChange( target, doNotValidate ) {\n\t\tthis.setIsChanged( target );\n\t\tthis.setMassEditingFieldsWhenFormChange( target );\n\t\tvar key = target.getField();\n\n\t\tthis.current_edit_record[key] = target.getValue();\n\n\t\tswitch ( key ) {\n\n\t\t\tcase 'country':\n\t\t\t\tvar widget = this.edit_view_ui_dic['province'];\n\t\t\t\twidget.setValue( null );\n\t\t\t\tbreak;\n\n\t\t\tcase 'identification_country':\n\t\t\t\twidget = this.edit_view_ui_dic['identification_province'];\n\t\t\t\twidget.setValue( null );\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif ( key == 'country' ) {\n\t\t\tthis.eSetProvince( this.edit_view_ui_dic['country'].getValue(), true );\n\t\t\tthis.clearErrorTips();\n\t\t\tthis.setEditMenu();\n\t\t\treturn;\n\t\t}\n\n\t\tif ( key === 'identification_country' ) {\n\t\t\tthis.iSetProvince( this.edit_view_ui_dic['identification_country'].getValue(), true );\n\t\t\tthis.clearErrorTips();\n\t\t\tthis.setEditMenu();\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !doNotValidate ) {\n\t\t\tthis.validate();\n\t\t}\n\t}\n\n\tsetCurrentEditRecordData() {\n\n\t\t//Set current edit record data to all widgets\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\tcase 'country': //popular case\n\t\t\t\t\t\tthis.setCountryValue( widget, key );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'identification_country':\n\t\t\t\t\t\tif ( !this.current_edit_record['identification_province'] ) {\n\t\t\t\t\t\t\tthis.iSetProvince( this.current_edit_record[key], true );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.iSetProvince( this.current_edit_record[key] );\n\t\t\t\t\t\t}\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\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\n\t\tthis.collectUIDataToCurrentEditRecord();\n\t\tthis.setEditViewDataDone();\n\t}\n\n\tonSetSearchFilterFinished() {\n\n\t\tif ( this.search_panel.getSelectTabIndex() === 1 ) {\n\t\t\tvar combo = this.adv_search_field_ui_dic['country'];\n\t\t\tvar select_value = combo.getValue();\n\t\t\tthis.setProvince( select_value );\n\t\t}\n\t}\n\n\tonBuildAdvUIFinished() {\n\n\t\tthis.adv_search_field_ui_dic['country'].change( $.proxy( function() {\n\t\t\tvar combo = this.adv_search_field_ui_dic['country'];\n\t\t\tvar selectVal = combo.getValue();\n\n\t\t\tthis.setProvince( selectVal );\n\n\t\t\tthis.adv_search_field_ui_dic['province'].setValue( null );\n\n\t\t}, this ) );\n\t}\n\n\tsetProvince( val, m ) {\n\t\tvar $this = this;\n\n\t\tif ( !val || val === '-1' || val === '0' ) {\n\t\t\t$this.province_array = [];\n\t\t\tthis.adv_search_field_ui_dic['province'].setSourceData( [] );\n\t\t} else {\n\n\t\t\tthis.company_api.getOptions( 'province', val, {\n\t\t\t\tonResult: function( res ) {\n\t\t\t\t\tres = res.getResult();\n\t\t\t\t\tif ( !res ) {\n\t\t\t\t\t\tres = [];\n\t\t\t\t\t}\n\n\t\t\t\t\t$this.province_array = Global.buildRecordArray( res );\n\t\t\t\t\t$this.adv_search_field_ui_dic['province'].setSourceData( $this.province_array );\n\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t}\n\n\teSetProvince( val, refresh ) {\n\t\tvar $this = this;\n\t\tvar province_widget = $this.edit_view_ui_dic['province'];\n\n\t\tif ( !val || val === '-1' || val === '0' ) {\n\t\t\t$this.e_province_array = [];\n\t\t\tprovince_widget.setSourceData( [] );\n\t\t} else {\n\t\t\tthis.company_api.getOptions( 'province', val, {\n\t\t\t\tonResult: function( res ) {\n\t\t\t\t\tres = res.getResult();\n\t\t\t\t\tif ( !res ) {\n\t\t\t\t\t\tres = [];\n\t\t\t\t\t}\n\t\t\t\t\t$this.e_province_array = Global.buildRecordArray( res );\n\t\t\t\t\tif ( refresh && $this.e_province_array.length > 0 ) {\n\t\t\t\t\t\t$this.current_edit_record.province = $this.e_province_array[0].value;\n\t\t\t\t\t\tprovince_widget.setValue( $this.current_edit_record.province );\n\t\t\t\t\t}\n\t\t\t\t\tprovince_widget.setSourceData( $this.e_province_array );\n\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t}\n\n\tiSetProvince( val, refresh ) {\n\t\tvar $this = this;\n\t\tvar province_widget = $this.edit_view_ui_dic['identification_province'];\n\n\t\tif ( !val || val === '-1' || val === '0' ) {\n\t\t\t$this.i_province_array = [];\n\t\t\tprovince_widget.setSourceData( [] );\n\t\t} else {\n\t\t\tthis.company_api.getOptions( 'province', val, {\n\t\t\t\tonResult: function( res ) {\n\t\t\t\t\tres = res.getResult();\n\t\t\t\t\tif ( !res ) {\n\t\t\t\t\t\tres = [];\n\t\t\t\t\t}\n\n\t\t\t\t\t$this.i_province_array = Global.buildRecordArray( res );\n\t\t\t\t\tif ( refresh && $this.i_province_array.length > 0 ) {\n\t\t\t\t\t\t$this.current_edit_record.identification_province = $this.i_province_array[0].value;\n\t\t\t\t\t\tprovince_widget.setValue( $this.current_edit_record.identification_province );\n\t\t\t\t\t}\n\t\t\t\t\tprovince_widget.setSourceData( $this.i_province_array );\n\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\texclude: ['copy'],\n\t\t\tinclude: [\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Hire Applicant' ),\n\t\t\t\t\tid: 'edit_employee',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\t//action_group: 'jump_to',\n\t\t\t\t\t//group: 'navigation',\n\t\t\t\t\tvue_icon: 'tticon tticon-add_black_24dp',\n\t\t\t\t\tsort_order: 7100\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Map' ),\n\t\t\t\t\tid: 'map',\n\t\t\t\t\tmenu_align: 'right',\n\t\t\t\t\t//action_group: 'jump_to',\n\t\t\t\t\t//group: 'navigation',\n\t\t\t\t\tvue_icon: 'tticon tticon-map_black_24dp',\n\t\t\t\t\tsort_order: 8000,\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\tsort_order: 9050,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: $.i18n._( 'Job Applications' ),\n\t\t\t\t\tid: 'job_application',\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\ticon: 'jobapplications-35x35.png',\n\t\t\t\t\tsort_order: 9050,\n\t\t\t\t},\n\n\t\t\t]\n\t\t};\n\n\t\treturn context_menu_model;\n\t}\n\n\tonCustomContextClick( id ) {\n\t\tswitch ( id ) {\n\t\t\tcase 'map':\n\t\t\t\tthis.onMapClick();\n\t\t\t\tbreak;\n\t\t\tcase 'export_excel':\n\t\t\tcase 'edit_employee':\n\t\t\tcase 'job_application':\n\t\t\t\tthis.onNavigationClick( id );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonMapClick() {\n\t\t// only trigger map load in specific product editions.\n\t\tif ( ( Global.getProductEdition() >= 15 ) ) {\n\t\t\tthis.is_viewing = false;\n\t\t\tProgressBar.showProgressBar();\n\t\t\tvar data = {\n\t\t\t\tfilter_columns: {\n\t\t\t\t\tid: true,\n\t\t\t\t\tfirst_name: true,\n\t\t\t\t\tlast_name: true,\n\t\t\t\t\taddress1: true,\n\t\t\t\t\taddress2: true,\n\t\t\t\t\tcity: true,\n\t\t\t\t\tprovince: true,\n\t\t\t\t\tcountry: true,\n\t\t\t\t\tpostal_code: true,\n\t\t\t\t\tlatitude: true,\n\t\t\t\t\tlongitude: true\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar ids = this.getGridSelectIdArray();\n\n\t\t\tdata.filter_data = Global.convertLayoutFilterToAPIFilter( this.select_layout );\n\t\t\tif ( ids.length > 0 ) {\n\t\t\t\tdata.filter_data.id = ids;\n\t\t\t}\n\n\t\t\tvar cells = this.api.getJobApplicant( data, { async: false } ).getResult();\n\t\t\tif ( !this.is_mass_editing ) {\n\t\t\t\tPromise.all(/* import() | leaflet-timetrex */[__webpack_require__.e(\"vendors-node_modules_leaflet_dist_images_marker-icon-2x_png-node_modules_leaflet_dist_images_-78d511\"), __webpack_require__.e(\"interface_html5_framework_leaflet_leaflet-timetrex_js\"), __webpack_require__.e(\"leaflet-timetrex\")]).then(__webpack_require__.bind(__webpack_require__, 6889)).then(( module )=>{\n\t\t\t\t\tvar processed_data_for_map = module.TTConvertMapData.processBasicFromGenericViewController( cells );\n\t\t\t\t\tIndexViewController.openEditView( this, 'Map', processed_data_for_map );\n\t\t\t\t}).catch( Global.importErrorHandler );\n\t\t\t}\n\t\t}\n\t}\n\n\topenEditView( id ) {\n\t\tif ( typeof id == 'undefined' && this.edit_only_mode ) {\n\t\t\tthis.onCancelClick( true, true );\n\t\t} else if ( this.edit_only_mode && id ) {\n\t\t\tvar $this = this;\n\t\t\tthis.initOptions( function() {\n\t\t\t\tif ( !$this.edit_view ) {\n\t\t\t\t\t$this.initEditViewUI( $this.viewId, $this.edit_view_tpl );\n\t\t\t\t}\n\t\t\t\tvar filter_data = { filter_data: { id: id } };\n\t\t\t\t$this.api.getJobApplicant( filter_data, {\n\t\t\t\t\tonResult: function( result ) {\n\t\t\t\t\t\tresult = result.getResult()[0];\n\t\t\t\t\t\tif ( !result ) {\n\t\t\t\t\t\t\tTAlertManager.showAlert( $.i18n._( 'Invalid job applicant' ) );\n\t\t\t\t\t\t\t$this.onCancelClick();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Waiting for the TTAPI.API returns data to set the current edit record.\n\t\t\t\t\t\t\t$this.current_edit_record = result;\n\t\t\t\t\t\t\t$this.initEditView();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t} );\n\t\t} else {\n\t\t\tif ( !this.edit_view ) {\n\t\t\t\tthis.initEditViewUI( this.viewId, this.edit_view_tpl );\n\t\t\t}\n\t\t}\n\t}\n\n\t/* jshint ignore:end */\n\n\tsetCustomDefaultMenuIcon( id, context_btn, grid_selected_length ) {\n\t\tswitch ( id ) {\n\t\t\tcase 'edit_employee':\n\t\t\t\tthis.setDefaultMenuEditIcon( context_btn, grid_selected_length, 'user' );\n\t\t\t\tbreak;\n\t\t\tcase 'job_application':\n\t\t\t\tthis.setDefaultMenuEditIcon( context_btn, grid_selected_length, 'job_application' );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tsetDefaultMenuEmployeeIcon( context_btn, grid_selected_length, pId ) {\n\t\tif ( !this.viewPermissionValidate( pId ) || this.edit_only_mode ) {\n\t\t\tContextMenuManager.hideMenuItem( this.determineContextMenuMountAttributes().id, context_btn.id, false )\n\t\t}\n\n\t\tif ( grid_selected_length === 1 ) {\n\t\t\tContextMenuManager.disableMenuItem( this.determineContextMenuMountAttributes().id, context_btn.id, true );\n\t\t} else {\n\t\t\tContextMenuManager.disableMenuItem( this.determineContextMenuMountAttributes().id, context_btn.id, false );\n\t\t}\n\t}\n\n\tsetCustomEditMenuIcon( id, context_btn ) {\n\t\tswitch ( id ) {\n\t\t\tcase 'edit_employee':\n\t\t\t\tthis.setEditMenuNavEditIcon( context_btn, 'user' );\n\t\t\t\tbreak;\n\t\t\tcase 'job_application':\n\t\t\t\tthis.setEditMenuNavEditIcon( context_btn, 'job_application' );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tsetEditMenuMapIcon( context_btn ) {\n\t\tContextMenuManager.hideMenuItem( this.determineContextMenuMountAttributes().id, context_btn.id, false )\n\t}\n\n\tonNavigationClick( iconName ) {\n\t\tvar $this = this;\n\t\tvar filter;\n\t\tvar temp_filter;\n\t\tvar grid_selected_id_array;\n\t\tvar grid_selected_length;\n\t\tvar selectedId;\n\t\tswitch ( iconName ) {\n\t\t\tcase 'edit_employee':\n\t\t\t\tfilter = { filter_data: {} };\n\t\t\t\tif ( Global.isSet( this.current_edit_record ) ) {\n\t\t\t\t\tgetUserDefaultData( function( data ) {\n\t\t\t\t\t\tfor ( var key in data ) {\n\t\t\t\t\t\t\tif ( !$this.current_edit_record[key] ) {\n\t\t\t\t\t\t\t\t$this.current_edit_record[key] = data[key];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tIndexViewController.openEditView( $this, 'Employee', $this.current_edit_record );\n\t\t\t\t\t} );\n\n\t\t\t\t} else {\n\t\t\t\t\tgetUserDefaultData( function( data ) {\n\t\t\t\t\t\ttemp_filter = {};\n\t\t\t\t\t\tgrid_selected_id_array = $this.getGridSelectIdArray();\n\t\t\t\t\t\tgrid_selected_length = grid_selected_id_array.length;\n\t\t\t\t\t\tif ( grid_selected_length > 0 ) {\n\t\t\t\t\t\t\tselectedId = grid_selected_id_array[0];\n\t\t\t\t\t\t\ttemp_filter.filter_data = {};\n\t\t\t\t\t\t\ttemp_filter.filter_data.id = [selectedId];\n\t\t\t\t\t\t\t$this.api['get' + $this.api.key_name]( temp_filter, {\n\t\t\t\t\t\t\t\tonResult: function( result ) {\n\t\t\t\t\t\t\t\t\tvar result_data = result.getResult();\n\t\t\t\t\t\t\t\t\tif ( !result_data ) {\n\t\t\t\t\t\t\t\t\t\tresult_data = [];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tresult_data = result_data[0];\n\t\t\t\t\t\t\t\t\tfor ( var key in data ) {\n\t\t\t\t\t\t\t\t\t\tif ( !result_data[key] ) {\n\t\t\t\t\t\t\t\t\t\t\tresult_data[key] = data[key];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tIndexViewController.openEditView( $this, 'Employee', result_data );\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\t\t\t\t}\n\n\t\t\tfunction getUserDefaultData( callBack ) {\n\t\t\t\t$this.user_api.getUserDefaultData( {\n\t\t\t\t\tonResult: function( result ) {\n\t\t\t\t\t\tvar data = result.getResult();\n\t\t\t\t\t\tcallBack( data );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'export_excel':\n\t\t\t\tthis.onExportClick( 'export' + this.api.key_name );\n\t\t\t\tbreak;\n\t\t\tcase 'job_application':\n\t\t\t\tvar filter = { filter_data: {} };\n\t\t\t\tvar job_applicant_id;\n\t\t\t\tvar select_item = this.getSelectedItem();\n\t\t\t\tif ( select_item != null ) {\n\t\t\t\t\tjob_applicant_id = select_item.id;\n\t\t\t\t}\n\t\t\t\tfilter.filter_data.job_applicant_id = job_applicant_id;\n\t\t\t\tGlobal.addViewTab( this.viewId, $.i18n._( 'Job Applicant' ), window.location.href );\n\t\t\t\tIndexViewController.goToView( 'JobApplication', filter );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tinitSubHistoryView() {\n\t\tvar $this = this;\n\n\t\tif ( !this.current_edit_record.id ) {\n\t\t\tTTPromise.resolve( 'BaseViewController', 'onTabShow' ); //Since search() isn't called in this case, and we just display the \"Please Save This Record ...\" message, resolve the promise.\n\t\t\treturn;\n\t\t}\n\n\t\t$( '#tab_history' ).css( 'opacity', 0 );\n\t\tTTPromise.add( 'JobApplicant_History_Tab', 'initSubHistoryView' );\n\t\tTTPromise.add( 'JobApplicant_History_Tab', 'JobApplicantEmploymentViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantEmploymentViewController.js', function() {\n\t\t\tvar tab_history = $this.edit_view_tab.find( '#tab_history' );\n\t\t\tvar firstColumn = tab_history.find( '.first-column-sub-view' ).find( '.first-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantEmployment' + 'View' );\n\t\t\tJobApplicantEmploymentViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantEmploymentView );\n\n\t\t} );\n\n\t\tTTPromise.add( 'JobApplicant_History_Tab', 'JobApplicantReferenceViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantReferenceViewController.js', function() {\n\t\t\tvar tab_history = $this.edit_view_tab.find( '#tab_history' );\n\t\t\tvar firstColumn = tab_history.find( '.first-column-sub-view' ).find( '.second-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantReference' + 'View' );\n\t\t\tJobApplicantReferenceViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantReferenceView );\n\t\t} );\n\n\t\tTTPromise.add( 'JobApplicant_History_Tab', 'JobApplicantLocationViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantLocationViewController.js', function() {\n\t\t\tvar tab_history = $this.edit_view_tab.find( '#tab_history' );\n\t\t\tvar firstColumn = tab_history.find( '.first-column-sub-view' ).find( '.third-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantLocation' + 'View' );\n\t\t\tJobApplicantLocationViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantLocationView );\n\t\t} );\n\n\t\tTTPromise.wait( null, null, function() {\n\n\t\t\t// var width = $('#tab_history .first-column-sub-view').width();\n\t\t\t// if ( $('#tab_history').height() < $('#tab_history')[0].scrollHeight ){\n\t\t\t// \twidth -= 8;\n\t\t\t// }\n\t\t\t// $this.sub_job_applicant_employment_view_controller.grid.setGridWidth(width);\n\t\t\t// $this.sub_job_applicant_reference_view_controller.grid.setGridWidth(width);\n\t\t\t// $this.sub_job_applicant_location_view_controller.grid.setGridWidth(width);\n\t\t\t$( '#tab_history' ).css( 'opacity', 1 );\n\t\t} );\n\n\t\tTTPromise.resolve( 'JobApplicant_History_Tab', 'initSubHistoryView' );\n\n\t\tfunction beforeLoadView() {\n\n\t\t}\n\n\t\tfunction afterLoadJobApplicantEmploymentView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Employment' ) );\n\t\t\t$this.sub_job_applicant_employment_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_employment_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_employment_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_employment_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_employment_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_employment_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\n\t\tfunction afterLoadJobApplicantReferenceView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Reference' ) );\n\t\t\t$this.sub_job_applicant_reference_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_reference_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_reference_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_reference_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_reference_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_reference_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\n\t\tfunction afterLoadJobApplicantLocationView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Location' ) );\n\t\t\t$this.sub_job_applicant_location_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_location_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_location_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_location_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_location_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_location_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\t}\n\n\tinitSubQualificationView() {\n\t\tvar $this = this;\n\n\t\tif ( !this.current_edit_record.id ) {\n\t\t\tTTPromise.resolve( 'BaseViewController', 'onTabShow' ); //Since search() isn't called in this case, and we just display the \"Please Save This Record ...\" message, resolve the promise.\n\t\t\treturn;\n\t\t}\n\n\t\t$( '#tab_qualifications .first-column-sub-view' ).css( 'opacity', '0' );\n\t\tTTPromise.add( 'JobApplicant_Qualifications_Tab', 'initSubQualificationView' );\n\n\t\tTTPromise.add( 'JobApplicant_Qualifications_Tab', 'JobApplicantSkillViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantSkillViewController.js', function() {\n\t\t\tvar tab_qualifications = $this.edit_view_tab.find( '#tab_qualifications' );\n\t\t\tvar firstColumn = tab_qualifications.find( '.first-column-sub-view' ).find( '.first-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantSkill' + 'View' );\n\t\t\tJobApplicantSkillViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantSkillView );\n\n\t\t} );\n\n\t\tTTPromise.add( 'JobApplicant_Qualifications_Tab', 'JobApplicantEducationViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantEducationViewController.js', function() {\n\t\t\tvar tab_qualifications = $this.edit_view_tab.find( '#tab_qualifications' );\n\t\t\tvar firstColumn = tab_qualifications.find( '.first-column-sub-view' ).find( '.second-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantEducation' + 'View' );\n\t\t\tJobApplicantEducationViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantEducationView );\n\n\t\t} );\n\n\t\tTTPromise.add( 'JobApplicant_Qualifications_Tab', 'JobApplicantMembershipViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantMembershipViewController.js', function() {\n\t\t\tvar tab_qualifications = $this.edit_view_tab.find( '#tab_qualifications' );\n\t\t\tvar firstColumn = tab_qualifications.find( '.first-column-sub-view' ).find( '.third-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantMembership' + 'View' );\n\t\t\tJobApplicantMembershipViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantMembershipView );\n\n\t\t} );\n\n\t\tTTPromise.add( 'JobApplicant_Qualifications_Tab', 'JobApplicantLicenseViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantLicenseViewController.js', function() {\n\t\t\tvar tab_qualifications = $this.edit_view_tab.find( '#tab_qualifications' );\n\t\t\tvar firstColumn = tab_qualifications.find( '.first-column-sub-view' ).find( '.forth-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantLicense' + 'View' );\n\t\t\tJobApplicantLicenseViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantLicenseView );\n\n\t\t} );\n\n\t\tTTPromise.add( 'JobApplicant_Qualifications_Tab', 'JobApplicantLanguageViewController' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicantLanguageViewController.js', function() {\n\t\t\tvar tab_qualifications = $this.edit_view_tab.find( '#tab_qualifications' );\n\t\t\tvar firstColumn = tab_qualifications.find( '.first-column-sub-view' ).find( '.fifth-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplicantLanguage' + 'View' );\n\t\t\tJobApplicantLanguageViewController.loadSubView( firstColumn, beforeLoadView, afterLoadJobApplicantLanguageView );\n\n\t\t} );\n\n\t\tfunction beforeLoadView() {\n\n\t\t}\n\n\t\tfunction afterLoadJobApplicantSkillView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Skills' ) );\n\t\t\t$this.sub_job_applicant_skill_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_skill_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_skill_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_skill_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_skill_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_skill_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\n\t\tfunction afterLoadJobApplicantLicenseView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Licenses' ) );\n\t\t\t$this.sub_job_applicant_license_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_license_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_license_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_license_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_license_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_license_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\n\t\tfunction afterLoadJobApplicantLanguageView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Languages' ) );\n\t\t\t$this.sub_job_applicant_language_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_language_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_language_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_language_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_language_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_language_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\n\t\tfunction afterLoadJobApplicantEducationView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Education' ) );\n\t\t\t$this.sub_job_applicant_education_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_education_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_education_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_education_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_education_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_education_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\n\t\tfunction afterLoadJobApplicantMembershipView( subViewController ) {\n\t\t\t$( subViewController.el ).find( '.sub-view-title' ).text( $.i18n._( 'Memberships' ) );\n\t\t\t$this.sub_job_applicant_membership_view_controller = subViewController;\n\t\t\t$this.sub_job_applicant_membership_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_job_applicant_membership_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_job_applicant_membership_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_job_applicant_membership_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_job_applicant_membership_view_controller.postInit = function() {\n\t\t\t\tthis.buildContextMenu();\n\t\t\t\tthis.initData();\n\t\t\t};\n\t\t}\n\n\t\tTTPromise.wait( null, null, function() {\n\t\t\t$( '#contentContainer' ).trigger( 'resize' );\n\t\t\t$( '#tab_qualifications .first-column-sub-view' ).css( 'opacity', '1' );\n\t\t} );\n\n\t\tTTPromise.resolve( 'JobApplicant_Qualifications_Tab', 'initSubQualificationView' );\n\t}\n\n\tinitSubApplicationView() {\n\t\tvar $this = this;\n\n\t\tif ( !this.current_edit_record.id ) {\n\t\t\tTTPromise.resolve( 'BaseViewController', 'onTabShow' ); //Since search() isn't called in this case, and we just display the \"Please Save This Record ...\" message, resolve the promise.\n\t\t\treturn;\n\t\t}\n\n\t\tif ( this.sub_application_view_controller ) {\n\t\t\tthis.sub_application_view_controller.buildContextMenu( true );\n\t\t\tthis.sub_application_view_controller.setDefaultMenu();\n\t\t\t$this.sub_application_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_application_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_application_view_controller.initData();\n\t\t\treturn;\n\t\t}\n\n\t\tTTPromise.add( 'initSubApplicationView', 'loadscript' );\n\t\tGlobal.loadScript( 'views/hr/recruitment/JobApplicationViewController.js', function() {\n\t\t\tvar tab_applications = $this.edit_view_tab.find( '#tab_applications' );\n\t\t\tvar firstColumn = tab_applications.find( '.first-column-sub-view' );\n\t\t\tGlobal.trackView( 'Sub' + 'JobApplication' + 'View' );\n\t\t\tJobApplicationViewController.loadSubView( firstColumn, beforeLoadView, afterLoadView );\n\n\t\t} );\n\n\t\tfunction beforeLoadView() {\n\n\t\t}\n\n\t\tfunction afterLoadView( subViewController ) {\n\t\t\t$this.sub_application_view_controller = subViewController;\n\t\t\t$this.sub_application_view_controller.parent_key = 'job_applicant_id';\n\t\t\t$this.sub_application_view_controller.parent_value = $this.current_edit_record.id;\n\t\t\t$this.sub_application_view_controller.parent_edit_record = $this.current_edit_record;\n\t\t\t$this.sub_application_view_controller.parent_view_controller = $this;\n\t\t\t$this.sub_application_view_controller.postInit = function() {\n\t\t\t\tthis.initData();\n\t\t\t\tTTPromise.resolve( 'initSubApplicationView', 'loadscript' );\n\t\t\t};\n\t\t}\n\t}\n\n\tremoveEditView() {\n\t\tsuper.removeEditView();\n\n\t\tthis.sub_application_view_controller = null;\n\n\t\tthis.sub_job_applicant_employment_view_controller = null;\n\t\tthis.sub_job_applicant_reference_view_controller = null;\n\t\tthis.sub_job_applicant_location_view_controller = null;\n\n\t\tthis.sub_job_applicant_skill_view_controller = null;\n\t\tthis.sub_job_applicant_license_view_controller = null;\n\t\tthis.sub_job_applicant_language_view_controller = null;\n\t\tthis.sub_job_applicant_education_view_controller = null;\n\t\tthis.sub_job_applicant_membership_view_controller = null;\n\t}\n\n\tgetFilterColumnsFromDisplayColumns( column_filter, enable_system_columns ) {\n\t\tif ( column_filter == undefined ) {\n\t\t\tcolumn_filter = {};\n\t\t}\n\t\tcolumn_filter.latitude = true;\n\t\tcolumn_filter.longitude = true;\n\t\treturn this._getFilterColumnsFromDisplayColumns( column_filter, enable_system_columns );\n\t}\n}\n//# s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