public void LoadThongTin(string MaDangKyBienDong)
 {
     if (Session["LoaiHoSo"] == "DuBi")
     {
         tblDonXinDangKyBienDongDuBi DonHienTai = don.LayDonDuBi(MaDangKyBienDong);
         if (DonHienTai != null)
         {
             txtLyDoTachHopThua.Text = DonHienTai.LyDoBienDong;
             txtGiayToLienQuan.Text  = DonHienTai.GiayToKemTheo;
         }
     }
     else if (Session["LoaiHoSo"] == "ChinhThuc")
     {
         tblDonXinDangKyBienDong DonHienTai = don.LayDon(MaDangKyBienDong);
         if (DonHienTai != null)
         {
             txtLyDoTachHopThua.Text = DonHienTai.LyDoBienDong;
             txtGiayToLienQuan.Text  = DonHienTai.GiayToKemTheo;
         }
     }
     else
     {
         return;
     }
     Tach_HopThua.LoadThongTin(MaDangKyBienDong);
 }
        public void ApDungTrangThai()
        {
            if ((ThaoTac)Session["ThaoTac"] == ThaoTac.ChiXem)
            {
                btnLuuThongTinKeKhai.Enabled = false;
                EnableInput(false);
            }
            else if ((ThaoTac)Session["ThaoTac"] == ThaoTac.DangSua || (ThaoTac)Session["ThaoTac"] == ThaoTac.ThemMoi)
            {
                btnLuuThongTinKeKhai.Enabled = true;
                EnableInput(true);
            }
            else if ((ThaoTac)Session["ThaoTac"] == ThaoTac.KhongNhap)
            {
            }

            Tach_HopThua.ApDungTrangThai();
        }
        public void EnableInput(bool enable)
        {
            txtLyDoTachHopThua.Enabled = txtGiayToLienQuan.Enabled = enable;

            Tach_HopThua.EnableInput(enable);
        }