Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            InHoaDon rpt = new InHoaDon();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        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;
        }