private void Reload() { this._reportViewer.LocalReport.DataSources.Clear(); Microsoft.Reporting.WinForms.ReportDataSource rdsCaiDatThongTinCongTy = new Microsoft.Reporting.WinForms.ReportDataSource(); rdsCaiDatThongTinCongTy.Name = "CAIDATTHONGTINCONGTY"; rdsCaiDatThongTinCongTy.Value = BOBaoCaoLichSuBanHang.GetCaiDatThongTinCongTy(); this._reportViewer.LocalReport.DataSources.Add(rdsCaiDatThongTinCongTy); Microsoft.Reporting.WinForms.ReportDataSource rdsBaoCaoLichSuBanHang = new Microsoft.Reporting.WinForms.ReportDataSource(); rdsBaoCaoLichSuBanHang.Name = "BAOCAOLICHSUBANHANG"; rdsBaoCaoLichSuBanHang.Value = BOBaoCaoLichSuBanHang.GetBaoCaoLichSuBanHang(uCTileReport.GetDateFrom, uCTileReport.GetDateTo); this._reportViewer.LocalReport.DataSources.Add(rdsBaoCaoLichSuBanHang); Microsoft.Reporting.WinForms.ReportDataSource rdsDateTimeReport = new Microsoft.Reporting.WinForms.ReportDataSource(); rdsDateTimeReport.Name = "DATETIMEREPORT"; List <Data.DateTimeReport> lsDate = new List <Data.DateTimeReport>(); lsDate.Add(new Data.DateTimeReport() { DateFrom = uCTileReport.GetDateFrom, DateTo = uCTileReport.GetDateTo }); rdsDateTimeReport.Value = lsDate; this._reportViewer.LocalReport.DataSources.Add(rdsDateTimeReport); this._reportViewer.LocalReport.ReportEmbeddedResource = "Report.LichSuBanHang.Report.rdlc"; _reportViewer.RefreshReport(); }