private void button6_Click(object sender, EventArgs e)
        {
            dt = null;

            if (rbUniform.Checked == true)
            {
                LoadUniform();
                ThoiGian = "Từ " + dtFrom.Text + " đến " + dtTo.Text;
                Rpt_Scoring_Staff_Uniform cry = new Rpt_Scoring_Staff_Uniform();
                cry.SetDataSource(dt);
                cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                cry.SetParameterValue("Gioin", DateTime.Now.ToLongTimeString());
                cry.SetParameterValue("Thoigian", ThoiGian);
                crystalReportViewer1.ReportSource = cry;
            }
            if (rbTime.Checked)
            {
                ThoiGian = "Từ " + dtFrom.Text + " đến " + dtTo.Text;
                LoadTime();
                Rp_Scoring_Full cry = new Rp_Scoring_Full();
                cry.SetDataSource(dt);
                cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                cry.SetParameterValue("Gioin", DateTime.Now.ToLongTimeString());
                cry.SetParameterValue("Thoigian", ThoiGian);
                crystalReportViewer1.ReportSource = cry;
                //Rp_Score_Time cry = new Rp_Score_Time();
                //cry.SetDataSource(dt);
                //cry.SetParameterValue("Ngayin", DateTime.Now.ToShortDateString());
                //cry.SetParameterValue("Gioin", DateTime.Now.ToLongTimeString());
                //cry.SetParameterValue("Thoigian", ThoiGian);

                //cry.SetParameterValue("TongSang", tongsang);
                //cry.SetParameterValue("TongTrua",tongtrua);
                //cry.SetParameterValue("TongChieu", tongchieu);
                //cry.SetParameterValue("TongNghi", tongnghi);
                //cry.SetParameterValue("TongCong", tong);
                //cry.SetParameterValue("NgayNghi", nghi_nguyen_ngay);
                //cry.SetParameterValue("NhanVien", cbNhanVien.Text.Trim().ToUpper());
                //crystalReportViewer1.ReportSource = cry;

            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     Rp_Scoring_Full rpt = new Rp_Scoring_Full();
     rpt.Site = this.Site;
     return rpt;
 }