public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { InHoaDon rpt = new InHoaDon(); rpt.Site = this.Site; return(rpt); }
private void Xemhoadon_Load(object sender, EventArgs e) { List <InHoaDon_DTO> data = new List <InHoaDon_DTO>(); CT_HOADON_BLL bll = new CT_HOADON_BLL(); data = bll.InHoaDon(ma, tiennhan, soluongsp); InHoaDon rpt = new InHoaDon(); rpt.SetDataSource(data); crystalReportViewer1.ReportSource = rpt; }