protected internal virtual void btnReport_Click(object sender, EventArgs e)
 {
     if (dgvDataShow.Rows.Count - 1 > 0)
     {
         Main.PGB pgb = new Main.PGB();
         pgb.progressBar1.Style = ProgressBarStyle.Marquee;
         pgb.progressBar1.MarqueeAnimationSpeed = 2000;
         pgb.Text = "啟動報表";
         pgb.label1.Text = "報表啟動中.....請稍候";
         pgb.Show();
         Application.DoEvents();
         DataSet insert = new DataSet();
         srcDataMergeDefect();
         insert.Tables.Add(mergeData);
         insert.WriteXmlSchema("TEMP.xml");
         try
         {
             DevelopmentProductDailyReportLF report = new DevelopmentProductDailyReportLF();
             report.SetDataSource(insert);
             rtpDevelopmentProduct rptdlp = new rtpDevelopmentProduct();
             rptdlp.crystalReportViewer1.ReportSource = report;
             rptdlp.Show();
             pgb.Dispose();
         }
         catch (Exception ex)
         {
             sysMessage.SystemEx(ex.Message);
         }
     }
     else
     {
         sysMessage.NoData();
     }
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     DevelopmentProductDailyReportLF rpt = new DevelopmentProductDailyReportLF();
     rpt.Site = this.Site;
     return rpt;
 }