private void frmHoaDonThueDatPhong_Load(object sender, EventArgs e)
        {
            if (!Thue)
                {

                   Report.rpPhieuDangKy rp = new Report.rpPhieuDangKy();
                  CrystalDecisions.Shared.TableLogOnInfo info;
                  info = rp.Database.Tables[0].LogOnInfo;
                  info.ConnectionInfo.ServerName = "192.168.1.39";
                  info.ConnectionInfo.DatabaseName = "QLKS";
                  rp.SetParameterValue("PhieuThue", MaPhieu);
                  rp.Database.Tables[0].ApplyLogOnInfo(info);
                  crystalReportViewer1.ReportSource = rp;
                }
            else
                {
                    Report.rpPhieuNhanPhong rp = new Report.rpPhieuNhanPhong();
                    CrystalDecisions.Shared.TableLogOnInfo info;
                    info = rp.Database.Tables[0].LogOnInfo;
                    info.ConnectionInfo.ServerName = "192.168.1.39";
                    info.ConnectionInfo.DatabaseName = "QLKS";
                    rp.Database.Tables[0].ApplyLogOnInfo(info);
                    rp.SetParameterValue("PhieuThue", MaPhieu);
                    crystalReportViewer1.ReportSource = rp;
                }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rpPhieuDangKy rpt = new rpPhieuDangKy();
     rpt.Site = this.Site;
     return rpt;
 }