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

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        public static ReportDocument LoadSalesPaymentByCustomer(DateTime date1, DateTime date2)
        {
            ReportDocument rpt = new Sales.rprSalesPaymentByCustomer();
            dsReports      ds  = new dsReports();

            ds.EnforceConstraints = false;

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();

            ta.ClearBeforeFill = true;
            ta.Connection      = AppHelper.GetDbConnection();
            ta.FillSalesPayment(ds.DenormalizedOrders, date1, date2);

            if (ds.DenormalizedOrders.Rows.Count <= 0)
            {
                FillNoData(ds.DenormalizedOrders);
            }

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            rpt.ParameterFields["@Date1"].CurrentValues.AddValue(date1);
            rpt.ParameterFields["@Date2"].CurrentValues.AddValue(date2);
            return(rpt);
        }
예제 #3
0
        public static ReportDocument LoadSalesPaymentByCustomer(DateTime date1, DateTime date2)
        {
            ReportDocument rpt = new Sales.rprSalesPaymentByCustomer();
            dsReports ds = new dsReports();
            ds.EnforceConstraints = false;

            DenormalizedOrdersTableAdapter ta = new DenormalizedOrdersTableAdapter();
            ta.ClearBeforeFill = true;
            ta.Connection = AppHelper.GetDbConnection();
            ta.FillSalesPayment(ds.DenormalizedOrders, date1, date2);

            if (ds.DenormalizedOrders.Rows.Count <= 0)
                FillNoData(ds.DenormalizedOrders);

            RetrieveDeveloper(ds.Developer);
            RetrieveOwner(ds.Owner);
            rpt.SetDataSource(ds);
            rpt.ParameterFields["@Date1"].CurrentValues.AddValue(date1);
            rpt.ParameterFields["@Date2"].CurrentValues.AddValue(date2);
            return rpt;
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     rprSalesPaymentByCustomer rpt = new rprSalesPaymentByCustomer();
     rpt.Site = this.Site;
     return rpt;
 }