var onShowStepCallback = function()

in clns-acuity-admin/acuity-core/src/main/resources/public/js/study-setup/main.js [207:292]


    var onShowStepCallback = function (e, selTab, currentStep) {
        scope.recalculateSplit();
        resizeStepsTable();
        if (currentStep == scope.STUDY_SEARCH_STEP_INX) {
            wizardCommonModule.showFirstStepButtons();
            wizardCommonModule.setHeader('Clinical study dataset search');
            scope.searchStudyStep.startStep();
        } else if (currentStep == scope.STUDY_EDIT_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            scope.editStudyStep.startStep();
            wizardCommonModule.setStepSubHeading(STUDY_EDIT_STEP_SUB_HEADER);
        } else if (currentStep == scope.STUDY_MAPPING_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Data Mappings");
            wizardCommonModule.setStepSubHeading(STUDY_MAPPING_STEP_SUB_HEADER);
            scope.mappingStudyStep.startStep();
        } else if (currentStep == scope.STUDY_ALT_LAB_CODES_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Labcode decoding information");
            wizardCommonModule.setStepSubHeading(STUDY_ALT_LAB_CODES_STEP_SUB_HEADER);
            scope.altLabCodesStudyStep.startStep();
        } else if (currentStep == scope.STUDY_BASELINE_DRUGS_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Determine how baseline values are calculated");
            wizardCommonModule.setStepSubHeading(STUDY_BASELINE_DRUGS_STEP_SUB_HEADER);
            scope.baselineDrugsStep.startStep();
        } else if (currentStep == scope.STUDY_EXCLUSION_VALUES_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Exclusion values");
            wizardCommonModule.setStepSubHeading(STUDY_EXCLUSION_VALUES_STEP_SUB_HEADER);
            scope.exclusionValuesStudyStep.startStep();
        } else if (currentStep == scope.STUDY_GROUPING_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Alternative Subject Groupings");
            wizardCommonModule.setStepSubHeading(STUDY_GROUPING_STEP_SUB_HEADER);
            scope.groupingsStudyStep.startStep();
        } else if (currentStep == scope.STUDY_ANNOTATE_SUBJECT_GROUPINGS_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Annotate Subject Groupings");
            wizardCommonModule.setStepSubHeading(STUDY_GROUPING_ANNOTATE_STEP_SUB_HEADER);
            scope.groupingsStudyStep.startStep();
        } else if (currentStep == scope.PROJECT_GROUPINGS_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " " + PROJECT_GROUPINGS_STEP_HEADER);
            wizardCommonModule.setStepSubHeading(PROJECT_GROUPINGS_STEP_SUB_HEADER);
            scope.selectProjectGroupingsStep.startStep();
        } else if (currentStep == scope.STUDY_GROUPINGS_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Select Subject Groupings");
            wizardCommonModule.setStepSubHeading(STUDY_GROUPINGS_STEP_SUB_HEADER);
            scope.selectStudySubjectGroupingsStep.startStep();
        } else if (currentStep == scope.CBIOPORTAL_GENOMIC_PROFILE_STEP_INX) {
            wizardCommonModule.showCommonStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " " + CBIOPORTAL_GENOMIC_PROFILE_STEP_HEADER);
            wizardCommonModule.setStepSubHeading(CBIOPORTAL_GENOMIC_PROFILE_STEP_SUB_HEADER);
            scope.cbioPortalGenomicProfileStep.startStep();
        } else if (currentStep == scope.STUDY_SUMMARY_STEP_INX) {
            wizardCommonModule.showFinishStepButtons();
            wizardCommonModule.setHeader(scope.workflow.selectedStudy.studyCode + " Dataset Summary");
            wizardCommonModule.setStepSubHeading(STUDY_SUMMARY_STEP_SUB_HEADER);
            scope.summaryStudyStep.createHistoryTable();
            scope.summaryStudyStep.showStudySummaryData();
        }

        if (currentStep != scope.STUDY_EDIT_STEP_INX && $("#" + scope.editStudyStep.blockingId).hasClass("open")) {
            $("#" + scope.editStudyStep.blockingId).removeClass("open");
            $(".enabled").attr('disabled', 'disabled');
        }
        if (currentStep != scope.STUDY_EDIT_STEP_INX &&
            currentStep != scope.STUDY_MAPPING_STEP_INX &&
            currentStep != scope.STUDY_GROUPING_STEP_INX &&
            currentStep != scope.STUDY_ALT_LAB_CODES_INX &&
            currentStep != scope.STUDY_BASELINE_DRUGS_STEP_INX &&
            currentStep != scope.STUDY_ANNOTATE_SUBJECT_GROUPINGS_STEP_INX &&
            currentStep != scope.STUDY_EXCLUSION_VALUES_INX &&
            currentStep != scope.PROJECT_GROUPINGS_STEP_INX &&
            currentStep != scope.STUDY_GROUPINGS_STEP_INX &&
            currentStep != scope.CBIOPORTAL_GENOMIC_PROFILE_STEP_INX
        ) {
            $('#smartBtnNext').addClass("disabled");
        }
        if (currentStep != scope.STUDY_MAPPING_STEP_INX) {
            $('#rightInnerPane').removeClass("right_inner_panel");
            $('#rightInnerPane').hide();
        }
    };