Beispiel #1
0
        protected virtual void OnOrderChanged(ManagedPropertyChangedEventArgs e)
        {
            var value = e.NewValue as PurchaseOrder;

            var children = this.StorageInItemList;
            children.Clear();
            if (value != null)
            {
                foreach (PurchaseOrderItem item in value.PurchaseOrderItemList)
                {
                    if (item.AmountLeft > 0)
                    {
                        var siItem = new StorageInBillItem
                        {
                            Id = RafyEnvironment.NewLocalId(),
                            Product = item.Product,
                            Amount = item.AmountLeft,
                            UnitPrice = item.RawPrice
                        };
                        children.Add(siItem);
                    }
                }
            }

            this.NotifyPropertyChanged(StorageInItemListProperty);
            this.NotifyPropertyChanged(View_SupplierNameProperty);
        }
Beispiel #2
0
 public int IndexOf(StorageInBillItem entity)
 {
     return base.IndexOf(entity);
 }
Beispiel #3
0
 public bool Contains(StorageInBillItem entity)
 {
     return base.Contains(entity);
 }
Beispiel #4
0
 public void Add(StorageInBillItem entity)
 {
     base.Add(entity);
 }
Beispiel #5
0
 public bool Remove(StorageInBillItem entity)
 {
     return base.Remove(entity);
 }
Beispiel #6
0
 public void Insert(int index, StorageInBillItem entity)
 {
     base.Insert(index, entity);
 }