protected void btnConfirmComplete_Click(object sender, EventArgs e)
    {
        lblCompleteVacancy.Visible = false;

        string[] splitter = new string[] { PageConstants.GREATER_GREATER_THAN };
        string[] VacancyInfoTosplit = (DropDownListCompVacancy.SelectedItem.Text).Split(splitter, StringSplitOptions.RemoveEmptyEntries);
        string vacancyNo = VacancyInfoTosplit[0].Trim();
        string VacancyDate = VacancyInfoTosplit[1].Trim();

        //Update vacancy Profile arrived date. 
        Vacancy vacancy = new Vacancy();
        vacancy.VacancyNo = vacancyNo;
        vacancy.PostedDate = VacancyDate;

        TransactionResponse response = new TransactionResponse();

        VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy);

        response = manager.getVacancyDetail(vacancy);
        DataTable dataTable = (DataTable)response.Data;
        string vacStatus = null;
        string respProcessor = null;
        string respAccessor = null;
        if (dataTable != null && dataTable.Rows.Count > 0)
        {
            vacStatus = dataTable.Rows[0]["status"].ToString().Trim();

            respProcessor = dataTable.Rows[0]["responsible_processor_EID"].ToString().Trim();
            respAccessor = dataTable.Rows[0]["reponsible_accessor_EID"].ToString().Trim();
        }

        vacancy.ResponsibleProcessorEID = respProcessor;
        vacancy.ResponsibleAccessorEID = respAccessor;

        if (vacStatus == "11" && respAccessor != null && respProcessor != null && respAccessor != "" && respProcessor != "")
        {
            //Change the status of the vacancy into 3 ==> assigned to HR Officer
            //notifiy Re-advertise vacancy re-assigned to HR Officer

            //update vacancy status to 'assigned for Evaluation' STAUS CODE = 3 . 
            vacancy.Status = VacancyConstants.VACANCY_ASSIGNED_TO_HR_OFFICERS;

            VacancyRegistrationAndEvaluationManager vacancyRegistrationManager = new VacancyRegistrationAndEvaluationManager(vacancy);
            response = vacancyRegistrationManager.updateVacancyStatusToAssgnedFromReAdvertise();

            //Notification for HR Officer goes here.
            NotificationManager notificationManager = new NotificationManager(vacancy);
            TransactionResponse notificationResponse = notificationManager.addNotificationForVacancyAssignement(Membership.GetUser(), true);
            if (notificationResponse.isSuccessful())
            {

            }
            else
            {
                WarnDIV.Visible = true;
                lblWarningMsg.Text = notificationResponse.getMessage() + notificationResponse.getErrorCode();
            }
        }
        else
        {

            response = manager.getApplicantRegistrationComplete();

            if (response.isSuccessful())
            {
                response = manager.updateApplicantRegisterationCompleteDate();
                if (response.isSuccessful())
                {
                    msgPanel.Visible = true;
                    SucessDIV.Visible = true;
                    lblSuccessMessage.Text = response.getMessage();

                    PanelCompleteApplicant.Visible = true;
                    btnCompAppReg.Visible = true;
                    DropDownListCompVacancy.ClearSelection();

                    //Register Notification here if its required
                }
                else
                {
                    msgPanel.Visible = true;
                    ErroroDIV.Visible = true;
                    lblErrorMsg.Text = response.getMessage() + response.getErrorCode();
                }
            }
            else
            {
                clearMsgPanel();
                msgPanel.Visible = true;
                InfoDIV.Visible = true;
                lblInformationMsg.Text = response.getMessage();
            }
        }
        populateVacancyList();
        populateVacancyForRegComplete();

        PanelConfirmVacancyComplete.Visible = false;
        DropDownListCompVacancy.ClearSelection();
    }