private void dtpFromDate_ValueChanged(object sender, EventArgs e)
        {
            string fromDate = dtpFromDate.Value.Date.ToString("yyyy-MM-dd");
            string toDate   = dtpToDate.Value.Date.ToString("yyyy-MM-dd");

            dgvThongKe.DataSource = thongKeBUS.BaoCaoHoaDonNhapHang(fromDate, toDate);
        }
예제 #2
0
        private void frm_CR_BaoCaoHoaDonNhapHang_Load_1(object sender, EventArgs e)
        {
            DataTable data             = thongKeBUS.BaoCaoHoaDonNhapHang(fromDate, toDate);
            cryBaoCaoHoaDonNhapHang bc = new cryBaoCaoHoaDonNhapHang();

            bc.SetDataSource(data);
            cryBaoCao.ReportSource = bc;
        }