private void frmShowReport2_Load(object sender, EventArgs e)
        {
            try
            {
                if (type == "DC_10")
                {
                    Rp_Acq_10 cry = new Rp_Acq_10();
                    cry.SetDataSource(dt);
                    cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                    cry.SetParameterValue("Title", title);
                    cry.SetParameterValue("FromTime", fromtime);
                    cry.SetParameterValue("ToTime", totime);
                    crystalReportViewer1.ReportSource = cry;
                }
                if (type == "DC_11")
                {
                    Rp_Acq_11 cry = new Rp_Acq_11();
                    cry.SetDataSource(dt);
                    cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                    cry.SetParameterValue("Title", title);
                    cry.SetParameterValue("FromTime", fromtime);
                    cry.SetParameterValue("ToTime", totime);
                    crystalReportViewer1.ReportSource = cry;
                }
                if (type == "DC_12")
                {
                    Rp_Acq_12 cry = new Rp_Acq_12();
                    cry.SetDataSource(dt);
                    cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                    cry.SetParameterValue("Title", title);
                    cry.SetParameterValue("FromTime", fromtime);
                    cry.SetParameterValue("ToTime", totime);
                    crystalReportViewer1.ReportSource = cry;
                }
                if (type == "DC_14")
                {
                    Rp_Acq_14 cry = new Rp_Acq_14();
                    cry.SetDataSource(dt);
                    cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                    cry.SetParameterValue("Title", title);
                    cry.SetParameterValue("FromTime", fromtime);
                    cry.SetParameterValue("ToTime", totime);
                    crystalReportViewer1.ReportSource = cry;
                }
                if (type == "DC_15")
                {
                    Rp_Acq_15 cry = new Rp_Acq_15();
                    cry.SetDataSource(dt);
                    cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                    cry.SetParameterValue("Title", title);
                    cry.SetParameterValue("FromTime", fromtime);
                    cry.SetParameterValue("ToTime", totime);
                    crystalReportViewer1.ReportSource = cry;

                }
                if (type == "DC_16")
                {
                    Rp_Acq_16 cry = new Rp_Acq_16();
                    cry.SetDataSource(dt);
                    cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                    cry.SetParameterValue("Title", title);
                    cry.SetParameterValue("FromTime", fromtime);
                    cry.SetParameterValue("ToTime", totime);
                    crystalReportViewer1.ReportSource = cry;

                }

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     Rp_Acq_15 rpt = new Rp_Acq_15();
     rpt.Site = this.Site;
     return rpt;
 }