public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            EntryConfirmationCheckDetailRPT rpt = new EntryConfirmationCheckDetailRPT();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void gvList_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataSet ds = new DataSet();

            ds = preWages.GetMoreThanOneEntriesAddedToSameTypeDetail(Convert.ToDateTime(gvList.Rows[e.RowIndex].Cells[0].Value.ToString()), Convert.ToInt32(gvList.Rows[e.RowIndex].Cells[1].Value.ToString()), gvList.Rows[e.RowIndex].Cells[2].Value.ToString(), gvList.Rows[e.RowIndex].Cells[3].Value.ToString());
            ds.WriteXml("EntryConfirmationRegDetail.xml");
            EntryConfirmationCheckDetailRPT myDailyRep = new EntryConfirmationCheckDetailRPT();

            myDailyRep.SetDataSource(ds);
            ReportViewer myReportViewer = new ReportViewer();

            myDailyRep.SetParameterValue("Company Name", FTSPayRollBL.Company.getCompanyName());
            myDailyRep.SetParameterValue("Date", Convert.ToDateTime(gvList.Rows[e.RowIndex].Cells[0].Value.ToString()).ToShortDateString());
            myDailyRep.SetParameterValue("Division", "Division : " + gvList.Rows[e.RowIndex].Cells[2].Value.ToString());
            if (Convert.ToInt32(gvList.Rows[e.RowIndex].Cells[3].Value.ToString()) == 1)
            {
                myDailyRep.SetParameterValue("General", " Normal Work");
            }
            else
            {
                myDailyRep.SetParameterValue("General", " Cash Work");
            }

            myReportViewer.crystalReportViewer1.ReportSource = myDailyRep;
            myReportViewer.Show();
        }