在商业基础上查询订单 [英] querying orders in commerce foundation

查看:96
本文介绍了在商业基础上查询订单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试管理已下订单。 每次我在Commerce Foundation中查询一组订单(即"CF")时,它都希望我指定一个特定的UserId。 但是,我正在尝试查询许多不同的用户,以便管理一组
(比如未填充的)订单。 我如何在CF中有效地做到这一点?  。Pls.advise 如果使用CF(我的第一选择)无法有效使用,我该如何使用Core Systems进行此操作? 我想返回一组订单(包括所有订单
信息,包括订单,订单项,付款信息等),适用于使用不同搜索条件的许多不同用户(仅限日期范围或未填写)仅限状态等。)。 这必须是基本/常见的事情。  。Pls.advise 感谢
you。

I am trying to manage already placed orders.  Each time I query a group of orders in Commerce Foundation (ie "CF") it wants me to specify a specific UserId.  However, I am trying to query over many different users in order to manager a group of (say unfilled) orders.  How do I do this efficiently in CF?  Pls.advise.  And if not available efficiently using CF (my first choice), how do I do this using the Core Systems?  I would like to return a group of orders (with all the order info included namely order form, line item, payment info, etc.) for many different users using different search criteria (like date range only, or an unfilled status only, etc.).  This must be a basic/common thing to do.  Pls.advise.  Thank you.

推荐答案

使用核心系统这是一项相当容易的任务:

Using the Core System it is a fairly easy task:

你需要一个PurchaseOrderManager实例。要实例化它,您需要和OrderManagementContext,它需要SiteAgent。你应该拥有完成这项工作所需的一切。

You would need a PurchaseOrderManager instance. To instantiate this, you will need and OrderManagementContext, which needs a SiteAgent. You should have all that you need to get this done.

一旦你有了这个,你应该使用GetSearchableProperties来获得所有可搜索的属性。使用SearchClauseFactory构建您的搜索,然后调用SearchPurchaseOrders,它将返回带有PurchaseOrders的DataSet。

Once you have this, you should use GetSearchableProperties to get all the searchable properties. The use a SearchClauseFactory to build your search and then call SearchPurchaseOrders which will return a DataSet with PurchaseOrders.

一旦您查看API,这应该是相当自我解释的。如果没有,请询​​问。

This should be fairly self explanatory once you look at the API. If not, just ask.

 

 

 

 


这篇关于在商业基础上查询订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆