private bool checkEmployeeRemark()
    {
        VacancyRegistrationAndEvaluationManager vacRegisterManager = new VacancyRegistrationAndEvaluationManager();
        TransactionResponse response = null;

        response = vacRegisterManager.checkEmployeeInEmployeeRemarktable(txtWAADEmpID.Text.Trim(), BAD_REMARK);
        DataTable dataTable = (DataTable)response.Data;
        if (dataTable.Rows.Count > 0 && dataTable != null)
        {

            string refNO = dataTable.Rows[0]["Reference No"].ToString();
            string empID = dataTable.Rows[0]["Emp ID"].ToString();
            string empName = dataTable.Rows[0]["Employee Name"].ToString();
            string dateOfRemark = Convert.ToDateTime(dataTable.Rows[0]["Date Of Remark"]).ToShortDateString();
            string remarkType = dataTable.Rows[0]["Remark Type"].ToString();
            string penalty = dataTable.Rows[0]["Penalty"].ToString();
            string managerID = dataTable.Rows[0]["Manager ID"].ToString();
            string mangerName = dataTable.Rows[0]["Manager Name"].ToString();
            string managerPositionID = dataTable.Rows[0]["managerPosition"].ToString();
            string managerPosition = dataTable.Rows[0]["Manager Position"].ToString();
            string BranchName = dataTable.Rows[0]["Branch Name"].ToString();
            string remarkReason = dataTable.Rows[0]["Remark Reason"].ToString();

            clearMsgPanel();
            msgPanel.Visible = true;
            ErroroDIV.Visible = true;
            lblErrorMsg.Text = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u><b>The Employee you are trying to register is on penalty</b></u>" +
                "<table style='color: #666666'><tr><td align='right' width='350' color: #666666>Reference No. :</td><td>" + refNO + "</td></tr>" +
                "<tr><td align='right' width='350' >Date Of Penalty :</td><td>" + dateOfRemark + "</td></tr>" +
                "<tr><td align='right'>Penalty :</td><td>" + penalty + "</td>" +
                "<tr><td align='right' width='350'>Immediate Manager :</td><td>" + mangerName + " [" + managerID + "]</td></tr>" +
                "<tr><td align='right' width='350'>Immediate Manager Position :</td><td>" + managerPosition + "</td></tr></table>";

            return false;
        }

        return true;
    }