示例#1
0
 private void Frm_Report_Load(object sender, EventArgs e)
 {
     if (type == "BC_AUTOPAYMENT_1")
     {
         Rpt_Auto_Payment_DSKHDangKy cry = new Rpt_Auto_Payment_DSKHDangKy();
         cry.SetDataSource(dt);
         cry.SetParameterValue("Title2", title2);
         crystalReportViewer1.ReportSource = cry;
     }
     if (type == "BC_AUTOPAYMENT_2")
     {
         Rpt_Auto_Payment_2 cry = new Rpt_Auto_Payment_2();
         cry.SetDataSource(dt);
         cry.SetParameterValue("Title2", title2);
         crystalReportViewer1.ReportSource = cry;
     }
     if (type == "BC_AUTOPAYMENT_3")
     {
         Rpt_Auto_Payment_Will_Process cry = new Rpt_Auto_Payment_Will_Process();
         cry.SetDataSource(dt);
         cry.SetParameterValue("Title2", title2);
         crystalReportViewer1.ReportSource = cry;
     }
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     Rpt_Auto_Payment_2 rpt = new Rpt_Auto_Payment_2();
     rpt.Site = this.Site;
     return rpt;
 }