private void getRecentlySelectedLateralPenalityEmployee(Vacancy vacancy, int isfromAll)
    {
        TransactionResponse response = null;
        VacancyRegistrationAndEvaluationManager manager = new VacancyRegistrationAndEvaluationManager(vacancy);
        try
        {
            // Notification Manager. 
            response = manager.getRecentlySelectedEmpResult();
            DataTable dataTable = null;
            if (response.isSuccessful())
            {
                //get Data from TransactionResponse
                dataTable = (DataTable)response.Data;
                if (isfromAll == 0)
                {
                    if (dataTable != null && dataTable.Rows.Count != 0)
                    {
                        RecSelectedPanel.Visible = true;
                        recentlySecGV.DataSource = dataTable;
                        recentlySecGV.DataBind();
                    }
                    else
                    {
                        RecSelectedPanel.Visible = false;
                    }
                }
                else if (isfromAll == 1)
                {
                    if (dataTable != null && dataTable.Rows.Count != 0)
                    {
                        AllUnqualifiedReportPanel.Visible = true;
                        allPhaseUnqalifiedReportGV.DataSource = dataTable;
                        allPhaseUnqalifiedReportGV.DataBind();
                    }
                    else
                    {
                        AllUnqualifiedReportPanel.Visible = false;
                    }
                }

            }

            //display message to user.
            displayMessageToTheUser(response);
        }
        //CATCH ANY OTHER EXCEPTION, dont let user see any kind of unexpected error
        catch (Exception ex)
        {
            //Write this exception to file for investigation of the issue later. 
            LoggerManager.LogError(ex.ToString(), logger);
            ErroroDIV.Visible = true;
            if (response != null)
            {
                lblErrorMsg.Text = response.getMessage() + response.getErrorCode();
            }
            else
            {
                lblErrorMsg.Text = DBOperationErrorConstants.M_UNKNOWN_EVIL_ERROR + DBOperationErrorConstants.E_UNKNOWN_EVIL_ERROR;
            }
        }
    }