예제 #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);
        }
예제 #2
0
 public void Insert(int index, StorageInBillItem entity)
 {
     base.Insert(index, entity);
 }
예제 #3
0
 public int IndexOf(StorageInBillItem entity)
 {
     return(base.IndexOf(entity));
 }
예제 #4
0
 public bool Contains(StorageInBillItem entity)
 {
     return(base.Contains(entity));
 }
예제 #5
0
 public void Add(StorageInBillItem entity)
 {
     base.Add(entity);
 }
예제 #6
0
 public bool Remove(StorageInBillItem entity)
 {
     return(base.Remove(entity));
 }