public ShippingInfo()
 {
   Forwarder = new Forwarder();
   Shipper = new Party();
   TransportPayer = new Party();
   DutyTaxPayer = new Party();
   ImporterOfRecords = new Party();
 }
    public Order()
    {
      Status = OrderStatus.RECEIVED;

      OrderLines = new List<OrderLine>();
      OrderExtensions = new List<OrderExtension>();
      ShippingInfo = new BusinessObjects.ShippingInfo();
      Boxes = new List<Box>();
      Receiver = new Party();
    }
    public static Party Retrieve(string OrderNo, PartyType PartyType)
    {
      DataTable oData = Data.OperationalDB.LoadParty(OrderNo, PartyType.ToString());

      Party oParty = new Party();
      oParty.Contact = new Contact();
      oParty.Address = new Address();

      if (oData.Rows.Count > 0)
      {
        oParty.Contact = Contact.Retrieve(OrderNo, (ContactType)PartyType);
        oParty.Address = Address.Retrieve(OrderNo, (AddressType)PartyType);
        oParty.AccountNo = oData.Rows[0]["ACCOUNT_NO"].ToString();
      }

      return oParty;
    }