Пример #1
0
        private void CRKhoangThoiGianHD_Load(object sender, EventArgs e)
        {
            HoaDonXuatBUS        _hdxBus = new HoaDonXuatBUS();
            List <HoaDonXuatDTO> lshdx   = new List <HoaDonXuatDTO>();

            lshdx = _hdxBus.TimDanhSachHoaDon(tungay, denngay);
            ReportDocument rp = new ReportDocument();

            rp.Load(@"C:\Users\Ron\Desktop\Tốt Nghiệp\CHTapHoa\CHTapHoa\Reports\KhoangThoiGianHD.rpt");
            rp.SetDataSource(lshdx);
            crystalReportViewer1.ReportSource = rp;
            this.crystalReportViewer1.Show();
            this.crystalReportViewer1.Refresh();
        }
Пример #2
0
 private void btnXemThoiGian_Click(object sender, EventArgs e)
 {
     lsthdxdto = hdxbus.TimDanhSachHoaDon(TuNgay.Value, DenNgay.Value);
     gridControl1.DataSource = lsthdxdto;
 }