private void Load()
        {
            PhieuThuTienBUS            bus        = new PhieuThuTienBUS();
            List <Entity.PhieuThuTien> dsPhieuThu = bus.GetList();

            dsKhachHang = busKhachHang.GetList();
            dsHoaDon    = busHoaDon.GetList();

            foreach (Entity.PhieuThuTien ptt in dsPhieuThu)
            {
                ThongTinPhieuThu info = new ThongTinPhieuThu();
                info.SoTienThu      = ptt.SoTienThu.ToString();
                info.MaPhieuThuTien = ptt.MaPTT;
                info.NgayNhap       = ptt.NgayThuTien.ToString();

                foreach (var hd in dsHoaDon)
                {
                    if (hd.MaHD == ptt.MaHD)
                    {
                        foreach (KhachHang kh in dsKhachHang)
                        {
                            if (kh.MaKH == hd.TenKH)
                            {
                                info.HoTenKhachHang = kh.TenKH;
                                info.SoDienThoai    = kh.SoDienThoai;
                                info.DiaChi         = kh.DiaChiKH;
                                info.Email          = kh.Email;
                                break;
                            }
                        }
                        break;
                    }
                }

                dataGrid.Items.Add(info);
            }
        }
        private void Load()
        {
            PhieuThuTienBUS bus = new PhieuThuTienBUS();
            List<Entity.PhieuThuTien> dsPhieuThu = bus.GetList();

            dsKhachHang = busKhachHang.GetList();
            dsHoaDon = busHoaDon.GetList();

            foreach (Entity.PhieuThuTien ptt in dsPhieuThu)
            {
                ThongTinPhieuThu info = new ThongTinPhieuThu();
                info.SoTienThu = ptt.SoTienThu.ToString();
                info.MaPhieuThuTien = ptt.MaPTT;
                info.NgayNhap = ptt.NgayThuTien.ToString();

                foreach (var hd in dsHoaDon)
                {
                    if(hd.MaHD==ptt.MaHD)
                    {
                        foreach (KhachHang kh in dsKhachHang)
                        {
                            if (kh.MaKH == hd.TenKH)
                            {
                                info.HoTenKhachHang = kh.TenKH;
                                info.SoDienThoai = kh.SoDienThoai;
                                info.DiaChi = kh.DiaChiKH;
                                info.Email = kh.Email;
                                break;
                            }
                        }
                        break;
                    }
                }
                
                dataGrid.Items.Add(info);
            }       
        }