/// <summary> /// Purpose: Grabs order information based on ID /// Accepts: Int /// Returns: Nothing /// </summary> public void GetOrderByID(int id) { try { OrderData data = new OrderData(); Hashtable hsh = new Hashtable(); hsh = data.GetOrderByID(id); OrderID = id; UserID = Convert.ToInt32(hsh["userid"]); Subtotal = Convert.ToDouble(hsh["subtotal"]); Taxes = Convert.ToDouble(hsh["taxes"]); DeliveryCost = Convert.ToDouble(hsh["deliverycost"]); DeliveryTypeID = Convert.ToInt32(hsh["deliverytypeid"]); GrandTotal = Convert.ToDouble(hsh["grandtotal"]); Created = hsh["created"]; Modified = hsh["modified"]; } catch (Exception ex) { ErrorRoutine(ex, "Order", "GetOrderByID"); } }