示例#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));
 }