예제 #1
0
        private void btIn_Click(object sender, EventArgs e)
        {
            ReportClass rpt=null;
            switch (type)
            {
                case 1: rpt = new Report.rptTheoTheLoai_Nhap();
                    break;

                case -1: rpt = new Report.rptTheoTheLoai_Xuat();
                    break;

                case 2: rpt = new Report.rptTheoTuaDe_Nhap();
                    break;

                case -2: rpt = new Report.rptTheoTuaDe_Xuat();
                    break;

                case 3: rpt = new Report.rptTheoNCC_Nhap();
                    break;

                case -3: rpt = new Report.rptTheoNCC_Xuat();
                    break;

                case 4: rpt = new Report.rptTheoNXB_Nhap();
                    break;

                case -4: rpt = new Report.rptTheoNXB_Xuat();
                    break;

                case 5: rpt = new Report.rptTheoTacGia_Nhap();
                    break;

                case -5: rpt = new Report.rptTheoTacGia_Xuat();
                    break;

                case 6: rpt = new Report.rptTheoNhanVien_Nhap();
                    break;

                case -6: rpt = new Report.rptTheoNhanVien_Xuat();
                    break;
                case 0:
                    return;
            }

            frmReport f = new frmReport(rpt, dtpNNTu.Value, dtpNNDen.Value);
            f.Show();
        }
예제 #2
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptTheoTheLoai_Xuat rpt = new rptTheoTheLoai_Xuat();
     rpt.Site = this.Site;
     return rpt;
 }