Ejemplo n.º 1
0
 public Messages.Order Get(int id)
 {
     Messages.Order order = new Messages.Order();
     order.OrderID        = id;
     order.Freight        = 3.4M;
     order.OrderDate      = DateTime.Now;
     order.OrderID        = 1234;
     order.RequiredDate   = DateTime.Now;
     order.ShipAddress    = "gz tian he long dong";
     order.ShipCity       = "gz";
     order.ShipCountry    = "cn";
     order.ShipName       = "sf";
     order.ShippedDate    = DateTime.Now.AddDays(10);
     order.ShipPostalCode = "510520";
     order.ShipRegion     = "gd";
     return(order);
 }
Ejemplo n.º 2
0
 public Messages.Order Get(int id)
 {
     Messages.Order order = new Messages.Order();
     order.OrderID = id;
     order.Freight = 3.4M;
     order.OrderDate = DateTime.Now;
     order.OrderID = 1234;
     order.RequiredDate = DateTime.Now;
     order.ShipAddress = "gz tian he long dong";
     order.ShipCity = "gz";
     order.ShipCountry = "cn";
     order.ShipName = "sf";
     order.ShippedDate = DateTime.Now.AddDays(10);
     order.ShipPostalCode = "510520";
     order.ShipRegion = "gd";
     return order;
 }
Ejemplo n.º 3
0
 public List<Messages.Order> List(int pages, int size)
 {
     List<Messages.Order> orders = new List<Messages.Order>();
     for (int i = 0; i < 10; i++)
     {
         Messages.Order order = new Messages.Order();
         order.Freight = 3.4M;
         order.OrderDate = DateTime.Now;
         order.OrderID = 1234;
         order.RequiredDate = DateTime.Now;
         order.ShipAddress = "gz tian he long dong";
         order.ShipCity = "gz";
         order.ShipCountry = "cn";
         order.ShipName = "sf";
         order.ShippedDate = DateTime.Now.AddDays(10);
         order.ShipPostalCode = "510520";
         order.ShipRegion = "gd";
         orders.Add(order);
     }
     return orders;
 }
Ejemplo n.º 4
0
        public List <Messages.Order> List(int pages, int size)
        {
            List <Messages.Order> orders = new List <Messages.Order>();

            for (int i = 0; i < 10; i++)
            {
                Messages.Order order = new Messages.Order();
                order.Freight        = 3.4M;
                order.OrderDate      = DateTime.Now;
                order.OrderID        = 1234;
                order.RequiredDate   = DateTime.Now;
                order.ShipAddress    = "gz tian he long dong";
                order.ShipCity       = "gz";
                order.ShipCountry    = "cn";
                order.ShipName       = "sf";
                order.ShippedDate    = DateTime.Now.AddDays(10);
                order.ShipPostalCode = "510520";
                order.ShipRegion     = "gd";
                orders.Add(order);
            }
            return(orders);
        }
Ejemplo n.º 5
0
 // returns a string of order
 private static string OrderToString(Order order)
 {
     //orderId;transactionId;time;securityId;portfolioName;volume;balance;price;direction;type;localTime 
     return string.Format("{0};{1};{2};{3};{4};{5};{6};{7};{8};{9};{10};{11}",
         order.Id,
         order.TransactionId,
         order.Time,
         order.Security.Id,
         order.Portfolio.Name,
         order.Volume,
         order.Balance,
         order.Price,
         order.Direction,
         order.Type,
         order.State,
         order.LocalTime);
 }