private void Frm_Report_Load(object sender, EventArgs e)
 {
     if (type == "PHT_THUPHI")
     {
         Rpt_PHT_THUPHI cry = new Rpt_PHT_THUPHI();
         cry.SetDataSource(dt);                
         cry.SetParameterValue("Title", title);
         cry.SetParameterValue("Title2", title2);
         crystalReportViewer1.ReportSource = cry;
     }
     if (type == "BILILING_CREDIT_3")
     {
         Rpt_Credit_Billing_new_3 cry = new Rpt_Credit_Billing_new_3 ( );
         cry.Database.Tables[0].SetDataSource ( dt );
         crystalReportViewer1.ReportSource = cry;
     }
     if (type == "ACCOUNTING_REPORT")
     {
         Rpt_ACCOUNTING_REPORT cry = new Rpt_ACCOUNTING_REPORT();
         cry.SetDataSource(dt);
         cry.SetParameterValue("ThoiGian", thoiGian);
         cry.SetParameterValue("Title", title);
         crystalReportViewer1.ReportSource = cry;
     }
     if (type == "ACCOUNTING_REPORT_DETAILS")
     {
         rpt_ACCOUNTING_REPORT_DETAILS cry = new rpt_ACCOUNTING_REPORT_DETAILS();
         cry.SetDataSource(dt);
         cry.SetParameterValue("ThoiGian", thoiGian);
         cry.SetParameterValue("Title", title);
         crystalReportViewer1.ReportSource = cry;
     }
     else if (type == "MC_15")
     {
         rpt_MC_15 cry = new rpt_MC_15 ( );
         cry.SetDataSource ( dt );
         cry.SetParameterValue ( "ThoiGian", thoiGian );
         cry.SetParameterValue ( "title", title );
         crystalReportViewer1.ReportSource = cry;
     }
     if (type == "BC_CR_APP_HOLD_RELEASE")
     {
         Rp_Credit_App_Hold_Release cry = new Rp_Credit_App_Hold_Release();
         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;
     }
     else if (type == "MC_15B")
     {
         rpt_MC_15B cry = new rpt_MC_15B();
         cry.SetDataSource(dt);
         cry.SetParameterValue("ThoiGian", thoiGian);
         cry.SetParameterValue("title", title);
         crystalReportViewer1.ReportSource = cry;
     }
     else if (type == "3")
     {
         Rp_Chargeback_BNK cry = new Rp_Chargeback_BNK ( );
         cry.SetDataSource ( dt );
         cry.SetParameterValue ( "Ngayin", DateTime.Now.ToShortDateString ( ) );
         cry.SetParameterValue ( "Gioin", DateTime.Now.ToLongTimeString ( ) );
         cry.SetParameterValue ( "Title", title );
         crystalReportViewer1.ReportSource = cry;
     }
     if (type == "PHI_CHIET_KHAU_DAI_LY")
     {
         rpt_PHI_CHIET_KHAU_DAI_LY phi = new rpt_PHI_CHIET_KHAU_DAI_LY ( );
         phi.SetDataSource ( dt );
         phi.SetParameterValue ( "title", title );
         phi.SetParameterValue ( "title2", title2 );
         crystalReportViewer1.ReportSource = phi;
     }
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     Rp_Chargeback_BNK rpt = new Rp_Chargeback_BNK();
     rpt.Site = this.Site;
     return rpt;
 }