public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     KetQuaKham rpt = new KetQuaKham();
     rpt.Site = this.Site;
     return rpt;
 }
        private void btnKBenh_In_Click(object sender, EventArgs e)
        {
            expandableSplitter1.Expanded = true;
            btnKBenh_TroLai.Visible = true;
            btnKBenh_In.Visible = false;
            groupPanel5.Visible = false;

            KetQuaKham rp = new KetQuaKham();
            ParameterValues a = new ParameterValues();
            ParameterDiscreteValue b = new ParameterDiscreteValue();
            b.Value = txtKBenh_HoBN.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["HoBenhNhan"].ApplyCurrentValues(a);

            b.Value = txtKBenh_TenBN.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["TenBenhNhan"].ApplyCurrentValues(a);

            b.Value = txtKBenh_MaPhieuKham.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["MaPhieuKham"].ApplyCurrentValues(a);

            b.Value = txtKBenh_GioiTinhBN.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["GioiTinh"].ApplyCurrentValues(a);

            b.Value = dtPickerKBenh_NgaySinh.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["NgaySinh"].ApplyCurrentValues(a);

            b.Value = txtKBenh_DiaChiBN.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["DiaChi"].ApplyCurrentValues(a);

            b.Value = txtKBenh_LyDoKham.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["LyDoKham"].ApplyCurrentValues(a);

            b.Value = txtKBenh_TTHienTai.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["TinhTrangHienTai"].ApplyCurrentValues(a);

            b.Value = txtKBenh_BenhSu.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["BenhSu"].ApplyCurrentValues(a);

            b.Value = dtPickerKBenh_NgayKham.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["NgayKham"].ApplyCurrentValues(a);

            b.Value = cboKBenh_PhongKham.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["PhongKham"].ApplyCurrentValues(a);

            b.Value = txtKBenh_HoBacSi.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["HoBacSi"].ApplyCurrentValues(a);

            b.Value = txtKBenh_TenBacSi.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["TenBacSi"].ApplyCurrentValues(a);

            b.Value = txtKBenh_ChuanDoanSoBo.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["ChanDoanSoBo"].ApplyCurrentValues(a);

            b.Value = txtKBenh_YeuCauThem.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["YeuCauThem"].ApplyCurrentValues(a);

            b.Value = txtKBenh_ChuanDoanSauCung.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["ChanDoanSauCung"].ApplyCurrentValues(a);

            b.Value = txtKBenh_HuongDieuTri.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["HuongDieuTri"].ApplyCurrentValues(a);

            b.Value = txtKBenh_Mach.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["Mach"].ApplyCurrentValues(a);

            b.Value = cboKBenh_NhomMauBN.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["NhomMau"].ApplyCurrentValues(a);

            b.Value = txtKBenh_HuyetAp.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["HuyetAp"].ApplyCurrentValues(a);

            b.Value = txtKBenh_NhietDo.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["NhietDo"].ApplyCurrentValues(a);

            b.Value = txtKBenh_NhipTho.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["NhipTho"].ApplyCurrentValues(a);

            b.Value = txtKBenh_CanNang.Text;
            a.Add(b);
            rp.DataDefinition.ParameterFields["CanNang"].ApplyCurrentValues(a);

            crystalReportViewer1.ReportSource = rp;
        }