Dynamicweb.eCommerce.Orders Namespace > Order Class > GetOrders Method : GetOrders(String) Method |
'Declaration
Public Overloads Shared Function GetOrders( _ ByVal SQL As String _ ) As OrderCollection
public static OrderCollection GetOrders( string SQL )
class MyPage : System.Web.UI.Page { private void DoDelete() { string keyword = Base.ChkString(Request["searchField"]); string state = Base.ChkString(HttpContext.Current.Session["Ecom.Backend.Search.StateID"]); string startDate = Base.ChkString(Request["searchStartDate"]); string endDate = Base.ChkString(Request["searchEndDate"]); string shopID = Base.ChkString(HttpContext.Current.Session["Ecom.Backend.Search.ShopID"]); Dynamicweb.eCommerce.Orders.OrderCollection orderCol = Dynamicweb.eCommerce.Orders.Order.getOrders(keyword, state, startDate, endDate, false, shopID); foreach(Dynamicweb.eCommerce.Orders.Order o in orderCol){ //TODO: insert your code here } } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2