protected void btnSearchNationalCode_Click(object sender, EventArgs e)
        {
            lblkhata1.Text = "";
            RdbChangeReason.SelectedIndex = 0;
            txtHadeseDate.Text            = "";
            //   txtMobile.Text = "";
            lblShowMablagh.Text = "";
            SessionHelper.ClearSession("FinalMablagh");
            SessionHelper.ClearSession("OriginalMablagh");
            hidImage.Dispose();
            hidImage2.Dispose();
            foreach (ListItem item in ListNaghsType.Items)
            {
                if (item.Selected)
                {
                    ListNaghsType.SelectedItem.Selected = false;
                }
            }

            if (txtNationalCode.Text.Trim().Length > 0)
            {
                lblkhata1.Text = "";
                //InsuredِData data = new InsuredِData();
                DataSet ds = DataAccessFactory.CreateInsuredData().GetInsuredData(Convert.ToInt64(txtNationalCode.Text), SessionHelper.Dastgah.DastgahCode);
                if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    if (ds.Tables[0].Columns.Count > 0 && ds.Tables[0].Columns[0].ColumnName == "KHATA")
                    {
                        lblkhata1.Text        = ds.Tables[0].Rows[0]["KHATA"].ToString().Trim();
                        DivPersonInfo.Visible = false;
                        DivInfoPart1.Visible  = false;
                    }
                    else if (ds.Tables[0].Columns.Count > 0)
                    {
                        lblName.Text          = Convert.ToString((ds.Tables[0].Rows[0]["Name"]));
                        lblFamily.Text        = Convert.ToString((ds.Tables[0].Rows[0]["Family"]));
                        lblBirthdate.Text     = Convert.ToString((ds.Tables[0].Rows[0]["birthdate"]));
                        lblDafterKol.Text     = Convert.ToString((ds.Tables[0].Rows[0]["Daftar_No"]));
                        lblContractDate.Text  = Convert.ToString((ds.Tables[0].Rows[0]["cdate"]));
                        lblJobKind.Text       = Convert.ToString((ds.Tables[0].Rows[0]["PersonBimeType_Desc"]));
                        DivPersonInfo.Visible = true;
                        DivInfoPart1.Visible  = true;
                    }
                }
                else
                {
                    DivPersonInfo.Visible = false;
                    DivInfoPart1.Visible  = false;
                }
            }
        }