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;
                }

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