protected void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                lblMessage.Text = "";

                DanhMucThietHaiDAO dao = new DanhMucThietHaiDAO();

                DanhMucThietHaiDTO thietHai = new DanhMucThietHaiDTO();
                thietHai.Ma = int.Parse( hiddenDanhMucID.Value );
                string thamchieu = Session["ThamChieu"].ToString();
                thietHai.MaClaim = thamchieu;
                thietHai.MaHangMuc = int.Parse(drDamaged.SelectedValue);
                thietHai.ThietHaiHoanToan = txtTotally.Text;
                thietHai.TrangThai = txtPartial.Text;
                if (checkTinhTrang.Checked)
                    thietHai.TinhTrang = "Yes";
                else
                    thietHai.TinhTrang = "No";
                thietHai.YKienGDV = txtYKienGDV.Text;
                thietHai.MoTaChung = txtMoTaChung.Text;
                dao.CapNhatDanhMucThietHai(thietHai);

                panelGrid.Visible = true;
                panelAddEdit.Visible = false;

                Response.Write("<script>parent.reloaData();</script>");
                int maGDV = int.Parse(Request.Cookies["MaGDV"].Value);
                string noidung = gdv.LayTenTheoMa(maGDV) + " edited summary of loss of case" + thamchieu + " .";
                SaveLogTracking(maGDV, noidung, thamchieu);
                loadDanhMucThietHai();
            }
            catch (Exception ex)
            {
                lblMessage.Text = ex.Message;
            }
        }