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 LoadThongTin(string MaDangKyBienDong)
 {
     if (Session["LoaiHoSo"] == "DuBi")
     {
         tblDonXinDangKyBienDongDuBi DonHienTai = don.LayDonDuBi(MaDangKyBienDong);
         if (DonHienTai != null)
         {
             txtSoVaoSoCapGCN.Text = DonHienTai.SoVaoSoCapGCN;
             txtSoPhatHanhGCN.Text = DonHienTai.SoPhatHanhGCN;
             if (DonHienTai.NgayCapGCN != null)
             {
                 txtNgayCapGCN.Text = DonHienTai.NgayCapGCN.ToString();
             }
             txtNoiDungBienDongVe.Text               = DonHienTai.BienDongVe;
             txtNoiDungTrenGCNTruocBD.Text           = DonHienTai.NoiDungGhiTrenGCNTruocKhiBienDong;
             txtNoiDungSauBD.Text                    = DonHienTai.NoiDungSauKhiBienDong;
             txtLyDoBienDong.Text                    = DonHienTai.LyDoBienDong;
             txtTinhHinhThucHienNghiaVuTaiChinh.Text = DonHienTai.TinhHinhThucHienNghiaVuTaiChinh;
             txtGiayToLienQuan.Text                  = DonHienTai.GiayToKemTheo;
         }
     }
     else if (Session["LoaiHoSo"] == "ChinhThuc")
     {
         tblDonXinDangKyBienDong DonHienTai = don.LayDon(MaDangKyBienDong);
         if (DonHienTai != null)
         {
             txtSoVaoSoCapGCN.Text = DonHienTai.SoVaoSoCapGCN;
             txtSoPhatHanhGCN.Text = DonHienTai.SoPhatHanhGCN;
             if (DonHienTai.NgayCapGCN != null)
             {
                 txtNgayCapGCN.Text = DonHienTai.NgayCapGCN.ToString();
             }
             txtNoiDungBienDongVe.Text               = DonHienTai.BienDongVe;
             txtNoiDungTrenGCNTruocBD.Text           = DonHienTai.NoiDungGhiTrenGCNTruocKhiBienDong;
             txtNoiDungSauBD.Text                    = DonHienTai.NoiDungSauKhiBienDong;
             txtLyDoBienDong.Text                    = DonHienTai.LyDoBienDong;
             txtTinhHinhThucHienNghiaVuTaiChinh.Text = DonHienTai.TinhHinhThucHienNghiaVuTaiChinh;
             txtGiayToLienQuan.Text                  = DonHienTai.GiayToKemTheo;
         }
     }
     else
     {
         return;
     }
 }
 public void LoadThongTin(string MaDangKyBienDong)
 {
     if (Session["LoaiHoSo"] == "DuBi")
     {
         tblDonXinDangKyBienDongDuBi DonHienTai = don.LayDonDuBi(MaDangKyBienDong);
         if (DonHienTai != null)
         {
             txtSoVaoSoCapGCN.Text = DonHienTai.SoVaoSoCapGCN;
             txtSoPhatHanhGCN.Text = DonHienTai.SoPhatHanhGCN;
             if (DonHienTai.NgayCapGCN != null)
             {
                 txtNgayCapGCN.Text = DonHienTai.NgayCapGCN.ToString();
             }
             txtLyDoBienDong.Text   = DonHienTai.LyDoBienDong;
             txtGiayToLienQuan.Text = DonHienTai.GiayToKemTheo;
         }
     }
     else if (Session["LoaiHoSo"] == "ChinhThuc")
     {
         tblDonXinDangKyBienDong DonHienTai = don.LayDon(MaDangKyBienDong);
         if (DonHienTai != null)
         {
             txtSoVaoSoCapGCN.Text = DonHienTai.SoVaoSoCapGCN;
             txtSoPhatHanhGCN.Text = DonHienTai.SoPhatHanhGCN;
             if (DonHienTai.NgayCapGCN != null)
             {
                 txtNgayCapGCN.Text = DonHienTai.NgayCapGCN.ToString();
             }
             txtLyDoBienDong.Text   = DonHienTai.LyDoBienDong;
             txtGiayToLienQuan.Text = DonHienTai.GiayToKemTheo;
         }
     }
     else
     {
         return;
     }
     ucThongTinThuaDatCoThayDoiDoDoDacLai.LoadThongTin(MaDangKyBienDong);
     ucThongTinTaiSanGanLienVoiDatDaCapGCNCoThayDoi.LoadThongTin(MaDangKyBienDong);
 }