Ejemplo n.º 1
0
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        private void Initialize()
        {
            Catalog                     = String.Empty;
            CatalogNode                 = String.Empty;
            CatalogEntryId              = String.Empty;
            Quantity                    = 0;
            PlacedPrice                 = 0;
            ListPrice                   = 0;
            LineItemDiscountAmount      = 0;
            OrderLevelDiscountAmount    = 0;
            ShippingAddressId           = String.Empty;
            ShippingMethodId            = Guid.Empty;
            AllowBackordersAndPreorders = false;
            ExtendedPrice               = 0;
            InStockQuantity             = 0;
            PreorderQuantity            = 0;
            BackorderQuantity           = 0;
            InventoryStatus             = 0;
            MinQuantity                 = 1;
            MaxQuantity                 = 100;
            LineItemOrdering            = DateTime.UtcNow;
            this["LineItemId"]          = 0;

            _Discounts = new LineItemDiscountCollection(this);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LineItem"/> class.
 /// </summary>
 /// <param name="info">The info.</param>
 /// <param name="context">The context.</param>
 protected LineItem(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _Discounts = (LineItemDiscountCollection)info.GetValue("Discounts", typeof(LineItemDiscountCollection));
     //_Discounts.SetParent(this);
 }