Dynamicweb 8 Documentation
GetOrders(String,String,String,String,Boolean,String) Method
Example 

The keyword.
The state ID. DB field name is OrderStateID.
The start date. DB field name is OrderDate.
The end date. DB field name is OrderDate.
if set to true show cart. DB field name is OrderCart.
The shop ID. DB field name is OrderShopID.
Gets the orders.
Syntax
'Declaration
 
Public Overloads Shared Function GetOrders( _ 
   ByVal keyword As String, _ 
   ByVal stateID As String, _ 
   ByVal startdate As String, _ 
   ByVal enddate As String, _ 
   ByVal ShowCart As Boolean, _ 
   ByVal shopID As String _ 
) As OrderCollection
public static OrderCollection GetOrders( 
   string keyword,
   string stateID,
   string startdate,
   string enddate,
   bool ShowCart,
   string shopID 
)

Parameters

keyword
The keyword.
stateID
The state ID. DB field name is OrderStateID.
startdate
The start date. DB field name is OrderDate.
enddate
The end date. DB field name is OrderDate.
ShowCart
if set to true show cart. DB field name is OrderCart.
shopID
The shop ID. DB field name is OrderShopID.
Example
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
       }
   }
}
Requirements

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

See Also

Reference

Order Class
Order Members
Overload List

Send Feedback