public InventoryEntry(Item item, ItemQuantity iq) { this.CompanyId = item.CompanyId; this.StoreId = iq.StoreId; this.ItemId = item.ItemId; this.ItemName = item.ItemName; this.Uom = item.Units; this.ItemQuantityId = iq.ItemQuantityId; this.Amount = iq.Amount; this.ModerateLevel = iq.ModerateLevel; this.UrgentLevel = iq.UrgentLevel; this.LastUpdated = iq.LastUpdated; }
public override bool Equals(object obj) { if (obj == null || !this.GetType().Equals(obj.GetType())) { return(false); } ItemQuantity item = (ItemQuantity)obj; return(item.ItemQuantityId == this.ItemQuantityId && item.ItemId == this.ItemId && item.StoreId == this.StoreId && item.Amount == this.Amount && item.ModerateLevel == this.ModerateLevel && item.UrgentLevel == this.UrgentLevel && item.LastUpdated == this.LastUpdated); }