Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Report_Payroll_NewJoinPaymentSummary rpt = new Report_Payroll_NewJoinPaymentSummary();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        public override ReportDocument GenerateReport()
        {
            if (EmpList != null)
            {
                GenerateDetailByEmpID();
                if (reportDocument == null)
                {
                    reportDocument = new ReportTemplate.Report_Payroll_NewJoinPaymentSummary();
                }

                reportDocument.SetDataSource(dataSet);

                foreach (ReportDocument o in reportDocument.Subreports)
                {
                    o.SetDataSource(dataSet);
                }

                reportDocument.SetParameterValue("PreparedBy", PreparedBy);
                reportDocument.SetParameterValue("ReviewedBy", ReviewedBy);

                return(reportDocument);
            }
            else
            {
                return(null);
            }
        }