コード例 #1
0
 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);
 }
コード例 #2
0
        public void LoadThongTin(string MaDangKyBienDong)
        {
            if (Convert.ToInt32(MaDangKyBienDong) < 1)
            {
                CanhBao();
                return;
            }


            if (Session["LoaiHoSo"] == "DuBi")
            {
                tblDonXinDangKyBienDongDuBi XemDon = don.XemDonDangKyBienDongDuBi(Session["DangKyBienDong"].ToString());
                if (XemDon != null)
                {
                    ThongTinNhanHoSo.Visible = false;
                    txtTieuDeDon.Text        = XemDon.TieuDeDon;
                    txtNguoiViet.Text        = XemDon.NguoiVietDon;
                    if (XemDon.NgayVietDon != null)
                    {
                        txtNgayViet.Text = ((DateTime)XemDon.NgayVietDon).ToString("dd/MM/yyyy");
                    }
                }
            }
            else
            {
                ThongTinNhanHoSo.Visible = true;
                tblDonXinDangKyBienDong XemDon = don.XemDonDangKyBienDong(Session["DangKyBienDong"].ToString());
                if (XemDon != null)
                {
                    txtTieuDeDon.Text = XemDon.KinhGuiCoQuanChucNang;
                    txtNguoiViet.Text = XemDon.NguoiVietDon;
                    if (XemDon.NgayVietDon != null)
                    {
                        txtNgayViet.Text = ((DateTime)XemDon.NgayVietDon).ToString("dd/MM/yyyy");
                    }

                    txtNguoiNhan.Text = XemDon.NguoiNhanHoSo;
                    if (XemDon.NgayNhanHoSo != null)
                    {
                        txtNgayNhan.Text = ((DateTime)XemDon.NgayNhanHoSo).ToString("dd/MM/yyyy");
                    }
                    ;
                    txtSoTiepNhan.Text = XemDon.SoTiepNhan;
                    txtQuyen.Text      = XemDon.Quyen;
                }
            }
            string Test_MaDangKyBienDong = Session["DangKyBienDong"].ToString();
        }
 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;
     }
 }
コード例 #4
0
 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);
 }