在订单历史记录页面中显示订单而不应用过滤器 [英] Displaying the Orders without Apply Filters in Order History Page

查看:81
本文介绍了在订单历史记录页面中显示订单而不应用过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


< span style ="font-size:small"> 大家好,


我试图显示所有订单当购物者进入订单历史记录页面时,绕过日期过滤器。


我检查了代码,发现了这个有趣的评论


// TODO:本地化应该发生在
web部分......


 


是否有人设法显示订单而不要求购物者输入日期过滤器?


代码不是很友好。


谢谢,


< p style ="margin:0cm 0cm 10pt"> Odilia

解决方案

有几种方法可以实现它:


1)编写自己的订单组件,使用CS 2007 API / SQL自定义查询来映射和返回CS实体


2)直接使用CS 2007 API(代理或流程模式下的orderManagement类)可以指定相当多的搜索条件


3)使用订单管理Web服务


4)编写自定义SQL查询/存储过程以检索订单数据库上的订单(只有当您无法通过CS API实现目标时才应使用此方法)并且您应该注意锁定和隔离级别你的trasnsactions ....


因为你可以期待最好的取决于你真正需要做的事情......


斯泰利奥


Hi All,

I am trying to display all the orders when the shopper enters the Order History page, bypassing the date filter.

I checked the code and I found this interesting comment

// TODO: localization should happen in the web part...

 

Has anybody managed to display the orders without asking the shopper to enter a date filter?

The code is not very friendly.

Thanks,

Odilia

解决方案

There are several way to achieve it:

1) write your own Order Component that use CS 2007 API / SQL custom query to map and return CS Entities

2) Use directly CS 2007 API (orderManagement class in agent or process mode) you can specify quite a lot of search conditions

3) Use Order management web service

4) Write your custom SQL query / store procedure to retrieve orders on the order database (this way should be used only if you cannot achieve your goals with CS API) and you should pay attention to locks and isolation level of your trasnsactions....

as you can expect the best one depends on what you really need to do...

Stelio


这篇关于在订单历史记录页面中显示订单而不应用过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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