コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            TKDtCaTrongNgayIn rpt = new TKDtCaTrongNgayIn();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        public void TkDtCaTrongNgay()
        {
            DoanhThuDTO doanhthu = new DoanhThuDTO();

            doanhthu.ThoiGianKt = dtpthoigian.Value.ToString();
            DataSet           ds     = doanhthu_bus.ThongKe_DtCaTrongNgay(doanhthu);
            TKDtCaTrongNgay   tkdt   = new TKDtCaTrongNgay();
            TKDtCaTrongNgayIn tkdtin = new TKDtCaTrongNgayIn();

            tkdtin.SetDataSource(ds.Tables[0]);
            tkdt.crvdoanhthucatrongngay.ReportSource = tkdtin;
            tkdt.ShowDialog();
        }