function WizardScoreAlbertaEOI() { WizardScore.call(this); } WizardScoreAlbertaEOI.prototype = Object.create(WizardScore.prototype); WizardScoreAlbertaEOI.prototype.constructor = WizardScoreAlbertaEOI; WizardScoreAlbertaEOI.prototype.GetStepContainersArray = function() { return ["user_base_info", "user_english_language_test_info", "user_english_language_common_info", "user_english_language_exact_info", "user_french_language_test_info", "user_french_language_common_info", "user_french_language_exact_info", "user_has_canada_school_info", "user_canada_school_info", "user_has_work_experience_info", "user_work_experience_info", "user_has_canada_work_experience_info", "user_canada_work_experience_info", "user_has_canada_relatives_info", "user_has_canada_job_offer", "user_canada_job_offer_info", "user_canada_job_offer_additional_info"]; } WizardScoreAlbertaEOI.prototype.IsStepVisible = function(step) { let result = WizardScore.prototype.IsStepVisible.call(this, step); if (step == "user_work_experience_info") result &= (IsButtonGroupCheckBoxOn("#has_work_experience")); if ((step == "user_canada_job_offer_info") || (step == "user_canada_job_offer_additional_info")) result &= (IsButtonGroupCheckBoxOn("#has_job_offer_group")); if (step == "user_canada_school_info") result &= (IsButtonGroupCheckBoxOn("#has_canada_school")); if (step == "user_canada_work_experience_info") result &= (IsButtonGroupCheckBoxOn("#has_canada_work_experience")); return result; } WizardScoreAlbertaEOI.prototype.LoadControlsFromJSON = function(json) { WizardScore.prototype.LoadControlsFromJSON.call(this, json); SetButtonGroupCheckBoxValue("#has_work_experience", (json.user_work_exp > 0)); this.setSelectBoxValueByMaximumValue("#user_work_exp", json.user_work_exp); SetButtonGroupCheckBoxValue("#has_canada_school", (json.canada_school_location_id > 0)); SetButtonGroupCheckBoxValue("#has_canada_work_experience", (json.canada_work_location_id > 0)); } WizardScoreAlbertaEOI.prototype.ChangeInputsEnabledState = function(is_disabled) { WizardScore.prototype.ChangeInputsEnabledState.call(this, is_disabled); $("#user_work_exp").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_work_experience"))); $("#canada_school_location_id").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_canada_school"))); $("#canada_work_location_id").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_canada_work_experience"))); $("#job_offer_sector_id").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_job_offer_group"))); $("#job_offer_location_id").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_job_offer_group"))); }