private void ClearFields()
    {
        try
        {
            RD_txtEmployee.Text    = string.Empty;
            RD_txtDesignation.Text = string.Empty;
            RD_txtAge.Text         = string.Empty;
            RD_txtSex.Text         = string.Empty;
            RD_cmbIncident.ClearSelection();
            RD_txtPlaceOfIncident.Text       = string.Empty;
            RD_dtIncidentDtTime.SelectedDate = null;
            RD_cmbInjuryCause.ClearSelection();
            RD_cmbInjuryType.ClearSelection();
            //RD_txtSeverity.Text = string.Empty;
            RD_cmbSeverity.ClearSelection();
            RD_txtRemarks.Text = string.Empty;
            lblIncidentID.Text = string.Empty;

            btnAddRemarks.Visible    = false;
            btnSave.Visible          = false;
            btnEdit.Visible          = false;
            rm_MR_Page.SelectedIndex = 0;
            ////rad_IsActive.Checked = false;
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_AddIncidentsToEmp", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
    private void LoadIncident_Injury()
    {
        try
        {
            //To populate radcomboboxes - RD_cmbIncident, RD_cmbInjuryType, RD_cmbInjuryCause

            SMHR_WorkmanCompensation objWorkComp = new SMHR_WorkmanCompensation();
            objWorkComp.OPERATION       = operation.Select;
            objWorkComp.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"].ToString());
            DataSet dsInicidentInjury = new DataSet();
            dsInicidentInjury = BLL.GET_SMHR_INCIDENTS(objWorkComp);
            //To populate incidents from SMHR_INCIDENTS_MASTER table
            if (dsInicidentInjury.Tables.Count > 0)
            {
                if (dsInicidentInjury.Tables[0].Rows.Count > 0)
                {
                    RD_cmbIncident.DataSource     = dsInicidentInjury.Tables[0];
                    RD_cmbIncident.DataTextField  = "INCIDENT_NAME";
                    RD_cmbIncident.DataValueField = "INCIDENT_ID";
                    RD_cmbIncident.DataBind();
                    RD_cmbIncident.Items.Insert(0, new RadComboBoxItem("Select"));
                }
                else
                {
                    RD_cmbIncident.Items.Clear();
                }
                //To populate Injury_Cause from SMHR_HR_MASTER table
                if (dsInicidentInjury.Tables[1].Rows.Count > 0)
                {
                    RD_cmbInjuryCause.DataSource     = dsInicidentInjury.Tables[1];
                    RD_cmbInjuryCause.DataTextField  = "HR_MASTER_CODE";
                    RD_cmbInjuryCause.DataValueField = "HR_MASTER_ID";
                    RD_cmbInjuryCause.DataBind();
                    RD_cmbInjuryCause.Items.Insert(0, new RadComboBoxItem("Select"));
                }
                else
                {
                    RD_cmbInjuryCause.Items.Clear();
                }
                //To populate Injury_Type from SMHR_HR_MASTER table
                if (dsInicidentInjury.Tables[2].Rows.Count > 0)
                {
                    RD_cmbInjuryType.DataSource     = dsInicidentInjury.Tables[2];
                    RD_cmbInjuryType.DataTextField  = "HR_MASTER_CODE";
                    RD_cmbInjuryType.DataValueField = "HR_MASTER_ID";
                    RD_cmbInjuryType.DataBind();
                    RD_cmbInjuryType.Items.Insert(0, new RadComboBoxItem("Select"));
                }
                else
                {
                    RD_cmbInjuryType.Items.Clear();
                }
                //To populate Severity from SMHR_HR_MASTER table
                if (dsInicidentInjury.Tables[3].Rows.Count > 0)
                {
                    RD_cmbSeverity.DataSource     = dsInicidentInjury.Tables[3];
                    RD_cmbSeverity.DataTextField  = "HR_MASTER_CODE";
                    RD_cmbSeverity.DataValueField = "HR_MASTER_ID";
                    RD_cmbSeverity.DataBind();
                    RD_cmbSeverity.Items.Insert(0, new RadComboBoxItem("Select"));
                }
                else
                {
                    RD_cmbSeverity.Items.Clear();
                }
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_AddIncidentsToEmp", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }