1 line
136 KiB
JavaScript
1 line
136 KiB
JavaScript
|
"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.
|