Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Report.rptBaoCaoNhapHang rpt = new Report.rptBaoCaoNhapHang();
     //-----------
     frmReport f = new frmReport(rpt, dtpNNTu.Value, dtpNNDen.Value);
     f.Text = "Báo cáo nhập hàng";
     f.Show();
 }
Esempio n. 2
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();
        }