コード例 #1
0
        public List <Item> GetItems()
        {
            List <Item>      reorderItem     = new List <Item>();
            List <StockCard> allItemsInStock = StockCardDao.GetAllInStock();

            foreach (StockCard item in allItemsInStock)
            {
                if (item.OnHandQuantity < item.Item.ReorderLevel)
                {
                    List <SupplierItem> suppliersItems = SupplierItemDao.GetSuppliersOfItem(item.Item);
                    StockReorder.Add(item.Item, suppliersItems);
                    reorderItem.Add(item.Item);
                }
            }

            return(reorderItem);
        }
コード例 #2
0
        public List <SupplierItem> getAllSuplierItems(Item item)
        {
            List <SupplierItem> suppliersItems = SupplierItemDao.GetSuppliersOfItem(item);

            return(suppliersItems);
        }