Esempio n. 1
0
        private void frmHoaDonXuat_Load(object sender, EventArgs e)
        {
            gridControl1.DataSource = hdxbus.DanhSachHoaDonXuat();

            txtMHDX.EditValue = hdxbus.TangHD();
            bthIHD.Enabled    = false;

            CTHDXuatBUS chitiet = new CTHDXuatBUS();
        }
Esempio n. 2
0
        private void frmHoaDonThang_Load(object sender, EventArgs e)
        {
            HoaDonXuatBUS        _hdxBus = new HoaDonXuatBUS();
            List <HoaDonXuatDTO> lshdx   = new List <HoaDonXuatDTO>();

            lshdx = _hdxBus.DanhSachHoaDonXuat();

            ReportDocument rp = new ReportDocument();

            rp.Load(@"C:\Users\Ron\Desktop\Tốt Nghiệp\CHTapHoa\CHTapHoa\Reports\TatCaHoaDon.rpt");
            rp.SetDataSource(lshdx);
            crystalReportViewer1.ReportSource = rp;
            this.crystalReportViewer1.Show();
            this.crystalReportViewer1.Refresh();
        }