C# 클래스 Nop.Services.Orders.OrderReportService

Order report service
상속: IOrderReportService
파일 보기 프로젝트 열기: emilianionascu/NopCommerce

공개 메소드들

메소드 설명
BestSellersReport ( System.DateTime startTime, System.DateTime endTime, OrderStatus os, PaymentStatus ps, ShippingStatus ss, int billingCountryId, int recordsToReturn = 5, int orderBy = 1, int groupBy = 1, bool showHidden = false ) : IList

Get best sellers report

GetOrderAverageReportLine ( OrderStatus os, PaymentStatus ps, ShippingStatus ss, System.DateTime startTimeUtc, System.DateTime endTimeUtc, string billingEmail, bool ignoreCancelledOrders = false ) : Nop.Core.Domain.Orders.OrderAverageReportLine

Get order average report

GetProductsAlsoPurchasedById ( int productId, int recordsToReturn = 5, bool showHidden = false ) : IList

Gets a list of products purchased by other customers who purchased the above

OrderAverageReport ( OrderStatus os ) : OrderAverageReportLineSummary

Get order average report

OrderReportService ( IRepository orderRepository, IRepository opvRepository, IRepository productRepository, IRepository productVariantRepository, IDateTimeHelper dateTimeHelper, IProductService productService ) : System

Ctor

ProductsNeverSold ( DateTime startTime, DateTime endTime, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList

Gets a list of product variants that were never sold

ProfitReport ( OrderStatus os, PaymentStatus ps, ShippingStatus ss, DateTime startTimeUtc, DateTime endTimeUtc, string billingEmail ) : decimal

Get profit report

메소드 상세

BestSellersReport() 공개 메소드

Get best sellers report
public BestSellersReport ( System.DateTime startTime, System.DateTime endTime, OrderStatus os, PaymentStatus ps, ShippingStatus ss, int billingCountryId, int recordsToReturn = 5, int orderBy = 1, int groupBy = 1, bool showHidden = false ) : IList
startTime System.DateTime Order start time; null to load all
endTime System.DateTime Order end time; null to load all
os OrderStatus Order status; null to load all records
ps PaymentStatus Order payment status; null to load all records
ss ShippingStatus Shipping status; null to load all records
billingCountryId int Billing country identifier; 0 to load all records
recordsToReturn int Records to return
orderBy int 1 - order by quantity, 2 - order by total amount
groupBy int 1 - group by product variants, 2 - group by products
showHidden bool A value indicating whether to show hidden records
리턴 IList

GetOrderAverageReportLine() 공개 메소드

Get order average report
public GetOrderAverageReportLine ( OrderStatus os, PaymentStatus ps, ShippingStatus ss, System.DateTime startTimeUtc, System.DateTime endTimeUtc, string billingEmail, bool ignoreCancelledOrders = false ) : Nop.Core.Domain.Orders.OrderAverageReportLine
os OrderStatus Order status
ps PaymentStatus Payment status
ss ShippingStatus Shipping status
startTimeUtc System.DateTime Start date
endTimeUtc System.DateTime End date
billingEmail string Billing email. Leave empty to load all records.
ignoreCancelledOrders bool A value indicating whether to ignore cancelled orders
리턴 Nop.Core.Domain.Orders.OrderAverageReportLine

GetProductsAlsoPurchasedById() 공개 메소드

Gets a list of products purchased by other customers who purchased the above
public GetProductsAlsoPurchasedById ( int productId, int recordsToReturn = 5, bool showHidden = false ) : IList
productId int Product identifier
recordsToReturn int Records to return
showHidden bool A value indicating whether to show hidden records
리턴 IList

OrderAverageReport() 공개 메소드

Get order average report
public OrderAverageReport ( OrderStatus os ) : OrderAverageReportLineSummary
os OrderStatus Order status
리턴 OrderAverageReportLineSummary

OrderReportService() 공개 메소드

Ctor
public OrderReportService ( IRepository orderRepository, IRepository opvRepository, IRepository productRepository, IRepository productVariantRepository, IDateTimeHelper dateTimeHelper, IProductService productService ) : System
orderRepository IRepository Order repository
opvRepository IRepository Order product variant repository
productRepository IRepository Product repository
productVariantRepository IRepository Product variant repository
dateTimeHelper IDateTimeHelper Datetime helper
productService IProductService Product service
리턴 System

ProductsNeverSold() 공개 메소드

Gets a list of product variants that were never sold
public ProductsNeverSold ( DateTime startTime, DateTime endTime, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList
startTime DateTime Order start time; null to load all
endTime DateTime Order end time; null to load all
pageIndex int Page index
pageSize int Page size
showHidden bool A value indicating whether to show hidden records
리턴 IPagedList

ProfitReport() 공개 메소드

Get profit report
public ProfitReport ( OrderStatus os, PaymentStatus ps, ShippingStatus ss, DateTime startTimeUtc, DateTime endTimeUtc, string billingEmail ) : decimal
os OrderStatus Order status; null to load all records
ps PaymentStatus Order payment status; null to load all records
ss ShippingStatus Shipping status; null to load all records
startTimeUtc DateTime Start date
endTimeUtc DateTime End date
billingEmail string Billing email. Leave empty to load all records.
리턴 decimal