Exemplo n.º 1
0
        public WCFItem getItemByID(string id)
        {
            WCFItem wcfItem = new WCFItem();
            Item    i       = itemDAO.getItemByID(id);

            wcfItem = WCFItem.Make(i.itemID, i.categoryID, i.description, i.location, i.unitOfMeasure, i.reorderLevel, i.reorderQty, i.qtyOnHand);
            return(wcfItem);
        }
Exemplo n.º 2
0
        public List <WCFItem> findItemBySearch(string keyword)
        {
            List <WCFItem> targetItemList = new List <WCFItem>();
            List <Item>    ilist          = itemDAO.getItemBySearch(keyword);

            foreach (Item i in ilist)
            {
                WCFItem wcfItem = WCFItem.Make(i.itemID, i.categoryID, i.description, i.location, i.unitOfMeasure, i.reorderLevel, i.reorderQty, i.qtyOnHand);
                targetItemList.Add(wcfItem);
            }
            return(targetItemList);
        }