Пример #1
0
        public static XtraReport CustomerSalesSummaryReport(IEnumerable <CustomerSaleDetailOrderItemInfo> sales, bool sortByOrderDate, DateTime fromDate, DateTime toDate)
        {
            var report = new CustomerSalesSummaryReport();

            report.DataSource = sales;
            report.Parameters["paramOrderDate"].Value = sortByOrderDate;
            report.Parameters["paramFromDate"].Value  = fromDate;
            report.Parameters["paramToDate"].Value    = toDate;
            return(report);
        }
Пример #2
0
    static XtraReport CreateCustomerSalesSummaryReport(long customerID)
    {
        var report   = new CustomerSalesSummaryReport();
        var customer = DataProvider.Customers.FirstOrDefault(c => c.Id == customerID);

        if (customer != null)
        {
            report.DataSource = QueriesHelper.GetCustomerSaleOrderItemDetails(customer.Id, DataProvider.OrderItems);
        }
        return(report);
    }