public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     KetQuaXQuang rpt = new KetQuaXQuang();
     rpt.Site = this.Site;
     return rpt;
 }
        private void btnXQuang_InPhieu_Click(object sender, EventArgs e)
        {
            expandableSplitter3.Expanded = true;
            btnXQuang_InPhieu.Visible = false;
            btnXQuang_TroLai.Visible = true;
            groupPanel20.Visible = false;

            KetQuaXQuang rp = new KetQuaXQuang();
            ParameterValues a = new ParameterValues();
            ParameterDiscreteValue b = new ParameterDiscreteValue();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            crystalReportViewer3.ReportSource = rp;
        }