private void button1_Click(object sender, EventArgs e)
 {
     loaddata();
     Rp_Thanh_Toan_Dai_Ly cry = new Rp_Thanh_Toan_Dai_Ly();
     cry.SetDataSource(dt);
     cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
     cry.SetParameterValue("Gioin", DateTime.Now.ToLongTimeString());
     cry.SetParameterValue("Thoigian", thoiGian);
     cry.SetParameterValue("Title", title);
     crystalReportViewer1.ReportSource = cry;
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     Rp_Thanh_Toan_Dai_Ly rpt = new Rp_Thanh_Toan_Dai_Ly();
     rpt.Site = this.Site;
     return rpt;
 }